ipq806x: convert to using qca8k
[openwrt/staging/blogic.git] / target / linux / ipq806x / patches-4.9 / 910-dts.patch
1 Index: linux-4.9.34/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
2 ===================================================================
3 --- linux-4.9.34.orig/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
4 +++ linux-4.9.34/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
5 @@ -225,66 +225,66 @@
6 ports {
7 #address-cells = <1>;
8 #size-cells = <0>;
9 - port@0 {
10 + cpu_port1: port@0 {
11 reg = <0>;
12 label = "cpu";
13 ethernet = <&gmac1>;
14 phy-mode = "rgmii";
15
16 - fixed-link {
17 - speed = <1000>;
18 - full-duplex;
19 - };
20 + fixed-link {
21 + speed = <1000>;
22 + full-duplex;
23 + };
24 };
25
26 port@1 {
27 reg = <1>;
28 label = "lan1";
29 + cpu = <&cpu_port1>;
30 phy-handle = <&phy_port1>;
31 };
32
33 port@2 {
34 reg = <2>;
35 label = "lan2";
36 + cpu = <&cpu_port1>;
37 phy-handle = <&phy_port2>;
38 };
39
40 port@3 {
41 reg = <3>;
42 label = "lan3";
43 + cpu = <&cpu_port1>;
44 phy-handle = <&phy_port3>;
45 };
46
47 - port@4 {
48 - reg = <4>;
49 + port@5{
50 + reg = <5>;
51 label = "lan4";
52 - phy-handle = <&phy_port4>;
53 + cpu = <&cpu_port1>;
54 + phy-handle = <&phy_port5>;
55 };
56
57 - port@5 {
58 - reg = <5>;
59 + port@4 {
60 + reg = <4>;
61 label = "wan";
62 - phy-handle = <&phy_port5>;
63 + cpu = <&cpu_port2>;
64 + phy-handle = <&phy_port4>;
65 };
66
67 - /*
68 - * Disabled until DSA supports multiple CPUs,
69 - * otherwise it causes undefined behavior.
70 - *
71 - * port@6 {
72 - * reg = <6>;
73 - * label = "cpu";
74 - * ethernet = <&gmac2>;
75 - * phy-mode = "sgmii";
76 - *
77 - * fixed-link {
78 - * speed = <1000>;
79 - * full-duplex;
80 - * };
81 - * };
82 - */
83 + cpu_port2: port@6 {
84 + reg = <6>;
85 + label = "cpu";
86 + ethernet = <&gmac2>;
87 + phy-mode = "sgmii";
88 +
89 + fixed-link {
90 + speed = <1000>;
91 + full-duplex;
92 + };
93 + };
94 };
95 - };
96 + };
97 };
98
99 gmac1: ethernet@37200000 {
100 @@ -295,6 +295,8 @@
101 pinctrl-0 = <&rgmii2_pins>;
102 pinctrl-names = "default";
103
104 + mac-address = [00 11 22 33 44 55];
105 +
106 fixed-link {
107 speed = <1000>;
108 full-duplex;
109 @@ -306,6 +308,8 @@
110 phy-mode = "sgmii";
111 qcom,id = <2>;
112
113 + mac-address = [00 11 22 33 44 56];
114 +
115 fixed-link {
116 speed = <1000>;
117 full-duplex;