-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dts: arm64: mediatek: add MT7988A reference board device tree
Complete device tree include for the MediaTek MT7988A SoC and make use of it by adding the device tree of the MediaTek MT7988A Reference Board as well as overlays for various options regarding the connected network interfaces and storage devices present. Available options for GMAC1 (eth0): * internal 4-port 1GE switch Available options for GMAC2 (eth1): * internal 2.5G PHY * external MaxLinear 2.5G PHY * external Aquantia AQR113C PHY * SFP+ cage Available options for GMAC3 (eth2): * external MaxLinear 2.5G PHY * external Aquantia AQR113C PHY * SFP+ cage Available storage options: * eMMC * SNFI (ECC-less SPI-NAND with BCH done in SoC) * SPI-NAND (with ECC done by the flash die) * SPI-NOR * SD card Signed-off-by: Sam Shih <sam.shih@mediatek.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
- Loading branch information
Showing
15 changed files
with
1,998 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2021 MediaTek Inc. | ||
* Author: Frank Wunderlich <frank-w@public-files.de> | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "mediatek,mt7988a-rfb", "mediatek,mt7988a"; | ||
|
||
fragment@0 { | ||
target = <&mmc0>; | ||
__overlay__ { | ||
pinctrl-names = "default", "state_uhs"; | ||
pinctrl-0 = <&mmc0_pins_emmc_51>; | ||
pinctrl-1 = <&mmc0_pins_emmc_51>; | ||
bus-width = <8>; | ||
max-frequency = <200000000>; | ||
cap-mmc-highspeed; | ||
mmc-hs200-1_8v; | ||
mmc-hs400-1_8v; | ||
hs400-ds-delay = <0x12814>; | ||
vqmmc-supply = <®_1p8v>; | ||
vmmc-supply = <®_3p3v>; | ||
non-removable; | ||
no-sd; | ||
no-sdio; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2022 MediaTek Inc. | ||
* Author: Sam.Shih <sam.shih@mediatek.com> | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
compatible = "mediatek,mt7988a-rfb", "mediatek,mt7988a"; | ||
|
||
fragment@0 { | ||
target = <&mdio_bus>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
/* external Aquantia AQR113C */ | ||
phy0: ethernet-phy@0 { | ||
reg = <0>; | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
reset-gpios = <&pio 72 GPIO_ACTIVE_LOW>; | ||
reset-assert-us = <100000>; | ||
reset-deassert-us = <221000>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&gmac1>; | ||
__overlay__ { | ||
phy-mode = "usxgmii"; | ||
phy-connection-type = "usxgmii"; | ||
phy = <&phy0>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
30 changes: 30 additions & 0 deletions
30
arch/arm64/boot/dts/mediatek/mt7988a-rfb-eth1-i2p5g-phy.dtso
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2022 MediaTek Inc. | ||
* Author: Sam.Shih <sam.shih@mediatek.com> | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "mediatek,mt7988a-rfb", "mediatek,mt7988a"; | ||
|
||
fragment@0 { | ||
target = <&gmac1>; | ||
__overlay__ { | ||
phy-mode = "internal"; | ||
phy-connection-type = "internal"; | ||
phy = <&int_2p5g_phy>; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&int_2p5g_phy>; | ||
__overlay__ { | ||
pinctrl-names = "i2p5gbe-led"; | ||
pinctrl-0 = <&i2p5gbe_led0_pins>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2022 MediaTek Inc. | ||
* Author: Sam.Shih <sam.shih@mediatek.com> | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
compatible = "mediatek,mt7988a-rfb", "mediatek,mt7988a"; | ||
|
||
fragment@0 { | ||
target = <&mdio_bus>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
/* external Maxlinear GPY211C */ | ||
phy13: ethernet-phy@13 { | ||
reg = <13>; | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
phy-mode = "2500base-x"; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&gmac1>; | ||
__overlay__ { | ||
phy-mode = "2500base-x"; | ||
phy-connection-type = "2500base-x"; | ||
phy = <&phy13>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2022 MediaTek Inc. | ||
* Author: Sam.Shih <sam.shih@mediatek.com> | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
compatible = "mediatek,mt7988a-rfb", "mediatek,mt7988a"; | ||
|
||
fragment@0 { | ||
target = <&i2c2>; | ||
__overlay__ { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&i2c2_pins>; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target-path = "/"; | ||
__overlay__ { | ||
sfp_esp1: sfp@1 { | ||
compatible = "sff,sfp"; | ||
i2c-bus = <&i2c2>; | ||
mod-def0-gpios = <&pio 82 GPIO_ACTIVE_LOW>; | ||
los-gpios = <&pio 81 GPIO_ACTIVE_HIGH>; | ||
tx-disable-gpios = <&pio 36 GPIO_ACTIVE_HIGH>; | ||
maximum-power-milliwatt = <3000>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&gmac1>; | ||
__overlay__ { | ||
phy-mode = "10gbase-r"; | ||
managed = "in-band-status"; | ||
sfp = <&sfp_esp1>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2022 MediaTek Inc. | ||
* Author: Sam.Shih <sam.shih@mediatek.com> | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
compatible = "mediatek,mt7988a-rfb", "mediatek,mt7988a"; | ||
|
||
fragment@0 { | ||
target = <&mdio_bus>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
/* external Aquantia AQR113C */ | ||
phy8: ethernet-phy@8 { | ||
reg = <8>; | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
reset-gpios = <&pio 71 GPIO_ACTIVE_LOW>; | ||
reset-assert-us = <100000>; | ||
reset-deassert-us = <221000>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&gmac2>; | ||
__overlay__ { | ||
phy-mode = "usxgmii"; | ||
phy-connection-type = "usxgmii"; | ||
phy = <&phy8>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2022 MediaTek Inc. | ||
* Author: Sam.Shih <sam.shih@mediatek.com> | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
compatible = "mediatek,mt7988a-rfb", "mediatek,mt7988a"; | ||
|
||
fragment@0 { | ||
target = <&mdio_bus>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
/* external Maxlinear GPY211C */ | ||
phy5: ethernet-phy@5 { | ||
reg = <5>; | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
phy-mode = "2500base-x"; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&gmac2>; | ||
__overlay__ { | ||
phy-mode = "2500base-x"; | ||
phy-connection-type = "2500base-x"; | ||
phy = <&phy5>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2022 MediaTek Inc. | ||
* Author: Sam.Shih <sam.shih@mediatek.com> | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
compatible = "mediatek,mt7988a-rfb", "mediatek,mt7988a"; | ||
|
||
fragment@0 { | ||
target = <&i2c1>; | ||
__overlay__ { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&i2c1_pins>; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target-path = "/"; | ||
__overlay__ { | ||
sfp_esp0: sfp@0 { | ||
compatible = "sff,sfp"; | ||
i2c-bus = <&i2c1>; | ||
mod-def0-gpios = <&pio 35 GPIO_ACTIVE_LOW>; | ||
los-gpios = <&pio 33 GPIO_ACTIVE_HIGH>; | ||
tx-disable-gpios = <&pio 29 GPIO_ACTIVE_HIGH>; | ||
maximum-power-milliwatt = <3000>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&gmac2>; | ||
__overlay__ { | ||
phy-mode = "10gbase-r"; | ||
managed = "in-band-status"; | ||
sfp = <&sfp_esp0>; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2023 MediaTek Inc. | ||
* Author: Frank Wunderlich <frank-w@public-files.de> | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
|
||
/ { | ||
compatible = "mediatek,mt7988a-rfb", "mediatek,mt7988a"; | ||
|
||
fragment@1 { | ||
target-path = <&mmc0>; | ||
__overlay__ { | ||
pinctrl-names = "default", "state_uhs"; | ||
pinctrl-0 = <&mmc0_pins_sdcard>; | ||
pinctrl-1 = <&mmc0_pins_sdcard>; | ||
cd-gpios = <&pio 69 GPIO_ACTIVE_LOW>; | ||
bus-width = <4>; | ||
max-frequency = <52000000>; | ||
cap-sd-highspeed; | ||
vmmc-supply = <®_3p3v>; | ||
vqmmc-supply = <®_3p3v>; | ||
no-mmc; | ||
status = "okay"; | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.