OpenWrt – Blame information for rev 1

Subversion Repositories:
Rev:
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 aliases {
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_green;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_green;
19 };
20  
21 chosen {
22 bootargs = "console=ttyS0,57600";
23 };
24  
25 leds {
26 compatible = "gpio-leds";
27  
28 led_power_green: power_g {
29 label = "ex3700:green:power";
30 gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
31 default-state = "on";
32 };
33  
34 power_a {
35 label = "ex3700:amber:power";
36 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
37 };
38  
39 router_g {
40 label = "ex3700:green:router";
41 gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
42 };
43  
44 router_r {
45 label = "ex3700:red:router";
46 gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
47 };
48  
49 device_g {
50 label = "ex3700:green:device";
51 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
52 };
53  
54 device_r {
55 label = "ex3700:red:device";
56 gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
57 };
58  
59 wps {
60 label = "ex3700:green:wps";
61 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
62 };
63 };
64  
65 keys {
66 compatible = "gpio-keys-polled";
67 poll-interval = <20>;
68  
69 reset {
70 label = "reset";
71 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_RESTART>;
73 };
74  
75 wps {
76 label = "wps";
77 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_WPS_BUTTON>;
79 };
80 };
81 };
82  
83 &gpio0 {
84 status = "okay";
85 };
86  
87 &gpio2 {
88 status = "okay";
89 };
90  
91 &spi0 {
92 status = "okay";
93  
94 m25p80@0 {
95 compatible = "jedec,spi-nor";
96 reg = <0>;
97 spi-max-frequency = <10000000>;
98  
99 partitions {
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
102 #size-cells = <1>;
103  
104 partition@0 {
105 label = "u-boot";
106 reg = <0x0 0x30000>;
107 read-only;
108 };
109  
110 partition@30000 {
111 label = "config";
112 reg = <0x30000 0x10000>;
113 read-only;
114 };
115  
116 factory: partition@40000 {
117 label = "factory";
118 reg = <0x40000 0x10000>;
119 read-only;
120 };
121  
122 partition@50000 {
123 compatible = "denx,uimage";
124 label = "firmware";
125 reg = <0x50000 0x790000>;
126 };
127  
128 partition@7e0000 {
129 label = "board_data";
130 reg = <0x7e0000 0x10000>;
131 read-only;
132 };
133  
134 partition@7f0000 {
135 label = "nvram";
136 reg = <0x7f0000 0x10000>;
137 read-only;
138 };
139 };
140 };
141 };
142  
143 &pcie {
144 status = "okay";
145 };
146  
147 &pcie0 {
148 mt76@0,0 {
149 reg = <0x0000 0 0 0 0 >;
150 mediatek,mtd-eeprom = <&factory 0x8000>;
151 ieee80211-freq-limit = <5000000 6000000>;
152 };
153 };
154  
155 &ethernet {
156 mtd-mac-address = <&factory 0x28>;
157 };
158  
159 &wmac {
160 ralink,mtd-eeprom = <&factory 0x0>;
161 };
162  
163 &pinctrl {
164 state_default: pinctrl0 {
165 default {
166 ralink,group = "i2c", "rgmii2", "spi refclk";
167 ralink,function = "gpio";
168 };
169 };
170 };