Skip to content

Commit f5d5a0b

Browse files
parakavinodkoul
authored andcommitted
dt-bindings: phy: ralink-usb-phy: convert to dtschema
Convert the ralink-usb-phy bindings to DT schema. Signed-off-by: Sergio Paracuellos <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 03c866c commit f5d5a0b

File tree

2 files changed

+74
-23
lines changed

2 files changed

+74
-23
lines changed
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/phy/mediatek,mt7628-usbphy.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Mediatek/Ralink USB PHY
8+
9+
maintainers:
10+
- Sergio Paracuellos <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- mediatek,mt7620-usbphy
16+
- mediatek,mt7628-usbphy
17+
- ralink,rt3352-usbphy
18+
19+
reg:
20+
maxItems: 1
21+
22+
"#phy-cells":
23+
const: 0
24+
25+
ralink,sysctl:
26+
description:
27+
phandle to a ralink syscon register region.
28+
$ref: /schemas/types.yaml#/definitions/phandle
29+
30+
resets:
31+
items:
32+
- description: USB Host reset controller
33+
- description: USB Device reset controller
34+
35+
reset-names:
36+
items:
37+
- const: host
38+
- const: device
39+
40+
required:
41+
- compatible
42+
- "#phy-cells"
43+
- ralink,sysctl
44+
- resets
45+
- reset-names
46+
47+
allOf:
48+
- if:
49+
properties:
50+
compatible:
51+
contains:
52+
const: mediatek,mt7628-usbphy
53+
then:
54+
required:
55+
- reg
56+
else:
57+
properties:
58+
reg: false
59+
60+
additionalProperties: false
61+
62+
examples:
63+
- |
64+
phy@10120000 {
65+
compatible = "mediatek,mt7628-usbphy";
66+
reg = <0x10120000 0x1000>;
67+
#phy-cells = <0>;
68+
ralink,sysctl = <&sysc>;
69+
resets = <&rstctrl 22>,
70+
<&rstctrl 25>;
71+
reset-names = "host", "device";
72+
};
73+
74+
...

Documentation/devicetree/bindings/phy/ralink-usb-phy.txt

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

0 commit comments

Comments
 (0)