ba40a119cbdfdc3312be95871d2607924e6f14f5
[openwrt/staging/dangole.git] / target / linux / mediatek / files-5.15 / arch / arm64 / boot / dts / mediatek / mt7988a-rfb-eth1-sfp.dtso
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3 * Copyright (C) 2022 MediaTek Inc.
4 * Author: Sam.Shih <sam.shih@mediatek.com>
5 */
6
7 /dts-v1/;
8 /plugin/;
9
10 #include <dt-bindings/gpio/gpio.h>
11
12 / {
13 compatible = "mediatek,mt7988a-rfb", "mediatek,mt7988a";
14
15 fragment@0 {
16 target = <&i2c2>;
17 __overlay__ {
18 pinctrl-names = "default";
19 pinctrl-0 = <&i2c2_0_pins>;
20 status = "okay";
21 };
22 };
23
24 fragment@1 {
25 target-path = "/";
26 __overlay__ {
27 sfp_esp1: sfp@1 {
28 compatible = "sff,sfp";
29 i2c-bus = <&i2c2>;
30 mod-def0-gpios = <&pio 82 GPIO_ACTIVE_LOW>;
31 los-gpios = <&pio 81 GPIO_ACTIVE_HIGH>;
32 tx-disable-gpios = <&pio 36 GPIO_ACTIVE_HIGH>;
33 maximum-power-milliwatt = <3000>;
34 };
35 };
36 };
37
38 fragment@2 {
39 target = <&gmac1>;
40 __overlay__ {
41 phy-mode = "10gbase-r";
42 managed = "in-band-status";
43 sfp = <&sfp_esp1>;
44 status = "okay";
45 };
46 };
47 };