[U-Boot] [PATCH] arm: dts: ls1028a-qds: define the MDIO MUX

Alex Marginean alexandru.marginean at nxp.com
Wed Aug 7 16:30:03 UTC 2019


QDS board has an on-board RGMII PHY and 4 slots for extension cards.
All these can be accessed over MDIO through a MDIO MUX controlled over I2C.
This patch adds the DT structure describing the MUX in board dts.

Signed-off-by: Alex Marginean <alexm.osslist at gmail.com>
---
 arch/arm/dts/fsl-ls1028a-qds.dts | 55 ++++++++++++++++++++++++++++++--
 1 file changed, 52 insertions(+), 3 deletions(-)

diff --git a/arch/arm/dts/fsl-ls1028a-qds.dts b/arch/arm/dts/fsl-ls1028a-qds.dts
index 94d0aa0f95..605a80456a 100644
--- a/arch/arm/dts/fsl-ls1028a-qds.dts
+++ b/arch/arm/dts/fsl-ls1028a-qds.dts
@@ -37,6 +37,58 @@
 
 &i2c0 {
 	status = "okay";
+
+	fpga at 66 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "simple-mfd";
+		reg = <0x66>;
+
+		mux-mdio at 54 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "mdio-mux-i2creg";
+			reg = <0x54>;
+			#mux-control-cells = <1>;
+			mux-reg-masks = <0x54 0xf0>;
+			mdio-parent-bus = <&mdio0>;
+
+			/* on-board MDIO with a single RGMII PHY */
+			mdio at 00 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <0x00>;
+
+				qds_phy0: phy at 5 {
+					reg = <5>;
+				};
+			};
+			/* slot 1 */
+			slot1: mdio at 40 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <0x40>;
+			};
+			/* slot 2 */
+			slot2: mdio at 50 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <0x50>;
+			};
+			/* slot 3 */
+			slot3: mdio at 60 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <0x60>;
+			};
+			/* slot 4 */
+			slot4: mdio at 70 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				reg = <0x70>;
+			};
+		};
+	};
 };
 
 &i2c1 {
@@ -95,7 +147,4 @@
 
 &mdio0 {
 	status = "okay";
-	qds_phy0: phy at 5 {
-		reg = <5>;
-	};
 };
-- 
2.17.1



More information about the U-Boot mailing list