2018-10-08 18:14:44 +08:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
|
|
/* Copyright (c) 2017 Microsemi Corporation */
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
2020-06-23 22:30:14 +08:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2018-10-08 18:14:44 +08:00
|
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
#include <dt-bindings/phy/phy-ocelot-serdes.h>
|
|
|
|
#include "ocelot.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "mscc,ocelot-pcb120", "mscc,ocelot";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
|
|
|
|
memory@0 {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x0e000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio {
|
|
|
|
phy_int_pins: phy_int_pins {
|
|
|
|
pins = "GPIO_4";
|
|
|
|
function = "gpio";
|
|
|
|
};
|
2020-06-23 22:30:14 +08:00
|
|
|
|
|
|
|
phy_load_save_pins: phy_load_save_pins {
|
|
|
|
pins = "GPIO_10";
|
|
|
|
function = "ptp2";
|
|
|
|
};
|
2018-10-08 18:14:44 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&mdio0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&mdio1 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
2020-06-23 22:30:14 +08:00
|
|
|
pinctrl-0 = <&miim1>, <&phy_int_pins>, <&phy_load_save_pins>;
|
2018-10-08 18:14:44 +08:00
|
|
|
|
|
|
|
phy7: ethernet-phy@0 {
|
|
|
|
reg = <0>;
|
|
|
|
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
interrupt-parent = <&gpio>;
|
2020-06-23 22:30:14 +08:00
|
|
|
load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
|
2018-10-08 18:14:44 +08:00
|
|
|
};
|
|
|
|
phy6: ethernet-phy@1 {
|
|
|
|
reg = <1>;
|
|
|
|
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
interrupt-parent = <&gpio>;
|
2020-06-23 22:30:14 +08:00
|
|
|
load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
|
2018-10-08 18:14:44 +08:00
|
|
|
};
|
|
|
|
phy5: ethernet-phy@2 {
|
|
|
|
reg = <2>;
|
|
|
|
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
interrupt-parent = <&gpio>;
|
2020-06-23 22:30:14 +08:00
|
|
|
load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
|
2018-10-08 18:14:44 +08:00
|
|
|
};
|
|
|
|
phy4: ethernet-phy@3 {
|
|
|
|
reg = <3>;
|
|
|
|
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
interrupt-parent = <&gpio>;
|
2020-06-23 22:30:14 +08:00
|
|
|
load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
|
2018-10-08 18:14:44 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&port0 {
|
|
|
|
phy-handle = <&phy0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&port1 {
|
|
|
|
phy-handle = <&phy1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&port2 {
|
|
|
|
phy-handle = <&phy2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&port3 {
|
|
|
|
phy-handle = <&phy3>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&port4 {
|
|
|
|
phy-handle = <&phy7>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
phys = <&serdes 4 SERDES1G(2)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&port5 {
|
|
|
|
phy-handle = <&phy4>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
phys = <&serdes 5 SERDES1G(5)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&port6 {
|
|
|
|
phy-handle = <&phy6>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
phys = <&serdes 6 SERDES1G(3)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&port9 {
|
|
|
|
phy-handle = <&phy5>;
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
phys = <&serdes 9 SERDES1G(4)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|