arm64: dts: exynos: add unit address to DWC3 node wrapper in Exynos5433
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 27 Jan 2023 21:27:12 +0000 (22:27 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 29 Jan 2023 10:34:29 +0000 (11:34 +0100)
Neither simple-bus bindings nor dtc W=1 accept device nodes in soc@ node
which do not have unit address.  Therefore usethe address space
of child device (actual DWC3 Controller) as the wrapper's address to
fix:

  exynos5433-tm2e.dtb: soc@0: usbdrd: {'compatible': ['samsung,exynos5433-dwusb3'], ...
    should not be valid under {'type': 'object'}

Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20230127212713.267014-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm64/boot/dts/exynos/exynos5433.dtsi

index 9da24fe..5519a80 100644 (file)
                        status = "disabled";
                };
 
-               usbdrd30: usbdrd {
+               usbdrd30: usb@15400000 {
                        compatible = "samsung,exynos5433-dwusb3";
                        clocks = <&cmu_fsys CLK_ACLK_USBDRD30>,
                                <&cmu_fsys CLK_SCLK_USBDRD30>,
                        clock-names = "aclk", "susp_clk", "phyclk", "pipe_pclk";
                        #address-cells = <1>;
                        #size-cells = <1>;
-                       ranges;
+                       ranges = <0x0 0x15400000 0x10000>;
                        status = "disabled";
 
-                       usbdrd_dwc3: usb@15400000 {
+                       usbdrd_dwc3: usb@0 {
                                compatible = "snps,dwc3";
                                clocks = <&cmu_fsys CLK_SCLK_USBDRD30>,
                                        <&cmu_fsys CLK_ACLK_USBDRD30>,
                                        <&cmu_fsys CLK_SCLK_USBDRD30>;
                                clock-names = "ref", "bus_early", "suspend";
-                               reg = <0x15400000 0x10000>;
+                               reg = <0x0 0x10000>;
                                interrupts = <GIC_SPI 231 IRQ_TYPE_LEVEL_HIGH>;
                                phys = <&usbdrd30_phy 0>, <&usbdrd30_phy 1>;
                                phy-names = "usb2-phy", "usb3-phy";
                        status = "disabled";
                };
 
-               usbhost30: usbhost {
+               usbhost30: usb@15a00000 {
                        compatible = "samsung,exynos5433-dwusb3";
                        clocks = <&cmu_fsys CLK_ACLK_USBHOST30>,
                                <&cmu_fsys CLK_SCLK_USBHOST30>,
                        clock-names = "aclk", "susp_clk", "phyclk", "pipe_pclk";
                        #address-cells = <1>;
                        #size-cells = <1>;
-                       ranges;
+                       ranges = <0x0 0x15a00000 0x10000>;
                        status = "disabled";
 
-                       usbhost_dwc3: usb@15a00000 {
+                       usbhost_dwc3: usb@0 {
                                compatible = "snps,dwc3";
                                clocks = <&cmu_fsys CLK_SCLK_USBHOST30>,
                                        <&cmu_fsys CLK_ACLK_USBHOST30>,
                                        <&cmu_fsys CLK_SCLK_USBHOST30>;
                                clock-names = "ref", "bus_early", "suspend";
-                               reg = <0x15a00000 0x10000>;
+                               reg = <0x0 0x10000>;
                                interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>;
                                phys = <&usbhost30_phy 0>, <&usbhost30_phy 1>;
                                phy-names = "usb2-phy", "usb3-phy";