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