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 device_type = "memory";
25 reg = <0x0 0x8000000>;
29 pinctrl-names = "default";
30 pinctrl-0 = <&pinmux_disable_sys_led>;
31 compatible = "gpio-leds";
34 // GPIO 0 seems to provide power to the leds
35 label = "green:power";
36 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys-polled";
44 /* is this pin 30 on the external RTL8231 (&gpio1)? */
47 gpios = <&gpio0 94 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
57 compatible = "jedec,spi-nor";
59 spi-max-frequency = <10000000>;
62 compatible = "fixed-partitions";
68 reg = <0x00000000 0x80000>;
73 reg = <0x00080000 0x40000>;
77 label = "u-boot-env2";
78 reg = <0x000c0000 0x40000>;
82 compatible = "denx,uimage";
83 reg = <0x00100000 0xd80000>;
87 reg = <0x00e80000 0x180000>;
91 reg = <0x01000000 0x40000>;
95 reg = <0x01040000 0xc00000>;
99 reg = <0x01c40000 0x3c0000>;
111 compatible = "realtek,rtl838x-mdio";
112 regmap = <ðernet0>;
113 #address-cells = <1>;
131 #address-cells = <1>;
134 SWITCH_PORT(8, 1, internal)
135 SWITCH_PORT(9, 2, internal)
136 SWITCH_PORT(10, 3, internal)
137 SWITCH_PORT(11, 4, internal)
138 SWITCH_PORT(12, 5, internal)
139 SWITCH_PORT(13, 6, internal)
140 SWITCH_PORT(14, 7, internal)
141 SWITCH_PORT(15, 8, internal)
142 SWITCH_SFP_PORT(24, 9, rgmii-id)
143 SWITCH_SFP_PORT(26, 10, rgmii-id)
146 ethernet = <ðernet0>;
148 phy-mode = "internal";