ARM: dts: imx6qdl: move phy properties into phy device node
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Wed, 21 Jul 2021 10:12:20 +0000 (18:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jul 2021 21:31:22 +0000 (14:31 -0700)
This patch fixes issues found by dtbs_check:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/net/fsl,fec.yaml

According to the Micrel PHY dt-binding:
Documentation/devicetree/bindings/net/micrel-ksz90x1.txt,
Add clock delay in an Ethernet OF device node is deprecated, so move
these properties to PHY OF device node.

Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/boot/dts/imx6q-novena.dts
arch/arm/boot/dts/imx6qdl-aristainetos2.dtsi
arch/arm/boot/dts/imx6qdl-nit6xlite.dtsi
arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi
arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
arch/arm/boot/dts/imx6qdl-sabrelite.dtsi

index 52e3567..225cf6b 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet_novena>;
        phy-mode = "rgmii";
+       phy-handle = <&ethphy>;
        phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
-       rxc-skew-ps = <3000>;
-       rxdv-skew-ps = <0>;
-       txc-skew-ps = <3000>;
-       txen-skew-ps = <0>;
-       rxd0-skew-ps = <0>;
-       rxd1-skew-ps = <0>;
-       rxd2-skew-ps = <0>;
-       rxd3-skew-ps = <0>;
-       txd0-skew-ps = <3000>;
-       txd1-skew-ps = <3000>;
-       txd2-skew-ps = <3000>;
-       txd3-skew-ps = <3000>;
        status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethphy: ethernet-phy {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       rxc-skew-ps = <3000>;
+                       rxdv-skew-ps = <0>;
+                       txc-skew-ps = <3000>;
+                       txen-skew-ps = <0>;
+                       rxd0-skew-ps = <0>;
+                       rxd1-skew-ps = <0>;
+                       rxd2-skew-ps = <0>;
+                       rxd3-skew-ps = <0>;
+                       txd0-skew-ps = <3000>;
+                       txd1-skew-ps = <3000>;
+                       txd2-skew-ps = <3000>;
+                       txd3-skew-ps = <3000>;
+               };
+       };
 };
 
 &hdmi {
index ead7ba2..563bf9d 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet>;
        phy-mode = "rgmii";
+       phy-handle = <&ethphy>;
        phy-reset-gpios = <&gpio7 18 GPIO_ACTIVE_LOW>;
-       txd0-skew-ps = <0>;
-       txd1-skew-ps = <0>;
-       txd2-skew-ps = <0>;
-       txd3-skew-ps = <0>;
        status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethphy: ethernet-phy {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       txd0-skew-ps = <0>;
+                       txd1-skew-ps = <0>;
+                       txd2-skew-ps = <0>;
+                       txd3-skew-ps = <0>;
+               };
+       };
 };
 
 &gpmi {
index d526f01..ac34709 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet>;
        phy-mode = "rgmii";
+       phy-handle = <&ethphy>;
        phy-reset-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
-       txen-skew-ps = <0>;
-       txc-skew-ps = <3000>;
-       rxdv-skew-ps = <0>;
-       rxc-skew-ps = <3000>;
-       rxd0-skew-ps = <0>;
-       rxd1-skew-ps = <0>;
-       rxd2-skew-ps = <0>;
-       rxd3-skew-ps = <0>;
-       txd0-skew-ps = <0>;
-       txd1-skew-ps = <0>;
-       txd2-skew-ps = <0>;
-       txd3-skew-ps = <0>;
        interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>,
                              <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>;
        fsl,err006687-workaround-present;
        status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethphy: ethernet-phy {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       txen-skew-ps = <0>;
+                       txc-skew-ps = <3000>;
+                       rxdv-skew-ps = <0>;
+                       rxc-skew-ps = <3000>;
+                       rxd0-skew-ps = <0>;
+                       rxd1-skew-ps = <0>;
+                       rxd2-skew-ps = <0>;
+                       rxd3-skew-ps = <0>;
+                       txd0-skew-ps = <0>;
+                       txd1-skew-ps = <0>;
+                       txd2-skew-ps = <0>;
+                       txd3-skew-ps = <0>;
+               };
+       };
 };
 
 &hdmi {
index a091782..c96f4d7 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet>;
        phy-mode = "rgmii";
+       phy-handle = <&ethphy>;
        phy-reset-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
-       txen-skew-ps = <0>;
-       txc-skew-ps = <3000>;
-       rxdv-skew-ps = <0>;
-       rxc-skew-ps = <3000>;
-       rxd0-skew-ps = <0>;
-       rxd1-skew-ps = <0>;
-       rxd2-skew-ps = <0>;
-       rxd3-skew-ps = <0>;
-       txd0-skew-ps = <0>;
-       txd1-skew-ps = <0>;
-       txd2-skew-ps = <0>;
-       txd3-skew-ps = <0>;
        interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>,
                              <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>;
        fsl,err006687-workaround-present;
        status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethphy: ethernet-phy {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       txen-skew-ps = <0>;
+                       txc-skew-ps = <3000>;
+                       rxdv-skew-ps = <0>;
+                       rxc-skew-ps = <3000>;
+                       rxd0-skew-ps = <0>;
+                       rxd1-skew-ps = <0>;
+                       rxd2-skew-ps = <0>;
+                       rxd3-skew-ps = <0>;
+                       txd0-skew-ps = <0>;
+                       txd1-skew-ps = <0>;
+                       txd2-skew-ps = <0>;
+                       txd3-skew-ps = <0>;
+               };
+       };
 };
 
 &hdmi {
index 1243677..49da30d 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet>;
        phy-mode = "rgmii";
+       phy-handle = <&ethphy>;
        phy-reset-gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
-       txen-skew-ps = <0>;
-       txc-skew-ps = <3000>;
-       rxdv-skew-ps = <0>;
-       rxc-skew-ps = <3000>;
-       rxd0-skew-ps = <0>;
-       rxd1-skew-ps = <0>;
-       rxd2-skew-ps = <0>;
-       rxd3-skew-ps = <0>;
-       txd0-skew-ps = <0>;
-       txd1-skew-ps = <0>;
-       txd2-skew-ps = <0>;
-       txd3-skew-ps = <0>;
        interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>,
                              <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>;
        fsl,err006687-workaround-present;
        status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethphy: ethernet-phy {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       txen-skew-ps = <0>;
+                       txc-skew-ps = <3000>;
+                       rxdv-skew-ps = <0>;
+                       rxc-skew-ps = <3000>;
+                       rxd0-skew-ps = <0>;
+                       rxd1-skew-ps = <0>;
+                       rxd2-skew-ps = <0>;
+                       rxd3-skew-ps = <0>;
+                       txd0-skew-ps = <0>;
+                       txd1-skew-ps = <0>;
+                       txd2-skew-ps = <0>;
+                       txd3-skew-ps = <0>;
+               };
+       };
 };
 
 &hdmi {
index fdc3aa9..eb9a0b1 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_enet>;
        phy-mode = "rgmii";
+       phy-handle = <&ethphy>;
        phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
-       txen-skew-ps = <0>;
-       txc-skew-ps = <3000>;
-       rxdv-skew-ps = <0>;
-       rxc-skew-ps = <3000>;
-       rxd0-skew-ps = <0>;
-       rxd1-skew-ps = <0>;
-       rxd2-skew-ps = <0>;
-       rxd3-skew-ps = <0>;
-       txd0-skew-ps = <0>;
-       txd1-skew-ps = <0>;
-       txd2-skew-ps = <0>;
-       txd3-skew-ps = <0>;
        status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               ethphy: ethernet-phy {
+                       compatible = "ethernet-phy-ieee802.3-c22";
+                       txen-skew-ps = <0>;
+                       txc-skew-ps = <3000>;
+                       rxdv-skew-ps = <0>;
+                       rxc-skew-ps = <3000>;
+                       rxd0-skew-ps = <0>;
+                       rxd1-skew-ps = <0>;
+                       rxd2-skew-ps = <0>;
+                       rxd3-skew-ps = <0>;
+                       txd0-skew-ps = <0>;
+                       txd1-skew-ps = <0>;
+                       txd2-skew-ps = <0>;
+                       txd3-skew-ps = <0>;
+               };
+       };
 };
 
 &hdmi {