Skip to content

Commit 35c8b71

Browse files
Charan-Pedumurugregkh
authored andcommitted
dt-bindings: usb: atmel,at91sam9rl-udc: convert to DT schema
Convert Atmel High-Speed USB Device Controller (USBA) binding to DT schema. Changes during conversion: - Make the "clock-names" property flexible enough to accept the items in any order as the existing in tree DTS nodes doesn't follow an order. Signed-off-by: Charan Pedumuru <charan.pedumuru@gmail.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20260327-atmel-usb-v4-5-eb8b6e49b29d@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent abfffb4 commit 35c8b71

2 files changed

Lines changed: 74 additions & 46 deletions

File tree

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/usb/atmel,at91sam9rl-udc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Atmel High-Speed USB Device Controller (USBA)
8+
9+
maintainers:
10+
- Nicolas Ferre <nicolas.ferre@microchip.com>
11+
- Alexandre Belloni <alexandre.belloni@bootlin.com>
12+
13+
description:
14+
The Atmel High-Speed USB Device Controller (USBA) provides USB 2.0
15+
high-speed gadget functionality on several Atmel and Microchip SoCs.
16+
The controller requires a peripheral clock and a host clock for operation
17+
and may optionally use a GPIO to detect VBUS presence.
18+
19+
properties:
20+
compatible:
21+
oneOf:
22+
- enum:
23+
- atmel,at91sam9rl-udc
24+
- atmel,at91sam9g45-udc
25+
- atmel,sama5d3-udc
26+
- items:
27+
- const: microchip,lan9662-udc
28+
- const: atmel,sama5d3-udc
29+
- const: microchip,sam9x60-udc
30+
31+
reg:
32+
maxItems: 2
33+
34+
interrupts:
35+
maxItems: 1
36+
37+
clocks:
38+
maxItems: 2
39+
40+
clock-names:
41+
minItems: 2
42+
maxItems: 2
43+
items:
44+
enum: [pclk, hclk]
45+
46+
atmel,vbus-gpio:
47+
description: GPIO used to detect the presence of VBUS, indicating that
48+
the USB cable is connected.
49+
maxItems: 1
50+
51+
required:
52+
- compatible
53+
- reg
54+
- interrupts
55+
- clocks
56+
- clock-names
57+
58+
unevaluatedProperties: false
59+
60+
examples:
61+
- |
62+
#include <dt-bindings/interrupt-controller/irq.h>
63+
#include <dt-bindings/clock/at91.h>
64+
#include <dt-bindings/gpio/gpio.h>
65+
gadget@fff78000 {
66+
compatible = "atmel,at91sam9g45-udc";
67+
reg = <0x00600000 0x80000
68+
0xfff78000 0x400>;
69+
interrupts = <27 IRQ_TYPE_LEVEL_HIGH 0>;
70+
clocks = <&pmc PMC_TYPE_PERIPHERAL 27>, <&pmc PMC_TYPE_CORE PMC_UTMI>;
71+
clock-names = "pclk", "hclk";
72+
atmel,vbus-gpio = <&pioC 15 GPIO_ACTIVE_HIGH>;
73+
};
74+
...

Documentation/devicetree/bindings/usb/atmel-usb.txt

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)