realtek: fix dell typo
[openwrt/openwrt.git] / target / linux / realtek / dts-5.10 / rtl8380_panasonic_m8eg-pn28080k.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "rtl838x.dtsi"
4 #include "rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi"
5
6 #include <dt-bindings/interrupt-controller/irq.h>
7
8 / {
9 compatible = "panasonic,m8eg-pn28080k", "realtek,rtl8380-soc";
10 model = "Panasonic Switch-M8eG PN28080K";
11
12 aliases {
13 led-boot = &led_status_eco_green;
14 led-failsafe = &led_status_eco_amber;
15 led-running = &led_status_eco_green;
16 led-upgrade = &led_status_eco_green;
17 };
18
19 sfp0: sfp-p9 {
20 compatible = "sff,sfp";
21 i2c-bus = <&i2c0>;
22 tx-fault-gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
23 tx-disable-gpio = <&gpio1 1 GPIO_ACTIVE_HIGH>;
24 mod-def0-gpio = <&gpio1 2 GPIO_ACTIVE_LOW>;
25 los-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
26 };
27 };
28
29 &leds {
30 led_status_eco_amber: led-5 {
31 label = "amber:status_eco";
32 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
33 color = <LED_COLOR_ID_AMBER>;
34 function = LED_FUNCTION_STATUS;
35 function-enumerator = <1>;
36 };
37
38 led_status_eco_green: led-6 {
39 label = "green:status_eco";
40 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
41 color = <LED_COLOR_ID_GREEN>;
42 function = LED_FUNCTION_STATUS;
43 function-enumerator = <2>;
44 };
45 };
46
47 &i2c_gpio_0 {
48 scl-gpios = <&gpio0 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
49 sda-gpios = <&gpio0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
50 };
51
52 &i2c_gpio_1 {
53 scl-gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
54 sda-gpios = <&gpio0 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
55 };
56
57 &gpio1 {
58 interrupt-controller;
59 #interrupt-cells = <2>;
60 interrupt-parent = <&gpio0>;
61 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
62 };
63
64 &gpio2 {
65 interrupt-controller;
66 #interrupt-cells = <2>;
67 interrupt-parent = <&gpio0>;
68 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
69 };
70
71 &i2c_switch {
72 i2c0: i2c@0 {
73 #address-cells = <1>;
74 #size-cells = <0>;
75 reg = <0>;
76 };
77 };
78
79 &ethernet0 {
80 mdio-bus {
81 compatible = "realtek,rtl838x-mdio";
82 regmap = <&ethernet0>;
83 #address-cells = <1>;
84 #size-cells = <0>;
85
86 INTERNAL_PHY(8)
87 INTERNAL_PHY(9)
88 INTERNAL_PHY(10)
89 INTERNAL_PHY(11)
90 INTERNAL_PHY(12)
91 INTERNAL_PHY(13)
92 INTERNAL_PHY(14)
93 INTERNAL_PHY(15)
94
95 INTERNAL_PHY(24)
96 };
97 };
98
99 &switch0 {
100 ports {
101 #address-cells = <1>;
102 #size-cells = <0>;
103
104 SWITCH_PORT(8, 1, internal)
105 SWITCH_PORT(9, 2, internal)
106 SWITCH_PORT(10, 3, internal)
107 SWITCH_PORT(11, 4, internal)
108 SWITCH_PORT(12, 5, internal)
109 SWITCH_PORT(13, 6, internal)
110 SWITCH_PORT(14, 7, internal)
111 SWITCH_PORT(15, 8, internal)
112
113 port@24 {
114 reg = <24>;
115 label = "lan9";
116 phy-mode = "1000base-x";
117 phy-handle = <&phy24>;
118 managed = "in-band-status";
119 sfp = <&sfp0>;
120 };
121
122 port@28 {
123 ethernet = <&ethernet0>;
124 reg = <28>;
125 phy-mode = "internal";
126
127 fixed-link {
128 speed = <1000>;
129 full-duplex;
130 };
131 };
132 };
133 };