blob: a75734d88a4ff1a274e12e61925f756d8cff633f [file] [log] [blame]
Vladimir Vidb3df0b52019-01-28 17:27:58 +01001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Vladimir Vidb3df0b52019-01-28 17:27:58 +01002
3/dts-v1/;
4
Robert Marko1b5ea2a2022-05-20 13:46:32 +02005#include "armada-3720-uDPU.dtsi"
Vladimir Vidb3df0b52019-01-28 17:27:58 +01006
7/ {
8 model = "Methode uDPU Board";
Robert Marko1bbc39c2022-05-20 13:46:31 +02009 compatible = "methode,udpu", "marvell,armada3720", "marvell,armada3710";
Vladimir Vidb3df0b52019-01-28 17:27:58 +010010
Vladimir Vidb3df0b52019-01-28 17:27:58 +010011 sfp_eth0: sfp-eth0 {
12 compatible = "sff,sfp";
13 i2c-bus = <&i2c0>;
14 los-gpio = <&gpiosb 2 GPIO_ACTIVE_HIGH>;
15 mod-def0-gpio = <&gpiosb 3 GPIO_ACTIVE_LOW>;
16 tx-disable-gpio = <&gpiosb 4 GPIO_ACTIVE_HIGH>;
17 tx-fault-gpio = <&gpiosb 5 GPIO_ACTIVE_HIGH>;
Pali Rohár790dd142022-02-14 11:34:30 +010018 maximum-power-milliwatt = <3000>;
Vladimir Vidb3df0b52019-01-28 17:27:58 +010019 };
Vladimir Vidb3df0b52019-01-28 17:27:58 +010020};
21
Pali Rohár790dd142022-02-14 11:34:30 +010022&pinctrl_nb {
23 i2c1_recovery_pins: i2c1-recovery-pins {
24 groups = "i2c1";
25 function = "gpio";
26 };
Pali Rohár790dd142022-02-14 11:34:30 +010027};
28
29&i2c0 {
Vladimir Vidb3df0b52019-01-28 17:27:58 +010030 status = "okay";
Pali Rohár790dd142022-02-14 11:34:30 +010031 pinctrl-names = "default", "recovery";
32 pinctrl-0 = <&i2c1_pins>;
33 pinctrl-1 = <&i2c1_recovery_pins>;
34 /delete-property/mrvl,i2c-fast-mode;
35 scl-gpios = <&gpionb 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
36 sda-gpios = <&gpionb 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
37};
Vladimir Vidb3df0b52019-01-28 17:27:58 +010038
Pali Rohár790dd142022-02-14 11:34:30 +010039&eth0 {
40 phy-mode = "sgmii";
Pali Rohár790dd142022-02-14 11:34:30 +010041 sfp = <&sfp_eth0>;
Vladimir Vidb3df0b52019-01-28 17:27:58 +010042};