realtek: copy dts/files/patches/configs for 5.15
[openwrt/openwrt.git] / target / linux / realtek / dts-5.15 / rtl8380_netgear_gs110tpp-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "rtl8380_netgear_gigabit_1xx.dtsi"
4 #include <dt-bindings/leds/common.h>
5
6 / {
7 compatible = "netgear,gs110tpp-v1", "realtek,rtl838x-soc";
8 model = "Netgear GS110TPP v1";
9
10 aliases {
11 led-boot = &led_status_green;
12 led-failsafe = &led_status_red;
13 led-running = &led_status_green;
14 led-upgrade = &led_status_blue;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_status_red: led-0 {
21 label = "red:status";
22 color = <LED_COLOR_ID_RED>;
23 function = LED_FUNCTION_STATUS;
24 gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
25 };
26
27 led_status_green: led-1 {
28 label = "green:status";
29 color = <LED_COLOR_ID_GREEN>;
30 function = LED_FUNCTION_STATUS;
31 gpios = <&gpio1 32 GPIO_ACTIVE_LOW>;
32 };
33
34 led_status_blue: led-2 {
35 label = "blue:status";
36 color = <LED_COLOR_ID_BLUE>;
37 function = LED_FUNCTION_STATUS;
38 gpios = <&gpio1 34 GPIO_ACTIVE_LOW>;
39 };
40 };
41 };
42
43 &uart1 {
44 status = "okay";
45 };
46
47 &mdio {
48 EXTERNAL_PHY(16)
49 EXTERNAL_PHY(17)
50 };
51
52 &switch0 {
53 ports {
54 SWITCH_PORT(16, 9, qsgmii)
55 SWITCH_PORT(17, 10, qsgmii)
56 };
57 };