1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "rtl838x.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "realtek,rtl838x-soc";
12 bootargs = "console=ttyS0,115200";
16 device_type = "memory";
17 reg = <0x0 0x8000000>;
21 compatible = "gpio-keys-polled";
26 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
33 indirect-access-bus-id = <0>;
40 compatible = "jedec,spi-nor";
42 spi-max-frequency = <50000000>;
45 compatible = "fixed-partitions";
51 reg = <0x0000000 0x00e0000>;
57 reg = <0x00e0000 0x0010000>;
62 label = "u-boot-env2";
63 reg = <0x00f0000 0x0010000>;
69 reg = <0x0100000 0x0100000>;
75 reg = <0x0200000 0x0100000>;
81 compatible = "openwrt,uimage", "denx,uimage";
82 openwrt,ih-magic = <0x4e474520>;
83 reg = <0x0300000 0x0e80000>;
88 reg = <0x1180000 0x0e80000>;
97 compatible = "realtek,rtl838x-mdio";
98 regmap = <ðernet0>;
115 #address-cells = <1>;
118 SWITCH_PORT(8, 1, internal)
119 SWITCH_PORT(9, 2, internal)
120 SWITCH_PORT(10, 3, internal)
121 SWITCH_PORT(11, 4, internal)
122 SWITCH_PORT(12, 5, internal)
123 SWITCH_PORT(13, 6, internal)
124 SWITCH_PORT(14, 7, internal)
125 SWITCH_PORT(15, 8, internal)
128 ethernet = <ðernet0>;
130 phy-mode = "internal";