ARM: dts: imx51: Fix USB PHY duplicate unit-address
authorFabio Estevam <fabio.estevam@nxp.com>
Tue, 3 Jul 2018 13:05:54 +0000 (10:05 -0300)
committerShawn Guo <shawnguo@kernel.org>
Tue, 3 Jul 2018 13:45:57 +0000 (21:45 +0800)
Currently the following DTC warnings are seen with W=1:

arch/arm/boot/dts/imx51-babbage.dtb: Warning (unique_unit_address): /usbphy/usbphy@0: duplicate unit-address (also used in node /usbphy/usbh1phy@0)
arch/arm/boot/dts/imx51-eukrea-mbimxsd51-baseboard.dtb: Warning (unique_unit_address): /usbphy/usbphy@0: duplicate unit-address (also used in node /usbphy/usbh1phy@0)

Fix it by moving the USB PHY nodes outside of simple-bus and drop the
unneeded unit-address, which matches the bindings documentation
at Documentation/devicetree/bindings/usb/usb-nop-xceiv.txt

While at it rename the USB PHY node to usbphy1 for consistency.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx51-babbage.dts
arch/arm/boot/dts/imx51-eukrea-mbimxsd51-baseboard.dts
arch/arm/boot/dts/imx51.dtsi

index 4fb0d4d480a839be57cd75ac887cae3b364e1dcd..a4a6d4a6b55b530ef2674e998dc8a274ac15fb61 100644 (file)
                mux-ext-port = <3>;
        };
 
-       usbphy {
-               #address-cells = <1>;
-               #size-cells = <0>;
-               compatible = "simple-bus";
-
-               usbh1phy: usbh1phy@0 {
-                       compatible = "usb-nop-xceiv";
-                       pinctrl-names = "default";
-                       pinctrl-0 = <&pinctrl_usbh1reg>;
-                       reg = <0>;
-                       clocks = <&clk_usb>;
-                       clock-names = "main_clk";
-                       reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
-                       vcc-supply = <&vusb_reg>;
-                       #phy-cells = <0>;
-               };
+       usbphy1: usbphy1 {
+               compatible = "usb-nop-xceiv";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_usbh1reg>;
+               clocks = <&clk_usb>;
+               clock-names = "main_clk";
+               reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
+               vcc-supply = <&vusb_reg>;
+               #phy-cells = <0>;
        };
 };
 
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usbh1>;
        vbus-supply = <&reg_hub_reset>;
-       fsl,usbphy = <&usbh1phy>;
+       fsl,usbphy = <&usbphy1>;
        phy_type = "ulpi";
        status = "okay";
 };
index b3d952f37cdc9f35c29a9a5039fd5df5f8d9c49b..e9e819f2b0b7d72b87c05f5e6497dc5e669f7a5b 100644 (file)
                fsl,mux-ext-port = <3>;
        };
 
-       usbphy {
-               #address-cells = <1>;
-               #size-cells = <0>;
-               compatible = "simple-bus";
-
-               usbh1phy: usbh1phy@0 {
-                       compatible = "usb-nop-xceiv";
-                       reg = <0>;
-                       clocks = <&clks IMX5_CLK_USB_PHY_GATE>;
-                       clock-names = "main_clk";
-                       clock-frequency = <19200000>;
-                       #phy-cells = <0>;
-               };
+       usbphy1: usbphy1 {
+               compatible = "usb-nop-xceiv";
+               clocks = <&clks IMX5_CLK_USB_PHY_GATE>;
+               clock-names = "main_clk";
+               clock-frequency = <19200000>;
+               #phy-cells = <0>;
        };
 };
 
 &usbh1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usbh1>;
-       fsl,usbphy = <&usbh1phy>;
+       fsl,usbphy = <&usbphy1>;
        dr_mode = "host";
        phy_type = "ulpi";
        status = "okay";
index 5bb727a5b6a3a2aeafbb65ff24386a331b5f27a3..66e4187022be11eaf11f9afebbccc7da815a0348 100644 (file)
                };
        };
 
-       usbphy {
-               #address-cells = <1>;
-               #size-cells = <0>;
-               compatible = "simple-bus";
-
-               usbphy0: usbphy@0 {
-                       compatible = "usb-nop-xceiv";
-                       reg = <0>;
-                       clocks = <&clks IMX5_CLK_USB_PHY_GATE>;
-                       clock-names = "main_clk";
-                       #phy-cells = <0>;
-               };
+       usbphy0: usbphy0 {
+               compatible = "usb-nop-xceiv";
+               clocks = <&clks IMX5_CLK_USB_PHY_GATE>;
+               clock-names = "main_clk";
+               #phy-cells = <0>;
        };
 
        display-subsystem {