ramips: dts: Unify naming of gpio-led nodes
[openwrt/openwrt.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-boot = &led_status_green;
14 led-failsafe = &led_status_green;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_green;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 status {
23 label = "dir-615-h1:amber:status";
24 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
25 };
26
27 led_status_green: status2 {
28 label = "dir-615-h1:green:status";
29 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
30 default-state = "on";
31 };
32
33 wan {
34 label = "dir-615-h1:amber:wan";
35 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
36 };
37
38 wan2 {
39 label = "dir-615-h1:green:wan";
40 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
41 };
42
43 wps {
44 label = "dir-615-h1:blue:wps";
45 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
46 };
47 };
48
49 keys {
50 compatible = "gpio-keys-polled";
51 poll-interval = <20>;
52
53 reset {
54 label = "reset";
55 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
57 };
58
59 wps {
60 label = "wps";
61 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
63 };
64 };
65 };
66
67 &spi0 {
68 status = "okay";
69
70 m25p80@0 {
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <10000000>;
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x0 0x30000>;
83 read-only;
84 };
85
86 partition@30000 {
87 label = "u-boot-env";
88 reg = <0x30000 0x10000>;
89 read-only;
90 };
91
92 factory: partition@40000 {
93 label = "factory";
94 reg = <0x40000 0x10000>;
95 read-only;
96 };
97
98 partition@50000 {
99 compatible = "denx,uimage";
100 label = "firmware";
101 reg = <0x50000 0x3b0000>;
102 };
103 };
104 };
105 };
106
107 &pinctrl {
108 state_default: pinctrl0 {
109 gpio {
110 ralink,group = "i2c", "jtag", "uartf";
111 ralink,function = "gpio";
112 };
113 };
114 };
115
116 &ethernet {
117 mtd-mac-address = <&factory 0x28>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&rgmii_pins &mdio_pins>;
120 };
121
122 &esw {
123 mediatek,portmap = <0x2f>;
124 };
125
126 &wmac {
127 ralink,mtd-eeprom = <&factory 0>;
128 };