1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "rtl838x.dtsi"
4 #include "rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi"
6 #include <dt-bindings/interrupt-controller/irq.h>
9 compatible = "panasonic,m8eg-pn28080k", "realtek,rtl8380-soc";
10 model = "Panasonic Switch-M8eG PN28080K";
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;
20 compatible = "sff,sfp";
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>;
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>;
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>;
48 scl-gpios = <&gpio0 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
49 sda-gpios = <&gpio0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
53 scl-gpios = <&gpio0 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
54 sda-gpios = <&gpio0 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
59 #interrupt-cells = <2>;
60 interrupt-parent = <&gpio0>;
61 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
66 #interrupt-cells = <2>;
67 interrupt-parent = <&gpio0>;
68 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
81 compatible = "realtek,rtl838x-mdio";
82 regmap = <ðernet0>;
101 #address-cells = <1>;
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)
116 phy-mode = "1000base-x";
117 phy-handle = <&phy24>;
118 managed = "in-band-status";
123 ethernet = <ðernet0>;
125 phy-mode = "internal";