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