mediatek: bpi-r4: dts: move common parts to dtsi file
[openwrt/staging/nbd.git] / target / linux / mediatek / files-6.6 / arch / arm64 / boot / dts / mediatek / mt7988a-bananapi-bpi-r4.dts
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 #include "mt7988a-bananapi-bpi-r4.dtsi"
8
9 / {
10 model = "Bananapi BPI-R4";
11 compatible = "bananapi,bpi-r4",
12 "mediatek,mt7988a";
13
14 /* SFP2 cage (LAN) */
15 sfp2: sfp2 {
16 compatible = "sff,sfp";
17 i2c-bus = <&i2c_sfp2>;
18 los-gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
19 mod-def0-gpios = <&pio 83 GPIO_ACTIVE_LOW>;
20 tx-disable-gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
21 tx-fault-gpios = <&pio 1 GPIO_ACTIVE_HIGH>;
22 rate-select0-gpios = <&pio 3 GPIO_ACTIVE_LOW>;
23 maximum-power-milliwatt = <3000>;
24 };
25 };
26
27 &gmac1 {
28 sfp = <&sfp2>;
29 managed = "in-band-status";
30 phy-mode = "usxgmii";
31 status = "okay";
32 };
33
34 &pca9545 {
35 i2c_sfp2: i2c@2 {
36 #address-cells = <1>;
37 #size-cells = <0>;
38 reg = <2>;
39 };
40 };