ramips: add support for MeiG SLT866 4G CPE
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3352_zyxel_nbg-419n-v2.dts
1 #include "rt3352.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc";
8 model = "ZyXEL NBG-419N v2";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_power: power {
21 label = "green:power";
22 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
23 };
24
25 wps {
26 label = "green:wps";
27 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
28 };
29
30 usb {
31 label = "green:usb";
32 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&ohci_port1>, <&ehci_port1>;
34 linux,default-trigger = "usbport";
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys-polled";
40 poll-interval = <20>;
41 reset {
42 label = "reset";
43 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 };
46 wps {
47 label = "wps";
48 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_WPS_BUTTON>;
50 };
51 rfkill {
52 label = "rfkill";
53 linux,input-type = <EV_SW>;
54 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
55 linux,code = <KEY_RFKILL>;
56 };
57 };
58 };
59
60 &spi0 {
61 status = "okay";
62
63 flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <10000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x0 0x30000>;
76 read-only;
77 };
78
79 partition@30000 {
80 label = "u-boot-env";
81 reg = <0x30000 0x10000>;
82 read-only;
83 };
84
85 factory: partition@40000 {
86 compatible = "nvmem-cells";
87 label = "factory";
88 reg = <0x40000 0x10000>;
89 #address-cells = <1>;
90 #size-cells = <1>;
91 read-only;
92
93 eeprom_factory_0: eeprom@0 {
94 reg = <0x0 0x200>;
95 };
96
97 macaddr_factory_28: macaddr@28 {
98 reg = <0x28 0x6>;
99 };
100 };
101
102 partition@50000 {
103 compatible = "denx,uimage";
104 label = "firmware";
105 reg = <0x50000 0x7b0000>;
106 };
107 };
108 };
109 };
110
111 &state_default {
112 gpio {
113 groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
114 function = "gpio";
115 };
116 };
117
118 &ethernet {
119 nvmem-cells = <&macaddr_factory_28>;
120 nvmem-cell-names = "mac-address";
121 };
122
123 &esw {
124 mediatek,portmap = <0x2f>;
125 };
126
127 &wmac {
128 nvmem-cells = <&eeprom_factory_0>;
129 nvmem-cell-names = "eeprom";
130 };
131
132 &ehci {
133 status = "okay";
134 };
135
136 &ohci {
137 status = "okay";
138 };