* [PATCH v1 1/2] ARM: dts: rockchip: add #phy-cells to all usb2-phy nodes
@ 2020-04-01 7:37 Johan Jonker
2020-04-01 7:37 ` [PATCH v1 2/2] arm64: " Johan Jonker
0 siblings, 1 reply; 2+ messages in thread
From: Johan Jonker @ 2020-04-01 7:37 UTC (permalink / raw)
To: heiko; +Cc: robh+dt, devicetree, linux-arm-kernel, linux-rockchip, linux-kernel
Current dts files for Rockchip with 'usb2-phy' subnodes
are manually verified. In order to automate this process
phy-rockchip-inno-usb2.txt has been converted to yaml.
'usb2-phy' nodes are now checked by:
'phy-rockchip-inno-usb2.yaml' and 'phy-provider.yaml'.
'#phy-cells' is now required for all usb2-phy nodes,
so add them.
make -k ARCH=arm dtbs_check
DT_SCHEMA_FILES=Documentation/devicetree/bindings/
phy/phy-rockchip-inno-usb2.yaml
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
arch/arm/boot/dts/rk322x.dtsi | 2 ++
arch/arm/boot/dts/rv1108.dtsi | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi
index 06172ebbf..9ad32651a 100644
--- a/arch/arm/boot/dts/rk322x.dtsi
+++ b/arch/arm/boot/dts/rk322x.dtsi
@@ -214,6 +214,7 @@
clock-names = "phyclk";
clock-output-names = "usb480m_phy0";
#clock-cells = <0>;
+ #phy-cells = <0>;
status = "disabled";
u2phy0_otg: otg-port {
@@ -241,6 +242,7 @@
clock-names = "phyclk";
clock-output-names = "usb480m_phy1";
#clock-cells = <0>;
+ #phy-cells = <0>;
status = "disabled";
u2phy1_otg: otg-port {
diff --git a/arch/arm/boot/dts/rv1108.dtsi b/arch/arm/boot/dts/rv1108.dtsi
index f9cfe2c80..b453f8d0f 100644
--- a/arch/arm/boot/dts/rv1108.dtsi
+++ b/arch/arm/boot/dts/rv1108.dtsi
@@ -269,9 +269,10 @@
reg = <0x100 0x0c>;
clocks = <&cru SCLK_USBPHY>;
clock-names = "phyclk";
- #clock-cells = <0>;
clock-output-names = "usbphy";
rockchip,usbgrf = <&usbgrf>;
+ #clock-cells = <0>;
+ #phy-cells = <0>;
status = "disabled";
u2phy_otg: otg-port {
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH v1 2/2] arm64: dts: rockchip: add #phy-cells to all usb2-phy nodes
2020-04-01 7:37 [PATCH v1 1/2] ARM: dts: rockchip: add #phy-cells to all usb2-phy nodes Johan Jonker
@ 2020-04-01 7:37 ` Johan Jonker
0 siblings, 0 replies; 2+ messages in thread
From: Johan Jonker @ 2020-04-01 7:37 UTC (permalink / raw)
To: heiko; +Cc: robh+dt, devicetree, linux-arm-kernel, linux-rockchip, linux-kernel
Current dts files for Rockchip with 'usb2-phy' subnodes
are manually verified. In order to automate this process
phy-rockchip-inno-usb2.txt has been converted to yaml.
'usb2-phy' nodes are now checked by:
'phy-rockchip-inno-usb2.yaml' and 'phy-provider.yaml'.
'#phy-cells' is now required for all usb2-phy nodes,
so add them.
make -k ARCH=arm64 dtbs_check
DT_SCHEMA_FILES=Documentation/devicetree/bindings/
phy/phy-rockchip-inno-usb2.yaml
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
arch/arm64/boot/dts/rockchip/px30.dtsi | 5 +++--
arch/arm64/boot/dts/rockchip/rk3328.dtsi | 3 ++-
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 6 ++++--
3 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/px30.dtsi b/arch/arm64/boot/dts/rockchip/px30.dtsi
index bd5f51d23..6f7171290 100644
--- a/arch/arm64/boot/dts/rockchip/px30.dtsi
+++ b/arch/arm64/boot/dts/rockchip/px30.dtsi
@@ -822,10 +822,11 @@
reg = <0x100 0x20>;
clocks = <&pmucru SCLK_USBPHY_REF>;
clock-names = "phyclk";
- #clock-cells = <0>;
+ clock-output-names = "usb480m_phy";
assigned-clocks = <&cru USB480M>;
assigned-clock-parents = <&u2phy>;
- clock-output-names = "usb480m_phy";
+ #clock-cells = <0>;
+ #phy-cells = <0>;
status = "disabled";
u2phy_host: host-port {
diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
index 8976c869f..470783a48 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi
@@ -830,9 +830,10 @@
clocks = <&xin24m>;
clock-names = "phyclk";
clock-output-names = "usb480m_phy";
- #clock-cells = <0>;
assigned-clocks = <&cru USB480M>;
assigned-clock-parents = <&u2phy>;
+ #clock-cells = <0>;
+ #phy-cells = <0>;
status = "disabled";
u2phy_otg: otg-port {
diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index 3dc8fe620..a7ee5aa65 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -1391,8 +1391,9 @@
reg = <0xe450 0x10>;
clocks = <&cru SCLK_USB2PHY0_REF>;
clock-names = "phyclk";
- #clock-cells = <0>;
clock-output-names = "clk_usbphy0_480m";
+ #clock-cells = <0>;
+ #phy-cells = <0>;
status = "disabled";
u2phy0_host: host-port {
@@ -1418,8 +1419,9 @@
reg = <0xe460 0x10>;
clocks = <&cru SCLK_USB2PHY1_REF>;
clock-names = "phyclk";
- #clock-cells = <0>;
clock-output-names = "clk_usbphy1_480m";
+ #clock-cells = <0>;
+ #phy-cells = <0>;
status = "disabled";
u2phy1_host: host-port {
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-01 7:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-01 7:37 [PATCH v1 1/2] ARM: dts: rockchip: add #phy-cells to all usb2-phy nodes Johan Jonker
2020-04-01 7:37 ` [PATCH v1 2/2] arm64: " Johan Jonker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).