OpenWrt – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /dts-v1/;
2  
3 #include "mt7621.dtsi"
4  
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7  
8 / {
9 compatible = "iodata,wn-gx300gr", "mediatek,mt7621-soc";
10 model = "I-O DATA WN-GX300GR";
11  
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18  
19 memory@0 {
20 device_type = "memory";
21 reg = <0x0 0x4000000>;
22 };
23  
24 chosen {
25 bootargs = "console=ttyS0,115200";
26 };
27  
28 leds {
29 compatible = "gpio-leds";
30  
31 led_power: power {
32 label = "wn-gx300gr:green:power";
33 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
34 };
35  
36 wps {
37 label = "wn-gx300gr:green:wps";
38 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
39 };
40 };
41  
42 keys {
43 compatible = "gpio-keys-polled";
44 poll-interval = <20>;
45  
46 reset {
47 label = "reset";
48 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 };
51  
52 wps {
53 label = "wps";
54 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
56 };
57  
58 auto {
59 label = "auto";
60 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
61 linux,code = <BTN_0>;
62 linux,input-type = <EV_SW>;
63 };
64  
65 custom {
66 label = "custom";
67 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
68 linux,code = <BTN_0>;
69 linux,input-type = <EV_SW>;
70 };
71 };
72 };
73  
74 &spi0 {
75 status = "okay";
76  
77 m25p80@0 {
78 compatible = "jedec,spi-nor";
79 reg = <0>;
80 spi-max-frequency = <10000000>;
81  
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86  
87 partition@0 {
88 label = "Bootloader";
89 reg = <0x0 0x30000>;
90 read-only;
91 };
92  
93 partition@30000 {
94 label = "Config";
95 reg = <0x30000 0x10000>;
96 read-only;
97 };
98  
99 Factory: partition@40000 {
100 label = "Factory";
101 reg = <0x40000 0x10000>;
102 read-only;
103 };
104  
105 partition@50000 {
106 label = "iNIC_rf";
107 reg = <0x50000 0x10000>;
108 read-only;
109 };
110  
111 partition@60000 {
112 compatible = "denx,uimage";
113 label = "firmware";
114 reg = <0x60000 0x770000>;
115 };
116  
117 partition@7d0000 {
118 label = "Key";
119 reg = <0x7d0000 0x10000>;
120 read-only;
121 };
122  
123 partition@7e0000 {
124 label = "backup";
125 reg = <0x7e0000 0x10000>;
126 read-only;
127 };
128  
129 partition@7f0000 {
130 label = "storage";
131 reg = <0x7f0000 0x10000>;
132 read-only;
133 };
134 };
135 };
136 };
137  
138 &ethernet {
139 mtd-mac-address = <&Factory 0x4>;
140 };
141  
142 &pinctrl {
143 state_default: pinctrl0 {
144 gpio {
145 ralink,group = "uart2", "uart3", "jtag";
146 ralink,function = "gpio";
147 };
148 };
149 };
150  
151 &pcie {
152 status = "okay";
153 };
154  
155 &pcie0 {
156 mt76@0,0 {
157 reg = <0x0000 0 0 0 0>;
158 mediatek,mtd-eeprom = <&Factory 0x0>;
159 };
160 };
161  
162 &xhci {
163 status = "disabled";
164 };