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