OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* This file is released into the public domain */ |
2 | |||
3 | /dts-v1/; |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | #include "mt7620a.dtsi" |
||
9 | |||
10 | / { |
||
11 | compatible = "netgear,ex3700", "ralink,mt7620a-soc"; |
||
12 | model = "Netgear EX3700/EX3800"; |
||
13 | |||
14 | chosen { |
||
15 | bootargs = "console=ttyS0,57600"; |
||
16 | }; |
||
17 | |||
3 | office | 18 | gpio-leds { |
1 | office | 19 | compatible = "gpio-leds"; |
20 | |||
3 | office | 21 | power_g { |
1 | office | 22 | label = "ex3700:green:power"; |
23 | gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; |
||
24 | default-state = "on"; |
||
25 | }; |
||
26 | |||
27 | power_a { |
||
28 | label = "ex3700:amber:power"; |
||
29 | gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; |
||
3 | office | 30 | default-state = "off"; |
1 | office | 31 | }; |
32 | |||
33 | router_g { |
||
34 | label = "ex3700:green:router"; |
||
35 | gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; |
||
36 | }; |
||
37 | |||
38 | router_r { |
||
39 | label = "ex3700:red:router"; |
||
40 | gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; |
||
41 | }; |
||
42 | |||
43 | device_g { |
||
44 | label = "ex3700:green:device"; |
||
45 | gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; |
||
46 | }; |
||
47 | |||
48 | device_r { |
||
49 | label = "ex3700:red:device"; |
||
50 | gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; |
||
51 | }; |
||
52 | |||
53 | wps { |
||
54 | label = "ex3700:green:wps"; |
||
55 | gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; |
||
56 | }; |
||
57 | }; |
||
58 | |||
3 | office | 59 | gpio-keys-polled { |
1 | office | 60 | compatible = "gpio-keys-polled"; |
3 | office | 61 | #address-cells = <1>; |
62 | #size-cells = <0>; |
||
1 | office | 63 | poll-interval = <20>; |
64 | |||
65 | reset { |
||
66 | label = "reset"; |
||
67 | gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; |
||
68 | linux,code = <KEY_RESTART>; |
||
69 | }; |
||
70 | |||
71 | wps { |
||
72 | label = "wps"; |
||
73 | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
||
74 | linux,code = <KEY_WPS_BUTTON>; |
||
75 | }; |
||
76 | }; |
||
77 | }; |
||
78 | |||
79 | &gpio0 { |
||
80 | status = "okay"; |
||
81 | }; |
||
82 | |||
83 | &gpio2 { |
||
84 | status = "okay"; |
||
85 | }; |
||
86 | |||
87 | &spi0 { |
||
88 | status = "okay"; |
||
89 | |||
90 | m25p80@0 { |
||
3 | office | 91 | #address-cells = <1>; |
92 | #size-cells = <1>; |
||
1 | office | 93 | compatible = "jedec,spi-nor"; |
94 | reg = <0>; |
||
95 | spi-max-frequency = <10000000>; |
||
96 | |||
3 | office | 97 | partition@0 { |
98 | label = "u-boot"; |
||
99 | reg = <0x0 0x30000>; |
||
100 | read-only; |
||
101 | }; |
||
1 | office | 102 | |
3 | office | 103 | partition@30000 { |
104 | label = "config"; |
||
105 | reg = <0x30000 0x10000>; |
||
106 | read-only; |
||
107 | }; |
||
1 | office | 108 | |
3 | office | 109 | factory: partition@40000 { |
110 | label = "factory"; |
||
111 | reg = <0x40000 0x10000>; |
||
112 | read-only; |
||
113 | }; |
||
1 | office | 114 | |
3 | office | 115 | partition@50000 { |
116 | label = "firmware"; |
||
117 | reg = <0x50000 0x790000>; |
||
118 | }; |
||
1 | office | 119 | |
3 | office | 120 | partition@7e0000 { |
121 | label = "board_data"; |
||
122 | reg = <0x7e0000 0x10000>; |
||
123 | read-only; |
||
124 | }; |
||
1 | office | 125 | |
3 | office | 126 | partition@7f0000 { |
127 | label = "nvram"; |
||
128 | reg = <0x7f0000 0x10000>; |
||
129 | read-only; |
||
1 | office | 130 | }; |
131 | }; |
||
132 | }; |
||
133 | |||
134 | &pcie { |
||
135 | status = "okay"; |
||
136 | |||
3 | office | 137 | pcie-bridge { |
138 | mt76@0,0 { |
||
139 | reg = <0x0000 0 0 0 0 >; |
||
140 | device_type = "pci"; |
||
141 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
142 | ieee80211-freq-limit = <5000000 6000000>; |
||
143 | }; |
||
1 | office | 144 | }; |
145 | }; |
||
146 | |||
147 | ðernet { |
||
148 | mtd-mac-address = <&factory 0x28>; |
||
149 | }; |
||
150 | |||
151 | &wmac { |
||
152 | ralink,mtd-eeprom = <&factory 0x0>; |
||
153 | }; |
||
154 | |||
155 | &pinctrl { |
||
156 | state_default: pinctrl0 { |
||
157 | default { |
||
158 | ralink,group = "i2c", "rgmii2", "spi refclk"; |
||
159 | ralink,function = "gpio"; |
||
160 | }; |
||
161 | }; |
||
162 | }; |