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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "tplink,t1600g-28ts-v3", "realtek,rtl838x-soc";
11 model = "TP-Link T1600G-28TS v3";
15 led-failsafe = &led_sys;
16 led-running = &led_sys;
17 led-upgrade = &led_sys;
18 label-mac-device = ðernet0;
22 stdout-path = "serial0:38400n8";
26 pinctrl-names = "default";
27 compatible = "gpio-leds";
31 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
32 color = <LED_COLOR_ID_GREEN>;
33 function = LED_FUNCTION_STATUS;
38 device_type = "memory";
39 reg = <0x0 0x10000000>;
47 compatible = "jedec,spi-nor";
49 spi-max-frequency = <10000000>;
52 compatible = "fixed-partitions";
63 reg = <0xe0000 0x20000>;
66 compatible = "denx,uimage";
68 reg = <0x100000 0x1a00000>;
72 reg = <0x1b00000 0x400000>;
76 reg = <0x1f00000 0x100000>;
80 compatible = "fixed-layout";
84 factory_macaddr: macaddr@fdff4 {
94 nvmem-cells = <&factory_macaddr>;
95 nvmem-cell-names = "mac-address";
98 compatible = "realtek,rtl838x-mdio";
99 regmap = <ðernet0>;
100 #address-cells = <1>;
134 #address-cells = <1>;
137 SWITCH_PORT(0, 1, qsgmii)
138 SWITCH_PORT(1, 2, qsgmii)
139 SWITCH_PORT(2, 3, qsgmii)
140 SWITCH_PORT(3, 4, qsgmii)
141 SWITCH_PORT(4, 5, qsgmii)
142 SWITCH_PORT(5, 6, qsgmii)
143 SWITCH_PORT(6, 7, qsgmii)
144 SWITCH_PORT(7, 8, qsgmii)
146 SWITCH_PORT(8, 9, internal)
147 SWITCH_PORT(9, 10, internal)
148 SWITCH_PORT(10, 11, internal)
149 SWITCH_PORT(11, 12, internal)
150 SWITCH_PORT(12, 13, internal)
151 SWITCH_PORT(13, 14, internal)
152 SWITCH_PORT(14, 15, internal)
153 SWITCH_PORT(15, 16, internal)
155 SWITCH_PORT(16, 17, qsgmii)
156 SWITCH_PORT(17, 18, qsgmii)
157 SWITCH_PORT(18, 19, qsgmii)
158 SWITCH_PORT(19, 20, qsgmii)
159 SWITCH_PORT(20, 21, qsgmii)
160 SWITCH_PORT(21, 22, qsgmii)
161 SWITCH_PORT(22, 23, qsgmii)
162 SWITCH_PORT(23, 24, qsgmii)
165 ethernet = <ðernet0>;
167 phy-mode = "internal";