Skip to content

Commit

Permalink
powerpc/mpc85xx: Add MDIO bus muxing support to the board device tree(s)
Browse files Browse the repository at this point in the history
Describe the PHY topology for all configurations supported by each board

Based on prior work by Andy Fleming <afleming@freescale.com>

Signed-off-by: Shruti Kanetkar <Shruti@freescale.com>
Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Igal Liberman <Igal.Liberman@freescale.com>
Signed-off-by: Scott Wood <oss@buserror.net>
  • Loading branch information
Igal Liberman authored and Scott Wood committed Mar 12, 2016
1 parent 334479d commit 84e0f1c
Show file tree
Hide file tree
Showing 19 changed files with 2,198 additions and 19 deletions.
60 changes: 58 additions & 2 deletions arch/powerpc/boot/dts/fsl/b4860qds.dts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* B4860DS Device Tree Source
*
* Copyright 2012 Freescale Semiconductor Inc.
* Copyright 2012 - 2015 Freescale Semiconductor Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -39,12 +39,69 @@
model = "fsl,B4860QDS";
compatible = "fsl,B4860QDS";

aliases {
phy_sgmii_1e = &phy_sgmii_1e;
phy_sgmii_1f = &phy_sgmii_1f;
phy_xaui_slot1 = &phy_xaui_slot1;
phy_xaui_slot2 = &phy_xaui_slot2;
};

ifc: localbus@ffe124000 {
board-control@3,0 {
compatible = "fsl,b4860qds-fpga", "fsl,fpga-qixis";
};
};

soc@ffe000000 {
fman@400000 {
ethernet@e8000 {
phy-handle = <&phy_sgmii_1e>;
phy-connection-type = "sgmii";
};

ethernet@ea000 {
phy-handle = <&phy_sgmii_1f>;
phy-connection-type = "sgmii";
};

ethernet@f0000 {
phy-handle = <&phy_xaui_slot1>;
phy-connection-type = "xgmii";
};

ethernet@f2000 {
phy-handle = <&phy_xaui_slot2>;
phy-connection-type = "xgmii";
};

mdio@fc000 {
phy_sgmii_1e: ethernet-phy@1e {
reg = <0x1e>;
status = "disabled";
};

phy_sgmii_1f: ethernet-phy@1f {
reg = <0x1f>;
status = "disabled";
};
};

mdio@fd000 {
phy_xaui_slot1: xaui-phy@slot1 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x7>;
status = "disabled";
};

phy_xaui_slot2: xaui-phy@slot2 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x6>;
status = "disabled";
};
};
};
};

rio: rapidio@ffe0c0000 {
reg = <0xf 0xfe0c0000 0 0x11000>;

Expand All @@ -55,7 +112,6 @@
ranges = <0 0 0xc 0x30000000 0 0x10000000>;
};
};

};

/include/ "b4860si-post.dtsi"
51 changes: 49 additions & 2 deletions arch/powerpc/boot/dts/fsl/b4qds.dtsi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* B4420DS Device Tree Source
*
* Copyright 2012 - 2014 Freescale Semiconductor, Inc.
* Copyright 2012 - 2015 Freescale Semiconductor, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -39,6 +39,13 @@
#size-cells = <2>;
interrupt-parent = <&mpic>;

aliases {
phy_sgmii_10 = &phy_sgmii_10;
phy_sgmii_11 = &phy_sgmii_11;
phy_sgmii_1c = &phy_sgmii_1c;
phy_sgmii_1d = &phy_sgmii_1d;
};

ifc: localbus@ffe124000 {
reg = <0xf 0xfe124000 0 0x2000>;
ranges = <0 0 0xf 0xe8000000 0x08000000
Expand Down Expand Up @@ -210,6 +217,47 @@
phy_type = "ulpi";
};

fman@400000 {
ethernet@e0000 {
phy-handle = <&phy_sgmii_10>;
phy-connection-type = "sgmii";
};

ethernet@e2000 {
phy-handle = <&phy_sgmii_11>;
phy-connection-type = "sgmii";
};

ethernet@e4000 {
phy-handle = <&phy_sgmii_1c>;
phy-connection-type = "sgmii";
};

ethernet@e6000 {
phy-handle = <&phy_sgmii_1d>;
phy-connection-type = "sgmii";
};

mdio@fc000 {
phy_sgmii_10: ethernet-phy@10 {
reg = <0x10>;
};

phy_sgmii_11: ethernet-phy@11 {
reg = <0x11>;
};

phy_sgmii_1c: ethernet-phy@1c {
reg = <0x1c>;
status = "disabled";
};

phy_sgmii_1d: ethernet-phy@1d {
reg = <0x1d>;
status = "disabled";
};
};
};
};

pci0: pcie@ffe200000 {
Expand All @@ -226,7 +274,6 @@
0 0x00010000>;
};
};

};

/include/ "b4si-post.dtsi"
92 changes: 91 additions & 1 deletion arch/powerpc/boot/dts/fsl/p2041rdb.dts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* P2041RDB Device Tree Source
*
* Copyright 2011 - 2014 Freescale Semiconductor Inc.
* Copyright 2011 - 2015 Freescale Semiconductor Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -41,6 +41,19 @@
#size-cells = <2>;
interrupt-parent = <&mpic>;

aliases {
phy_rgmii_0 = &phy_rgmii_0;
phy_rgmii_1 = &phy_rgmii_1;
phy_sgmii_2 = &phy_sgmii_2;
phy_sgmii_3 = &phy_sgmii_3;
phy_sgmii_4 = &phy_sgmii_4;
phy_sgmii_1c = &phy_sgmii_1c;
phy_sgmii_1d = &phy_sgmii_1d;
phy_sgmii_1e = &phy_sgmii_1e;
phy_sgmii_1f = &phy_sgmii_1f;
phy_xgmii_2 = &phy_xgmii_2;
};

memory {
device_type = "memory";
};
Expand Down Expand Up @@ -137,6 +150,83 @@
usb1: usb@211000 {
dr_mode = "host";
};

fman@400000 {
ethernet@e0000 {
phy-handle = <&phy_sgmii_2>;
phy-connection-type = "sgmii";
};

mdio@e1120 {
phy_rgmii_0: ethernet-phy@0 {
reg = <0x0>;
};

phy_rgmii_1: ethernet-phy@1 {
reg = <0x1>;
};

phy_sgmii_2: ethernet-phy@2 {
reg = <0x2>;
};

phy_sgmii_3: ethernet-phy@3 {
reg = <0x3>;
};

phy_sgmii_4: ethernet-phy@4 {
reg = <0x4>;
};

phy_sgmii_1c: ethernet-phy@1c {
reg = <0x1c>;
};

phy_sgmii_1d: ethernet-phy@1d {
reg = <0x1d>;
};

phy_sgmii_1e: ethernet-phy@1e {
reg = <0x1e>;
};

phy_sgmii_1f: ethernet-phy@1f {
reg = <0x1f>;
};
};

ethernet@e2000 {
phy-handle = <&phy_sgmii_3>;
phy-connection-type = "sgmii";
};

ethernet@e4000 {
phy-handle = <&phy_sgmii_4>;
phy-connection-type = "sgmii";
};

ethernet@e6000 {
phy-handle = <&phy_rgmii_1>;
phy-connection-type = "rgmii";
};

ethernet@e8000 {
phy-handle = <&phy_rgmii_0>;
phy-connection-type = "rgmii";
};

ethernet@f0000 {
phy-handle = <&phy_xgmii_2>;
phy-connection-type = "xgmii";
};

mdio@f1000 {
phy_xgmii_2: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x0>;
};
};
};
};

rio: rapidio@ffe0c0000 {
Expand Down
Loading

0 comments on commit 84e0f1c

Please sign in to comment.