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