ramips: update device tree source files
[librecmc/librecmc.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         gpio-leds {
13                 compatible = "gpio-leds";
14
15                 wan {
16                         label = "rt-n14u:blue:wan";
17                         gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
18                 };
19
20                 lan {
21                         label = "rt-n14u:blue:lan";
22                         gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
23                 };
24
25                 usb {
26                         label = "rt-n14u:blue:usb";
27                         gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
28                 };
29
30                 power {
31                         label = "rt-n14u:blue:power";
32                         gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
33                 };
34
35                 air {
36                         label = "rt-n14u:blue:air";
37                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
38                 };
39         };
40
41         gpio-keys-polled {
42                 compatible = "gpio-keys-polled";
43                 #address-cells = <1>;
44                 #size-cells = <0>;
45                 poll-interval = <20>;
46
47                 reset {
48                         label = "reset";
49                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
50                         linux,code = <KEY_RESTART>;
51                 };
52
53                 wps {
54                         label = "wps";
55                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
56                         linux,code = <KEY_WPS_BUTTON>;
57                 };
58         };
59 };
60
61 &gpio2 {
62         status = "okay";
63 };
64
65 &gpio3 {
66         status = "okay";
67 };
68
69 &spi0 {
70         status = "okay";
71
72         m25p80@0 {
73                 #address-cells = <1>;
74                 #size-cells = <1>;
75                 compatible = "jedec,spi-nor";
76                 reg = <0>;
77                 spi-max-frequency = <10000000>;
78
79                 partition@0 {
80                         label = "u-boot";
81                         reg = <0x0 0x30000>;
82                         read-only;
83                 };
84
85                 partition@30000 {
86                         label = "u-boot-env";
87                         reg = <0x30000 0x10000>;
88                         read-only;
89                 };
90
91                 factory: partition@40000 {
92                         label = "factory";
93                         reg = <0x40000 0x10000>;
94                         read-only;
95                 };
96
97                 partition@50000 {
98                         label = "firmware";
99                         reg = <0x50000 0xfb0000>;
100                 };
101         };
102 };
103
104 &ehci {
105         status = "okay";
106 };
107
108 &ohci {
109         status = "okay";
110 };
111
112 &ethernet {
113         mtd-mac-address = <&factory 0x4>;
114         mediatek,portmap = "wllll";
115 };
116
117 &wmac {
118         ralink,mtd-eeprom = <&factory 0>;
119 };
120
121 &pinctrl {
122         state_default: pinctrl0 {
123                 default {
124                         ralink,group = "ephy", "wled", "i2c";
125                         ralink,function = "gpio";
126                 };
127         };
128 };