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