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