airoha: an7581: generalize eMMC DTS and add Kite variant
Generalize the eMMC DTS to common node and add a variant with the Kite WiFi chip installed. Also rename the eMMC model name and add the Eagle name to it. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
f075c1148d
commit
0cf516751a
39
target/linux/airoha/dts/an7581-evb-emmc-eagle.dts
Normal file
39
target/linux/airoha/dts/an7581-evb-emmc-eagle.dts
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||||
|
/dts-v1/;
|
||||||
|
|
||||||
|
#include "an7581-evb-emmc.dtsi"
|
||||||
|
#include "an7581-npu-mt7996.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "Airoha AN7581 Evaluation Board (eMMC + Eagle)";
|
||||||
|
compatible = "airoha,an7581-evb", "airoha,an7581", "airoha,en7581";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
serial0 = &uart1;
|
||||||
|
};
|
||||||
|
|
||||||
|
chosen {
|
||||||
|
bootargs = "console=ttyS0,115200 earlycon";
|
||||||
|
stdout-path = "serial0:115200n8";
|
||||||
|
};
|
||||||
|
|
||||||
|
memory@80000000 {
|
||||||
|
device_type = "memory";
|
||||||
|
reg = <0x0 0x80000000 0x2 0x00000000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pcie2 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pcie2_rst_pins>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&en7581_pinctrl {
|
||||||
|
pcie2_rst_pins: pcie2-rst-pins {
|
||||||
|
conf {
|
||||||
|
pins = "pcie_reset2";
|
||||||
|
drive-open-drain = <1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
24
target/linux/airoha/dts/an7581-evb-emmc-kite.dts
Normal file
24
target/linux/airoha/dts/an7581-evb-emmc-kite.dts
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||||
|
/dts-v1/;
|
||||||
|
|
||||||
|
#include "an7581-evb-emmc.dtsi"
|
||||||
|
#include "an7581-npu-mt7992.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
model = "Airoha AN7581 Evaluation Board (eMMC + Kite)";
|
||||||
|
compatible = "airoha,an7581-evb", "airoha,an7581", "airoha,en7581";
|
||||||
|
|
||||||
|
aliases {
|
||||||
|
serial0 = &uart1;
|
||||||
|
};
|
||||||
|
|
||||||
|
chosen {
|
||||||
|
bootargs = "console=ttyS0,115200 earlycon";
|
||||||
|
stdout-path = "serial0:115200n8";
|
||||||
|
};
|
||||||
|
|
||||||
|
memory@80000000 {
|
||||||
|
device_type = "memory";
|
||||||
|
reg = <0x0 0x80000000 0x2 0x00000000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
@ -1,33 +1,9 @@
|
|||||||
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
/* Bootloader installs ATF here */
|
|
||||||
/memreserve/ 0x80000000 0x200000;
|
|
||||||
|
|
||||||
#include <dt-bindings/leds/common.h>
|
#include <dt-bindings/leds/common.h>
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include "an7581.dtsi"
|
#include "an7581.dtsi"
|
||||||
#include "an7581-npu-mt7996.dtsi"
|
|
||||||
|
|
||||||
/ {
|
|
||||||
model = "Airoha AN7581 Evaluation Board";
|
|
||||||
compatible = "airoha,an7581-evb", "airoha,an7581", "airoha,en7581";
|
|
||||||
|
|
||||||
aliases {
|
|
||||||
serial0 = &uart1;
|
|
||||||
};
|
|
||||||
|
|
||||||
chosen {
|
|
||||||
bootargs = "console=ttyS0,115200 earlycon";
|
|
||||||
stdout-path = "serial0:115200n8";
|
|
||||||
linux,usable-memory-range = <0x0 0x80200000 0x0 0x1fe00000>;
|
|
||||||
};
|
|
||||||
|
|
||||||
memory@80000000 {
|
|
||||||
device_type = "memory";
|
|
||||||
reg = <0x0 0x80000000 0x2 0x00000000>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&sound {
|
&sound {
|
||||||
audio-routing = "Headphone", "HP_L",
|
audio-routing = "Headphone", "HP_L",
|
||||||
@ -71,13 +47,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pcie2_rst_pins: pcie2-rst-pins {
|
|
||||||
conf {
|
|
||||||
pins = "pcie_reset2";
|
|
||||||
drive-open-drain = <1>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
gswp1_led0_pins: gswp1-led0-pins {
|
gswp1_led0_pins: gswp1-led0-pins {
|
||||||
mux {
|
mux {
|
||||||
function = "phy1_led0";
|
function = "phy1_led0";
|
||||||
@ -213,12 +182,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&pcie2 {
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&pcie2_rst_pins>;
|
|
||||||
status = "okay";
|
|
||||||
};
|
|
||||||
|
|
||||||
&mdio {
|
&mdio {
|
||||||
as21xx_1: ethernet-phy@1d {
|
as21xx_1: ethernet-phy@1d {
|
||||||
compatible = "ethernet-phy-ieee802.3-c45";
|
compatible = "ethernet-phy-ieee802.3-c45";
|
||||||
@ -59,16 +59,29 @@ define Device/airoha_an7581-evb
|
|||||||
endef
|
endef
|
||||||
TARGET_DEVICES += airoha_an7581-evb
|
TARGET_DEVICES += airoha_an7581-evb
|
||||||
|
|
||||||
define Device/airoha_an7581-evb-emmc
|
define Device/airoha_an7581-evb-emmc-eagle
|
||||||
DEVICE_VENDOR := Airoha
|
DEVICE_VENDOR := Airoha
|
||||||
DEVICE_MODEL := AN7581 Evaluation Board (EMMC)
|
DEVICE_MODEL := AN7581 Evaluation Board (eMMC + Eagle)
|
||||||
DEVICE_DTS := an7581-evb-emmc
|
DEVICE_DTS := an7581-evb-emmc-eagle
|
||||||
DEVICE_PACKAGES := kmod-i2c-an7581
|
DEVICE_PACKAGES := kmod-i2c-an7581 airoha-en7581-mt7996-npu-firmware \
|
||||||
|
kmod-mt7996-firmware wpad-basic-mbedtls
|
||||||
ARTIFACT/preloader.bin := an7581-preloader rfb
|
ARTIFACT/preloader.bin := an7581-preloader rfb
|
||||||
ARTIFACT/bl31-uboot.fip := an7581-bl31-uboot rfb
|
ARTIFACT/bl31-uboot.fip := an7581-bl31-uboot rfb
|
||||||
ARTIFACTS := preloader.bin bl31-uboot.fip
|
ARTIFACTS := preloader.bin bl31-uboot.fip
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += airoha_an7581-evb-emmc
|
TARGET_DEVICES += airoha_an7581-evb-emmc-eagle
|
||||||
|
|
||||||
|
define Device/airoha_an7581-evb-emmc-kite
|
||||||
|
DEVICE_VENDOR := Airoha
|
||||||
|
DEVICE_MODEL := AN7581 Evaluation Board (eMMC + Kite)
|
||||||
|
DEVICE_DTS := an7581-evb-emmc-kite
|
||||||
|
DEVICE_PACKAGES := kmod-i2c-an7581 airoha-en7581-mt7992-npu-firmware \
|
||||||
|
kmod-mt7992-firmware wpad-basic-mbedtls
|
||||||
|
ARTIFACT/preloader.bin := an7581-preloader rfb
|
||||||
|
ARTIFACT/bl31-uboot.fip := an7581-bl31-uboot rfb
|
||||||
|
ARTIFACTS := preloader.bin bl31-uboot.fip
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += airoha_an7581-evb-emmc-kite
|
||||||
|
|
||||||
define Device/gemtek_w1700k-ubi
|
define Device/gemtek_w1700k-ubi
|
||||||
DEVICE_VENDOR := Gemtek
|
DEVICE_VENDOR := Gemtek
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user