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 ca409d9..dd69c5b 100644 (file)
 &enetc_port1 {
        phy-handle = <&qds_phy1>;
        phy-connection-type = "rgmii-id";
+       status = "okay";
 };
 
 &sai1 {
index afb5565..14efe3b 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 6e406a6..9e7436a 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>;