arm64: dts: qcom: ipq9574: Use 'usb-phy' for node names
PATCH 1/1 arm64: dts: qcom: ipq9574: Use 'usb-phy' for node names
The devicetree spec allows node names of "usb-phy". So be more specific for the USB PHYs, and name the nodes "usb-phy" instead of just "phy".
--- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/ipq9574.dtsi +2 -2
@@ -702,7 +702,7 @@ qpic_nand: spi@79b0000 { status = "disabled"; }; - usb_0_qusbphy: phy@7b000 { + usb_0_qusbphy: usb-phy@7b000 { compatible = "qcom,ipq9574-qusb2-phy"; reg = <0x0007b000 0x180>; #phy-cells = <0>;
@@ -716,7 +716,7 @@ usb_0_qusbphy: phy@7b000 { status = "disabled"; }; - usb_0_qmpphy: phy@7d000 { + usb_0_qmpphy: usb-phy@7d000 { compatible = "qcom,ipq9574-qmp-usb3-phy"; reg = <0x0007d000 0xa00>; #phy-cells = <0>;
Signature · 1 line
2.45.1
Quoted 3 lines · Alexandru Gagniuc
The devicetree spec allows node names of "usb-phy". So be more specific for the USB PHYs, and name the nodes "usb-phy" instead of just "phy".
Why? "phy" is more generic.
Quoted 31 lines
Signed-off-by Alexandru Gagniuc <[email protected]>--- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm64/boot/dts/qcom/ipq9574.dtsi +2
-2@@ -702,7 +702,7 @@ qpic_nand: spi@79b0000 { status = "disabled"; }; - usb_0_qusbphy: phy@7b000 { + usb_0_qusbphy: usb-phy@7b000 { compatible = "qcom,ipq9574-qusb2-phy"; reg = <0x0007b000 0x180>; #phy-cells = <0>;@@ -716,7 +716,7 @@ usb_0_qusbphy: phy@7b000 { status = "disabled"; }; - usb_0_qmpphy: phy@7d000 { + usb_0_qmpphy: usb-phy@7d000 { compatible = "qcom,ipq9574-qmp-usb3-phy"; reg = <0x0007d000 0xa00>; #phy-cells = <0>;Signature · 1 line
2.45.1
Signature · 2 lines
With best wishes Dmitry
Quoted 6 lines · Dmitry Baryshkov
Quoted 3 lines · Alexandru Gagniuc
The devicetree spec allows node names of "usb-phy". So be more specific for the USB PHYs, and name the nodes "usb-phy" instead of just "phy".
Why? "phy" is more generic.
Hi Dmitry,
The goal is to be more specific. I find usb-phy, ethernet-phy and others to me much clearer. As I see these more specific names being used throughut dts files, I did not expect this to be controversial.
I am trying to follow devicetree v0.4, "2.2.2 Generic Names Recommendation", which allows these more-specific node names.
Alex
Quoted 24 lines
Quoted 24 lines
Signed-off-by Alexandru Gagniuc <[email protected]>--- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm64/boot/dts/qcom/ipq9574.dtsi +1
-1@@ -702,7 +702,7 @@ qpic_nand: spi@79b0000 { status = "disabled"; }; - usb_0_qusbphy: phy@7b000 { + usb_0_qusbphy: usb-phy@7b000 { compatible = "qcom,ipq9574-qusb2-phy"; reg = <0x0007b000 0x180>; #phy-cells = <0>;@@ -716,7 +716,7 @@ usb_0_qusbphy: phy@7b000 { status = "disabled"; };
Quoted 9 lines
Quoted 8 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi +1
-1- usb_0_qmpphy: phy@7d000 { + usb_0_qmpphy: usb-phy@7d000 { compatible = "qcom,ipq9574-qmp-usb3-phy"; reg = <0x0007d000 0xa00>; #phy-cells = <0>;Signature · 1 line
2.45.1
The
Quoted 11 lines · On 09/12/2025 17:26, [email protected] wrote:
Quoted 6 lines · Dmitry Baryshkov
Quoted 3 lines · Alexandru Gagniuc
The devicetree spec allows node names of "usb-phy". So be more specific for the USB PHYs, and name the nodes "usb-phy" instead of just "phy".
Why? "phy" is more generic.
Hi Dmitry,
The goal is to be more specific. I find usb-phy, ethernet-phy and others
We do not have such goal. Where did you find that goal documented?
Best regards,
Krzysztof
Quoted 7 lines · Krzysztof Kozlowski
Quoted 6 lines · On 09/12/2025 17:26, [email protected] wrote:
Quoted 5 lines · Dmitry Baryshkov
Quoted 3 lines · Alexandru Gagniuc
The devicetree spec allows node names of "usb-phy". So be more specific for the USB PHYs, and name the nodes "usb-phy" instead of just "phy".
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Why? "phy" is more generic.
Hi Dmitry,
The goal is to be more specific. I find usb-phy, ethernet-phy and others
We do not have such goal. Where did you find that goal documented?
If the goal isn't to be specific, clear, and readable, what is it? Why not be generic, and call subnodes node@, or dev@ ?
Alex
Quoted 12 lines · On 09/12/2025 22:59, [email protected] wrote:
Quoted 9 lines · Krzysztof Kozlowski
Quoted 8 lines · On 09/12/2025 17:26, [email protected] wrote:
Quoted 6 lines · Dmitry Baryshkov
Quoted 3 lines · Alexandru Gagniuc
The devicetree spec allows node names of "usb-phy". So be more specific for the USB PHYs, and name the nodes "usb-phy" instead of just "phy".
Why? "phy" is more generic.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Hi Dmitry,
The goal is to be more specific. I find usb-phy, ethernet-phy and others
We do not have such goal. Where did you find that goal documented?
If the goal isn't to be specific, clear, and readable, what is it? Why not be generic, and call subnodes node@, or dev@ ?
Did you read the spec you referred to? What sort of class of devices represents "node"?
Best regards,
Krzysztof
Quoted 17 lines · Krzysztof Kozlowski
Quoted 16 lines · On 09/12/2025 22:59, [email protected] wrote:
Quoted 13 lines · Krzysztof Kozlowski
Quoted 11 lines · On 09/12/2025 17:26, [email protected] wrote:
Quoted 6 lines · Dmitry Baryshkov
Quoted 3 lines · Alexandru Gagniuc
The devicetree spec allows node names of "usb-phy". So be more specific for the USB PHYs, and name the nodes "usb-phy" instead of just "phy".
Why? "phy" is more generic.
Hi Dmitry,
The goal is to be more specific. I find usb-phy, ethernet-phy and others
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
We do not have such goal. Where did you find that goal documented?
If the goal isn't to be specific, clear, and readable, what is it? Why not be generic, and call subnodes node@, or dev@ ?
Did you read the spec you referred to? What sort of class of devices represents "node"?
My statement was intended to be a reduction ad absurdum to the generic naming argument, rather than my public exam on the dt 0.4 spec.
I find it useful to have node names that identify the function as clearly as possible, or to see ethernet-phy and usb-phy under /proc/device-tree/soc@0/ and /sys/bus/platform/devices/. That was _my_ goal. Obviously, you and Dmitry disagree with that goal.
Alex
Quoted 14 lines · Alexandru Gagniuc
The devicetree spec allows node names of "usb-phy". So be more specific for the USB PHYs, and name the nodes "usb-phy" instead of just "phy".
Signed-off-by Alexandru Gagniuc <[email protected]>--- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm64/boot/dts/qcom/ipq9574.dtsi +0
-0
arch/arm64/boot/dts/qcom/ipq9574.dtsi qpic_nand: spi@79b0000 { · line 705
Quoted 5 lines
arch/arm64/boot/dts/qcom/ipq9574.dtsi +1
-1@@ -702,7 +702,7 @@ qpic_nand: spi@79b0000 { status = "disabled"; }; - usb_0_qusbphy: phy@7b000 { + usb_0_qusbphy: usb-phy@7b000 {
Huh? Why changing perfectly correct name? That's just churn.
Best regards,
Krzysztof