xref: /freebsd/sys/contrib/device-tree/src/mips/mscc/ocelot_pcb120.dts (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2c66ec88fSEmmanuel Vadot/* Copyright (c) 2017 Microsemi Corporation */
3c66ec88fSEmmanuel Vadot
4c66ec88fSEmmanuel Vadot/dts-v1/;
5c66ec88fSEmmanuel Vadot
6c66ec88fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
7c66ec88fSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
8c66ec88fSEmmanuel Vadot#include <dt-bindings/phy/phy-ocelot-serdes.h>
9c66ec88fSEmmanuel Vadot#include "ocelot.dtsi"
10c66ec88fSEmmanuel Vadot
11c66ec88fSEmmanuel Vadot/ {
12c66ec88fSEmmanuel Vadot	compatible = "mscc,ocelot-pcb120", "mscc,ocelot";
13c66ec88fSEmmanuel Vadot
14c66ec88fSEmmanuel Vadot	chosen {
15c66ec88fSEmmanuel Vadot		stdout-path = "serial0:115200n8";
16c66ec88fSEmmanuel Vadot	};
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel Vadot	memory@0 {
19c66ec88fSEmmanuel Vadot		device_type = "memory";
20c66ec88fSEmmanuel Vadot		reg = <0x0 0x0e000000>;
21c66ec88fSEmmanuel Vadot	};
22c66ec88fSEmmanuel Vadot};
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot&gpio {
25*d5b0e70fSEmmanuel Vadot	phy_int_pins: phy-int-pins {
26c66ec88fSEmmanuel Vadot		pins = "GPIO_4";
27c66ec88fSEmmanuel Vadot		function = "gpio";
28c66ec88fSEmmanuel Vadot	};
29c66ec88fSEmmanuel Vadot
30*d5b0e70fSEmmanuel Vadot	phy_load_save_pins: phy-load-save-pins {
31c66ec88fSEmmanuel Vadot		pins = "GPIO_10";
32c66ec88fSEmmanuel Vadot		function = "ptp2";
33c66ec88fSEmmanuel Vadot	};
34c66ec88fSEmmanuel Vadot};
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot&mdio0 {
37c66ec88fSEmmanuel Vadot	status = "okay";
38c66ec88fSEmmanuel Vadot};
39c66ec88fSEmmanuel Vadot
40c66ec88fSEmmanuel Vadot&mdio1 {
41c66ec88fSEmmanuel Vadot	status = "okay";
42c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
43*d5b0e70fSEmmanuel Vadot	pinctrl-0 = <&miim1_pins>, <&phy_int_pins>, <&phy_load_save_pins>;
44c66ec88fSEmmanuel Vadot
45c66ec88fSEmmanuel Vadot	phy7: ethernet-phy@0 {
46c66ec88fSEmmanuel Vadot		reg = <0>;
47c66ec88fSEmmanuel Vadot		interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
48c66ec88fSEmmanuel Vadot		interrupt-parent = <&gpio>;
49c66ec88fSEmmanuel Vadot		load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
50c66ec88fSEmmanuel Vadot	};
51c66ec88fSEmmanuel Vadot	phy6: ethernet-phy@1 {
52c66ec88fSEmmanuel Vadot		reg = <1>;
53c66ec88fSEmmanuel Vadot		interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
54c66ec88fSEmmanuel Vadot		interrupt-parent = <&gpio>;
55c66ec88fSEmmanuel Vadot		load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
56c66ec88fSEmmanuel Vadot	};
57c66ec88fSEmmanuel Vadot	phy5: ethernet-phy@2 {
58c66ec88fSEmmanuel Vadot		reg = <2>;
59c66ec88fSEmmanuel Vadot		interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
60c66ec88fSEmmanuel Vadot		interrupt-parent = <&gpio>;
61c66ec88fSEmmanuel Vadot		load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
62c66ec88fSEmmanuel Vadot	};
63c66ec88fSEmmanuel Vadot	phy4: ethernet-phy@3 {
64c66ec88fSEmmanuel Vadot		reg = <3>;
65c66ec88fSEmmanuel Vadot		interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
66c66ec88fSEmmanuel Vadot		interrupt-parent = <&gpio>;
67c66ec88fSEmmanuel Vadot		load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
68c66ec88fSEmmanuel Vadot	};
69c66ec88fSEmmanuel Vadot};
70c66ec88fSEmmanuel Vadot
71c66ec88fSEmmanuel Vadot&port0 {
72354d7675SEmmanuel Vadot	status = "okay";
73c66ec88fSEmmanuel Vadot	phy-handle = <&phy0>;
74354d7675SEmmanuel Vadot	phy-mode = "internal";
75c66ec88fSEmmanuel Vadot};
76c66ec88fSEmmanuel Vadot
77c66ec88fSEmmanuel Vadot&port1 {
78354d7675SEmmanuel Vadot	status = "okay";
79c66ec88fSEmmanuel Vadot	phy-handle = <&phy1>;
80354d7675SEmmanuel Vadot	phy-mode = "internal";
81c66ec88fSEmmanuel Vadot};
82c66ec88fSEmmanuel Vadot
83c66ec88fSEmmanuel Vadot&port2 {
84354d7675SEmmanuel Vadot	status = "okay";
85c66ec88fSEmmanuel Vadot	phy-handle = <&phy2>;
86354d7675SEmmanuel Vadot	phy-mode = "internal";
87c66ec88fSEmmanuel Vadot};
88c66ec88fSEmmanuel Vadot
89c66ec88fSEmmanuel Vadot&port3 {
90354d7675SEmmanuel Vadot	status = "okay";
91c66ec88fSEmmanuel Vadot	phy-handle = <&phy3>;
92354d7675SEmmanuel Vadot	phy-mode = "internal";
93c66ec88fSEmmanuel Vadot};
94c66ec88fSEmmanuel Vadot
95c66ec88fSEmmanuel Vadot&port4 {
96354d7675SEmmanuel Vadot	status = "okay";
97c66ec88fSEmmanuel Vadot	phy-handle = <&phy7>;
98c66ec88fSEmmanuel Vadot	phy-mode = "sgmii";
99c66ec88fSEmmanuel Vadot	phys = <&serdes 4 SERDES1G(2)>;
100c66ec88fSEmmanuel Vadot};
101c66ec88fSEmmanuel Vadot
102c66ec88fSEmmanuel Vadot&port5 {
103354d7675SEmmanuel Vadot	status = "okay";
104c66ec88fSEmmanuel Vadot	phy-handle = <&phy4>;
105c66ec88fSEmmanuel Vadot	phy-mode = "sgmii";
106c66ec88fSEmmanuel Vadot	phys = <&serdes 5 SERDES1G(5)>;
107c66ec88fSEmmanuel Vadot};
108c66ec88fSEmmanuel Vadot
109c66ec88fSEmmanuel Vadot&port6 {
110354d7675SEmmanuel Vadot	status = "okay";
111c66ec88fSEmmanuel Vadot	phy-handle = <&phy6>;
112c66ec88fSEmmanuel Vadot	phy-mode = "sgmii";
113c66ec88fSEmmanuel Vadot	phys = <&serdes 6 SERDES1G(3)>;
114c66ec88fSEmmanuel Vadot};
115c66ec88fSEmmanuel Vadot
116c66ec88fSEmmanuel Vadot&port9 {
117354d7675SEmmanuel Vadot	status = "okay";
118c66ec88fSEmmanuel Vadot	phy-handle = <&phy5>;
119c66ec88fSEmmanuel Vadot	phy-mode = "sgmii";
120c66ec88fSEmmanuel Vadot	phys = <&serdes 9 SERDES1G(4)>;
121c66ec88fSEmmanuel Vadot};
122c66ec88fSEmmanuel Vadot
123c66ec88fSEmmanuel Vadot&uart0 {
124c66ec88fSEmmanuel Vadot	status = "okay";
125c66ec88fSEmmanuel Vadot};
126c66ec88fSEmmanuel Vadot
127c66ec88fSEmmanuel Vadot&uart2 {
128c66ec88fSEmmanuel Vadot	status = "okay";
129c66ec88fSEmmanuel Vadot};
130