OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "ar9.dtsi" |
||
4 | |||
5 | #include <dt-bindings/input/input.h> |
||
6 | |||
7 | / { |
||
8 | compatible = "zyxel,p-2601hn", "lantiq,xway", "lantiq,ar9"; |
||
9 | model = "ZyXEL P-2601HN-Fx"; |
||
10 | |||
11 | chosen { |
||
12 | bootargs = "console=ttyLTQ0,115200"; |
||
13 | }; |
||
14 | |||
15 | aliases { |
||
16 | led-boot = &power_green; |
||
17 | led-failsafe = &power_red; |
||
18 | led-running = &power_green; |
||
19 | |||
20 | led-dsl = &dsl; |
||
21 | led-internet = &online; |
||
22 | led-wifi = &wifi; |
||
23 | }; |
||
24 | |||
25 | memory@0 { |
||
26 | reg = <0x0 0x4000000>; |
||
27 | }; |
||
28 | |||
29 | gpio-keys-polled { |
||
30 | compatible = "gpio-keys-polled"; |
||
31 | #address-cells = <1>; |
||
32 | #size-cells = <0>; |
||
33 | poll-interval = <100>; |
||
34 | |||
35 | reset { |
||
36 | label = "reset"; |
||
37 | gpios = <&gpio 53 GPIO_ACTIVE_LOW>; |
||
38 | linux,code = <KEY_RESTART>; |
||
39 | }; |
||
40 | rfkill { |
||
41 | label = "rfkill"; |
||
42 | gpios = <&gpio 54 GPIO_ACTIVE_LOW>; |
||
43 | linux,code = <KEY_RFKILL>; |
||
44 | }; |
||
45 | }; |
||
46 | |||
47 | gpio-leds { |
||
48 | compatible = "gpio-leds"; |
||
49 | |||
50 | power_green: power { |
||
51 | label = "p2601hnfx:green:power"; |
||
52 | gpios = <&stp 11 GPIO_ACTIVE_LOW>; |
||
53 | default-state = "keep"; |
||
54 | }; |
||
55 | power_red: power2 { |
||
56 | label = "p2601hnfx:red:power"; |
||
57 | gpios = <&gpio 29 GPIO_ACTIVE_LOW>; |
||
58 | }; |
||
59 | online: online { |
||
60 | label = "p2601hnfx:green:internet"; |
||
61 | gpios = <&stp 13 GPIO_ACTIVE_LOW>; |
||
62 | }; |
||
63 | online2 { |
||
64 | label = "p2601hnfx:red:internet"; |
||
65 | gpios = <&stp 12 GPIO_ACTIVE_LOW>; |
||
66 | }; |
||
67 | dsl: dsl { |
||
68 | label = "p2601hnfx:green:dsl"; |
||
69 | gpios = <&stp 14 GPIO_ACTIVE_LOW>; |
||
70 | }; |
||
71 | phone { |
||
72 | label = "p2601hnfx:green:phone"; |
||
73 | gpios = <&stp 9 GPIO_ACTIVE_LOW>; |
||
74 | }; |
||
75 | phone2 { |
||
76 | label = "p2601hnfx:orange:phone"; |
||
77 | gpios = <&stp 8 GPIO_ACTIVE_LOW>; |
||
78 | }; |
||
79 | wifi: wifi { |
||
80 | label = "p2601hnfx:green:wireless"; |
||
81 | gpios = <&stp 15 GPIO_ACTIVE_LOW>; |
||
82 | }; |
||
83 | wifi2 { |
||
84 | label = "p2601hnfx:orange:wireless"; |
||
85 | gpios = <&stp 10 GPIO_ACTIVE_LOW>; |
||
86 | }; |
||
87 | }; |
||
88 | |||
89 | gpio_export { |
||
90 | compatible = "gpio-export"; |
||
91 | #size-cells = <0>; |
||
92 | |||
93 | switch { |
||
94 | gpio-export,name = "switch"; |
||
95 | gpio-export,output = <1>; |
||
96 | gpios = <&gpio 50 GPIO_ACTIVE_HIGH>; |
||
97 | }; |
||
98 | }; |
||
99 | }; |
||
100 | |||
101 | &gpio { |
||
102 | pinctrl-names = "default"; |
||
103 | pinctrl-0 = <&state_default>; |
||
104 | |||
105 | state_default: pinmux { |
||
106 | stp { |
||
107 | lantiq,groups = "stp"; |
||
108 | lantiq,function = "stp"; |
||
109 | lantiq,pull = <2>; |
||
110 | lantiq,open-drain = <0>; |
||
111 | lantiq,output = <1>; |
||
112 | }; |
||
113 | exin { |
||
114 | lantiq,groups = "exin1"; |
||
115 | lantiq,function = "exin"; |
||
116 | }; |
||
117 | pci { |
||
118 | lantiq,groups = "gnt1"; |
||
119 | lantiq,function = "pci"; |
||
120 | }; |
||
121 | conf_out { |
||
122 | lantiq,pins = "io4", "io5", "io6"; |
||
123 | lantiq,open-drain; |
||
124 | lantiq,pull = <0>; |
||
125 | }; |
||
126 | mdio { |
||
127 | lantiq,groups = "mdio"; |
||
128 | lantiq,function = "mdio"; |
||
129 | }; |
||
130 | }; |
||
131 | |||
132 | usb_vbus: regulator-usb-vbus { |
||
133 | compatible = "regulator-fixed"; |
||
134 | |||
135 | regulator-name = "USB_VBUS"; |
||
136 | |||
137 | regulator-min-microvolt = <5000000>; |
||
138 | regulator-max-microvolt = <5000000>; |
||
139 | |||
140 | gpio = <&gpio 9 GPIO_ACTIVE_HIGH>; |
||
141 | enable-active-high; |
||
142 | }; |
||
143 | }; |
||
144 | |||
145 | &gsw { |
||
146 | phy-mode = "rmii"; |
||
147 | }; |
||
148 | |||
149 | &localbus { |
||
150 | nor@0 { |
||
151 | compatible = "lantiq,nor"; |
||
152 | bank-width = <2>; |
||
153 | reg = <0 0x0 0x2000000>; |
||
154 | #address-cells = <1>; |
||
155 | #size-cells = <1>; |
||
156 | |||
157 | partitions { |
||
158 | compatible = "fixed-partitions"; |
||
159 | #address-cells = <1>; |
||
160 | #size-cells = <1>; |
||
161 | |||
162 | partition@0 { |
||
163 | label = "uboot"; |
||
164 | reg = <0x00000 0x40000>; |
||
165 | read-only; |
||
166 | }; |
||
167 | |||
168 | partition@40000 { |
||
169 | label = "uboot_env"; |
||
170 | reg = <0x40000 0x20000>; |
||
171 | read-only; |
||
172 | }; |
||
173 | |||
174 | partition@60000 { |
||
175 | label = "firmware"; |
||
176 | reg = <0x60000 0xfa0000>; |
||
177 | }; |
||
178 | }; |
||
179 | }; |
||
180 | }; |
||
181 | |||
182 | &stp { |
||
183 | lantiq,shadow = <0xfff>; |
||
184 | lantiq,groups = <0x3>; |
||
185 | }; |
||
186 | |||
187 | &usb_phy0 { |
||
188 | status = "okay"; |
||
3 | office | 189 | phy-supply = <&usb_vbus>; |
1 | office | 190 | }; |
191 | |||
192 | &usb0 { |
||
193 | status = "okay"; |
||
194 | }; |