arm64: dts: ls1028a: disable all enetc ports by default
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 23 Feb 2020 20:47:12 +0000 (22:47 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Mar 2020 07:58:13 +0000 (15:58 +0800)
There are few boards that enable all ENETC ports, so instead of having
board DTs disable them, do so in the DTSI and have the boards enable the
ports they use.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi

index ca409d907b36e1edfb2e574053193cb07402e426..dd69c5b821e9966ecf01370f5dd4407e5011bf98 100644 (file)
 &enetc_port1 {
        phy-handle = <&qds_phy1>;
        phy-connection-type = "rgmii-id";
+       status = "okay";
 };
 
 &sai1 {
index afb55653850d6471ec1a32df98ab6b677528cf2e..14efe3b06042b0c1f7e95a796bb7489bf3a7fd3e 100644 (file)
 &enetc_port0 {
        phy-handle = <&sgmii_phy0>;
        phy-connection-type = "sgmii";
+       status = "okay";
 
        mdio {
                #address-cells = <1>;
        };
 };
 
-&enetc_port1 {
-       status = "disabled";
-};
-
 &sai4 {
        status = "okay";
 };
index 6e406a6a16cf4e6ff944526aac28659d4aaffffb..9e7436a390fda37e1c46817a51c83b64f41ad149 100644 (file)
                        enetc_port0: ethernet@0,0 {
                                compatible = "fsl,enetc";
                                reg = <0x000000 0 0 0 0>;
+                               status = "disabled";
                        };
+
                        enetc_port1: ethernet@0,1 {
                                compatible = "fsl,enetc";
                                reg = <0x000100 0 0 0 0>;
+                               status = "disabled";
                        };
+
                        enetc_mdio_pf3: mdio@0,3 {
                                compatible = "fsl,enetc-mdio";
                                reg = <0x000300 0 0 0 0>;
                                #address-cells = <1>;
                                #size-cells = <0>;
                        };
+
                        ethernet@0,4 {
                                compatible = "fsl,enetc-ptp";
                                reg = <0x000400 0 0 0 0>;