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>;
38 compatible = "realtek,rtl838x-mdio";
39 regmap = <ðernet0>;
59 SWITCH_PORT(8, 1, internal)
60 SWITCH_PORT(9, 2, internal)
61 SWITCH_PORT(10, 3, internal)
62 SWITCH_PORT(11, 4, internal)
63 SWITCH_PORT(12, 5, internal)
64 SWITCH_PORT(13, 6, internal)
65 SWITCH_PORT(14, 7, internal)
66 SWITCH_PORT(15, 8, internal)
69 ethernet = <ðernet0>;
71 phy-mode = "internal";