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