lantiq: add 3.18 support
[openwrt/svn-archive/archive.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 wmac@10180000 {
68 ralink,mtd-eeprom = <&factory 0>;
69 };
70
71 pinctrl {
72 state_default: pinctrl0 {
73 ephy {
74 ralink,group = "ephy";
75 ralink,function = "ephy";
76 };
77 default {
78 ralink,group = "i2c", "uartf", "spi refclk", "wled";
79 ralink,function = "gpio";
80 };
81 };
82 };
83
84 gpio-leds {
85 compatible = "gpio-leds";
86 sys {
87 label = "wr8305rt:sys";
88 gpios = <&gpio1 14 1>;
89 };
90 lan {
91 label = "wr8305rt:usb";
92 gpios = <&gpio1 15 1>;
93 };
94 wifi {
95 label = "wr8305rt:wifi";
96 gpios = <&gpio3 0 1>;
97 };
98 };
99
100 gpio-keys-polled {
101 compatible = "gpio-keys-polled";
102 #address-cells = <1>;
103 #size-cells = <0>;
104 poll-interval = <20>;
105 reset {
106 label = "reset";
107 gpios = <&gpio0 1 1>;
108 linux,code = <0x198>;
109 };
110 };
111 };
112