ixp4xx: Bump to kernel v6.6
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3352_dlink_dir-615-h1.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 = "dlink,dir-615-h1", "ralink,rt3352-soc";
9 model = "D-Link DIR-615 H1";
10
11 aliases {
12 led-boot = &led_status_green;
13 led-failsafe = &led_status_green;
14 led-running = &led_status_green;
15 led-upgrade = &led_status_green;
16 label-mac-device = &wmac;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 status {
23 function = LED_FUNCTION_STATUS;
24 color = <LED_COLOR_ID_AMBER>;
25 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
26 };
27
28 led_status_green: status2 {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_GREEN>;
31 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
32 default-state = "on";
33 };
34
35 wan {
36 function = LED_FUNCTION_WAN;
37 color = <LED_COLOR_ID_AMBER>;
38 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
39 };
40
41 wan2 {
42 function = LED_FUNCTION_WAN;
43 color = <LED_COLOR_ID_GREEN>;
44 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
45 };
46
47 wps {
48 function = LED_FUNCTION_WPS;
49 color = <LED_COLOR_ID_BLUE>;
50 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
51 };
52 };
53
54 keys {
55 compatible = "gpio-keys-polled";
56 poll-interval = <20>;
57
58 reset {
59 label = "reset";
60 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
62 };
63
64 wps {
65 label = "wps";
66 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_WPS_BUTTON>;
68 };
69 };
70 };
71
72 &spi0 {
73 status = "okay";
74
75 flash@0 {
76 compatible = "jedec,spi-nor";
77 reg = <0>;
78 spi-max-frequency = <10000000>;
79
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x0 0x30000>;
88 read-only;
89 };
90
91 partition@30000 {
92 label = "u-boot-env";
93 reg = <0x30000 0x10000>;
94 read-only;
95 };
96
97 partition@40000 {
98 label = "factory";
99 reg = <0x40000 0x10000>;
100 read-only;
101
102 nvmem-layout {
103 compatible = "fixed-layout";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 eeprom_factory_0: eeprom@0 {
108 reg = <0x0 0x200>;
109 };
110
111 macaddr_factory_28: macaddr@28 {
112 reg = <0x28 0x6>;
113 };
114 };
115 };
116
117 partition@50000 {
118 compatible = "denx,uimage";
119 label = "firmware";
120 reg = <0x50000 0x3b0000>;
121 };
122 };
123 };
124 };
125
126 &state_default {
127 gpio {
128 groups = "i2c", "jtag", "uartf";
129 function = "gpio";
130 };
131 };
132
133 &ethernet {
134 nvmem-cells = <&macaddr_factory_28>;
135 nvmem-cell-names = "mac-address";
136 pinctrl-names = "default";
137 pinctrl-0 = <&rgmii_pins &mdio_pins>;
138 };
139
140 &esw {
141 mediatek,portmap = <0x2f>;
142 };
143
144 &wmac {
145 nvmem-cells = <&eeprom_factory_0>;
146 nvmem-cell-names = "eeprom";
147 };