ath25: switch default kernel to 5.15
[openwrt/openwrt.git] / target / linux / realtek / dts-5.10 / rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 chosen {
9 bootargs = "console=ttyS0,9600";
10 };
11
12 memory@0 {
13 device_type = "memory";
14 reg = <0x0 0x8000000>;
15 };
16
17 leds: leds {
18 compatible = "gpio-leds";
19
20 led-0 {
21 label = "amber:any_col";
22 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
23 color = <LED_COLOR_ID_AMBER>;
24 function = LED_FUNCTION_FAULT;
25 };
26
27 led-1 {
28 label = "green:giga";
29 gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
30 color = <LED_COLOR_ID_GREEN>;
31 function = LED_FUNCTION_INDICATOR;
32 function-enumerator = <1>;
33 };
34
35 led-2 {
36 label = "green:100m";
37 gpios = <&gpio2 9 GPIO_ACTIVE_LOW>;
38 color = <LED_COLOR_ID_GREEN>;
39 function = LED_FUNCTION_INDICATOR;
40 function-enumerator = <2>;
41 };
42
43 led-3 {
44 label = "green:full";
45 gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
46 color = <LED_COLOR_ID_GREEN>;
47 function = LED_FUNCTION_INDICATOR;
48 function-enumerator = <3>;
49 };
50
51 led-4 {
52 label = "green:loop_history";
53 gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
54 color = <LED_COLOR_ID_GREEN>;
55 function = LED_FUNCTION_INDICATOR;
56 function-enumerator = <4>;
57 };
58 };
59
60 keys {
61 compatible = "gpio-keys";
62
63 led_mode {
64 label = "led-mode";
65 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
66 linux,code = <BTN_0>;
67 };
68 };
69
70 gpio-restart {
71 compatible = "gpio-restart";
72 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
73 };
74
75 i2c_gpio_0: i2c-gpio-0 {
76 compatible = "i2c-gpio";
77 i2c-gpio,delay-us = <2>;
78 #address-cells = <1>;
79 #size-cells = <0>;
80
81 gpio1: gpio@20 {
82 compatible = "nxp,pca9555";
83 reg = <0x20>;
84 gpio-controller;
85 #gpio-cells = <2>;
86 };
87
88 gpio2: gpio@75 {
89 compatible = "nxp,pca9539";
90 reg = <0x75>;
91 gpio-controller;
92 #gpio-cells = <2>;
93
94 /*
95 * GPIO14 (IO1_6): Shift Register RESET (port LED)
96 * - Switch-M8eG PN28080K: 3x 74HC164
97 * - Switch-M16eG PN28160K: 4x 74HC164
98 * - Switch-M24eG PN28240K: 6x 74HC164
99 * - Switch-M48eG PN28480K: 12x 74HC164
100 */
101 portled_sregister_reset {
102 gpio-hog;
103 gpios = <14 GPIO_ACTIVE_HIGH>;
104 output-high;
105 line-name = "portled-sregister-reset";
106 };
107 };
108 };
109
110 i2c_gpio_1: i2c-gpio-1 {
111 compatible = "i2c-gpio";
112 i2c-gpio,delay-us = <2>;
113 #address-cells = <1>;
114 #size-cells = <0>;
115
116 i2c_switch: i2c-switch@70 {
117 compatible = "nxp,pca9545";
118 reset-gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
119 reg = <0x70>;
120 #address-cells = <1>;
121 #size-cells = <0>;
122 };
123 };
124 };
125
126 &spi0 {
127 status = "okay";
128
129 flash@0 {
130 compatible = "jedec,spi-nor";
131 reg = <0>;
132 spi-max-frequency = <10000000>;
133
134 partitions {
135 compatible = "fixed-partitions";
136 #address-cells = <1>;
137 #size-cells = <1>;
138
139 partition@0 {
140 label = "u-boot";
141 reg = <0x0 0x80000>;
142 read-only;
143 };
144
145 partition@80000 {
146 label = "u-boot-env";
147 reg = <0x80000 0x10000>;
148 };
149
150 partition@90000 {
151 label = "u-boot-env2";
152 reg = <0x90000 0x10000>;
153 };
154
155 partition@a0000 {
156 label = "sysinfo";
157 reg = <0xa0000 0x60000>;
158 read-only;
159 };
160
161 /*
162 * Filesystem area in stock firmware
163 * (0x100000-0x1DFFFFF)
164 *
165 * stock firmware images are required to pass
166 * the checking by the U-Boot, also for OpenWrt
167 *
168 * in OpenWrt:
169 * - 0x100000-0xDFFFFF (13M): stock images
170 * - 0xE00000-0x1DFFFFF(16M): OpenWrt image
171 */
172 partition@100000 {
173 label = "fs_reserved";
174 reg = <0x100000 0xd00000>;
175 };
176
177 partition@e00000 {
178 compatible = "denx,uimage";
179 label = "firmware";
180 reg = <0xe00000 0x1000000>;
181 };
182
183 partition@1e00000 {
184 label = "vlog_data";
185 reg = <0x1e00000 0x100000>;
186 read-only;
187 };
188
189 partition@1f00000 {
190 label = "elog_data";
191 reg = <0x1f00000 0x100000>;
192 read-only;
193 };
194 };
195 };
196 };