From: Johan Jonker <hidden> Date: 2021-05-18 16:57:14
Current dts files with Rockchip 'usbphy' nodes are manually verified.
In order to automate this process rockchip-usb-phy.txt has to be
converted to YAML.
Signed-off-by: Johan Jonker <redacted>
---
Changed V6
remove some #phy-cells
---
.../devicetree/bindings/phy/rockchip-usb-phy.txt | 52 --------------
.../devicetree/bindings/phy/rockchip-usb-phy.yaml | 81 ++++++++++++++++++++++
2 files changed, 81 insertions(+), 52 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt
create mode 100644 Documentation/devicetree/bindings/phy/rockchip-usb-phy.yaml
@@ -1,52 +0,0 @@-ROCKCHIP USB2 PHY--Required properties:- - compatible: matching the soc type, one of- "rockchip,rk3066a-usb-phy"- "rockchip,rk3188-usb-phy"- "rockchip,rk3288-usb-phy"- - #address-cells: should be 1- - #size-cells: should be 0--Deprecated properties:- - rockchip,grf : phandle to the syscon managing the "general- register files" - phy should be a child of the GRF instead--Sub-nodes:-Each PHY should be represented as a sub-node.--Sub-nodes-required properties:-- #phy-cells: should be 0-- reg: PHY configure reg address offset in GRF- "0x320" - for PHY attach to OTG controller- "0x334" - for PHY attach to HOST0 controller- "0x348" - for PHY attach to HOST1 controller--Optional Properties:-- clocks : phandle + clock specifier for the phy clocks-- clock-names: string, clock name, must be "phyclk"-- #clock-cells: for users of the phy-pll, should be 0-- reset-names: Only allow the following entries:- - phy-reset-- resets: Must contain an entry for each entry in reset-names.-- vbus-supply: power-supply phandle for vbus power source--Example:--grf: syscon@ff770000 {- compatible = "rockchip,rk3288-grf", "syscon", "simple-mfd";--...-- usbphy: phy {- compatible = "rockchip,rk3288-usb-phy";- #address-cells = <1>;- #size-cells = <0>;-- usbphy0: usb-phy0 {- #phy-cells = <0>;- reg = <0x320>;- };- };-};
From: Johan Jonker <hidden> Date: 2021-05-18 16:57:15
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 <redacted>
---
.../devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml | 11 +++--------
Documentation/devicetree/bindings/soc/rockchip/grf.yaml | 4 ++--
2 files changed, 5 insertions(+), 10 deletions(-)
From: Johan Jonker <hidden> Date: 2021-05-18 16:57:19
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.
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 <redacted>
---
arch/arm/boot/dts/rk322x.dtsi | 4 ++--
arch/arm/boot/dts/rv1108.dtsi | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
From: Johan Jonker <hidden> Date: 2021-05-18 16:57:20
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.
make ARCH=arm64 dtbs_check
DT_SCHEMA_FILES=~/.local/lib/python3.5/site-packages/dtschema/schemas/
phy/phy-provider.yaml
Signed-off-by: Johan Jonker <redacted>
---
arch/arm64/boot/dts/rockchip/px30.dtsi | 2 +-
arch/arm64/boot/dts/rockchip/rk3328.dtsi | 2 +-
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
From: Rob Herring <robh+dt@kernel.org> Date: 2021-05-19 15:19:20
On Tue, May 18, 2021 at 11:57 AM Johan Jonker [off-list ref] wrote:
Current dts files with Rockchip 'usbphy' nodes are manually verified.
In order to automate this process rockchip-usb-phy.txt has to be
converted to YAML.
Signed-off-by: Johan Jonker <redacted>
---
Changed V6
remove some #phy-cells
---
.../devicetree/bindings/phy/rockchip-usb-phy.txt | 52 --------------
.../devicetree/bindings/phy/rockchip-usb-phy.yaml | 81 ++++++++++++++++++++++
2 files changed, 81 insertions(+), 52 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/phy/rockchip-usb-phy.txt
create mode 100644 Documentation/devicetree/bindings/phy/rockchip-usb-phy.yaml
From: Rob Herring <robh@kernel.org> Date: 2021-05-20 00:06:01
On Tue, 18 May 2021 18:56:56 +0200, Johan Jonker wrote:
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 <redacted>
---
.../devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml | 11 +++--------
Documentation/devicetree/bindings/soc/rockchip/grf.yaml | 4 ++--
2 files changed, 5 insertions(+), 10 deletions(-)
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
Current dts files with Rockchip 'usbphy' nodes are manually verified.
In order to automate this process rockchip-usb-phy.txt has to be
converted to YAML.