OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "amazonse.dtsi" |
||
4 | |||
5 | #include <dt-bindings/input/input.h> |
||
6 | |||
7 | / { |
||
8 | compatible = "netgear,dgn1000b", "lantiq,xway", "lantiq,ase"; |
||
9 | model = "Netgear DGN1000B"; |
||
10 | |||
11 | chosen { |
||
12 | bootargs = "console=ttyLTQ0,115200"; |
||
13 | }; |
||
14 | |||
15 | aliases { |
||
16 | led-boot = &power; |
||
17 | led-failsafe = &power; |
||
18 | led-running = &power; |
||
19 | led-upgrade = &power; |
||
20 | |||
21 | led-dsl = &dsl; |
||
22 | led-internet = &online_green; |
||
23 | }; |
||
24 | |||
25 | memory@0 { |
||
26 | reg = <0x0 0x1000000>; |
||
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 0 GPIO_ACTIVE_LOW>; |
||
38 | linux,code = <KEY_RESTART>; |
||
39 | }; |
||
40 | rfkill { |
||
41 | label = "rfkill"; |
||
42 | gpios = <&gpio 25 GPIO_ACTIVE_LOW>; |
||
43 | linux,code = <KEY_RFKILL>; |
||
44 | }; |
||
45 | wps { |
||
46 | label = "wps"; |
||
47 | gpios = <&gpio 29 GPIO_ACTIVE_LOW>; |
||
48 | linux,code = <KEY_WPS_BUTTON>; |
||
49 | }; |
||
50 | }; |
||
51 | |||
52 | gpio-leds { |
||
53 | compatible = "gpio-leds"; |
||
54 | dsl: dsl { |
||
55 | label = "dgn1000b:green:dsl"; |
||
56 | gpios = <&gpio 1 GPIO_ACTIVE_LOW>; |
||
57 | default-state = "on"; |
||
58 | }; |
||
59 | online_green: online { |
||
60 | label = "dgn1000b:green:online"; |
||
61 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
||
62 | default-state = "on"; |
||
63 | }; |
||
64 | online2 { |
||
65 | label = "dgn1000b:red:online"; |
||
66 | gpios = <&gpio 3 GPIO_ACTIVE_LOW>; |
||
67 | default-state = "on"; |
||
68 | }; |
||
69 | wps { |
||
70 | label = "dgn1000b:green:wps"; |
||
71 | gpios = <&gpio 4 GPIO_ACTIVE_LOW>; |
||
72 | default-state = "on"; |
||
73 | }; |
||
74 | power: power { |
||
75 | label = "dgn1000b:green:power"; |
||
76 | gpios = <&gpio 13 GPIO_ACTIVE_LOW>; |
||
77 | default-state = "keep"; |
||
78 | }; |
||
79 | /* |
||
80 | power red is missing |
||
81 | */ |
||
82 | }; |
||
83 | }; |
||
84 | |||
85 | &gpio { |
||
86 | pinctrl-names = "default"; |
||
87 | pinctrl-0 = <&state_default>; |
||
88 | |||
89 | state_default: pinmux { |
||
90 | asc { |
||
91 | lantiq,groups = "asc"; |
||
92 | lantiq,function = "asc"; |
||
93 | }; |
||
94 | keys_in { |
||
95 | lantiq,pins = "io0",/* "io25", */"io29"; |
||
96 | lantiq,pull = <2>; |
||
97 | lantiq,open-drain = <1>; |
||
98 | }; |
||
99 | }; |
||
100 | pins_spi_default: pins_spi_default { |
||
101 | spi_in { |
||
102 | lantiq,groups = "spi_di"; |
||
103 | lantiq,function = "spi"; |
||
104 | }; |
||
105 | spi_out { |
||
106 | lantiq,groups = "spi_do", "spi_clk", |
||
107 | "spi_cs1"; |
||
108 | lantiq,function = "spi"; |
||
109 | lantiq,output = <1>; |
||
110 | }; |
||
111 | }; |
||
112 | }; |
||
113 | |||
114 | &gsw { |
||
115 | phy-mode = "mii"; |
||
116 | mac-address = [ 00 11 22 33 44 55 ]; |
||
117 | }; |
||
118 | |||
119 | &spi { |
||
120 | status = "okay"; |
||
121 | pinctrl-names = "default"; |
||
122 | pinctrl-0 = <&pins_spi_default>; |
||
123 | |||
124 | m25p80@1 { |
||
125 | #address-cells = <1>; |
||
126 | #size-cells = <1>; |
||
127 | compatible = "jedec,spi-nor"; |
||
128 | reg = <1 0>; |
||
129 | spi-max-frequency = <5000000>; |
||
130 | |||
131 | partitions { |
||
132 | compatible = "fixed-partitions"; |
||
133 | #address-cells = <1>; |
||
134 | #size-cells = <1>; |
||
135 | |||
136 | partition@0 { |
||
137 | reg = <0x0 0x20000>; |
||
138 | label = "SPI (RO) U-Boot Image"; |
||
139 | read-only; |
||
140 | }; |
||
141 | |||
142 | partition@20000 { |
||
143 | reg = <0x20000 0x10000>; |
||
144 | label = "ENV_MAC"; |
||
145 | read-only; |
||
146 | }; |
||
147 | |||
148 | partition@30000 { |
||
149 | reg = <0x30000 0x10000>; |
||
150 | label = "DPF"; |
||
151 | read-only; |
||
152 | }; |
||
153 | |||
154 | partition@40000 { |
||
155 | reg = <0x40000 0x10000>; |
||
156 | label = "NVRAM"; |
||
157 | read-only; |
||
158 | }; |
||
159 | |||
160 | partition@500000 { |
||
161 | reg = <0x50000 0x003a0000>; |
||
162 | label = "kernel"; |
||
163 | }; |
||
164 | }; |
||
165 | }; |
||
166 | }; |
||
167 | |||
168 | &usb_phy { |
||
169 | status = "okay"; |
||
170 | }; |
||
171 | |||
172 | &usb { |
||
173 | status = "okay"; |
||
174 | }; |