mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
arm64: dts: mediatek: mt7988a-bpi-r4: add sfp cages and link to gmac
Add SFP cages to Bananapi-R4 board. The 2.5g phy variant only contains the wan-SFP, so add this to common dtsi and the lan-sfp only to the dual-SFP variant. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20250709111147.11843-13-linux@fw-web.de Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
parent
0333aa8fa2
commit
c1347c688b
|
|
@ -9,3 +9,14 @@ / {
|
|||
model = "Banana Pi BPI-R4 (1x SFP+, 1x 2.5GbE)";
|
||||
chassis-type = "embedded";
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
phy = <&int_2p5g_phy>;
|
||||
phy-mode = "internal";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&int_2p5g_phy {
|
||||
pinctrl-0 = <&i2p5gbe_led0_pins>;
|
||||
pinctrl-names = "i2p5gbe-led";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -8,6 +8,25 @@ / {
|
|||
compatible = "bananapi,bpi-r4", "mediatek,mt7988a";
|
||||
model = "Banana Pi BPI-R4 (2x SFP+)";
|
||||
chassis-type = "embedded";
|
||||
|
||||
/* SFP2 cage (LAN) */
|
||||
sfp2: sfp2 {
|
||||
compatible = "sff,sfp";
|
||||
i2c-bus = <&i2c_sfp2>;
|
||||
maximum-power-milliwatt = <3000>;
|
||||
|
||||
los-gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
|
||||
mod-def0-gpios = <&pio 83 GPIO_ACTIVE_LOW>;
|
||||
rate-select0-gpios = <&pio 3 GPIO_ACTIVE_LOW>;
|
||||
tx-disable-gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
|
||||
tx-fault-gpios = <&pio 1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
managed = "in-band-status";
|
||||
phy-mode = "usxgmii";
|
||||
sfp = <&sfp2>;
|
||||
};
|
||||
|
||||
&pca9545 {
|
||||
|
|
|
|||
|
|
@ -64,6 +64,19 @@ reg_3p3v: regulator-3p3v {
|
|||
regulator-boot-on;
|
||||
regulator-always-on;
|
||||
};
|
||||
|
||||
/* SFP1 cage (WAN) */
|
||||
sfp1: sfp1 {
|
||||
compatible = "sff,sfp";
|
||||
i2c-bus = <&i2c_sfp1>;
|
||||
maximum-power-milliwatt = <3000>;
|
||||
|
||||
los-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
|
||||
mod-def0-gpios = <&pio 82 GPIO_ACTIVE_LOW>;
|
||||
rate-select0-gpios = <&pio 21 GPIO_ACTIVE_LOW>;
|
||||
tx-disable-gpios = <&pio 70 GPIO_ACTIVE_HIGH>;
|
||||
tx-fault-gpios = <&pio 69 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
&cci {
|
||||
|
|
@ -134,6 +147,12 @@ map-cpu-active-low {
|
|||
};
|
||||
};
|
||||
|
||||
&gmac2 {
|
||||
managed = "in-band-status";
|
||||
phy-mode = "usxgmii";
|
||||
sfp = <&sfp1>;
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&i2c0_pins>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user