ramips: specify "firmware" partition format
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / GL-MT300N-V2.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 /{
9 compatible = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc";
10 model = "GL-MT300N-V2";
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 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0x0 0x8000000>;
26 };
27
28 gpio-leds {
29 compatible = "gpio-leds";
30
31 led_power: power {
32 label = "gl-mt300n-v2:green:power";
33 default-state = "on";
34 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
35 };
36
37 wan {
38 label = "gl-mt300n-v2:green:wan";
39 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
40 };
41
42 wlan {
43 label = "gl-mt300n-v2:red:wlan";
44 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
45 };
46 };
47
48 gpio-keys {
49 compatible = "gpio-keys-polled";
50 poll-interval = <20>;
51
52 reset {
53 label = "reset";
54 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
56 };
57
58 BTN_0 {
59 label = "BTN_0";
60 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
61 linux,code = <BTN_0>;
62 };
63
64 BTN_1 {
65 label = "BTN_1";
66 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
67 linux,code = <BTN_1>;
68 };
69 };
70
71 gpio_export {
72 compatible = "gpio-export";
73 #size-cells = <0>;
74
75 usb {
76 gpio-export,name = "usb";
77 gpio-export,output = <1>;
78 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
79 };
80 };
81 };
82
83 &pinctrl {
84 state_default: pinctrl0 {
85 gpio {
86 ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s";
87 ralink,function = "gpio";
88 };
89 };
90 };
91
92 &ethernet {
93 mtd-mac-address = <&factory 0x4>;
94 };
95
96 &wmac {
97 status = "okay";
98 ralink,mtd-eeprom = <&factory 0x0>;
99 };
100
101 &spi0 {
102 status = "okay";
103
104 m25p80@0 {
105 compatible = "jedec,spi-nor";
106 reg = <0>;
107 spi-max-frequency = <10000000>;
108 m25p,chunked-io = <32>;
109
110 partitions {
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 partition@0 {
116 label = "u-boot";
117 reg = <0x0 0x30000>;
118 read-only;
119 };
120
121 partition@30000 {
122 label = "u-boot-env";
123 reg = <0x30000 0x10000>;
124 read-only;
125 };
126
127 factory: partition@40000 {
128 label = "factory";
129 reg = <0x40000 0x10000>;
130 read-only;
131 };
132
133 partition@50000 {
134 compatible = "denx,uimage";
135 label = "firmware";
136 reg = <0x50000 0xfb0000>;
137 };
138 };
139 };
140 };
141
142 &uart1 {
143 status = "okay";
144 };
145
146 &ehci {
147 status = "okay";
148 };
149
150 &ohci {
151 status = "okay";
152 };