ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / AWM002.dtsi
1 #include "rt5350.dtsi"
2
3 / {
4 compatible = "AWM002", "ralink,rt5350-soc";
5 model = "AsiaRF AWM002";
6
7 gpio-leds {
8 compatible = "gpio-leds";
9
10 ld1 {
11 label = "awm002:green:ld1";
12 gpios = <&gpio0 0 1>;
13 };
14
15 ld2 {
16 label = "awm002:green:ld2";
17 gpios = <&gpio0 1 1>;
18 };
19 };
20 };
21
22 &spi0 {
23 status = "okay";
24
25 m25p80: m25p80@0 {
26 #address-cells = <1>;
27 #size-cells = <1>;
28 reg = <0>;
29 compatible = "jedec,spi-nor";
30 spi-max-frequency = <10000000>;
31
32 partition@0 {
33 label = "u-boot";
34 reg = <0x0 0x30000>;
35 read-only;
36 };
37
38 partition@30000 {
39 label = "u-boot-env";
40 reg = <0x30000 0x10000>;
41 read-only;
42 };
43
44 factory: partition@40000 {
45 label = "factory";
46 reg = <0x40000 0x10000>;
47 read-only;
48 };
49
50 partition@50000 {
51 label = "firmware";
52 reg = <0x50000 0x1fb0000>;
53 };
54 };
55 };
56
57 &pinctrl {
58 state_default {
59 gpio {
60 ralink,group = "i2c", "jtag";
61 ralink,function = "gpio";
62 };
63 };
64 };
65
66 &esw {
67 mediatek,portmap = <0x3f>;
68 };
69
70 &ehci {
71 status = "okay";
72 };
73
74 &ohci {
75 status = "okay";
76 };