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