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 device_type = "memory";
13 reg = <0x0 0x8000000>;
17 compatible = "gpio-keys";
21 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
27 compatible = "gpio-restart";
28 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
34 indirect-access-bus-id = <0>;
39 compatible = "realtek,rtl838x-mdio";
40 regmap = <ðernet0>;
60 SWITCH_PORT(8, 1, internal)
61 SWITCH_PORT(9, 2, internal)
62 SWITCH_PORT(10, 3, internal)
63 SWITCH_PORT(11, 4, internal)
64 SWITCH_PORT(12, 5, internal)
65 SWITCH_PORT(13, 6, internal)
66 SWITCH_PORT(14, 7, internal)
67 SWITCH_PORT(15, 8, internal)
70 ethernet = <ðernet0>;
72 phy-mode = "internal";