OpenWrt – Blame information for rev 2
?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 = "zte,h201l", "lantiq,xway", "lantiq,ar9"; |
||
9 | model = "ZTE H210L"; |
||
10 | |||
11 | chosen { |
||
12 | bootargs = "console=ttyLTQ0,115200"; |
||
13 | }; |
||
14 | |||
15 | aliases { |
||
16 | led-boot = &power_green; |
||
17 | led-failsafe = &power_green; |
||
18 | led-running = &power_green; |
||
19 | led-upgrade = &power_green; |
||
20 | |||
21 | led-dsl = &dsl; |
||
22 | led-internet = &online; |
||
23 | led-usb = &led_usb; |
||
24 | led-wifi = &wifi; |
||
25 | }; |
||
26 | |||
27 | memory@0 { |
||
28 | reg = <0x0 0x2000000>; |
||
29 | }; |
||
30 | |||
31 | gpio-keys-polled { |
||
32 | compatible = "gpio-keys-polled"; |
||
33 | #address-cells = <1>; |
||
34 | #size-cells = <0>; |
||
35 | poll-interval = <100>; |
||
36 | |||
37 | reset { |
||
38 | label = "reset"; |
||
39 | gpios = <&gpio 53 GPIO_ACTIVE_LOW>; |
||
40 | linux,code = <KEY_RESTART>; |
||
41 | }; |
||
42 | wps { |
||
43 | label = "wps"; |
||
44 | gpios = <&gpio 54 GPIO_ACTIVE_LOW>; |
||
45 | linux,code = <KEY_WPS_BUTTON>; |
||
46 | }; |
||
47 | rfkill { |
||
48 | label = "rfkill"; |
||
49 | gpios = <&gpio 55 GPIO_ACTIVE_LOW>; |
||
50 | linux,code = <KEY_RFKILL>; |
||
51 | }; |
||
52 | }; |
||
53 | |||
54 | gpio-leds { |
||
55 | compatible = "gpio-leds"; |
||
56 | |||
57 | power_green: power { |
||
58 | label = "h201l:green:power"; |
||
59 | gpios = <&gpio 19 GPIO_ACTIVE_LOW>; |
||
60 | default-state = "keep"; |
||
61 | }; |
||
62 | online: online { |
||
63 | label = "h201l:green:internet"; |
||
64 | gpios = <&gpio 37 GPIO_ACTIVE_LOW>; |
||
65 | }; |
||
66 | dsl: dsl { |
||
67 | label = "h201l:green:dsl"; |
||
68 | gpios = <&gpio 4 GPIO_ACTIVE_LOW>; |
||
69 | }; |
||
70 | phone { |
||
71 | label = "h201l:green:phone"; |
||
72 | gpios = <&gpio 39 GPIO_ACTIVE_LOW>; |
||
73 | }; |
||
74 | wps { |
||
75 | label = "h201l:green:wps"; |
||
76 | gpios = <&gpio 22 GPIO_ACTIVE_LOW>; |
||
77 | }; |
||
78 | wifi: wifi { |
||
79 | label = "h201l:green:wlan"; |
||
80 | gpios = <&gpio 6 GPIO_ACTIVE_LOW>; |
||
81 | }; |
||
82 | led_usb: usb { |
||
83 | label = "h201l:green:usb"; |
||
84 | gpios = <&gpio 14 GPIO_ACTIVE_LOW>; |
||
85 | }; |
||
86 | }; |
||
87 | |||
88 | gpio_export { |
||
89 | compatible = "gpio-export"; |
||
90 | #size-cells = <0>; |
||
91 | |||
92 | switch { |
||
93 | gpio-export,name = "switch"; |
||
94 | gpio-export,output = <1>; |
||
95 | gpios = <&gpio 38 GPIO_ACTIVE_HIGH>; |
||
96 | }; |
||
97 | usb { |
||
98 | gpio-export,name = "usb"; |
||
99 | gpio-export,output = <1>; |
||
100 | gpios = <&gpio 28 GPIO_ACTIVE_HIGH>; |
||
101 | }; |
||
102 | wifi { |
||
103 | gpio-export,name = "wifi"; |
||
104 | gpio-export,output = <1>; |
||
105 | gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; |
||
106 | }; |
||
107 | }; |
||
108 | |||
109 | usb_vbus: regulator-usb-vbus { |
||
110 | compatible = "regulator-fixed"; |
||
111 | |||
112 | regulator-name = "USB_VBUS"; |
||
113 | |||
114 | regulator-min-microvolt = <5000000>; |
||
115 | regulator-max-microvolt = <5000000>; |
||
116 | |||
117 | gpio = <&gpio 36 GPIO_ACTIVE_HIGH>; |
||
118 | enable-active-high; |
||
119 | }; |
||
120 | }; |
||
121 | |||
122 | &gpio { |
||
123 | pinctrl-names = "default"; |
||
124 | pinctrl-0 = <&state_default>; |
||
125 | |||
126 | state_default: pinmux { |
||
127 | }; |
||
128 | }; |
||
129 | |||
130 | &gsw { |
||
131 | phy-mode = "rgmii"; |
||
132 | }; |
||
133 | |||
134 | &localbus { |
||
135 | nor@0 { |
||
136 | compatible = "lantiq,nor"; |
||
137 | bank-width = <2>; |
||
138 | reg = <0 0x0 0x2000000>; |
||
139 | #address-cells = <1>; |
||
140 | #size-cells = <1>; |
||
141 | |||
142 | partitions { |
||
143 | compatible = "fixed-partitions"; |
||
144 | #address-cells = <1>; |
||
145 | #size-cells = <1>; |
||
146 | |||
147 | partition@0 { |
||
148 | label = "uboot"; |
||
149 | reg = <0x00000 0x20000>; |
||
150 | read-only; |
||
151 | }; |
||
152 | |||
153 | partition@20000 { |
||
154 | label = "uboot_env"; |
||
155 | reg = <0x20000 0x10000>; |
||
156 | read-only; |
||
157 | }; |
||
158 | |||
159 | partition@30000 { |
||
160 | label = "firmware"; |
||
161 | reg = <0x30000 0x7d0000>; |
||
162 | }; |
||
163 | }; |
||
164 | }; |
||
165 | }; |
||
166 | |||
167 | &usb_phy0 { |
||
168 | status = "okay"; |
||
169 | }; |
||
170 | |||
171 | |||
172 | &usb0 { |
||
173 | status = "okay"; |
||
174 | vbus-supply = <&usb_vbus>; |
||
175 | }; |