Skip to content
Snippets Groups Projects
Commit e71ccdff authored by Johan Jonker's avatar Johan Jonker Committed by Heiko Stuebner
Browse files

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: default avatarJohan Jonker <jbx6244@gmail.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Acked-By: default avatarVinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20210601164800.7670-2-jbx6244@gmail.com


Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 2ed2732e
No related branches found
No related tags found
No related merge requests found
...@@ -29,9 +29,6 @@ properties: ...@@ -29,9 +29,6 @@ properties:
"#clock-cells": "#clock-cells":
const: 0 const: 0
"#phy-cells":
const: 0
clocks: clocks:
maxItems: 1 maxItems: 1
...@@ -119,7 +116,6 @@ required: ...@@ -119,7 +116,6 @@ required:
- reg - reg
- clock-output-names - clock-output-names
- "#clock-cells" - "#clock-cells"
- "#phy-cells"
- host-port - host-port
- otg-port - otg-port
...@@ -130,26 +126,25 @@ examples: ...@@ -130,26 +126,25 @@ examples:
#include <dt-bindings/clock/rk3399-cru.h> #include <dt-bindings/clock/rk3399-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
u2phy0: usb2-phy@e450 { u2phy0: usb2phy@e450 {
compatible = "rockchip,rk3399-usb2phy"; compatible = "rockchip,rk3399-usb2phy";
reg = <0xe450 0x10>; reg = <0xe450 0x10>;
clocks = <&cru SCLK_USB2PHY0_REF>; clocks = <&cru SCLK_USB2PHY0_REF>;
clock-names = "phyclk"; clock-names = "phyclk";
clock-output-names = "clk_usbphy0_480m"; clock-output-names = "clk_usbphy0_480m";
#clock-cells = <0>; #clock-cells = <0>;
#phy-cells = <0>;
u2phy0_host: host-port { u2phy0_host: host-port {
#phy-cells = <0>;
interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>; interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>;
interrupt-names = "linestate"; interrupt-names = "linestate";
#phy-cells = <0>;
}; };
u2phy0_otg: otg-port { u2phy0_otg: otg-port {
#phy-cells = <0>;
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>, interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>,
<GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>, <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>,
<GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>; <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>;
interrupt-names = "otg-bvalid", "otg-id", "linestate"; interrupt-names = "otg-bvalid", "otg-id", "linestate";
#phy-cells = <0>;
}; };
}; };
...@@ -184,7 +184,7 @@ allOf: ...@@ -184,7 +184,7 @@ allOf:
- "#size-cells" - "#size-cells"
patternProperties: patternProperties:
"usb2-phy@[0-9a-f]+$": "usb2phy@[0-9a-f]+$":
type: object type: object
$ref: "/schemas/phy/phy-rockchip-inno-usb2.yaml#" $ref: "/schemas/phy/phy-rockchip-inno-usb2.yaml#"
...@@ -233,7 +233,7 @@ examples: ...@@ -233,7 +233,7 @@ examples:
#phy-cells = <0>; #phy-cells = <0>;
}; };
u2phy0: usb2-phy@e450 { u2phy0: usb2phy@e450 {
compatible = "rockchip,rk3399-usb2phy"; compatible = "rockchip,rk3399-usb2phy";
reg = <0xe450 0x10>; reg = <0xe450 0x10>;
clocks = <&cru SCLK_USB2PHY0_REF>; clocks = <&cru SCLK_USB2PHY0_REF>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment