1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "rtl838x.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "iodata,bsh-g24mb", "realtek,rtl838x-soc";
11 model = "I-O DATA BSH-G24MB";
14 led-boot = &led_sys_loop;
15 led-failsafe = &led_sys_loop;
16 led-upgrade = &led_sys_loop;
20 device_type = "memory";
21 reg = <0x0 0x8000000>;
25 pinctrl-names = "default";
26 pinctrl-0 = <&pinmux_disable_sys_led>;
27 compatible = "gpio-leds";
30 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
31 color = <LED_COLOR_ID_RED>;
32 function = LED_FUNCTION_STATUS;
37 compatible = "gpio-keys-polled";
42 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
48 compatible = "realtek,rtl8231-gpio";
51 indirect-access-bus-id = <0>;
59 compatible = "jedec,spi-nor";
61 spi-max-frequency = <10000000>;
64 compatible = "fixed-partitions";
76 reg = <0x80000 0x10000>;
81 label = "u-boot-env2";
82 reg = <0x90000 0x10000>;
87 reg = <0xa0000 0x100000>;
93 reg = <0x1a0000 0x100000>;
98 * use 2x OS partitions in OpenWrt
100 * 0x2A0000-0x94FFFF: RUNTIME
101 * 0x950000-0xFFFFFF: RUNTIME2 (not used in stock)
104 compatible = "openwrt,uimage", "denx,uimage";
106 reg = <0x2a0000 0xd60000>;
107 openwrt,ih-magic = <0x83800013>;
115 compatible = "realtek,rtl838x-mdio";
116 regmap = <ðernet0>;
117 #address-cells = <1>;
151 #address-cells = <1>;
154 SWITCH_PORT(0, 1, qsgmii)
155 SWITCH_PORT(1, 2, qsgmii)
156 SWITCH_PORT(2, 3, qsgmii)
157 SWITCH_PORT(3, 4, qsgmii)
158 SWITCH_PORT(4, 5, qsgmii)
159 SWITCH_PORT(5, 6, qsgmii)
160 SWITCH_PORT(6, 7, qsgmii)
161 SWITCH_PORT(7, 8, qsgmii)
163 SWITCH_PORT(8, 9, internal)
164 SWITCH_PORT(9, 10, internal)
165 SWITCH_PORT(10, 11, internal)
166 SWITCH_PORT(11, 12, internal)
167 SWITCH_PORT(12, 13, internal)
168 SWITCH_PORT(13, 14, internal)
169 SWITCH_PORT(14, 15, internal)
170 SWITCH_PORT(15, 16, internal)
172 SWITCH_PORT(16, 17, qsgmii)
173 SWITCH_PORT(17, 18, qsgmii)
174 SWITCH_PORT(18, 19, qsgmii)
175 SWITCH_PORT(19, 20, qsgmii)
176 SWITCH_PORT(20, 21, qsgmii)
177 SWITCH_PORT(21, 22, qsgmii)
178 SWITCH_PORT(22, 23, qsgmii)
179 SWITCH_PORT(23, 24, qsgmii)
182 ethernet = <ðernet0>;
184 phy-mode = "internal";