OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | /dts-v1/; |
1 | /dts-v1/; |
|
2 | |
2 | |
|
3 | #include "vr9.dtsi" |
3 | #include "vr9.dtsi" |
|
4 | |
4 | |
|
5 | #include <dt-bindings/input/input.h> |
5 | #include <dt-bindings/input/input.h> |
|
6 | #include <dt-bindings/mips/lantiq_rcu_gphy.h> |
6 | #include <dt-bindings/mips/lantiq_rcu_gphy.h> |
|
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "arcadyan,vg3503j", "lantiq,xway", "lantiq,vr9"; |
9 | compatible = "arcadyan,vg3503j", "lantiq,xway", "lantiq,vr9"; |
|
10 | model = "BT OpenReach VDSL Modem"; |
10 | model = "BT OpenReach VDSL Modem"; |
|
11 | |
11 | |
|
12 | chosen { |
12 | chosen { |
|
13 | bootargs = "console=ttyLTQ0,115200"; |
13 | bootargs = "console=ttyLTQ0,115200"; |
|
14 | }; |
14 | }; |
|
15 | |
15 | |
|
16 | aliases { |
16 | aliases { |
|
17 | led-boot = &power_green; |
17 | led-boot = &power_green; |
|
18 | led-failsafe = &power_red; |
18 | led-failsafe = &power_red; |
|
19 | led-running = &power_green; |
19 | led-running = &power_green; |
|
20 | led-upgrade = &power_green; |
- | ||
21 | |
20 | |
|
22 | led-dsl = &dsl; |
21 | led-dsl = &dsl; |
|
23 | }; |
22 | }; |
|
24 | |
23 | |
|
25 | memory@0 { |
24 | memory@0 { |
|
26 | reg = <0x0 0x2000000>; |
25 | reg = <0x0 0x2000000>; |
|
27 | }; |
26 | }; |
|
28 | |
27 | |
|
29 | gpio-keys-polled { |
28 | gpio-keys-polled { |
|
30 | compatible = "gpio-keys-polled"; |
29 | compatible = "gpio-keys-polled"; |
|
31 | #address-cells = <1>; |
30 | #address-cells = <1>; |
|
32 | #size-cells = <0>; |
31 | #size-cells = <0>; |
|
33 | poll-interval = <100>; |
32 | poll-interval = <100>; |
|
34 | reset { |
33 | reset { |
|
35 | label = "reset"; |
34 | label = "reset"; |
|
36 | gpios = <&gpio 6 GPIO_ACTIVE_LOW>; |
35 | gpios = <&gpio 6 GPIO_ACTIVE_LOW>; |
|
37 | linux,code = <KEY_RESTART>; |
36 | linux,code = <KEY_RESTART>; |
|
38 | }; |
37 | }; |
|
39 | }; |
38 | }; |
|
40 | |
39 | |
|
41 | gpio-leds { |
40 | gpio-leds { |
|
42 | compatible = "gpio-leds"; |
41 | compatible = "gpio-leds"; |
|
43 | |
42 | |
|
44 | power_red: power2 { |
43 | power_red: power2 { |
|
45 | label = "vg3503j:red:power"; |
44 | label = "vg3503j:red:power"; |
|
46 | gpios = <&gpio 14 GPIO_ACTIVE_LOW>; |
45 | gpios = <&gpio 14 GPIO_ACTIVE_LOW>; |
|
47 | }; |
46 | }; |
|
48 | dsl: dsl { |
47 | dsl: dsl { |
|
49 | label = "vg3503j:green:dsl"; |
48 | label = "vg3503j:green:dsl"; |
|
50 | gpios = <&gpio 19 GPIO_ACTIVE_LOW>; |
49 | gpios = <&gpio 19 GPIO_ACTIVE_LOW>; |
|
51 | }; |
50 | }; |
|
52 | power_green: power { |
51 | power_green: power { |
|
53 | label = "vg3503j:green:power"; |
52 | label = "vg3503j:green:power"; |
|
54 | gpios = <&gpio 28 GPIO_ACTIVE_LOW>; |
53 | gpios = <&gpio 28 GPIO_ACTIVE_LOW>; |
|
55 | default-state = "keep"; |
54 | default-state = "keep"; |
|
56 | }; |
55 | }; |
|
57 | }; |
56 | }; |
|
58 | }; |
57 | }; |
|
59 | |
58 | |
|
60 | ð0 { |
59 | ð0 { |
|
61 | interface@0 { |
60 | interface@0 { |
|
62 | compatible = "lantiq,xrx200-pdi"; |
61 | compatible = "lantiq,xrx200-pdi"; |
|
63 | #address-cells = <1>; |
62 | #address-cells = <1>; |
|
64 | #size-cells = <0>; |
63 | #size-cells = <0>; |
|
65 | reg = <0>; |
64 | reg = <0>; |
|
66 | |
65 | |
|
67 | lantiq,switch; |
66 | lantiq,switch; |
|
68 | ethernet@2 { |
67 | ethernet@2 { |
|
69 | compatible = "lantiq,xrx200-pdi-port"; |
68 | compatible = "lantiq,xrx200-pdi-port"; |
|
70 | reg = <2>; |
69 | reg = <2>; |
|
71 | phy-mode = "mii"; |
70 | phy-mode = "mii"; |
|
72 | phy-handle = <&phy11>; |
71 | phy-handle = <&phy11>; |
|
73 | }; |
72 | }; |
|
74 | ethernet@4 { |
73 | ethernet@4 { |
|
75 | compatible = "lantiq,xrx200-pdi-port"; |
74 | compatible = "lantiq,xrx200-pdi-port"; |
|
76 | reg = <4>; |
75 | reg = <4>; |
|
77 | phy-mode = "mii"; |
76 | phy-mode = "mii"; |
|
78 | phy-handle = <&phy13>; |
77 | phy-handle = <&phy13>; |
|
79 | }; |
78 | }; |
|
80 | }; |
79 | }; |
|
81 | |
80 | |
|
82 | mdio@0 { |
81 | mdio@0 { |
|
83 | #address-cells = <1>; |
82 | #address-cells = <1>; |
|
84 | #size-cells = <0>; |
83 | #size-cells = <0>; |
|
85 | compatible = "lantiq,xrx200-mdio"; |
84 | compatible = "lantiq,xrx200-mdio"; |
|
86 | reg = <0>; |
85 | reg = <0>; |
|
87 | |
86 | |
|
88 | phy11: ethernet-phy@11 { |
87 | phy11: ethernet-phy@11 { |
|
89 | reg = <0x11>; |
88 | reg = <0x11>; |
|
90 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
89 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
|
91 | lantiq,led1h = <0x70>; |
90 | lantiq,led1h = <0x70>; |
|
92 | lantiq,led1l = <0x00>; |
91 | lantiq,led1l = <0x00>; |
|
93 | lantiq,led2h = <0x00>; |
92 | lantiq,led2h = <0x00>; |
|
94 | lantiq,led2l = <0x03>; |
93 | lantiq,led2l = <0x03>; |
|
95 | }; |
94 | }; |
|
96 | phy13: ethernet-phy@13 { |
95 | phy13: ethernet-phy@13 { |
|
97 | reg = <0x13>; |
96 | reg = <0x13>; |
|
98 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
97 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
|
99 | lantiq,led1h = <0x70>; |
98 | lantiq,led1h = <0x70>; |
|
100 | lantiq,led1l = <0x00>; |
99 | lantiq,led1l = <0x00>; |
|
101 | lantiq,led2h = <0x00>; |
100 | lantiq,led2h = <0x00>; |
|
102 | lantiq,led2l = <0x03>; |
101 | lantiq,led2l = <0x03>; |
|
103 | }; |
102 | }; |
|
104 | }; |
103 | }; |
|
105 | }; |
104 | }; |
|
106 | |
105 | |
|
107 | &gphy0 { |
106 | &gphy0 { |
|
108 | lantiq,gphy-mode = <GPHY_MODE_GE>; |
107 | lantiq,gphy-mode = <GPHY_MODE_GE>; |
|
109 | }; |
108 | }; |
|
110 | |
109 | |
|
111 | &gphy1 { |
110 | &gphy1 { |
|
112 | lantiq,gphy-mode = <GPHY_MODE_GE>; |
111 | lantiq,gphy-mode = <GPHY_MODE_GE>; |
|
113 | }; |
112 | }; |
|
114 | |
113 | |
|
115 | &gpio { |
114 | &gpio { |
|
116 | pinctrl-names = "default"; |
115 | pinctrl-names = "default"; |
|
117 | pinctrl-0 = <&state_default>; |
116 | pinctrl-0 = <&state_default>; |
|
118 | |
117 | |
|
119 | state_default: pinmux { |
118 | state_default: pinmux { |
|
120 | mdio { |
119 | mdio { |
|
121 | lantiq,groups = "mdio"; |
120 | lantiq,groups = "mdio"; |
|
122 | lantiq,function = "mdio"; |
121 | lantiq,function = "mdio"; |
|
123 | }; |
122 | }; |
|
124 | gphy-leds { |
123 | gphy-leds { |
|
125 | lantiq,groups = "gphy0 led0", "gphy0 led1", |
124 | lantiq,groups = "gphy0 led0", "gphy0 led1", |
|
126 | "gphy0 led2", "gphy1 led0", |
125 | "gphy0 led2", "gphy1 led0", |
|
127 | "gphy1 led1", "gphy1 led2"; |
126 | "gphy1 led1", "gphy1 led2"; |
|
128 | lantiq,function = "gphy"; |
127 | lantiq,function = "gphy"; |
|
129 | lantiq,pull = <2>; |
128 | lantiq,pull = <2>; |
|
130 | lantiq,open-drain = <0>; |
129 | lantiq,open-drain = <0>; |
|
131 | lantiq,output = <1>; |
130 | lantiq,output = <1>; |
|
132 | }; |
131 | }; |
|
133 | }; |
132 | }; |
|
134 | }; |
133 | }; |
|
135 | |
134 | |
|
136 | &localbus { |
135 | &localbus { |
|
137 | nor@0 { |
136 | nor@0 { |
|
138 | compatible = "lantiq,nor"; |
137 | compatible = "lantiq,nor"; |
|
139 | bank-width = <2>; |
138 | bank-width = <2>; |
|
140 | reg = <0 0x0 0x2000000>; |
139 | reg = <0 0x0 0x2000000>; |
|
141 | #address-cells = <1>; |
140 | #address-cells = <1>; |
|
142 | #size-cells = <1>; |
141 | #size-cells = <1>; |
|
143 | |
142 | |
|
144 | partitions { |
143 | partitions { |
|
145 | compatible = "fixed-partitions"; |
144 | compatible = "fixed-partitions"; |
|
146 | #address-cells = <1>; |
145 | #address-cells = <1>; |
|
147 | #size-cells = <1>; |
146 | #size-cells = <1>; |
|
148 | |
147 | |
|
149 | partition@0 { |
148 | partition@0 { |
|
150 | label = "uboot"; |
149 | label = "uboot"; |
|
151 | reg = <0x00000 0x20000>; |
150 | reg = <0x00000 0x20000>; |
|
152 | }; |
151 | }; |
|
153 | |
152 | |
|
154 | partition@20000 { |
153 | partition@20000 { |
|
155 | label = "firmware"; |
154 | label = "firmware"; |
|
156 | reg = <0x20000 0x7d0000>; |
155 | reg = <0x20000 0x7d0000>; |
|
157 | }; |
156 | }; |
|
158 | |
157 | |
|
159 | partition@7f0000 { |
158 | partition@7f0000 { |
|
160 | label = "uboot-env"; |
159 | label = "uboot-env"; |
|
161 | reg = <0x7f0000 0x10000>; |
160 | reg = <0x7f0000 0x10000>; |
|
162 | }; |
161 | }; |
|
163 | }; |
162 | }; |
|
164 | }; |
163 | }; |
|
165 | }; |
164 | }; |
|
166 | |
165 | |