ramips: dts: Unify naming of gpio-led nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / NBG-419N2.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 = "zyxel,nbg-419n-v2", "ralink,rt3352-soc";
10 model = "ZyXEL NBG-419N v2";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 palmbus@10000000 {
20 spi@b00 {
21 status = "okay";
22 m25p80@0 {
23 compatible = "jedec,spi-nor";
24 reg = <0 0>;
25 spi-max-frequency = <10000000>;
26
27 partitions {
28 compatible = "fixed-partitions";
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 partition@0 {
33 label = "u-boot";
34 reg = <0x0 0x30000>;
35 read-only;
36 };
37
38 partition@30000 {
39 label = "u-boot-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 compatible = "denx,uimage";
52 label = "firmware";
53 reg = <0x50000 0x7b0000>;
54 };
55 };
56 };
57 };
58 };
59
60 leds {
61 compatible = "gpio-leds";
62
63 led_power: power {
64 label = "nbg-419n2:green:power";
65 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
66 };
67
68 wps {
69 label = "nbg-419n2:green:wps";
70 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
71 };
72
73 usb {
74 label = "nbg-419n2:green:usb";
75 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
76 trigger-sources = <&ohci_port1>, <&ehci_port1>;
77 linux,default-trigger = "usbport";
78 };
79 };
80
81 keys {
82 compatible = "gpio-keys-polled";
83 poll-interval = <20>;
84 reset {
85 label = "reset";
86 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
88 };
89 wps {
90 label = "wps";
91 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
93 };
94 rfkill {
95 label = "rfkill";
96 linux,input-type = <EV_SW>;
97 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
98 linux,code = <KEY_RFKILL>;
99 };
100 };
101 };
102
103 &pinctrl {
104 state_default: pinctrl0 {
105 gpio {
106 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
107 ralink,function = "gpio";
108 };
109 };
110 };
111
112 &ethernet {
113 mtd-mac-address = <&factory 0x28>;
114 };
115
116 &esw {
117 mediatek,portmap = <0x2f>;
118 };
119
120 &wmac {
121 ralink,mtd-eeprom = <&factory 0>;
122 };
123
124 &ehci {
125 status = "okay";
126 };
127
128 &ohci {
129 status = "okay";
130 };