ramips: add support for WR8305RT board
[openwrt.git] / target / linux / ramips / dts / WR8305RT.dts
1 /dts-v1/;
2
3 /include/ "mt7620n.dtsi"
4
5 / {
6         compatible = "wr8305rt", "ralink,mt7620n-soc";
7         model = "ZBT WR8305RT";
8
9         palmbus@10000000 {
10                 gpio1: gpio@638 {
11                         status = "okay";
12                 };
13                 gpio3: gpio@688 {
14                         status = "okay";
15                 };
16
17                 spi@b00 {
18                         status = "okay";
19
20                         m25p80@0 {
21                                 #address-cells = <1>;
22                                 #size-cells = <1>;
23                                 compatible = "mx25l6405d";
24                                 reg = <0 0>;
25                                 linux,modalias = "m25p80", "en25q64";
26                                 spi-max-frequency = <10000000>;
27
28                                 partition@0 {
29                                         label = "u-boot";
30                                         reg = <0x0 0x30000>;
31                                         read-only;
32                                 };
33
34                                 partition@30000 {
35                                         label = "u-boot-env";
36                                         reg = <0x30000 0x10000>;
37                                         read-only;
38                                 };
39
40                                 factory: partition@40000 {
41                                         label = "factory";
42                                         reg = <0x40000 0x10000>;
43                                         read-only;
44                                 };
45
46                                 partition@50000 {
47                                         label = "firmware";
48                                         reg = <0x50000 0x7b0000>;
49                                 };
50                         };
51                 };
52         };
53
54         ehci@101c0000 {
55                 status = "okay";
56         };
57
58         ohci@101c1000 {
59                 status = "okay";
60         };
61
62         ethernet@10100000 {
63                 mtd-mac-address = <&factory 0x4>;
64                 ralink,port-map = "llllw";
65         };
66
67         pinctrl {
68                 state_default: pinctrl0 {
69                         ephy {
70                                 ralink,group = "ephy";
71                                 ralink,function = "ephy";
72                         };
73                         default {
74                                 ralink,group = "i2c", "uartf", "spi refclk", "wled";
75                                 ralink,function = "gpio";
76                         };
77                 };
78         };
79
80         gpio-leds {
81                 compatible = "gpio-leds";
82                 sys {
83                         label = "wr8305rt:sys";
84                         gpios = <&gpio1 14 1>;
85                 };
86                 lan {
87                         label = "wr8305rt:usb";
88                         gpios = <&gpio1 15 1>;
89                 };
90                 wifi {
91                         label = "wr8305rt:wifi";
92                         gpios = <&gpio3 0 1>;
93                 };
94         };
95
96         gpio-keys-polled {
97                 compatible = "gpio-keys-polled";
98                 #address-cells = <1>;
99                 #size-cells = <0>;
100                 poll-interval = <20>;
101                 reset {
102                         label = "reset";
103                         gpios = <&gpio0 1 1>;
104                         linux,code = <0x198>;
105                 };
106         };
107 };
108