ramips: Archer C50v1: fix power led
[openwrt/openwrt.git] / target / linux / ramips / dts / NBG-419N2.dts
1 /dts-v1/;
2
3 #include "rt3352.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "NBG-419N2", "ralink,rt3352-soc";
9 model = "ZyXEL NBG-419N v2";
10
11 palmbus@10000000 {
12 spi@b00 {
13 status = "okay";
14 m25p80@0 {
15 #address-cells = <1>;
16 #size-cells = <1>;
17 compatible = "jedec,spi-nor";
18 reg = <0 0>;
19 spi-max-frequency = <10000000>;
20
21 partition@0 {
22 label = "u-boot";
23 reg = <0x0 0x30000>;
24 read-only;
25 };
26
27 partition@30000 {
28 label = "u-boot-env";
29 reg = <0x30000 0x10000>;
30 read-only;
31 };
32
33 factory: partition@40000 {
34 label = "factory";
35 reg = <0x40000 0x10000>;
36 read-only;
37 };
38
39 partition@50000 {
40 label = "firmware";
41 reg = <0x50000 0x7b0000>;
42 };
43 };
44 };
45 };
46
47 gpio-leds {
48 compatible = "gpio-leds";
49
50 power {
51 label = "nbg-419n2:green:power";
52 gpios = <&gpio0 9 1>;
53 };
54
55 wps {
56 label = "nbg-419n2:green:wps";
57 gpios = <&gpio0 14 1>;
58 };
59
60 usb {
61 label = "nbg-419n2:green:usb";
62 gpios = <&gpio0 13 1>;
63 };
64 };
65
66 gpio-keys-polled {
67 compatible = "gpio-keys-polled";
68 #address-cells = <1>;
69 #size-cells = <0>;
70 poll-interval = <20>;
71 reset {
72 label = "reset";
73 gpios = <&gpio0 10 1>;
74 linux,code = <KEY_RESTART>;
75 };
76 wps {
77 label = "wps";
78 gpios = <&gpio0 0 1>;
79 linux,code = <KEY_WPS_BUTTON>;
80 };
81 rfkill {
82 label = "rfkill";
83 linux,input-type = <EV_SW>;
84 gpios = <&gpio0 12 0>;
85 linux,code = <KEY_RFKILL>;
86 };
87 };
88
89 };
90
91 &pinctrl {
92 state_default: pinctrl0 {
93 gpio {
94 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
95 ralink,function = "gpio";
96 };
97 };
98 };
99
100 &ethernet {
101 mtd-mac-address = <&factory 0x28>;
102 };
103
104 &esw {
105 mediatek,portmap = <0x2f>;
106 };
107
108 &wmac {
109 ralink,mtd-eeprom = <&factory 0>;
110 };
111
112 &ehci {
113 status = "okay";
114 };
115
116 &ohci {
117 status = "okay";
118 };