diff options
author | Iyappan Subramanian <isubramanian@apm.com> | 2016-07-25 20:12:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-26 00:51:44 -0400 |
commit | 8e694cd2762c36b4104bbddaaf72740e59fdee5e (patch) | |
tree | c1d7c2cf00a822b0aa75f9927d006832c5c103a5 | |
parent | 52d1fd9983182e9e92507a18a997b3614864e0ee (diff) |
dtb: xgene: Add MDIO node
Added mdio node for mdio driver. Also added phy-handle
reference to the ethernet nodes.
Removed unused clock node from storm sgenet1.
Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Tested-by: Fushen Chen <fchen@apm.com>
Tested-by: Toan Le <toanle@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/arm64/boot/dts/apm/apm-merlin.dts | 6 | ||||
-rw-r--r-- | arch/arm64/boot/dts/apm/apm-mustang.dts | 12 | ||||
-rw-r--r-- | arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 11 | ||||
-rw-r--r-- | arch/arm64/boot/dts/apm/apm-storm.dtsi | 26 |
4 files changed, 41 insertions, 14 deletions
diff --git a/arch/arm64/boot/dts/apm/apm-merlin.dts b/arch/arm64/boot/dts/apm/apm-merlin.dts index 387c6a8d0da9..b0f64414c1b0 100644 --- a/arch/arm64/boot/dts/apm/apm-merlin.dts +++ b/arch/arm64/boot/dts/apm/apm-merlin.dts | |||
@@ -83,3 +83,9 @@ | |||
83 | status = "ok"; | 83 | status = "ok"; |
84 | }; | 84 | }; |
85 | }; | 85 | }; |
86 | |||
87 | &mdio { | ||
88 | sgenet0phy: phy@0 { | ||
89 | reg = <0x0>; | ||
90 | }; | ||
91 | }; | ||
diff --git a/arch/arm64/boot/dts/apm/apm-mustang.dts b/arch/arm64/boot/dts/apm/apm-mustang.dts index 44db32ec5e9c..b7fb5d9295c2 100644 --- a/arch/arm64/boot/dts/apm/apm-mustang.dts +++ b/arch/arm64/boot/dts/apm/apm-mustang.dts | |||
@@ -79,3 +79,15 @@ | |||
79 | &mmc0 { | 79 | &mmc0 { |
80 | status = "ok"; | 80 | status = "ok"; |
81 | }; | 81 | }; |
82 | |||
83 | &mdio { | ||
84 | menet0phy: phy@3 { | ||
85 | reg = <0x3>; | ||
86 | }; | ||
87 | sgenet0phy: phy@4 { | ||
88 | reg = <0x4>; | ||
89 | }; | ||
90 | sgenet1phy: phy@5 { | ||
91 | reg = <0x5>; | ||
92 | }; | ||
93 | }; | ||
diff --git a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi index c569f761d090..2e1e5daa1dc7 100644 --- a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi +++ b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | |||
@@ -625,10 +625,18 @@ | |||
625 | apm,irq-start = <8>; | 625 | apm,irq-start = <8>; |
626 | }; | 626 | }; |
627 | 627 | ||
628 | mdio: mdio@1f610000 { | ||
629 | compatible = "apm,xgene-mdio-xfi"; | ||
630 | #address-cells = <1>; | ||
631 | #size-cells = <0>; | ||
632 | reg = <0x0 0x1f610000 0x0 0xd100>; | ||
633 | clocks = <&xge0clk 0>; | ||
634 | }; | ||
635 | |||
628 | sgenet0: ethernet@1f610000 { | 636 | sgenet0: ethernet@1f610000 { |
629 | compatible = "apm,xgene2-sgenet"; | 637 | compatible = "apm,xgene2-sgenet"; |
630 | status = "disabled"; | 638 | status = "disabled"; |
631 | reg = <0x0 0x1f610000 0x0 0x10000>, | 639 | reg = <0x0 0x1f610000 0x0 0xd100>, |
632 | <0x0 0x1f600000 0x0 0Xd100>, | 640 | <0x0 0x1f600000 0x0 0Xd100>, |
633 | <0x0 0x20000000 0x0 0X20000>; | 641 | <0x0 0x20000000 0x0 0X20000>; |
634 | interrupts = <0 96 4>, | 642 | interrupts = <0 96 4>, |
@@ -637,6 +645,7 @@ | |||
637 | clocks = <&xge0clk 0>; | 645 | clocks = <&xge0clk 0>; |
638 | local-mac-address = [00 01 73 00 00 01]; | 646 | local-mac-address = [00 01 73 00 00 01]; |
639 | phy-connection-type = "sgmii"; | 647 | phy-connection-type = "sgmii"; |
648 | phy-handle = <&sgenet0phy>; | ||
640 | }; | 649 | }; |
641 | 650 | ||
642 | xgenet1: ethernet@1f620000 { | 651 | xgenet1: ethernet@1f620000 { |
diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index 5147d7698924..6bf7cbe2e72d 100644 --- a/arch/arm64/boot/dts/apm/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm/apm-storm.dtsi | |||
@@ -237,20 +237,11 @@ | |||
237 | clocks = <&socplldiv2 0>; | 237 | clocks = <&socplldiv2 0>; |
238 | reg = <0x0 0x1f21c000 0x0 0x1000>; | 238 | reg = <0x0 0x1f21c000 0x0 0x1000>; |
239 | reg-names = "csr-reg"; | 239 | reg-names = "csr-reg"; |
240 | csr-mask = <0x3>; | 240 | csr-mask = <0xa>; |
241 | enable-mask = <0xf>; | ||
241 | clock-output-names = "sge0clk"; | 242 | clock-output-names = "sge0clk"; |
242 | }; | 243 | }; |
243 | 244 | ||
244 | sge1clk: sge1clk@1f21c000 { | ||
245 | compatible = "apm,xgene-device-clock"; | ||
246 | #clock-cells = <1>; | ||
247 | clocks = <&socplldiv2 0>; | ||
248 | reg = <0x0 0x1f21c000 0x0 0x1000>; | ||
249 | reg-names = "csr-reg"; | ||
250 | csr-mask = <0xc>; | ||
251 | clock-output-names = "sge1clk"; | ||
252 | }; | ||
253 | |||
254 | xge0clk: xge0clk@1f61c000 { | 245 | xge0clk: xge0clk@1f61c000 { |
255 | compatible = "apm,xgene-device-clock"; | 246 | compatible = "apm,xgene-device-clock"; |
256 | #clock-cells = <1>; | 247 | #clock-cells = <1>; |
@@ -921,6 +912,14 @@ | |||
921 | clocks = <&rtcclk 0>; | 912 | clocks = <&rtcclk 0>; |
922 | }; | 913 | }; |
923 | 914 | ||
915 | mdio: mdio@17020000 { | ||
916 | compatible = "apm,xgene-mdio-rgmii"; | ||
917 | #address-cells = <1>; | ||
918 | #size-cells = <0>; | ||
919 | reg = <0x0 0x17020000 0x0 0xd100>; | ||
920 | clocks = <&menetclk 0>; | ||
921 | }; | ||
922 | |||
924 | menet: ethernet@17020000 { | 923 | menet: ethernet@17020000 { |
925 | compatible = "apm,xgene-enet"; | 924 | compatible = "apm,xgene-enet"; |
926 | status = "disabled"; | 925 | status = "disabled"; |
@@ -934,7 +933,7 @@ | |||
934 | /* mac address will be overwritten by the bootloader */ | 933 | /* mac address will be overwritten by the bootloader */ |
935 | local-mac-address = [00 00 00 00 00 00]; | 934 | local-mac-address = [00 00 00 00 00 00]; |
936 | phy-connection-type = "rgmii"; | 935 | phy-connection-type = "rgmii"; |
937 | phy-handle = <&menetphy>; | 936 | phy-handle = <&menet0phy>,<&menetphy>; |
938 | mdio { | 937 | mdio { |
939 | compatible = "apm,xgene-mdio"; | 938 | compatible = "apm,xgene-mdio"; |
940 | #address-cells = <1>; | 939 | #address-cells = <1>; |
@@ -960,6 +959,7 @@ | |||
960 | clocks = <&sge0clk 0>; | 959 | clocks = <&sge0clk 0>; |
961 | local-mac-address = [00 00 00 00 00 00]; | 960 | local-mac-address = [00 00 00 00 00 00]; |
962 | phy-connection-type = "sgmii"; | 961 | phy-connection-type = "sgmii"; |
962 | phy-handle = <&sgenet0phy>; | ||
963 | }; | 963 | }; |
964 | 964 | ||
965 | sgenet1: ethernet@1f210030 { | 965 | sgenet1: ethernet@1f210030 { |
@@ -973,9 +973,9 @@ | |||
973 | <0x0 0xAD 0x4>; | 973 | <0x0 0xAD 0x4>; |
974 | port-id = <1>; | 974 | port-id = <1>; |
975 | dma-coherent; | 975 | dma-coherent; |
976 | clocks = <&sge1clk 0>; | ||
977 | local-mac-address = [00 00 00 00 00 00]; | 976 | local-mac-address = [00 00 00 00 00 00]; |
978 | phy-connection-type = "sgmii"; | 977 | phy-connection-type = "sgmii"; |
978 | phy-handle = <&sgenet1phy>; | ||
979 | }; | 979 | }; |
980 | 980 | ||
981 | xgenet: ethernet@1f610000 { | 981 | xgenet: ethernet@1f610000 { |