ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / M3.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6 compatible = "M3", "ralink,rt5350-soc";
7 model = "Poray M3";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 status {
13 label = "m3:blue:status";
14 gpios = <&gpio0 9 1>;
15 };
16 };
17
18 gpio-keys-polled {
19 compatible = "gpio-keys-polled";
20 #address-cells = <1>;
21 #size-cells = <0>;
22 poll-interval = <20>;
23
24 reset {
25 label = "reset";
26 gpios = <&gpio0 10 1>;
27 linux,code = <0x198>;
28 };
29
30 mode {
31 label = "mode";
32 gpios = <&gpio0 17 1>;
33 linux,code = <0x100>;
34 linux,input-type = <5>;
35 };
36 };
37 };
38
39 &spi0 {
40 status = "okay";
41
42 m25p80@0 {
43 #address-cells = <1>;
44 #size-cells = <1>;
45 compatible = "jedec,spi-nor";
46 reg = <0>;
47 linux,modalias = "m25p80", "w25q32";
48 spi-max-frequency = <10000000>;
49
50 partition@0 {
51 label = "u-boot";
52 reg = <0x0 0x30000>;
53 read-only;
54 };
55
56 partition@30000 {
57 label = "u-boot-env";
58 reg = <0x30000 0x10000>;
59 read-only;
60 };
61
62 factory: partition@40000 {
63 label = "factory";
64 reg = <0x40000 0x10000>;
65 read-only;
66 };
67
68 partition@50000 {
69 label = "firmware";
70 reg = <0x50000 0x3b0000>;
71 };
72 };
73 };
74
75 &pinctrl {
76 state_default: pinctrl0 {
77 gpio {
78 ralink,group = "i2c", "jtag", "uartf";
79 ralink,function = "gpio";
80 };
81 };
82 };
83
84 &ethernet {
85 mtd-mac-address = <&factory 0x4>;
86 };
87
88 &esw {
89 mediatek,portmap = <0x2f>;
90 mediatek,led_polarity = <1>;
91 };
92
93 &wmac {
94 ralink,mtd-eeprom = <&factory 0>;
95 ralink,led-polarity = <1>;
96 };
97
98 &ehci {
99 status = "okay";
100 };
101
102 &ohci {
103 status = "okay";
104 };