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>
9 compatible = "d-link,dgs-1210-10p", "realtek,rtl838x-soc";
10 model = "D-Link DGS-1210-10P";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 // GPIO 24 seems to provide power to the leds
28 label = "green:power";
29 gpios = <&gpio0 47 GPIO_ACTIVE_LOW>;
34 compatible = "gpio-keys-polled";
39 gpios = <&gpio0 94 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
47 indirect-access-bus-id = <0>;
53 compatible = "jedec,spi-nor";
55 spi-max-frequency = <10000000>;
58 compatible = "fixed-partitions";
64 reg = <0x00000000 0x80000>;
69 reg = <0x00080000 0x40000>;
73 label = "u-boot-env2";
74 reg = <0x000c0000 0x40000>;
79 compatible = "denx,uimage";
80 reg = <0x00100000 0xd80000>;
84 reg = <0x00e80000 0x180000>;
88 reg = <0x01000000 0x40000>;
92 reg = <0x01040000 0xc00000>;
96 reg = <0x01c40000 0x3c0000>;
104 compatible = "realtek,rtl838x-mdio";
105 regmap = <ðernet0>;
106 #address-cells = <1>;
124 #address-cells = <1>;
127 SWITCH_PORT(8, 1, internal)
128 SWITCH_PORT(9, 2, internal)
129 SWITCH_PORT(10, 3, internal)
130 SWITCH_PORT(11, 4, internal)
131 SWITCH_PORT(12, 5, internal)
132 SWITCH_PORT(13, 6, internal)
133 SWITCH_PORT(14, 7, internal)
134 SWITCH_PORT(15, 8, internal)
135 SWITCH_PORT(24, 9, internal)
136 SWITCH_PORT(26, 10, internal)
139 ethernet = <ðernet0>;
141 phy-mode = "internal";