ramips: specify "firmware" partition format
[oweals/openwrt.git] / target / linux / ramips / dts / WN-GX300GR.dts
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         gpio-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         gpio-keys-polled {
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                 m25p,chunked-io = <32>;
82
83                 partitions {
84                         compatible = "fixed-partitions";
85                         #address-cells = <1>;
86                         #size-cells = <1>;
87
88                         partition@0 {
89                                 label = "Bootloader";
90                                 reg = <0x0 0x30000>;
91                                 read-only;
92                         };
93
94                         partition@30000 {
95                                 label = "Config";
96                                 reg = <0x30000 0x10000>;
97                                 read-only;
98                         };
99
100                         Factory: partition@40000 {
101                                 label = "Factory";
102                                 reg = <0x40000 0x10000>;
103                                 read-only;
104                         };
105
106                         partition@50000 {
107                                 label = "iNIC_rf";
108                                 reg = <0x50000 0x10000>;
109                                 read-only;
110                         };
111
112                         partition@60000 {
113                                 compatible = "denx,uimage";
114                                 label = "firmware";
115                                 reg = <0x60000 0x770000>;
116                         };
117
118                         partition@7d0000 {
119                                 label = "Key";
120                                 reg = <0x7d0000 0x10000>;
121                                 read-only;
122                         };
123
124                         partition@7e0000 {
125                                 label = "backup";
126                                 reg = <0x7e0000 0x10000>;
127                                 read-only;
128                         };
129
130                         partition@7f0000 {
131                                 label = "storage";
132                                 reg = <0x7f0000 0x10000>;
133                                 read-only;
134                         };
135                 };
136         };
137 };
138
139 &ethernet {
140         mtd-mac-address = <&Factory 0x4>;
141 };
142
143 &pinctrl {
144         state_default: pinctrl0 {
145                 gpio {
146                         ralink,group = "uart2", "uart3", "jtag";
147                         ralink,function = "gpio";
148                 };
149         };
150 };
151
152 &pcie {
153         status = "okay";
154 };
155
156 &pcie0 {
157         mt76@0,0 {
158                 reg = <0x0000 0 0 0 0>;
159                 mediatek,mtd-eeprom = <&Factory 0x0>;
160         };
161 };
162
163 &xhci {
164         status = "disabled";
165 };