ramips: fix power LED DTB for wt3020
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / DIR-615-H1.dts
1 /dts-v1/;
2
3 #include "rt3352.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dir-615-h1", "ralink,rt3352-soc";
10 model = "D-Link DIR-615 H1";
11
12 aliases {
13 led-status = &led_status_green;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 status {
20 label = "dir-615-h1:amber:status";
21 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
22 default-state = "off";
23 };
24
25 led_status_green: status2 {
26 label = "dir-615-h1:green:status";
27 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
28 default-state = "on";
29 };
30
31 wan {
32 label = "dir-615-h1:amber:wan";
33 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
34 };
35
36 wan2 {
37 label = "dir-615-h1:green:wan";
38 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
39 };
40
41 wps {
42 label = "dir-615-h1:blue:wps";
43 gpios = <&gpio0 14 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 10 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
55 };
56
57 wps {
58 label = "wps";
59 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_WPS_BUTTON>;
61 };
62 };
63 };
64
65 &spi0 {
66 status = "okay";
67
68 m25p80@0 {
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <10000000>;
72
73 partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 partition@0 {
79 label = "u-boot";
80 reg = <0x0 0x30000>;
81 read-only;
82 };
83
84 partition@30000 {
85 label = "u-boot-env";
86 reg = <0x30000 0x10000>;
87 read-only;
88 };
89
90 factory: partition@40000 {
91 label = "factory";
92 reg = <0x40000 0x10000>;
93 read-only;
94 };
95
96 partition@50000 {
97 label = "firmware";
98 reg = <0x50000 0x3b0000>;
99 };
100 };
101 };
102 };
103
104 &pinctrl {
105 state_default: pinctrl0 {
106 gpio {
107 ralink,group = "i2c", "jtag", "uartf";
108 ralink,function = "gpio";
109 };
110 };
111 };
112
113 &ethernet {
114 mtd-mac-address = <&factory 0x28>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&rgmii_pins &mdio_pins>;
117 };
118
119 &esw {
120 mediatek,portmap = <0x2f>;
121 };
122
123 &wmac {
124 ralink,mtd-eeprom = <&factory 0>;
125 };