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