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