ramips: specify "firmware" partition format
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / CS-QR10.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "planex,cs-qr10", "ralink,mt7620a-soc";
10 model = "Planex CS-QR10";
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 gpio-leds {
20 compatible = "gpio-leds";
21
22 led_power: power {
23 label = "cs-qr10:red:power";
24 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 gpio-keys-polled {
29 compatible = "gpio-keys-polled";
30 poll-interval = <20>;
31
32 s1 {
33 label = "reset";
34 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37
38 s2 {
39 label = "wps";
40 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
42 };
43 };
44 };
45
46 &gpio0 {
47 status = "okay";
48 };
49
50 &gpio1 {
51 status = "okay";
52 };
53
54 &gpio2 {
55 status = "okay";
56 };
57
58 &gpio3 {
59 status = "okay";
60 };
61
62 &i2c {
63 status = "okay";
64 };
65
66 &i2s {
67 status = "okay";
68 pinctrl-names = "default";
69 pinctrl-0 = <&pcm_i2s_pins>;
70 };
71
72 &spi0 {
73 status = "okay";
74
75 m25p80@0 {
76 compatible = "jedec,spi-nor";
77 reg = <0>;
78 spi-max-frequency = <10000000>;
79
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x0 0x30000>;
88 read-only;
89 };
90
91 partition@30000 {
92 label = "u-boot-env";
93 reg = <0x30000 0x10000>;
94 read-only;
95 };
96
97 factory: partition@40000 {
98 label = "factory";
99 reg = <0x40000 0x10000>;
100 read-only;
101 };
102
103 partition@50000 {
104 compatible = "denx,uimage";
105 label = "firmware";
106 reg = <0x50000 0x7b0000>;
107 };
108 };
109 };
110 };
111
112 &pcm {
113 status = "okay";
114 };
115
116 &gdma {
117 status = "okay";
118 };
119
120 &pinctrl {
121 state_default: pinctrl0 {
122 gpio {
123 ralink,group = "spi refclk", "rgmii1";
124 ralink,function = "gpio";
125 };
126 wdt {
127 ralink,group = "wdt";
128 ralink,function = "wdt refclk";
129 };
130 };
131 };
132
133 &ethernet {
134 pinctrl-names = "default";
135 pinctrl-0 = <&ephy_pins>;
136 mtd-mac-address = <&factory 0x4>;
137 mediatek,portmap = "llllw";
138 };
139
140 &gsw {
141 ralink,port4 = "ephy";
142 };
143
144 &sdhci {
145 status = "okay";
146 };
147
148 &ehci {
149 status = "okay";
150 };
151
152 &ohci {
153 status = "okay";
154 };
155
156 &wmac {
157 ralink,mtd-eeprom = <&factory 0>;
158 };
159
160 &pcie {
161 status = "okay";
162 };