Skip to content

Commit e71ccdf

Browse files
Johan Jonkermmind
authored andcommitted
dt-bindings: phy: rename phy nodename in phy-rockchip-inno-usb2.yaml
The pattern: "^(|usb-|usb2-|usb3-|pci-|pcie-|sata-)phy(@[0-9a-f,]+)*$" in phy-provider.yaml has required "#phy-cells" for phy nodes. The "phy-cells" in rockchip-inno-usb2 nodes are located in subnodes. Rename the nodename to pattern "usb2phy@[0-9a-f]+$" to prevent notifications. Remove unneeded "#phy-cells" from parent node. Also sort example. make ARCH=arm dtbs_check DT_SCHEMA_FILES=~/.local/lib/python3.5/site-packages/dtschema/schemas/ phy/phy-provider.yaml Signed-off-by: Johan Jonker <jbx6244@gmail.com> Acked-by: Rob Herring <robh@kernel.org> Acked-By: Vinod Koul <vkoul@kernel.org> Link: https://lore.kernel.org/r/20210601164800.7670-2-jbx6244@gmail.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 2ed2732 commit e71ccdf

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ properties:
2929
"#clock-cells":
3030
const: 0
3131

32-
"#phy-cells":
33-
const: 0
34-
3532
clocks:
3633
maxItems: 1
3734

@@ -119,7 +116,6 @@ required:
119116
- reg
120117
- clock-output-names
121118
- "#clock-cells"
122-
- "#phy-cells"
123119
- host-port
124120
- otg-port
125121

@@ -130,26 +126,25 @@ examples:
130126
#include <dt-bindings/clock/rk3399-cru.h>
131127
#include <dt-bindings/interrupt-controller/arm-gic.h>
132128
#include <dt-bindings/interrupt-controller/irq.h>
133-
u2phy0: usb2-phy@e450 {
129+
u2phy0: usb2phy@e450 {
134130
compatible = "rockchip,rk3399-usb2phy";
135131
reg = <0xe450 0x10>;
136132
clocks = <&cru SCLK_USB2PHY0_REF>;
137133
clock-names = "phyclk";
138134
clock-output-names = "clk_usbphy0_480m";
139135
#clock-cells = <0>;
140-
#phy-cells = <0>;
141136
142137
u2phy0_host: host-port {
143-
#phy-cells = <0>;
144138
interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>;
145139
interrupt-names = "linestate";
140+
#phy-cells = <0>;
146141
};
147142
148143
u2phy0_otg: otg-port {
149-
#phy-cells = <0>;
150144
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>,
151145
<GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>,
152146
<GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>;
153147
interrupt-names = "otg-bvalid", "otg-id", "linestate";
148+
#phy-cells = <0>;
154149
};
155150
};

Documentation/devicetree/bindings/soc/rockchip/grf.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ allOf:
184184
- "#size-cells"
185185

186186
patternProperties:
187-
"usb2-phy@[0-9a-f]+$":
187+
"usb2phy@[0-9a-f]+$":
188188
type: object
189189

190190
$ref: "/schemas/phy/phy-rockchip-inno-usb2.yaml#"
@@ -233,7 +233,7 @@ examples:
233233
#phy-cells = <0>;
234234
};
235235
236-
u2phy0: usb2-phy@e450 {
236+
u2phy0: usb2phy@e450 {
237237
compatible = "rockchip,rk3399-usb2phy";
238238
reg = <0xe450 0x10>;
239239
clocks = <&cru SCLK_USB2PHY0_REF>;

0 commit comments

Comments
 (0)