summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorFugang Duan <b38611@freescale.com>2014-10-13 17:17:27 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-09-17 09:20:16 -0500
commit12c7da40f5a4df380aed62b06219bc1c06fe80dc (patch)
tree01b94c7314f8582dedf6d3b81c3244c37e06ff3b /arch/arm
parenta2ddaafeb7ad2c9c6cb440058ecc7d41bee2e122 (diff)
MLK-9977 ARM: dts: imx6sx: specify the phy address
Since fec controller contain mdio bus, for imx serial chips, there have no independent/external MDIO bus. ENET1 and ENET2 share use ENET1 mdio bus. So, specify the phy address for two MACs. Signed-off-by: Fugang Duan <B38611@freescale.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/imx6sx-17x17-arm2.dts19
-rw-r--r--arch/arm/boot/dts/imx6sx-19x19-arm2.dts19
-rw-r--r--arch/arm/boot/dts/imx6sx-sabreauto.dts19
3 files changed, 51 insertions, 6 deletions
diff --git a/arch/arm/boot/dts/imx6sx-17x17-arm2.dts b/arch/arm/boot/dts/imx6sx-17x17-arm2.dts
index 81d88b6a8fce..f7165d5ecb14 100644
--- a/arch/arm/boot/dts/imx6sx-17x17-arm2.dts
+++ b/arch/arm/boot/dts/imx6sx-17x17-arm2.dts
@@ -140,19 +140,34 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1_1>;
phy-mode = "rgmii";
- phy-id = <1>;
+ phy-handle = <&ethphy1>;
fsl,num_tx_queues=<3>;
fsl,num_rx_queues=<3>;
pinctrl-assert-gpios = <&max7322_1 0 GPIO_ACTIVE_HIGH>;
fsl,magic-packet;
status = "okay";
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethphy0: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ };
+
+ ethphy1: ethernet-phy@1 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <1>;
+ };
+ };
};
&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2_1>;
phy-mode = "rgmii";
- phy-id = <0>;
+ phy-handle = <&ethphy0>;
fsl,num_tx_queues=<3>;
fsl,num_rx_queues=<3>;
pinctrl-assert-gpios = <&max7322_2 0 GPIO_ACTIVE_HIGH>;
diff --git a/arch/arm/boot/dts/imx6sx-19x19-arm2.dts b/arch/arm/boot/dts/imx6sx-19x19-arm2.dts
index 1af0d4e52d44..30b8f3308ee0 100644
--- a/arch/arm/boot/dts/imx6sx-19x19-arm2.dts
+++ b/arch/arm/boot/dts/imx6sx-19x19-arm2.dts
@@ -113,19 +113,34 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1_1>;
phy-mode = "rgmii";
- phy-id = <1>;
+ phy-handle = <&ethphy1>;
fsl,num_tx_queues=<3>;
fsl,num_rx_queues=<3>;
pinctrl-assert-gpios = <&max7322_1 0 GPIO_ACTIVE_HIGH>;
fsl,magic-packet;
status = "okay";
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethphy0: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ };
+
+ ethphy1: ethernet-phy@1 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <1>;
+ };
+ };
};
&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2_1>;
phy-mode = "rgmii";
- phy-id = <0>;
+ phy-handle = <&ethphy0>;
fsl,num_tx_queues=<3>;
fsl,num_rx_queues=<3>;
pinctrl-assert-gpios = <&max7322_2 0 GPIO_ACTIVE_HIGH>;
diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts
index 3477d25a98d1..b3f9e8846330 100644
--- a/arch/arm/boot/dts/imx6sx-sabreauto.dts
+++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts
@@ -507,19 +507,34 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1_1>;
phy-mode = "rgmii";
- phy-id = <1>;
+ phy-handle = <&ethphy1>;
fsl,num_tx_queues=<3>;
fsl,num_rx_queues=<3>;
pinctrl-assert-gpios = <&max7322 0 GPIO_ACTIVE_HIGH>;
fsl,magic-packet;
status = "okay";
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethphy0: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ };
+
+ ethphy1: ethernet-phy@1 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <1>;
+ };
+ };
};
&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2_1>;
phy-mode = "rgmii";
- phy-id = <0>;
+ phy-handle = <&ethphy0>;
fsl,num_tx_queues=<3>;
fsl,num_rx_queues=<3>;
fsl,magic-packet;