Documentation / devicetree / bindings / usb / atmel,at91sam9rl-udc.yaml


Based on kernel version 7.2. Page generated on 2026-08-20 08:41 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/usb/atmel,at91sam9rl-udc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Atmel High-Speed USB Device Controller (USBA)

maintainers:
  - Nicolas Ferre <nicolas.ferre@microchip.com>
  - Alexandre Belloni <alexandre.belloni@bootlin.com>

description:
  The Atmel High-Speed USB Device Controller (USBA) provides USB 2.0
  high-speed gadget functionality on several Atmel and Microchip SoCs.
  The controller requires a peripheral clock and a host clock for operation
  and may optionally use a GPIO to detect VBUS presence.

properties:
  compatible:
    oneOf:
      - enum:
          - atmel,at91sam9rl-udc
          - atmel,at91sam9g45-udc
          - atmel,sama5d3-udc
      - items:
          - const: microchip,lan9662-udc
          - const: atmel,sama5d3-udc
      - const: microchip,sam9x60-udc

  reg:
    maxItems: 2

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 2

  clock-names:
    minItems: 2
    maxItems: 2
    items:
      enum: [pclk, hclk]

  atmel,vbus-gpio:
    description: GPIO used to detect the presence of VBUS, indicating that
      the USB cable is connected.
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    #include <dt-bindings/clock/at91.h>
    #include <dt-bindings/gpio/gpio.h>
    gadget@fff78000 {
        compatible = "atmel,at91sam9g45-udc";
        reg = <0x00600000 0x80000
               0xfff78000 0x400>;
        interrupts = <27 IRQ_TYPE_LEVEL_HIGH 0>;
        clocks = <&pmc PMC_TYPE_PERIPHERAL 27>, <&pmc PMC_TYPE_CORE PMC_UTMI>;
        clock-names = "pclk", "hclk";
        atmel,vbus-gpio = <&pioC 15 GPIO_ACTIVE_HIGH>;
    };
...