OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* |
2 | * Device Tree file for the Netgear EX2700 |
||
3 | * |
||
4 | * Copyright (C) 2016 Joseph C. Lehner <joseph.c.lehner@gmail.com> |
||
5 | * |
||
6 | * This file is licensed under the terms of the GNU General Public |
||
7 | * License version 2. This program is licensed "as is" without any |
||
8 | * warranty of any kind, whether express or implied. |
||
9 | */ |
||
10 | |||
11 | /dts-v1/; |
||
12 | |||
13 | #include "mt7620a.dtsi" |
||
14 | |||
15 | #include <dt-bindings/gpio/gpio.h> |
||
16 | #include <dt-bindings/input/input.h> |
||
17 | |||
18 | / { |
||
19 | compatible = "netgear,ex2700", "ralink,mt7620a-soc"; |
||
20 | model = "Netgear EX2700"; |
||
21 | |||
22 | aliases { |
||
23 | led-boot = &led_power_green; |
||
24 | led-failsafe = &led_power_green; |
||
25 | led-running = &led_power_green; |
||
26 | led-upgrade = &led_power_green; |
||
27 | }; |
||
28 | |||
29 | chosen { |
||
30 | bootargs = "console=ttyS0,57600"; |
||
31 | }; |
||
32 | |||
33 | leds { |
||
34 | compatible = "gpio-leds"; |
||
35 | |||
36 | led_power_green: power_g { |
||
37 | label = "ex2700:green:power"; |
||
38 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
||
39 | default-state = "on"; |
||
40 | }; |
||
41 | |||
42 | power_r { |
||
43 | label = "ex2700:red:power"; |
||
44 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
||
45 | }; |
||
46 | |||
47 | device_g { |
||
48 | label = "ex2700:green:device"; |
||
49 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
||
50 | }; |
||
51 | |||
52 | device_r { |
||
53 | label = "ex2700:red:device"; |
||
54 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
||
55 | }; |
||
56 | |||
57 | router_g { |
||
58 | label = "ex2700:green:router"; |
||
59 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
||
60 | }; |
||
61 | |||
62 | router_r { |
||
63 | label = "ex2700:red:router"; |
||
64 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
||
65 | }; |
||
66 | |||
67 | wps { |
||
68 | label = "ex2700:green:wps"; |
||
69 | gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
||
70 | }; |
||
71 | }; |
||
72 | |||
73 | keys { |
||
74 | compatible = "gpio-keys-polled"; |
||
75 | poll-interval = <20>; |
||
76 | |||
77 | reset { |
||
78 | label = "reset"; |
||
79 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
||
80 | linux,code = <KEY_RESTART>; |
||
81 | }; |
||
82 | |||
83 | wps { |
||
84 | label = "wps"; |
||
85 | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
||
86 | linux,code = <KEY_WPS_BUTTON>; |
||
87 | }; |
||
88 | }; |
||
89 | }; |
||
90 | |||
91 | &gpio0 { |
||
92 | status = "okay"; |
||
93 | }; |
||
94 | |||
95 | &gpio1 { |
||
96 | status = "okay"; |
||
97 | }; |
||
98 | |||
99 | &spi0 { |
||
100 | status = "okay"; |
||
101 | |||
102 | m25p80@0 { |
||
103 | compatible = "jedec,spi-nor"; |
||
104 | reg = <0>; |
||
105 | spi-max-frequency = <10000000>; |
||
106 | |||
107 | partitions { |
||
108 | compatible = "fixed-partitions"; |
||
109 | #address-cells = <1>; |
||
110 | #size-cells = <1>; |
||
111 | |||
112 | partition@0 { |
||
113 | label = "u-boot"; |
||
114 | reg = <0x0 0x30000>; |
||
115 | read-only; |
||
116 | }; |
||
117 | |||
118 | partition@30000 { |
||
119 | label = "u-boot-env"; |
||
120 | reg = <0x30000 0x10000>; |
||
121 | read-only; |
||
122 | }; |
||
123 | |||
124 | partition@40000 { |
||
125 | compatible = "denx,uimage"; |
||
126 | label = "firmware"; |
||
127 | reg = <0x40000 0x3b0000>; |
||
128 | }; |
||
129 | |||
130 | art: partition@3f0000 { |
||
131 | label = "art"; |
||
132 | reg = <0x3f0000 0x10000>; |
||
133 | read-only; |
||
134 | }; |
||
135 | }; |
||
136 | }; |
||
137 | }; |
||
138 | |||
139 | ðernet { |
||
140 | mtd-mac-address = <&art 0x0>; |
||
141 | }; |
||
142 | |||
143 | &wmac { |
||
144 | mtd-mac-address = <&art 0x6>; |
||
145 | ralink,mtd-eeprom = <&art 0x1000>; |
||
146 | }; |
||
147 | |||
148 | &pinctrl { |
||
149 | state_default: pinctrl0 { |
||
150 | default { |
||
151 | ralink,group = "i2c", "uartf", "spi refclk"; |
||
152 | ralink,function = "gpio"; |
||
153 | }; |
||
154 | }; |
||
155 | }; |