51fae090f414e05bb419716feb23dc025c4a34a5
[openwrt/openwrt.git] / target / linux / ramips / dts / RT-N14U.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
10 model = "Asus RT-N14U";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 wan {
20 label = "rt-n14u:blue:wan";
21 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
22 };
23
24 lan {
25 label = "rt-n14u:blue:lan";
26 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
27 };
28
29 usb {
30 label = "rt-n14u:blue:usb";
31 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
32 trigger-sources = <&ohci_port1>, <&ehci_port1>;
33 linux,default-trigger = "usbport";
34 };
35
36 led_power: power {
37 label = "rt-n14u:blue:power";
38 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
39 };
40
41 air {
42 label = "rt-n14u:blue:air";
43 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
44 };
45 };
46
47 gpio-keys-polled {
48 compatible = "gpio-keys-polled";
49 poll-interval = <20>;
50
51 reset {
52 label = "reset";
53 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
55 };
56
57 wps {
58 label = "wps";
59 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_WPS_BUTTON>;
61 };
62 };
63 };
64
65 &gpio2 {
66 status = "okay";
67 };
68
69 &gpio3 {
70 status = "okay";
71 };
72
73 &spi0 {
74 status = "okay";
75
76 m25p80@0 {
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <10000000>;
80
81 partitions {
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 partition@0 {
87 label = "u-boot";
88 reg = <0x0 0x30000>;
89 read-only;
90 };
91
92 partition@30000 {
93 label = "u-boot-env";
94 reg = <0x30000 0x10000>;
95 read-only;
96 };
97
98 factory: partition@40000 {
99 label = "factory";
100 reg = <0x40000 0x10000>;
101 read-only;
102 };
103
104 partition@50000 {
105 label = "firmware";
106 reg = <0x50000 0xfb0000>;
107 };
108 };
109 };
110 };
111
112 &ehci {
113 status = "okay";
114 };
115
116 &ohci {
117 status = "okay";
118 };
119
120 &ethernet {
121 mtd-mac-address = <&factory 0x4>;
122 mediatek,portmap = "wllll";
123 };
124
125 &wmac {
126 ralink,mtd-eeprom = <&factory 0>;
127 };
128
129 &pinctrl {
130 state_default: pinctrl0 {
131 default {
132 ralink,group = "ephy", "wled", "i2c";
133 ralink,function = "gpio";
134 };
135 };
136 };