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