1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Common part of the device tree for the Kontron KSwitch D10 MMT
7 #include "lan966x.dtsi"
8 #include "dt-bindings/phy/phy-lan966x-serdes.h"
16 stdout-path = "serial0:115200n8";
20 compatible = "gpio-restart";
21 gpios = <&gpio 56 GPIO_ACTIVE_LOW>;
27 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
31 pinctrl-0 = <&usart0_pins>;
32 pinctrl-names = "default";
38 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_SPI>;
42 pinctrl-0 = <&fc3_b_pins>;
43 pinctrl-names = "default";
45 cs-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
50 fc3_b_pins: fc3-b-pins {
52 pins = "GPIO_51", "GPIO_52", "GPIO_53";
56 miim_c_pins: miim-c-pins {
58 pins = "GPIO_59", "GPIO_60";
62 sgpio_a_pins: sgpio-a-pins {
64 pins = "GPIO_32", "GPIO_33", "GPIO_34";
68 sgpio_b_pins: sgpio-b-pins {
74 usart0_pins: usart0-pins {
76 pins = "GPIO_25", "GPIO_26";
82 pinctrl-0 = <&miim_c_pins>;
83 pinctrl-names = "default";
84 reset-gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
85 clock-frequency = <2500000>;
88 phy4: ethernet-phy@5 {
90 coma-mode-gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
93 phy5: ethernet-phy@6 {
95 coma-mode-gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
98 phy6: ethernet-phy@7 {
100 coma-mode-gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
103 phy7: ethernet-phy@8 {
105 coma-mode-gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
122 phys = <&serdes 0 CU(0)>;
123 phy-handle = <&phy0>;
129 phys = <&serdes 1 CU(1)>;
130 phy-handle = <&phy1>;
136 phys = <&serdes 4 SERDES6G(2)>;
137 phy-handle = <&phy4>;
143 phys = <&serdes 5 SERDES6G(2)>;
144 phy-handle = <&phy5>;
150 phys = <&serdes 6 SERDES6G(2)>;
151 phy-handle = <&phy6>;
157 phys = <&serdes 7 SERDES6G(2)>;
158 phy-handle = <&phy7>;
168 pinctrl-0 = <&sgpio_a_pins>, <&sgpio_b_pins>;
169 pinctrl-names = "default";
170 bus-frequency = <8000000>;
171 /* arbitrary range because all GPIOs are in software mode */
172 microchip,sgpio-port-ranges = <0 11>;