dt-bindings: usb: Harmonize xHCI/EHCI/OHCI/DWC3 nodes name
Subsystems (14)
v6 cover dt-bindings: usb: Harmonize xHCI/EHCI/OHCI/DWC3 nodes name
As the subject states this series is an attempt to harmonize the xHCI, EHCI, OHCI and DWC USB3 DT nodes with the DT schema introduced in the framework of the patchset [1].
Firstly as Krzysztof suggested we've deprecated a support of DWC USB3 controllers with "synopsys,"-vendor prefix compatible string in favor of the ones with valid "snps,"-prefix. It's done in all the DTS files, which have been unfortunate to define such nodes.
Secondly we suggest to fix the snps,quirk-frame-length-adjustment property declaration in the Amlogic meson-g12-common.dtsi DTS file, since it has been erroneously declared as boolean while having uint32 type. Neil said it was ok to init that property with 0x20 value.
Thirdly the main part of the patchset concern fixing the xHCI, EHCI/OHCI and DWC USB3 DT nodes name as in accordance with their DT schema the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the
regexp: "^usb(@.*)?". Such requirement had been applicable even before we introduced the new DT schema in [1], but as we can see it hasn't been strictly implemented for a lot the DTS files. Since DT schema is now available the automated DTS validation shall make sure that the rule isn't violated.
Note most of these patches have been a part of the last three patches of [1]. But since there is no way to have them merged in in a combined manner, I had to move them to the dedicated series and split them up so to be accepted by the corresponding subsystem maintainers one-by-one.
[1] Link: https://lore.kernel.org/linux-usb/[email protected]/
Changelog v1:
- As Krzysztof suggested I've created a script which checked whether the
node names had been also updated in all the depended dts files. As a
result I found two more files which should have been also modified:
arch/arc/boot/dts/{axc003.dtsi,axc003_idu.dtsi}
- Correct the USB DWC3 nodes name found in arch/arm64/boot/dts/apm/{apm-storm.dtsi,apm-shadowcat.dtsi} too.
Changelog v2:
- Drop the patch:
[PATCH 01/29] usb: dwc3: Discard synopsys,dwc3 compatibility string and get back the one which marks the "synopsys,dwc3" compatible string as deprecated into the DT schema related series.
- Drop the patches:
[PATCH 03/29] arm: dts: am437x: Correct DWC USB3 compatible string [PATCH 04/29] arm: dts: exynos: Correct DWC USB3 compatible string [PATCH 07/29] arm: dts: bcm53x: Harmonize EHCI/OHCI DT nodes name [PATCH 08/29] arm: dts: stm32: Harmonize EHCI/OHCI DT nodes name [PATCH 16/29] arm: dts: bcm5301x: Harmonize xHCI DT nodes name [PATCH 19/29] arm: dts: exynos: Harmonize DWC USB3 DT nodes name [PATCH 21/29] arm: dts: ls1021a: Harmonize DWC USB3 DT nodes name [PATCH 22/29] arm: dts: omap5: Harmonize DWC USB3 DT nodes name [PATCH 24/29] arm64: dts: allwinner: h6: Harmonize DWC USB3 DT nodes name [PATCH 26/29] arm64: dts: exynos: Harmonize DWC USB3 DT nodes name [PATCH 27/29] arm64: dts: layerscape: Harmonize DWC USB3 DT nodes name since they have been applied to the corresponding maintainers repos.
- Fix drivers/usb/dwc3/dwc3-qcom.c to be looking for the "usb@"-prefixed sub-node and falling back to the "dwc3@"-prefixed one on failure.
Changelog v3:
- Drop the patches:
[PATCH v2 04/18] arm: dts: hisi-x5hd2: Harmonize EHCI/OHCI DT nodes name [PATCH v2 06/18] arm64: dts: hisi: Harmonize EHCI/OHCI DT nodes name [PATCH v2 07/18] mips: dts: jz47x: Harmonize EHCI/OHCI DT nodes name [PATCH v2 08/18] mips: dts: sead3: Harmonize EHCI/OHCI DT nodes name [PATCH v2 09/18] mips: dts: ralink: mt7628a: Harmonize EHCI/OHCI DT nodes name [PATCH v2 11/18] arm64: dts: marvell: cp11x: Harmonize xHCI DT nodes name [PATCH v2 12/18] arm: dts: marvell: armada-375: Harmonize DWC USB3 DT nodes name [PATCH v2 16/18] arm64: dts: hi3660: Harmonize DWC USB3 DT nodes name since they have been applied to the corresponding maintainers repos.
Changelog v4:
- Just resend.
Changelog v5:
- Drop the patch:
[PATCH v4 02/10] arm64: dts: amlogic: meson-g12: Set FL-adj property value since it has been applied to the corresponding maintainers repos.
- Get back the patch:
[PATCH 21/29] arm: dts: ls1021a: Harmonize DWC USB3 DT nodes name as it has been missing in the kernel 5.11-rc7
- Rebase onto the kernel 5.11-rc7
Changelog v6:
- Just resend and add linux-usb.vger.kernel.org to the list of Ccecipients.
Serge Semin (10):
arm: dts: ls1021a: Harmonize DWC USB3 DT nodes name
arm: dts: keystone: Correct DWC USB3 compatible string
arc: dts: Harmonize EHCI/OHCI DT nodes name
arm: dts: lpc18xx: Harmonize EHCI/OHCI DT nodes name
powerpc: dts: akebono: Harmonize EHCI/OHCI DT nodes name
arm: dts: keystone: Harmonize DWC USB3 DT nodes name
arm: dts: stih407-family: Harmonize DWC USB3 DT nodes name
arm64: dts: apm: Harmonize DWC USB3 DT nodes name
usb: dwc3: qcom: Detect DWC3 DT-nodes with "usb"-prefixed names
arm64: dts: qcom: Harmonize DWC USB3 DT nodes name
arch/arc/boot/dts/axc003.dtsi | 4 ++-- arch/arc/boot/dts/axc003_idu.dtsi | 4 ++-- arch/arc/boot/dts/axs10x_mb.dtsi | 4 ++-- arch/arc/boot/dts/hsdk.dts | 4 ++-- arch/arc/boot/dts/vdk_axs10x_mb.dtsi | 2 +- arch/arm/boot/dts/keystone-k2e.dtsi | 6 +++--- arch/arm/boot/dts/keystone.dtsi | 4 ++-- arch/arm/boot/dts/lpc18xx.dtsi | 4 ++-- arch/arm/boot/dts/ls1021a.dtsi | 2 +- arch/arm/boot/dts/stih407-family.dtsi | 2 +- arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 4 ++-- arch/arm64/boot/dts/apm/apm-storm.dtsi | 6 +++--- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/msm8996.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/msm8998.dtsi | 2 +- arch/arm64/boot/dts/qcom/qcs404-evb.dtsi | 2 +- arch/arm64/boot/dts/qcom/qcs404.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 +- arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +- arch/powerpc/boot/dts/akebono.dts | 6 +++--- drivers/usb/dwc3/dwc3-qcom.c | 3 ++- 23 files changed, 42 insertions(+), 41 deletions(-)
Signature · 7 lines
2.30.0 _______________________________________________ linux-snps-arc mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-snps-arc
PATCH v6 1/10 arm: dts: ls1021a: Harmonize DWC USB3 DT nodes name
In accordance with the DWC USB3 bindings the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the regexp:
"^usb(@.*)?" . Make sure the "snps,dwc3"-compatible nodes are correctly named.
---
Changelog v5:
- Get back the patch to the series as it has been missing in the kernel 5.11-rc7.
--- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/ls1021a.dtsi +1 -1
@@ -871,7 +871,7 @@ usb2: usb@8600000 { phy_type = "ulpi"; }; - usb3: usb3@3100000 { + usb3: usb@3100000 { compatible = "snps,dwc3"; reg = <0x0 0x3100000 0x0 0x10000>; interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.30.0
PATCH v6 2/10 arm: dts: keystone: Correct DWC USB3 compatible string
In reply to Serge SeminSyonpsys IP cores are supposed to be defined with "snps" vendor-prefix. Use it instead of the deprecated "synopsys" one.
--- arch/arm/boot/dts/keystone-k2e.dtsi | 2 +- arch/arm/boot/dts/keystone.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/keystone-k2e.dtsi +1 -1
@@ -79,7 +79,7 @@ keystone_usb1: usb@25000000 { status = "disabled"; usb1: dwc3@25010000 { - compatible = "synopsys,dwc3"; + compatible = "snps,dwc3"; reg = <0x25010000 0x70000>; interrupts = <GIC_SPI 414 IRQ_TYPE_EDGE_RISING>; usb-phy = <&usb1_phy>, <&usb1_phy>;
arch/arm/boot/dts/keystone.dtsi +1 -1
@@ -218,7 +218,7 @@ keystone_usb0: usb@2680000 { status = "disabled"; usb0: dwc3@2690000 { - compatible = "synopsys,dwc3"; + compatible = "snps,dwc3"; reg = <0x2690000 0x70000>; interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>; usb-phy = <&usb_phy>, <&usb_phy>;
Signature · 1 line
2.30.0
PATCH v6 3/10 arc: dts: Harmonize EHCI/OHCI DT nodes name
In reply to Serge SeminIn accordance with the Generic EHCI/OHCI bindings the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the regexp:
"^usb(@.*)?" . Make sure the "generic-ehci" and "generic-ohci"-compatible nodes are correctly named.
--- arch/arc/boot/dts/axc003.dtsi | 4 ++-- arch/arc/boot/dts/axc003_idu.dtsi | 4 ++-- arch/arc/boot/dts/axs10x_mb.dtsi | 4 ++-- arch/arc/boot/dts/hsdk.dts | 4 ++-- arch/arc/boot/dts/vdk_axs10x_mb.dtsi | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-)
arch/arc/boot/dts/axc003.dtsi +2 -2
@@ -103,11 +103,11 @@ ethernet@18000 { dma-coherent; }; - ehci@40000 { + usb@40000 { dma-coherent; }; - ohci@60000 { + usb@60000 { dma-coherent; };
arch/arc/boot/dts/axc003_idu.dtsi +2 -2
@@ -110,11 +110,11 @@ ethernet@18000 { dma-coherent; }; - ehci@40000 { + usb@40000 { dma-coherent; }; - ohci@60000 { + usb@60000 { dma-coherent; };
arch/arc/boot/dts/axs10x_mb.dtsi +2 -2
@@ -87,13 +87,13 @@ gmac: ethernet@18000 { mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */ }; - ehci@40000 { + usb@40000 { compatible = "generic-ehci"; reg = < 0x40000 0x100 >; interrupts = < 8 >; }; - ohci@60000 { + usb@60000 { compatible = "generic-ohci"; reg = < 0x60000 0x100 >; interrupts = < 8 >;
arch/arc/boot/dts/hsdk.dts +2 -2
@@ -234,7 +234,7 @@ phy0: ethernet-phy@0 { /* Micrel KSZ9031 */ }; }; - ohci@60000 { + usb@60000 { compatible = "snps,hsdk-v1.0-ohci", "generic-ohci"; reg = <0x60000 0x100>; interrupts = <15>;
@@ -242,7 +242,7 @@ ohci@60000 { dma-coherent; }; - ehci@40000 { + usb@40000 { compatible = "snps,hsdk-v1.0-ehci", "generic-ehci"; reg = <0x40000 0x100>; interrupts = <15>;
arch/arc/boot/dts/vdk_axs10x_mb.dtsi +1 -1
@@ -46,7 +46,7 @@ ethernet@18000 { clock-names = "stmmaceth"; }; - ehci@40000 { + usb@40000 { compatible = "generic-ehci"; reg = < 0x40000 0x100 >; interrupts = < 8 >;
Signature · 7 lines
2.30.0 _______________________________________________ linux-snps-arc mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-snps-arc
PATCH v6 4/10 arm: dts: lpc18xx: Harmonize EHCI/OHCI DT nodes name
In reply to Serge SeminIn accordance with the Generic EHCI/OHCI bindings the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the regexp:
"^usb(@.*)?" . Make sure the "generic-ehci" and "generic-ohci"-compatible nodes are correctly named.
--- arch/arm/boot/dts/lpc18xx.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/lpc18xx.dtsi +2 -2
@@ -121,7 +121,7 @@ mmcsd: mmcsd@40004000 { status = "disabled"; }; - usb0: ehci@40006100 { + usb0: usb@40006100 { compatible = "nxp,lpc1850-ehci", "generic-ehci"; reg = <0x40006100 0x100>; interrupts = <8>;
@@ -133,7 +133,7 @@ usb0: ehci@40006100 { status = "disabled"; }; - usb1: ehci@40007100 { + usb1: usb@40007100 { compatible = "nxp,lpc1850-ehci", "generic-ehci"; reg = <0x40007100 0x100>; interrupts = <9>;
Signature · 1 line
2.30.0
PATCH v6 5/10 powerpc: dts: akebono: Harmonize EHCI/OHCI DT nodes name
In reply to Serge SeminIn accordance with the Generic EHCI/OHCI bindings the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the regexp:
"^usb(@.*)?" . Make sure the "generic-ehci" and "generic-ohci"-compatible nodes are correctly named.
--- arch/powerpc/boot/dts/akebono.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/powerpc/boot/dts/akebono.dts +3 -3
@@ -126,7 +126,7 @@ SATA0: sata@30000010000 { interrupts = <93 2>; }; - EHCI0: ehci@30010000000 { + EHCI0: usb@30010000000 { compatible = "ibm,476gtr-ehci", "generic-ehci"; reg = <0x300 0x10000000 0x0 0x10000>; interrupt-parent = <&MPIC>;
@@ -140,14 +140,14 @@ SD0: sd@30000000000 { interrupt-parent = <&MPIC>; }; - OHCI0: ohci@30010010000 { + OHCI0: usb@30010010000 { compatible = "ibm,476gtr-ohci", "generic-ohci"; reg = <0x300 0x10010000 0x0 0x10000>; interrupt-parent = <&MPIC>; interrupts = <89 1>; }; - OHCI1: ohci@30010020000 { + OHCI1: usb@30010020000 { compatible = "ibm,476gtr-ohci", "generic-ohci"; reg = <0x300 0x10020000 0x0 0x10000>; interrupt-parent = <&MPIC>;
Signature · 1 line
2.30.0
PATCH v6 6/10 arm: dts: keystone: Harmonize DWC USB3 DT nodes name
In reply to Serge SeminIn accordance with the DWC USB3 bindings the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the regexp:
"^usb(@.*)?" . Make sure the "snps,dwc3"-compatible nodes are correctly named.
--- arch/arm/boot/dts/keystone-k2e.dtsi | 4 ++-- arch/arm/boot/dts/keystone.dtsi | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/keystone-k2e.dtsi +2 -2
@@ -52,7 +52,7 @@ &soc0 { usb: usb@2680000 { interrupts = <GIC_SPI 152 IRQ_TYPE_EDGE_RISING>; - dwc3@2690000 { + usb@2690000 { interrupts = <GIC_SPI 152 IRQ_TYPE_EDGE_RISING>; }; };
@@ -78,7 +78,7 @@ keystone_usb1: usb@25000000 { dma-ranges; status = "disabled"; - usb1: dwc3@25010000 { + usb1: usb@25010000 { compatible = "snps,dwc3"; reg = <0x25010000 0x70000>; interrupts = <GIC_SPI 414 IRQ_TYPE_EDGE_RISING>;
arch/arm/boot/dts/keystone.dtsi +1 -1
@@ -217,7 +217,7 @@ keystone_usb0: usb@2680000 { dma-ranges; status = "disabled"; - usb0: dwc3@2690000 { + usb0: usb@2690000 { compatible = "snps,dwc3"; reg = <0x2690000 0x70000>; interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
Signature · 7 lines
2.30.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v6 7/10 arm: dts: stih407-family: Harmonize DWC USB3 DT nodes name
In reply to Serge SeminIn accordance with the DWC USB3 bindings the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the regexp:
"^usb(@.*)?" . Make sure the "snps,dwc3"-compatible nodes are correctly named.
--- arch/arm/boot/dts/stih407-family.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/stih407-family.dtsi +1 -1
@@ -681,7 +681,7 @@ st_dwc3: dwc3@8f94000 { status = "disabled"; - dwc3: dwc3@9900000 { + dwc3: usb@9900000 { compatible = "snps,dwc3"; reg = <0x09900000 0x100000>; interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
Signature · 7 lines
2.30.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v6 8/10 arm64: dts: apm: Harmonize DWC USB3 DT nodes name
In reply to Serge SeminIn accordance with the DWC USB3 bindings the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the regexp:
"^usb(@.*)?" . Make sure the "snps,dwc3"-compatible nodes are correctly named despite of the warning comment about possible backward compatibility issues.
--- arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 4 ++-- arch/arm64/boot/dts/apm/apm-storm.dtsi | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/apm/apm-shadowcat.dtsi +2 -2
@@ -597,8 +597,8 @@ serial0: serial@10600000 { interrupts = <0x0 0x4c 0x4>; }; - /* Do not change dwusb name, coded for backward compatibility */ - usb0: dwusb@19000000 { + /* Node-name might need to be coded as dwusb for backward compatibility */ + usb0: usb@19000000 { status = "disabled"; compatible = "snps,dwc3"; reg = <0x0 0x19000000 0x0 0x100000>;
arch/arm64/boot/dts/apm/apm-storm.dtsi +3 -3
@@ -923,8 +923,8 @@ sata3: sata@1a800000 { phy-names = "sata-phy"; }; - /* Do not change dwusb name, coded for backward compatibility */ - usb0: dwusb@19000000 { + /* Node-name might need to be coded as dwusb for backward compatibility */ + usb0: usb@19000000 { status = "disabled"; compatible = "snps,dwc3"; reg = <0x0 0x19000000 0x0 0x100000>;
@@ -933,7 +933,7 @@ usb0: dwusb@19000000 { dr_mode = "host"; }; - usb1: dwusb@19800000 { + usb1: usb@19800000 { status = "disabled"; compatible = "snps,dwc3"; reg = <0x0 0x19800000 0x0 0x100000>;
Signature · 1 line
2.30.0
PATCH v6 9/10 usb: dwc3: qcom: Detect DWC3 DT-nodes with "usb"-prefixed names
In reply to Serge SeminIn accordance with the USB HCD/DRD schema all the USB controllers are supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the existing DT-nodes will be renamed in a subsequent patch let's first make sure the DWC3 Qualcomm driver supports them and second falls back to the deprecated naming so not to fail on the legacy DTS-files passed to the newer kernels.
--- drivers/usb/dwc3/dwc3-qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/usb/dwc3/dwc3-qcom.c +2 -1
@@ -630,7 +630,8 @@ static int dwc3_qcom_of_register_core(struct platform_device *pdev)struct device *dev = &pdev->dev;int ret; - dwc3_np =of_get_child_by_name (np,"dwc3" ); + dwc3_np =of_get_child_by_name (np,"usb" ) ?: +of_get_child_by_name (np,"dwc3" );if (!dwc3_np) {dev_err (dev,"failed to find dwc3 core child\n" );return -ENODEV ;
Signature · 1 line
2.30.0
Re: [PATCH v6 09/10] usb: dwc3: qcom: Detect DWC3 DT-nodes with "usb"-prefixed names
Quoted 19 lines · Serge Semin
In accordance with the USB HCD/DRD schema all the USB controllers are supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the existing DT-nodes will be renamed in a subsequent patch let's first make sure the DWC3 Qualcomm driver supports them and second falls back to the deprecated naming so not to fail on the legacy DTS-files passed to the newer kernels.
Signed-off-by Serge Semin <[email protected]>Reviewed-by Bjorn Andersson <[email protected]>--- drivers/usb/dwc3/dwc3-qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/usb/dwc3/dwc3-qcom.c +0
-0
drivers/usb/dwc3/dwc3-qcom.c static int dwc3_qcom_of_register_core(struct platform_device *pdev) · line 634
Quoted 6 lines
drivers/usb/dwc3/dwc3-qcom.c +2
-1@@ -630,7 +630,8 @@ static int dwc3_qcom_of_register_core(struct platform_device *pdev)struct device *dev = &pdev->dev;int ret; - dwc3_np =of_get_child_by_name (np,"dwc3" ); + dwc3_np =of_get_child_by_name (np,"usb" ) ?: +of_get_child_by_name (np,"dwc3" );
Is there some reason using compatible instead wouldn't work here?
Rob
Re: [PATCH v6 09/10] usb: dwc3: qcom: Detect DWC3 DT-nodes with "usb"-prefixed names
Quoted 24 lines · Rob Herring
Quoted 22 lines · Serge Semin
In accordance with the USB HCD/DRD schema all the USB controllers are supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the existing DT-nodes will be renamed in a subsequent patch let's first make sure the DWC3 Qualcomm driver supports them and second falls back to the deprecated naming so not to fail on the legacy DTS-files passed to the newer kernels.
Signed-off-by Serge Semin <[email protected]>Reviewed-by Bjorn Andersson <[email protected]>--- drivers/usb/dwc3/dwc3-qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/usb/dwc3/dwc3-qcom.c +0
-0@@ -630,7 +630,8 @@ static int dwc3_qcom_of_register_core(struct platform_device *pdev)struct device *dev = &pdev->dev;int ret;
Quoted 6 lines
drivers/usb/dwc3/dwc3-qcom.c static int dwc3_qcom_of_register_core(struct platform_device *pdev) · line 634
Quoted 3 lines
drivers/usb/dwc3/dwc3-qcom.c +2
-1- dwc3_np =of_get_child_by_name (np,"dwc3" ); + dwc3_np =of_get_child_by_name (np,"usb" ) ?: +of_get_child_by_name (np,"dwc3" );Is there some reason using compatible instead wouldn't work here?
I don't know for sure. The fix has been requested in the framework of this discussion:
https://lore.kernel.org/linux-usb/[email protected]/#t
by the driver maintainer Bjorn. To get a firm answer it's better to have him asked. As I see it having of_get_compatible_child() utilized here would also work. At least for the available in kernel dt-files. See the affected dts-es in:
https://lore.kernel.org/linux-usb/[email protected]/
A problem may happen if some older versions of DTS-es had another compatible string in the dwc3 sub-node...
-Sergey
Quoted 2 lines
Rob
Re: [PATCH v6 09/10] usb: dwc3: qcom: Detect DWC3 DT-nodes with "usb"-prefixed names
Quoted 30 lines · Serge Semin
Quoted 28 lines · Rob Herring
Quoted 25 lines · Serge Semin
In accordance with the USB HCD/DRD schema all the USB controllers are supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the existing DT-nodes will be renamed in a subsequent patch let's first make sure the DWC3 Qualcomm driver supports them and second falls back to the deprecated naming so not to fail on the legacy DTS-files passed to the newer kernels.
Signed-off-by Serge Semin <[email protected]>Reviewed-by Bjorn Andersson <[email protected]>--- drivers/usb/dwc3/dwc3-qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/usb/dwc3/dwc3-qcom.c +2
-1@@ -630,7 +630,8 @@ static int dwc3_qcom_of_register_core(struct platform_device *pdev)struct device *dev = &pdev->dev;int ret; - dwc3_np =of_get_child_by_name (np,"dwc3" ); + dwc3_np =of_get_child_by_name (np,"usb" ) ?: +of_get_child_by_name (np,"dwc3" );
Quoted 7 lines
Quoted 1 line
Is there some reason using compatible instead wouldn't work here?
I don't know for sure. The fix has been requested in the framework of this discussion:
https://lore.kernel.org/linux-usb/[email protected]/#t
by the driver maintainer Bjorn. To get a firm answer it's better to have him asked.
My feedback was simply that it has to catch both cases, I didn't consider the fact that we have a compatible to match against.
Quoted 8 lines
As I see it having
of_get_compatible_child()utilized here would also work. At least for the available in kernel dt-files. See the affected dts-es in:
https://lore.kernel.org/linux-usb/[email protected]/A problem may happen if some older versions of DTS-es had another compatible string in the dwc3 sub-node...
Afaict all Qualcomm dts files has "snps,dwc3", so you can match against that instead.
Regards,
Bjorn
Re: [PATCH v6 09/10] usb: dwc3: qcom: Detect DWC3 DT-nodes with "usb"-prefixed names
Quoted 48 lines · Bjorn Andersson
Quoted 30 lines · Serge Semin
Quoted 28 lines · Rob Herring
Quoted 25 lines · Serge Semin
In accordance with the USB HCD/DRD schema all the USB controllers are supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the existing DT-nodes will be renamed in a subsequent patch let's first make sure the DWC3 Qualcomm driver supports them and second falls back to the deprecated naming so not to fail on the legacy DTS-files passed to the newer kernels.
Signed-off-by Serge Semin <[email protected]>Reviewed-by Bjorn Andersson <[email protected]>--- drivers/usb/dwc3/dwc3-qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/usb/dwc3/dwc3-qcom.c +2
-1@@ -630,7 +630,8 @@ static int dwc3_qcom_of_register_core(struct platform_device *pdev)struct device *dev = &pdev->dev;int ret; - dwc3_np =of_get_child_by_name (np,"dwc3" ); + dwc3_np =of_get_child_by_name (np,"usb" ) ?: +of_get_child_by_name (np,"dwc3" );Quoted 7 lines
Quoted 1 line
Is there some reason using compatible instead wouldn't work here?
I don't know for sure. The fix has been requested in the framework of this discussion:
https://lore.kernel.org/linux-usb/[email protected]/#t
by the driver maintainer Bjorn. To get a firm answer it's better to have him asked.My feedback was simply that it has to catch both cases, I didn't consider the fact that we have a compatible to match against.
Quoted 5 lines
As I see it having
of_get_compatible_child()utilized here would also work. At least for the available in kernel dt-files. See the affected dts-es in:
https://lore.kernel.org/linux-usb/[email protected]/
Quoted 6 lines
Quoted 3 lines
A problem may happen if some older versions of DTS-es had another compatible string in the dwc3 sub-node...
Afaict all Qualcomm dts files has "snps,dwc3", so you can match against that instead.
Ok then. I'll replace of_get_child_by_name() here with of_get_compatible_child() matching just against "snps,dwc3" in v7. Can you confirm that noone ever had a Qcom-based hardware described with dts having the "synopsys,dwc3" compatible used as the DWC USB3 sub-node here? That string has been marked as deprecated recently because the vendor-prefix was changed sometime ago, but the original driver still accept it.
Alternatively to be on a safe side we could match against both compatibles here as Rob suggests. What do you think?
-Sergey
Quoted 3 lines
Regards,
Bjorn
Re: [PATCH v6 09/10] usb: dwc3: qcom: Detect DWC3 DT-nodes with "usb"-prefixed names
Quoted 63 lines · Serge Semin
Quoted 48 lines · Bjorn Andersson
Quoted 30 lines · Serge Semin
Quoted 28 lines · Rob Herring
Quoted 25 lines · Serge Semin
In accordance with the USB HCD/DRD schema all the USB controllers are supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the existing DT-nodes will be renamed in a subsequent patch let's first make sure the DWC3 Qualcomm driver supports them and second falls back to the deprecated naming so not to fail on the legacy DTS-files passed to the newer kernels.
Signed-off-by Serge Semin <[email protected]>Reviewed-by Bjorn Andersson <[email protected]>--- drivers/usb/dwc3/dwc3-qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/usb/dwc3/dwc3-qcom.c +2
-1@@ -630,7 +630,8 @@ static int dwc3_qcom_of_register_core(struct platform_device *pdev)struct device *dev = &pdev->dev;int ret; - dwc3_np =of_get_child_by_name (np,"dwc3" ); + dwc3_np =of_get_child_by_name (np,"usb" ) ?: +of_get_child_by_name (np,"dwc3" );Quoted 7 lines
Quoted 1 line
Is there some reason using compatible instead wouldn't work here?
I don't know for sure. The fix has been requested in the framework of this discussion:
https://lore.kernel.org/linux-usb/[email protected]/#t
by the driver maintainer Bjorn. To get a firm answer it's better to have him asked.My feedback was simply that it has to catch both cases, I didn't consider the fact that we have a compatible to match against.
Quoted 5 lines
As I see it having
of_get_compatible_child()utilized here would also work. At least for the available in kernel dt-files. See the affected dts-es in:
https://lore.kernel.org/linux-usb/[email protected]/Quoted 6 lines
Quoted 3 lines
A problem may happen if some older versions of DTS-es had another compatible string in the dwc3 sub-node...
Afaict all Qualcomm dts files has "snps,dwc3", so you can match against that instead.
Ok then. I'll replace
of_get_child_by_name()here withof_get_compatible_child()matching just against "snps,dwc3" in v7. Can you confirm that noone ever had a Qcom-based hardware described with dts having the "synopsys,dwc3" compatible used as the DWC USB3 sub-node here? That string has been marked as deprecated recently because the vendor-prefix was changed sometime ago, but the original driver still accept it.
Quoted 2 lines
Alternatively to be on a safe side we could match against both compatibles here as Rob suggests. What do you think?
Bjorn, any comment on the question above? So I could respin the series with this patch updated.
Also note, since the patch's gonna be changed I'll have to remove your Reviewed-by tag unless u explicitly say I shouldn't.
-Sergey
Quoted 6 lines
-Sergey
Quoted 3 lines
Regards,
Bjorn
Re: [PATCH v6 09/10] usb: dwc3: qcom: Detect DWC3 DT-nodes with "usb"-prefixed names
Quoted 64 lines · Serge Semin
Quoted 63 lines · Serge Semin
Quoted 48 lines · Bjorn Andersson
Quoted 30 lines · Serge Semin
Quoted 28 lines · Rob Herring
Quoted 25 lines · Serge Semin
In accordance with the USB HCD/DRD schema all the USB controllers are supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the existing DT-nodes will be renamed in a subsequent patch let's first make sure the DWC3 Qualcomm driver supports them and second falls back to the deprecated naming so not to fail on the legacy DTS-files passed to the newer kernels.
Signed-off-by Serge Semin <[email protected]>Reviewed-by Bjorn Andersson <[email protected]>--- drivers/usb/dwc3/dwc3-qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/usb/dwc3/dwc3-qcom.c +2
-1@@ -630,7 +630,8 @@ static int dwc3_qcom_of_register_core(struct platform_device *pdev)struct device *dev = &pdev->dev;int ret; - dwc3_np =of_get_child_by_name (np,"dwc3" ); + dwc3_np =of_get_child_by_name (np,"usb" ) ?: +of_get_child_by_name (np,"dwc3" );Quoted 7 lines
Quoted 1 line
Is there some reason using compatible instead wouldn't work here?
I don't know for sure. The fix has been requested in the framework of this discussion:
https://lore.kernel.org/linux-usb/[email protected]/#t
by the driver maintainer Bjorn. To get a firm answer it's better to have him asked.My feedback was simply that it has to catch both cases, I didn't consider the fact that we have a compatible to match against.
Quoted 5 lines
As I see it having
of_get_compatible_child()utilized here would also work. At least for the available in kernel dt-files. See the affected dts-es in:
https://lore.kernel.org/linux-usb/[email protected]/Quoted 6 lines
Quoted 3 lines
A problem may happen if some older versions of DTS-es had another compatible string in the dwc3 sub-node...
Afaict all Qualcomm dts files has "snps,dwc3", so you can match against that instead.
Ok then. I'll replace
of_get_child_by_name()here withof_get_compatible_child()matching just against "snps,dwc3" in v7. Can you confirm that noone ever had a Qcom-based hardware described with dts having the "synopsys,dwc3" compatible used as the DWC USB3 sub-node here? That string has been marked as deprecated recently because the vendor-prefix was changed sometime ago, but the original driver still accept it.
Quoted 9 lines
Quoted 2 lines
Alternatively to be on a safe side we could match against both compatibles here as Rob suggests. What do you think?
Bjorn, any comment on the question above? So I could respin the series with this patch updated.
Also note, since the patch's gonna be changed I'll have to remove your Reviewed-by tag unless u explicitly say I shouldn't.
Sounds good, I'd be happy to review the new patch.
PS. As this only affect the Qualcomm part of the series I would suggest that you send these patches off separate and don't send all 10 patches together.
Thanks,
Bjorn
Re: [PATCH v6 09/10] usb: dwc3: qcom: Detect DWC3 DT-nodes with "usb"-prefixed names
In reply to Serge SeminQuoted 56 lines · Serge Semin
Quoted 48 lines · Bjorn Andersson
Quoted 30 lines · Serge Semin
Quoted 28 lines · Rob Herring
Quoted 25 lines · Serge Semin
In accordance with the USB HCD/DRD schema all the USB controllers are supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the existing DT-nodes will be renamed in a subsequent patch let's first make sure the DWC3 Qualcomm driver supports them and second falls back to the deprecated naming so not to fail on the legacy DTS-files passed to the newer kernels.
Signed-off-by Serge Semin <[email protected]>Reviewed-by Bjorn Andersson <[email protected]>--- drivers/usb/dwc3/dwc3-qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/usb/dwc3/dwc3-qcom.c +2
-1@@ -630,7 +630,8 @@ static int dwc3_qcom_of_register_core(struct platform_device *pdev)struct device *dev = &pdev->dev;int ret; - dwc3_np =of_get_child_by_name (np,"dwc3" ); + dwc3_np =of_get_child_by_name (np,"usb" ) ?: +of_get_child_by_name (np,"dwc3" );Quoted 7 lines
Quoted 1 line
Is there some reason using compatible instead wouldn't work here?
I don't know for sure. The fix has been requested in the framework of this discussion:
https://lore.kernel.org/linux-usb/[email protected]/#t
by the driver maintainer Bjorn. To get a firm answer it's better to have him asked.My feedback was simply that it has to catch both cases, I didn't consider the fact that we have a compatible to match against.
Quoted 5 lines
As I see it having
of_get_compatible_child()utilized here would also work. At least for the available in kernel dt-files. See the affected dts-es in:
https://lore.kernel.org/linux-usb/[email protected]/Quoted 6 lines
Quoted 3 lines
A problem may happen if some older versions of DTS-es had another compatible string in the dwc3 sub-node...
Afaict all Qualcomm dts files has "snps,dwc3", so you can match against that instead.
Quoted 7 lines
Ok then. I'll replace
of_get_child_by_name()here withof_get_compatible_child()matching just against "snps,dwc3" in v7. Can you confirm that noone ever had a Qcom-based hardware described with dts having the "synopsys,dwc3" compatible used as the DWC USB3 sub-node here? That string has been marked as deprecated recently because the vendor-prefix was changed sometime ago, but the original driver still accept it.
I don't see any Qualcomm users of "synopsys,dwc3", past or present.
Quoted 3 lines
Alternatively to be on a safe side we could match against both compatibles here as Rob suggests. What do you think?
Let's go with only "snps,dwc3".
Regards,
Bjorn
Re: [PATCH v6 09/10] usb: dwc3: qcom: Detect DWC3 DT-nodes with "usb"-prefixed names
Quoted 66 lines · Bjorn Andersson
Quoted 56 lines · Serge Semin
Quoted 48 lines · Bjorn Andersson
Quoted 30 lines · Serge Semin
Quoted 28 lines · Rob Herring
Quoted 25 lines · Serge Semin
In accordance with the USB HCD/DRD schema all the USB controllers are supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the existing DT-nodes will be renamed in a subsequent patch let's first make sure the DWC3 Qualcomm driver supports them and second falls back to the deprecated naming so not to fail on the legacy DTS-files passed to the newer kernels.
Signed-off-by Serge Semin <[email protected]>Reviewed-by Bjorn Andersson <[email protected]>--- drivers/usb/dwc3/dwc3-qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/usb/dwc3/dwc3-qcom.c +2
-1@@ -630,7 +630,8 @@ static int dwc3_qcom_of_register_core(struct platform_device *pdev)struct device *dev = &pdev->dev;int ret; - dwc3_np =of_get_child_by_name (np,"dwc3" ); + dwc3_np =of_get_child_by_name (np,"usb" ) ?: +of_get_child_by_name (np,"dwc3" );Quoted 7 lines
Quoted 1 line
Is there some reason using compatible instead wouldn't work here?
I don't know for sure. The fix has been requested in the framework of this discussion:
https://lore.kernel.org/linux-usb/[email protected]/#t
by the driver maintainer Bjorn. To get a firm answer it's better to have him asked.My feedback was simply that it has to catch both cases, I didn't consider the fact that we have a compatible to match against.
Quoted 5 lines
As I see it having
of_get_compatible_child()utilized here would also work. At least for the available in kernel dt-files. See the affected dts-es in:
https://lore.kernel.org/linux-usb/[email protected]/Quoted 6 lines
Quoted 3 lines
A problem may happen if some older versions of DTS-es had another compatible string in the dwc3 sub-node...
Afaict all Qualcomm dts files has "snps,dwc3", so you can match against that instead.
Quoted 7 lines
Ok then. I'll replace
of_get_child_by_name()here withof_get_compatible_child()matching just against "snps,dwc3" in v7. Can you confirm that noone ever had a Qcom-based hardware described with dts having the "synopsys,dwc3" compatible used as the DWC USB3 sub-node here? That string has been marked as deprecated recently because the vendor-prefix was changed sometime ago, but the original driver still accept it.
Quoted 7 lines
I don't see any Qualcomm users of "synopsys,dwc3", past or present.
Quoted 3 lines
Alternatively to be on a safe side we could match against both compatibles here as Rob suggests. What do you think?
Let's go with only "snps,dwc3".
Ok. Thanks. I'll resend just two patches in ten minutes.
-Sergey
Quoted 3 lines
Regards,
Bjorn
Re: [PATCH v6 09/10] usb: dwc3: qcom: Detect DWC3 DT-nodes with "usb"-prefixed names
In reply to Serge SeminQuoted 42 lines · Serge Semin
Quoted 24 lines · Rob Herring
Quoted 22 lines · Serge Semin
In accordance with the USB HCD/DRD schema all the USB controllers are supposed to have DT-nodes named with prefix "^usb(@.*)?". Since the existing DT-nodes will be renamed in a subsequent patch let's first make sure the DWC3 Qualcomm driver supports them and second falls back to the deprecated naming so not to fail on the legacy DTS-files passed to the newer kernels.
Signed-off-by Serge Semin <[email protected]>Reviewed-by Bjorn Andersson <[email protected]>--- drivers/usb/dwc3/dwc3-qcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/usb/dwc3/dwc3-qcom.c +0
-0@@ -630,7 +630,8 @@ static int dwc3_qcom_of_register_core(struct platform_device *pdev)struct device *dev = &pdev->dev;int ret;Quoted 6 lines
drivers/usb/dwc3/dwc3-qcom.c static int dwc3_qcom_of_register_core(struct platform_device *pdev) · line 634
Quoted 3 lines
drivers/usb/dwc3/dwc3-qcom.c +2
-1- dwc3_np =of_get_child_by_name (np,"dwc3" ); + dwc3_np =of_get_child_by_name (np,"usb" ) ?: +of_get_child_by_name (np,"dwc3" );Is there some reason using compatible instead wouldn't work here?
I don't know for sure. The fix has been requested in the framework of this discussion:
https://lore.kernel.org/linux-usb/[email protected]/#t
by the driver maintainer Bjorn. To get a firm answer it's better to have him asked. As I see it havingof_get_compatible_child()utilized here would also work. At least for the available in kernel dt-files. See the affected dts-es in:
https://lore.kernel.org/linux-usb/[email protected]/
Quoted 2 lines
A problem may happen if some older versions of DTS-es had another compatible string in the dwc3 sub-node...
I guess there's some 'synopsys,dwc3' too, but looking at 2 compatibles is better than looking at 2 node names. We try to not care what node names are generally.
Rob
PATCH v6 10/10 arm64: dts: qcom: Harmonize DWC USB3 DT nodes name
In reply to Serge SeminIn accordance with the DWC USB3 bindings the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the regexp:
"^usb(@.*)?" . Make sure the "snps,dwc3"-compatible nodes are correctly named.
--- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/msm8996.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/msm8998.dtsi | 2 +- arch/arm64/boot/dts/qcom/qcs404-evb.dtsi | 2 +- arch/arm64/boot/dts/qcom/qcs404.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 +- arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-)
arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +2 -2
@@ -1064,7 +1064,7 @@ &usb2 { status = "okay"; extcon = <&usb2_id>; - dwc3@7600000 { + usb@7600000 { extcon = <&usb2_id>; dr_mode = "otg"; maximum-speed = "high-speed";
@@ -1075,7 +1075,7 @@ &usb3 { status = "okay"; extcon = <&usb3_id>; - dwc3@6a00000 { + usb@6a00000 { extcon = <&usb3_id>; dr_mode = "otg"; };
arch/arm64/boot/dts/qcom/ipq8074.dtsi +2 -2
@@ -427,7 +427,7 @@ usb_0: usb@8af8800 { resets = <&gcc GCC_USB0_BCR>; status = "disabled"; - dwc_0: dwc3@8a00000 { + dwc_0: usb@8a00000 { compatible = "snps,dwc3"; reg = <0x8a00000 0xcd00>; interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
@@ -468,7 +468,7 @@ usb_1: usb@8cf8800 { resets = <&gcc GCC_USB1_BCR>; status = "disabled"; - dwc_1: dwc3@8c00000 { + dwc_1: usb@8c00000 { compatible = "snps,dwc3"; reg = <0x8c00000 0xcd00>; interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
arch/arm64/boot/dts/qcom/msm8996.dtsi +2 -2
@@ -1768,7 +1768,7 @@ usb3: usb@6af8800 { power-domains = <&gcc USB30_GDSC>; status = "disabled"; - dwc3@6a00000 { + usb@6a00000 { compatible = "snps,dwc3"; reg = <0x06a00000 0xcc00>; interrupts = <0 131 IRQ_TYPE_LEVEL_HIGH>;
@@ -1979,7 +1979,7 @@ usb2: usb@76f8800 { power-domains = <&gcc USB30_GDSC>; status = "disabled"; - dwc3@7600000 { + usb@7600000 { compatible = "snps,dwc3"; reg = <0x07600000 0xcc00>; interrupts = <0 138 IRQ_TYPE_LEVEL_HIGH>;
arch/arm64/boot/dts/qcom/msm8998.dtsi +1 -1
@@ -1678,7 +1678,7 @@ usb3: usb@a8f8800 { resets = <&gcc GCC_USB_30_BCR>; - usb3_dwc3: dwc3@a800000 { + usb3_dwc3: usb@a800000 { compatible = "snps,dwc3"; reg = <0x0a800000 0xcd00>; interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
arch/arm64/boot/dts/qcom/qcs404-evb.dtsi +1 -1
@@ -337,7 +337,7 @@ &usb2_phy_sec { &usb3 { status = "okay"; - dwc3@7580000 { + usb@7580000 { dr_mode = "host"; }; };
arch/arm64/boot/dts/qcom/qcs404.dtsi +2 -2
@@ -544,7 +544,7 @@ usb3: usb@7678800 { assigned-clock-rates = <19200000>, <200000000>; status = "disabled"; - dwc3@7580000 { + usb@7580000 { compatible = "snps,dwc3"; reg = <0x07580000 0xcd00>; interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
@@ -573,7 +573,7 @@ usb2: usb@79b8800 { assigned-clock-rates = <19200000>, <133333333>; status = "disabled"; - dwc3@78c0000 { + usb@78c0000 { compatible = "snps,dwc3"; reg = <0x078c0000 0xcc00>; interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
arch/arm64/boot/dts/qcom/sc7180.dtsi +1 -1
@@ -2855,7 +2855,7 @@ usb_1: usb@a6f8800 { <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_USB3 0>; interconnect-names = "usb-ddr", "apps-usb"; - usb_1_dwc3: dwc3@a600000 { + usb_1_dwc3: usb@a600000 { compatible = "snps,dwc3"; reg = <0 0x0a600000 0 0xe000>; interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
arch/arm64/boot/dts/qcom/sdm845.dtsi +2 -2
@@ -3771,7 +3771,7 @@ usb_1: usb@a6f8800 { <&gladiator_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_USB3_0 0>; interconnect-names = "usb-ddr", "apps-usb"; - usb_1_dwc3: dwc3@a600000 { + usb_1_dwc3: usb@a600000 { compatible = "snps,dwc3"; reg = <0 0x0a600000 0 0xcd00>; interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
@@ -3819,7 +3819,7 @@ usb_2: usb@a8f8800 { <&gladiator_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_USB3_1 0>; interconnect-names = "usb-ddr", "apps-usb"; - usb_2_dwc3: dwc3@a800000 { + usb_2_dwc3: usb@a800000 { compatible = "snps,dwc3"; reg = <0 0x0a800000 0 0xcd00>; interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
arch/arm64/boot/dts/qcom/sm8150.dtsi +1 -1
@@ -1562,7 +1562,7 @@ usb_1: usb@a6f8800 { resets = <&gcc GCC_USB30_PRIM_BCR>; - usb_1_dwc3: dwc3@a600000 { + usb_1_dwc3: usb@a600000 { compatible = "snps,dwc3"; reg = <0 0x0a600000 0 0xcd00>; interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.30.0
Quoted 87 lines · Serge Semin
As the subject states this series is an attempt to harmonize the xHCI, EHCI, OHCI and DWC USB3 DT nodes with the DT schema introduced in the framework of the patchset [1].
Firstly as Krzysztof suggested we've deprecated a support of DWC USB3 controllers with "synopsys,"-vendor prefix compatible string in favor of the ones with valid "snps,"-prefix. It's done in all the DTS files, which have been unfortunate to define such nodes.
Secondly we suggest to fix the snps,quirk-frame-length-adjustment property declaration in the Amlogic
meson-g12-common.dtsiDTS file, since it has been erroneously declared as boolean while having uint32 type. Neil said it was ok to init that property with0x20value.Thirdly the main part of the patchset concern fixing the xHCI, EHCI/OHCI and DWC USB3 DT nodes name as in accordance with their DT schema the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the
regexp: "^usb(@.*)?". Such requirement had been applicable even before we introduced the new DT schema in [1], but as we can see it hasn't been strictly implemented for a lot the DTS files. Since DT schema is now available the automated DTS validation shall make sure that the rule isn't violated.Note most of these patches have been a part of the last three patches of [1]. But since there is no way to have them merged in in a combined manner, I had to move them to the dedicated series and split them up so to be accepted by the corresponding subsystem maintainers one-by-one.
[1] Link: https://lore.kernel.org/linux-usb/[email protected]/
Changelog v1:
- As Krzysztof suggested I've created a script which checked whether the
node names had been also updated in all the depended dts files. As a
result I found two more files which should have been also modified:
arch/arc/boot/dts/{axc003.dtsi,axc003_idu.dtsi}
- Correct the USB DWC3 nodes name found inarch/arm64/boot/dts/apm/{apm-storm.dtsi,apm-shadowcat.dtsi}too.Changelog v2:
- Drop the patch:
[PATCH 01/29] usb: dwc3: Discard synopsys,dwc3 compatibility string and get back the one which marks the "synopsys,dwc3" compatible string as deprecated into the DT schema related series.
- Drop the patches:
[PATCH 03/29] arm: dts: am437x: Correct DWC USB3 compatible string [PATCH 04/29] arm: dts: exynos: Correct DWC USB3 compatible string [PATCH 07/29] arm: dts: bcm53x: Harmonize EHCI/OHCI DT nodes name [PATCH 08/29] arm: dts: stm32: Harmonize EHCI/OHCI DT nodes name [PATCH 16/29] arm: dts: bcm5301x: Harmonize xHCI DT nodes name [PATCH 19/29] arm: dts: exynos: Harmonize DWC USB3 DT nodes name [PATCH 21/29] arm: dts: ls1021a: Harmonize DWC USB3 DT nodes name [PATCH 22/29] arm: dts: omap5: Harmonize DWC USB3 DT nodes name [PATCH 24/29] arm64: dts: allwinner: h6: Harmonize DWC USB3 DT nodes name [PATCH 26/29] arm64: dts: exynos: Harmonize DWC USB3 DT nodes name [PATCH 27/29] arm64: dts: layerscape: Harmonize DWC USB3 DT nodes name since they have been applied to the corresponding maintainers repos.
- Fixdrivers/usb/dwc3/dwc3-qcom.cto be looking for the "usb@"-prefixed sub-node and falling back to the "dwc3@"-prefixed one on failure.Changelog v3:
- Drop the patches:
[PATCH v2 04/18] arm: dts: hisi-x5hd2: Harmonize EHCI/OHCI DT nodes name [PATCH v2 06/18] arm64: dts: hisi: Harmonize EHCI/OHCI DT nodes name [PATCH v2 07/18] mips: dts: jz47x: Harmonize EHCI/OHCI DT nodes name [PATCH v2 08/18] mips: dts: sead3: Harmonize EHCI/OHCI DT nodes name [PATCH v2 09/18] mips: dts: ralink: mt7628a: Harmonize EHCI/OHCI DT nodes name [PATCH v2 11/18] arm64: dts: marvell: cp11x: Harmonize xHCI DT nodes name [PATCH v2 12/18] arm: dts: marvell: armada-375: Harmonize DWC USB3 DT nodes name [PATCH v2 16/18] arm64: dts: hi3660: Harmonize DWC USB3 DT nodes name since they have been applied to the corresponding maintainers repos.Changelog v4:
- Just resend.Changelog v5:
- Drop the patch:
[PATCH v4 02/10] arm64: dts: amlogic: meson-g12: Set FL-adj property value since it has been applied to the corresponding maintainers repos.
- Get back the patch:
[PATCH 21/29] arm: dts: ls1021a: Harmonize DWC USB3 DT nodes name as it has been missing in the kernel 5.11-rc7
- Rebase onto the kernel 5.11-rc7
Quoted 3 lines
Changelog v6:
- Just resend and add linux-usb.vger.kernel.org to the list of Ccecipients.
If this needs to go on, can you drop the people who already took your patches (trying to lower my email amount to something manageable). Thank you.
Signature · 6 lines
Florian _______________________________________________ linux-snps-arc mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Quoted 94 lines · Florian Fainelli
Quoted 87 lines · Serge Semin
As the subject states this series is an attempt to harmonize the xHCI, EHCI, OHCI and DWC USB3 DT nodes with the DT schema introduced in the framework of the patchset [1].
Firstly as Krzysztof suggested we've deprecated a support of DWC USB3 controllers with "synopsys,"-vendor prefix compatible string in favor of the ones with valid "snps,"-prefix. It's done in all the DTS files, which have been unfortunate to define such nodes.
Secondly we suggest to fix the snps,quirk-frame-length-adjustment property declaration in the Amlogic
meson-g12-common.dtsiDTS file, since it has been erroneously declared as boolean while having uint32 type. Neil said it was ok to init that property with0x20value.Thirdly the main part of the patchset concern fixing the xHCI, EHCI/OHCI and DWC USB3 DT nodes name as in accordance with their DT schema the corresponding node name is suppose to comply with the Generic USB HCD DT schema, which requires the USB nodes to have the name acceptable by the
regexp: "^usb(@.*)?". Such requirement had been applicable even before we introduced the new DT schema in [1], but as we can see it hasn't been strictly implemented for a lot the DTS files. Since DT schema is now available the automated DTS validation shall make sure that the rule isn't violated.Note most of these patches have been a part of the last three patches of [1]. But since there is no way to have them merged in in a combined manner, I had to move them to the dedicated series and split them up so to be accepted by the corresponding subsystem maintainers one-by-one.
[1] Link: https://lore.kernel.org/linux-usb/[email protected]/
Changelog v1:
- As Krzysztof suggested I've created a script which checked whether the
node names had been also updated in all the depended dts files. As a
result I found two more files which should have been also modified:
arch/arc/boot/dts/{axc003.dtsi,axc003_idu.dtsi}
- Correct the USB DWC3 nodes name found inarch/arm64/boot/dts/apm/{apm-storm.dtsi,apm-shadowcat.dtsi}too.Changelog v2:
- Drop the patch:
[PATCH 01/29] usb: dwc3: Discard synopsys,dwc3 compatibility string and get back the one which marks the "synopsys,dwc3" compatible string as deprecated into the DT schema related series.
- Drop the patches:
[PATCH 03/29] arm: dts: am437x: Correct DWC USB3 compatible string [PATCH 04/29] arm: dts: exynos: Correct DWC USB3 compatible string [PATCH 07/29] arm: dts: bcm53x: Harmonize EHCI/OHCI DT nodes name [PATCH 08/29] arm: dts: stm32: Harmonize EHCI/OHCI DT nodes name [PATCH 16/29] arm: dts: bcm5301x: Harmonize xHCI DT nodes name [PATCH 19/29] arm: dts: exynos: Harmonize DWC USB3 DT nodes name [PATCH 21/29] arm: dts: ls1021a: Harmonize DWC USB3 DT nodes name [PATCH 22/29] arm: dts: omap5: Harmonize DWC USB3 DT nodes name [PATCH 24/29] arm64: dts: allwinner: h6: Harmonize DWC USB3 DT nodes name [PATCH 26/29] arm64: dts: exynos: Harmonize DWC USB3 DT nodes name [PATCH 27/29] arm64: dts: layerscape: Harmonize DWC USB3 DT nodes name since they have been applied to the corresponding maintainers repos.
- Fixdrivers/usb/dwc3/dwc3-qcom.cto be looking for the "usb@"-prefixed sub-node and falling back to the "dwc3@"-prefixed one on failure.Changelog v3:
- Drop the patches:
[PATCH v2 04/18] arm: dts: hisi-x5hd2: Harmonize EHCI/OHCI DT nodes name [PATCH v2 06/18] arm64: dts: hisi: Harmonize EHCI/OHCI DT nodes name [PATCH v2 07/18] mips: dts: jz47x: Harmonize EHCI/OHCI DT nodes name [PATCH v2 08/18] mips: dts: sead3: Harmonize EHCI/OHCI DT nodes name [PATCH v2 09/18] mips: dts: ralink: mt7628a: Harmonize EHCI/OHCI DT nodes name [PATCH v2 11/18] arm64: dts: marvell: cp11x: Harmonize xHCI DT nodes name [PATCH v2 12/18] arm: dts: marvell: armada-375: Harmonize DWC USB3 DT nodes name [PATCH v2 16/18] arm64: dts: hi3660: Harmonize DWC USB3 DT nodes name since they have been applied to the corresponding maintainers repos.Changelog v4:
- Just resend.Changelog v5:
- Drop the patch:
[PATCH v4 02/10] arm64: dts: amlogic: meson-g12: Set FL-adj property value since it has been applied to the corresponding maintainers repos.
- Get back the patch:
[PATCH 21/29] arm: dts: ls1021a: Harmonize DWC USB3 DT nodes name as it has been missing in the kernel 5.11-rc7
- Rebase onto the kernel 5.11-rc7Quoted 3 lines
Changelog v6:
- Just resend and add linux-usb.vger.kernel.org to the list of Ccecipients.
Quoted 3 lines
If this needs to go on, can you drop the people who already took your patches (trying to lower my email amount to something manageable). Thank you.
Ah, sorry for the noise. I'll clean the Cc-list up in the next attempt to have this finally fully accepted.
-Sergey
Quoted 2 lines
Signature · 1 line
Florian
_______________________________________________
linux-snps-arc mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-snps-arc