ramips: add support for indicating the boot state using multiple leds
[openwrt/openwrt.git] / target / linux / ramips / dts / RT-N15.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 #address-cells = <1>;
10 #size-cells = <1>;
11 compatible = "asus,rt-n15", "ralink,rt2880-soc";
12 model = "Asus RT-N15";
13
14 aliases {
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 cfi@1f000000 {
22 compatible = "cfi-flash";
23 reg = <0x1f000000 0x800000>;
24 bank-width = <2>;
25 device-width = <2>;
26
27 partitions {
28 compatible = "fixed-partitions";
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 partition@0 {
33 label = "uboot";
34 reg = <0x0 0x30000>;
35 read-only;
36 };
37
38 partition@30000 {
39 label = "uboot-env";
40 reg = <0x30000 0x10000>;
41 read-only;
42 };
43
44 factory: partition@40000 {
45 label = "factory";
46 reg = <0x40000 0x10000>;
47 read-only;
48 };
49
50 partition@50000 {
51 label = "firmware";
52 reg = <0x50000 0x3b0000>;
53 };
54 };
55 };
56
57 rtl8366s {
58 compatible = "realtek,rtl8366s";
59 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
60 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
61 };
62
63 gpio-keys-polled {
64 compatible = "gpio-keys-polled";
65 poll-interval = <100>;
66
67 wps {
68 label = "wps";
69 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
70 linux,code = <KEY_WPS_BUTTON>;
71 };
72
73 reset {
74 label = "reset";
75 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
76 linux,code = <KEY_RESTART>;
77 };
78 };
79
80 gpio-leds {
81 compatible = "gpio-leds";
82
83 led_power: power {
84 label = "rt-n15:blue:power";
85 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
86 };
87 };
88 };
89
90 &gpio0 {
91 status = "okay";
92 };
93
94 &pinctrl {
95 state_default: pinctrl0 {
96 gpio {
97 ralink,group = "i2c", "uartlite", "mdio";
98 ralink,function = "gpio";
99 };
100 };
101 };
102
103 &ethernet {
104 status = "okay";
105 mtd-mac-address = <&factory 0x4>;
106
107 port@0 {
108 mediatek,fixed-link = <1000 1 1 1>;
109 };
110
111 mdio-bus {
112 status = "okay";
113
114 phy0: ethernet-phy@0 {
115 phy-mode = "mii";
116 reg = <0>;
117 };
118 };
119 };
120
121 &wmac {
122 ralink,mtd-eeprom = <&factory 0>;
123 };