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