mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
u-boot: bump Amlogic to 2021.10
This commit is contained in:
@@ -22,12 +22,6 @@ PKG_NEED_UNPACK="${PROJECT_DIR}/${PROJECT}/bootloader"
|
||||
[ -n "${DEVICE}" ] && PKG_NEED_UNPACK+=" ${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/bootloader"
|
||||
|
||||
case "${PROJECT}" in
|
||||
Amlogic)
|
||||
PKG_VERSION="807482107a6d426dbcd6457d9ccf8b3ce6ca887b" # 2021.04-rc2 custodians/u-boot-amlogic-test
|
||||
PKG_SHA256="a10430d2c1a1d9e83e66bed342433ddfe4f3d6f16d9fa8b4d4c034b600baffd3"
|
||||
PKG_URL="https://github.com/chewitt/u-boot/archive/${PKG_VERSION}.tar.gz"
|
||||
PKG_PATCH_DIRS="amlogic"
|
||||
;;
|
||||
Rockchip)
|
||||
PKG_VERSION="8659d08d2b589693d121c1298484e861b7dafc4f"
|
||||
PKG_SHA256="3f9f2bbd0c28be6d7d6eb909823fee5728da023aca0ce37aef3c8f67d1179ec1"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 91f485c24fb55a7e0fcaa627fe71bb2ebd9033d5 Mon Sep 17 00:00:00 2001
|
||||
From 66b8aff5a485dd2c77974992b031d4298ddfee13 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Hewitt <christianshewitt@gmail.com>
|
||||
Date: Fri, 13 Nov 2020 02:09:36 +0000
|
||||
Subject: [PATCH 01/10] HACK: configs: meson64: prevent stdout/stderr on
|
||||
Subject: [PATCH 01/30] HACK: configs: meson64: prevent stdout/stderr on
|
||||
videoconsole
|
||||
|
||||
Several devices have CONFIG_DM_VIDEO enabled which causes stdout/stderr
|
||||
@@ -14,7 +14,7 @@ Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/configs/meson64.h b/include/configs/meson64.h
|
||||
index 52cc01f73d..54f995e6fe 100644
|
||||
index f9bb0240d2..d31314412c 100644
|
||||
--- a/include/configs/meson64.h
|
||||
+++ b/include/configs/meson64.h
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From d6bd0e0edae9093f43bc566daac7586aa807b6ac Mon Sep 17 00:00:00 2001
|
||||
From: Christian Hewitt <christianshewitt@gmail.com>
|
||||
Date: Thu, 22 Apr 2021 06:52:50 +0000
|
||||
Subject: [PATCH 02/30] HACK: configs: meson64: remove /amlogic so fdtdir finds
|
||||
LE boot files
|
||||
|
||||
---
|
||||
include/configs/meson64.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/configs/meson64.h b/include/configs/meson64.h
|
||||
index d31314412c..f909dbe079 100644
|
||||
--- a/include/configs/meson64.h
|
||||
+++ b/include/configs/meson64.h
|
||||
@@ -93,7 +93,7 @@
|
||||
"pxefile_addr_r=0x01080000\0" \
|
||||
"fdtoverlay_addr_r=0x01000000\0" \
|
||||
"ramdisk_addr_r=0x13000000\0" \
|
||||
- "fdtfile=amlogic/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
|
||||
+ "fdtfile=/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
|
||||
BOOTENV
|
||||
#endif
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
From 7a6e8626ca82952d6c6b38a1a91841c1a0fe1e7f Mon Sep 17 00:00:00 2001
|
||||
From: Christian Hewitt <christianshewitt@gmail.com>
|
||||
Date: Tue, 3 Aug 2021 18:42:55 +0000
|
||||
Subject: [PATCH 03/30] HACK: board: amlogic: odroid-n2: remove /amlogic/
|
||||
prefix for dtb path
|
||||
|
||||
Remove the /amlogic/ prefix to align with current LE dtb locations.
|
||||
|
||||
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
||||
---
|
||||
board/amlogic/odroid-n2/odroid-n2.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/board/amlogic/odroid-n2/odroid-n2.c b/board/amlogic/odroid-n2/odroid-n2.c
|
||||
index 2135457edd..ec1f4efc11 100644
|
||||
--- a/board/amlogic/odroid-n2/odroid-n2.c
|
||||
+++ b/board/amlogic/odroid-n2/odroid-n2.c
|
||||
@@ -63,7 +63,7 @@ static void odroid_set_fdtfile(char *soc, char *variant)
|
||||
{
|
||||
char s[128];
|
||||
|
||||
- snprintf(s, sizeof(s), "amlogic/meson-%s-odroid-%s.dtb", soc, variant);
|
||||
+ snprintf(s, sizeof(s), "meson-%s-odroid-%s.dtb", soc, variant);
|
||||
env_set("fdtfile", s);
|
||||
}
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From ad67f25d0d0fad4f0432336ade9374762a1ff279 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Hewitt <christianshewitt@gmail.com>
|
||||
Date: Fri, 20 Aug 2021 01:11:52 +0000
|
||||
Subject: [PATCH 04/30] FROMGIT: ARM: meson: Add S905Y2 SOC ID
|
||||
|
||||
Add the SOC ID for the S905Y2 to board info, see below for before/after
|
||||
tested with a Radxa Zero board:
|
||||
|
||||
SoC: Amlogic Meson G12A (Unknown) Revision 28:b (30:2)
|
||||
SoC: Amlogic Meson G12A (S905Y2) Revision 28:b (30:2)
|
||||
|
||||
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
||||
---
|
||||
arch/arm/mach-meson/board-info.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/arch/arm/mach-meson/board-info.c b/arch/arm/mach-meson/board-info.c
|
||||
index d16d3f194d..2421acd817 100644
|
||||
--- a/arch/arm/mach-meson/board-info.c
|
||||
+++ b/arch/arm/mach-meson/board-info.c
|
||||
@@ -64,6 +64,7 @@ static const struct meson_gx_package_id {
|
||||
{ "A113X", 0x25, 0x37, 0xff },
|
||||
{ "A113D", 0x25, 0x22, 0xff },
|
||||
{ "S905D2", 0x28, 0x10, 0xf0 },
|
||||
+ { "S905Y2", 0x28, 0x30, 0xf0 },
|
||||
{ "S905X2", 0x28, 0x40, 0xf0 },
|
||||
{ "A311D", 0x29, 0x10, 0xf0 },
|
||||
{ "S922X", 0x29, 0x40, 0xf0 },
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
From 24bc1b456ce4879b58b8cbdf45e4d36d8feb69c4 Mon Sep 17 00:00:00 2001
|
||||
From: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Date: Wed, 8 Sep 2021 14:32:12 +0200
|
||||
Subject: [PATCH 05/30] FROMGIT: pci: pcie_dw_meson: fix usb fail when pci link
|
||||
fails to go up
|
||||
|
||||
On Amlogic A311D, when the PCIe link fails disabling the related clocks
|
||||
makes USB fail. For an unknown reason, this doesn happen on the S905D3 SoC.
|
||||
|
||||
Mimic the Linux behavior by not considering a link failure a probe failure,
|
||||
and continue even if the PCIe link is down.
|
||||
|
||||
Reported-by: Art Nikpal <email2tema@gmail.com>
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
|
||||
---
|
||||
drivers/pci/pcie_dw_meson.c | 8 +-------
|
||||
1 file changed, 1 insertion(+), 7 deletions(-)
|
||||
|
||||
diff --git a/drivers/pci/pcie_dw_meson.c b/drivers/pci/pcie_dw_meson.c
|
||||
index 0525ecbea6..07da9fa533 100644
|
||||
--- a/drivers/pci/pcie_dw_meson.c
|
||||
+++ b/drivers/pci/pcie_dw_meson.c
|
||||
@@ -319,15 +319,9 @@ static int meson_pcie_init_port(struct udevice *dev)
|
||||
|
||||
pcie_dw_setup_host(&priv->dw);
|
||||
|
||||
- ret = meson_pcie_link_up(priv, LINK_SPEED_GEN_2);
|
||||
- if (ret < 0)
|
||||
- goto err_link_up;
|
||||
+ meson_pcie_link_up(priv, LINK_SPEED_GEN_2);
|
||||
|
||||
return 0;
|
||||
-err_link_up:
|
||||
- clk_disable(&priv->clk_port);
|
||||
- clk_disable(&priv->clk_general);
|
||||
- clk_disable(&priv->clk_pclk);
|
||||
err_deassert_bulk:
|
||||
reset_assert_bulk(&priv->rsts);
|
||||
err_power_off_phy:
|
||||
--
|
||||
2.17.1
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,31 @@
|
||||
From 0115cea6009aebd6c59ad7306da59292f50dc081 Mon Sep 17 00:00:00 2001
|
||||
From: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Date: Fri, 17 Sep 2021 09:37:01 +0200
|
||||
Subject: [PATCH 07/30] FROMGIT: usb: dwc3: meson-gxl: add AXG compatible
|
||||
|
||||
Upstream Linux uses the "amlogic,meson-axg-usb-ctrl" for AXG SoCs.
|
||||
|
||||
This adds it to the compatible list for this driver.
|
||||
|
||||
Reported-by: Vyacheslav Bocharov <adeep@lexina.in>
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Tested-by: Vyacheslav Bocharov <adeep@lexina.in>
|
||||
---
|
||||
drivers/usb/dwc3/dwc3-meson-gxl.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/drivers/usb/dwc3/dwc3-meson-gxl.c b/drivers/usb/dwc3/dwc3-meson-gxl.c
|
||||
index 08467d6210..b8f3886173 100644
|
||||
--- a/drivers/usb/dwc3/dwc3-meson-gxl.c
|
||||
+++ b/drivers/usb/dwc3/dwc3-meson-gxl.c
|
||||
@@ -409,6 +409,7 @@ static int dwc3_meson_gxl_remove(struct udevice *dev)
|
||||
}
|
||||
|
||||
static const struct udevice_id dwc3_meson_gxl_ids[] = {
|
||||
+ { .compatible = "amlogic,meson-axg-usb-ctrl" },
|
||||
{ .compatible = "amlogic,meson-gxl-usb-ctrl" },
|
||||
{ .compatible = "amlogic,meson-gxm-usb-ctrl" },
|
||||
{ }
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
From c1683775d6022d456e2c0930b872abd77650f5c3 Mon Sep 17 00:00:00 2001
|
||||
From: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Date: Fri, 17 Sep 2021 09:37:02 +0200
|
||||
Subject: [PATCH 08/30] FROMGIT: ARM: meson: keep HW order for MMC devices
|
||||
|
||||
Since Linux commmit [1], the order is fixed with aliases, in order to keep the
|
||||
MMC device order, set it back to HW order in U-Boot dtsi files.
|
||||
|
||||
[1] ab547c4fb39f ("arm64: dts: amlogic: Assign a fixed index to mmc devices")
|
||||
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
---
|
||||
arch/arm/dts/meson-g12-common-u-boot.dtsi | 7 +++++++
|
||||
arch/arm/dts/meson-gx-u-boot.dtsi | 7 +++++++
|
||||
2 files changed, 14 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/dts/meson-g12-common-u-boot.dtsi b/arch/arm/dts/meson-g12-common-u-boot.dtsi
|
||||
index 38fd3d3feb..b1f60b15c9 100644
|
||||
--- a/arch/arm/dts/meson-g12-common-u-boot.dtsi
|
||||
+++ b/arch/arm/dts/meson-g12-common-u-boot.dtsi
|
||||
@@ -5,6 +5,13 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
+ /* Keep HW order from U-boot */
|
||||
+ aliases {
|
||||
+ /delete-property/ mmc0;
|
||||
+ /delete-property/ mmc1;
|
||||
+ /delete-property/ mmc2;
|
||||
+ };
|
||||
+
|
||||
soc {
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
diff --git a/arch/arm/dts/meson-gx-u-boot.dtsi b/arch/arm/dts/meson-gx-u-boot.dtsi
|
||||
index 17d2cb95c1..fb6952f1d8 100644
|
||||
--- a/arch/arm/dts/meson-gx-u-boot.dtsi
|
||||
+++ b/arch/arm/dts/meson-gx-u-boot.dtsi
|
||||
@@ -5,6 +5,13 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
+ /* Keep HW order from U-boot */
|
||||
+ aliases {
|
||||
+ /delete-property/ mmc0;
|
||||
+ /delete-property/ mmc1;
|
||||
+ /delete-property/ mmc2;
|
||||
+ };
|
||||
+
|
||||
soc {
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
From a7c1806fb36b8e3fea461bb4cbb8607216dad001 Mon Sep 17 00:00:00 2001
|
||||
From: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Date: Fri, 17 Sep 2021 09:37:03 +0200
|
||||
Subject: [PATCH 09/30] FROMGIT: ARM: meson-axg: remove local USB nodes
|
||||
|
||||
Drop the local USB nodes after Linux 5.14 sync.
|
||||
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
---
|
||||
arch/arm/dts/meson-axg-s400-u-boot.dtsi | 8 ----
|
||||
arch/arm/dts/meson-axg-u-boot.dtsi | 62 -------------------------
|
||||
2 files changed, 70 deletions(-)
|
||||
delete mode 100644 arch/arm/dts/meson-axg-u-boot.dtsi
|
||||
|
||||
diff --git a/arch/arm/dts/meson-axg-s400-u-boot.dtsi b/arch/arm/dts/meson-axg-s400-u-boot.dtsi
|
||||
index 2c4b06f140..334650d610 100644
|
||||
--- a/arch/arm/dts/meson-axg-s400-u-boot.dtsi
|
||||
+++ b/arch/arm/dts/meson-axg-s400-u-boot.dtsi
|
||||
@@ -3,8 +3,6 @@
|
||||
* Copyright (c) 2017 Amlogic, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
-#include "meson-axg-u-boot.dtsi"
|
||||
-
|
||||
/* wifi module */
|
||||
&sd_emmc_b {
|
||||
status = "disabled";
|
||||
@@ -15,12 +13,6 @@
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
-&usb {
|
||||
- status = "okay";
|
||||
- dr_mode = "otg";
|
||||
- vbus-supply = <&usb_pwr>;
|
||||
-};
|
||||
-
|
||||
&usb2_phy1 {
|
||||
phy-supply = <&vcc_5v>;
|
||||
};
|
||||
diff --git a/arch/arm/dts/meson-axg-u-boot.dtsi b/arch/arm/dts/meson-axg-u-boot.dtsi
|
||||
deleted file mode 100644
|
||||
index cb1c71e78c..0000000000
|
||||
--- a/arch/arm/dts/meson-axg-u-boot.dtsi
|
||||
+++ /dev/null
|
||||
@@ -1,62 +0,0 @@
|
||||
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
-/*
|
||||
- * Copyright (c) 2020 BayLibre, SAS.
|
||||
- * Author: Neil Armstrong <narmstrong@baylibre.com>
|
||||
- */
|
||||
-
|
||||
-/ {
|
||||
- soc {
|
||||
- usb: usb@ffe09080 {
|
||||
- compatible = "amlogic,meson-gxl-usb-ctrl";
|
||||
- reg = <0x0 0xffe09080 0x0 0x20>;
|
||||
- interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
|
||||
- #address-cells = <2>;
|
||||
- #size-cells = <2>;
|
||||
- ranges;
|
||||
-
|
||||
- clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1_DDR_BRIDGE>;
|
||||
- clock-names = "usb_ctrl", "ddr";
|
||||
- resets = <&reset RESET_USB_OTG>;
|
||||
-
|
||||
- dr_mode = "otg";
|
||||
-
|
||||
- phys = <&usb2_phy1>;
|
||||
- phy-names = "usb2-phy1";
|
||||
-
|
||||
- dwc2: usb@ff400000 {
|
||||
- compatible = "amlogic,meson-g12a-usb", "snps,dwc2";
|
||||
- reg = <0x0 0xff400000 0x0 0x40000>;
|
||||
- interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
|
||||
- clocks = <&clkc CLKID_USB1>;
|
||||
- clock-names = "otg";
|
||||
- phys = <&usb2_phy1>;
|
||||
- dr_mode = "peripheral";
|
||||
- g-rx-fifo-size = <192>;
|
||||
- g-np-tx-fifo-size = <128>;
|
||||
- g-tx-fifo-size = <128 128 16 16 16>;
|
||||
- };
|
||||
-
|
||||
- dwc3: usb@ff500000 {
|
||||
- compatible = "snps,dwc3";
|
||||
- reg = <0x0 0xff500000 0x0 0x100000>;
|
||||
- interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
|
||||
- dr_mode = "host";
|
||||
- maximum-speed = "high-speed";
|
||||
- snps,dis_u2_susphy_quirk;
|
||||
- };
|
||||
- };
|
||||
- };
|
||||
-};
|
||||
-
|
||||
-&apb {
|
||||
- usb2_phy1: phy@9020 {
|
||||
- compatible = "amlogic,meson-gxl-usb2-phy";
|
||||
- #phy-cells = <0>;
|
||||
- reg = <0x0 0x9020 0x0 0x20>;
|
||||
- clocks = <&clkc CLKID_USB>;
|
||||
- clock-names = "phy";
|
||||
- resets = <&reset RESET_USB_OTG>;
|
||||
- reset-names = "phy";
|
||||
- status = "okay";
|
||||
- };
|
||||
-};
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
From 6d99a04473373ce9449f38d02722e4baf4d451a9 Mon Sep 17 00:00:00 2001
|
||||
From: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Date: Wed, 8 Sep 2021 16:17:23 +0200
|
||||
Subject: [PATCH 10/30] FROMGIT: configs: meson64: add SCSI boot target
|
||||
|
||||
Add SCSI target to be able to boot from the SATA disks on the Odroid HC4 using
|
||||
an on-board AHCI PCIe controller.
|
||||
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
|
||||
---
|
||||
include/configs/meson64.h | 7 +++++++
|
||||
1 file changed, 7 insertions(+)
|
||||
|
||||
diff --git a/include/configs/meson64.h b/include/configs/meson64.h
|
||||
index f909dbe079..c77b6917ab 100644
|
||||
--- a/include/configs/meson64.h
|
||||
+++ b/include/configs/meson64.h
|
||||
@@ -66,6 +66,12 @@
|
||||
#define BOOT_TARGET_NVME(func)
|
||||
#endif
|
||||
|
||||
+#ifdef CONFIG_CMD_SCSI
|
||||
+ #define BOOT_TARGET_SCSI(func) func(SCSI, scsi, 0)
|
||||
+#else
|
||||
+ #define BOOT_TARGET_SCSI(func)
|
||||
+#endif
|
||||
+
|
||||
#ifndef BOOT_TARGET_DEVICES
|
||||
#define BOOT_TARGET_DEVICES(func) \
|
||||
func(ROMUSB, romusb, na) \
|
||||
@@ -74,6 +80,7 @@
|
||||
func(MMC, mmc, 2) \
|
||||
BOOT_TARGET_DEVICES_USB(func) \
|
||||
BOOT_TARGET_NVME(func) \
|
||||
+ BOOT_TARGET_SCSI(func) \
|
||||
func(PXE, pxe, na) \
|
||||
func(DHCP, dhcp, na)
|
||||
#endif
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
From a332eaf364ae643ca71974887093cc027bc4e21a Mon Sep 17 00:00:00 2001
|
||||
From: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Date: Fri, 17 Sep 2021 09:37:05 +0200
|
||||
Subject: [PATCH 11/30] FROMGIT: distro_bootcmd: run pci enum for scsi_boot
|
||||
just like it is done for nvme_boot
|
||||
|
||||
The SCSI device can be a PCIe adapter, so run pcie enum if enabled.
|
||||
|
||||
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
---
|
||||
include/config_distro_bootcmd.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
|
||||
index 750e9e04e8..3f724aa10f 100644
|
||||
--- a/include/config_distro_bootcmd.h
|
||||
+++ b/include/config_distro_bootcmd.h
|
||||
@@ -226,6 +226,7 @@
|
||||
"fi\0" \
|
||||
\
|
||||
"scsi_boot=" \
|
||||
+ BOOTENV_RUN_PCI_ENUM \
|
||||
BOOTENV_RUN_SCSI_INIT \
|
||||
BOOTENV_SHARED_BLKDEV_BODY(scsi)
|
||||
#define BOOTENV_DEV_SCSI BOOTENV_DEV_BLKDEV
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
From 1145e026ac9c4b0173c0bb44f381c9c0d23044f9 Mon Sep 17 00:00:00 2001
|
||||
From: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Date: Fri, 17 Sep 2021 09:37:06 +0200
|
||||
Subject: [PATCH 12/30] FROMGIT: ARM: amlogic: add support for Odroid-HC4
|
||||
device
|
||||
|
||||
The Odroid-HC4 is a variant of the Odroid-C4 board but with a PCIe-SATA bridge
|
||||
instead of the USB3 ports.
|
||||
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
---
|
||||
arch/arm/dts/meson-sm1-odroid-hc4-u-boot.dtsi | 23 +++++
|
||||
board/amlogic/odroid-n2/MAINTAINERS | 1 +
|
||||
configs/odroid-hc4_defconfig | 92 +++++++++++++++++++
|
||||
3 files changed, 116 insertions(+)
|
||||
create mode 100644 arch/arm/dts/meson-sm1-odroid-hc4-u-boot.dtsi
|
||||
create mode 100644 configs/odroid-hc4_defconfig
|
||||
|
||||
diff --git a/arch/arm/dts/meson-sm1-odroid-hc4-u-boot.dtsi b/arch/arm/dts/meson-sm1-odroid-hc4-u-boot.dtsi
|
||||
new file mode 100644
|
||||
index 0000000000..963bf96b25
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/dts/meson-sm1-odroid-hc4-u-boot.dtsi
|
||||
@@ -0,0 +1,23 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
+/*
|
||||
+ * Copyright (c) 2020 BayLibre, SAS
|
||||
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
|
||||
+ */
|
||||
+
|
||||
+#include "meson-sm1-u-boot.dtsi"
|
||||
+
|
||||
+ðmac {
|
||||
+ snps,reset-gpio = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
|
||||
+ snps,reset-delays-us = <0 10000 1000000>;
|
||||
+ snps,reset-active-low;
|
||||
+};
|
||||
+
|
||||
+/* SARADC is needed for proper board variant detection */
|
||||
+&saradc {
|
||||
+ status = "okay";
|
||||
+ vref-supply = <&vddao_1v8>;
|
||||
+};
|
||||
+
|
||||
+&tflash_vdd {
|
||||
+ gpio = <&gpio_ao GPIOAO_3 GPIO_OPEN_DRAIN>;
|
||||
+};
|
||||
diff --git a/board/amlogic/odroid-n2/MAINTAINERS b/board/amlogic/odroid-n2/MAINTAINERS
|
||||
index 77f7746346..43724e6fdd 100644
|
||||
--- a/board/amlogic/odroid-n2/MAINTAINERS
|
||||
+++ b/board/amlogic/odroid-n2/MAINTAINERS
|
||||
@@ -5,5 +5,6 @@ L: u-boot-amlogic@groups.io
|
||||
F: board/amlogic/odroid-n2/
|
||||
F: configs/odroid-n2_defconfig
|
||||
F: configs/odroid-c4_defconfig
|
||||
+F: configs/odroid-hc4_defconfig
|
||||
F: doc/board/amlogic/odroid-n2.rst
|
||||
F: doc/board/amlogic/odroid-c4.rst
|
||||
diff --git a/configs/odroid-hc4_defconfig b/configs/odroid-hc4_defconfig
|
||||
new file mode 100644
|
||||
index 0000000000..7671496218
|
||||
--- /dev/null
|
||||
+++ b/configs/odroid-hc4_defconfig
|
||||
@@ -0,0 +1,92 @@
|
||||
+CONFIG_ARM=y
|
||||
+CONFIG_SYS_BOARD="odroid-n2"
|
||||
+CONFIG_ARCH_MESON=y
|
||||
+CONFIG_SYS_TEXT_BASE=0x01000000
|
||||
+CONFIG_NR_DRAM_BANKS=1
|
||||
+CONFIG_ENV_SIZE=0x2000
|
||||
+CONFIG_DM_GPIO=y
|
||||
+CONFIG_DEFAULT_DEVICE_TREE="meson-sm1-odroid-hc4"
|
||||
+CONFIG_MESON_G12A=y
|
||||
+CONFIG_DEBUG_UART_BASE=0xff803000
|
||||
+CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
+CONFIG_IDENT_STRING=" odroid-hc4"
|
||||
+CONFIG_DEBUG_UART=y
|
||||
+CONFIG_AHCI=y
|
||||
+CONFIG_OF_BOARD_SETUP=y
|
||||
+# CONFIG_DISPLAY_CPUINFO is not set
|
||||
+CONFIG_MISC_INIT_R=y
|
||||
+# CONFIG_CMD_BDI is not set
|
||||
+# CONFIG_CMD_IMI is not set
|
||||
+CONFIG_CMD_GPIO=y
|
||||
+# CONFIG_CMD_LOADS is not set
|
||||
+CONFIG_CMD_MMC=y
|
||||
+CONFIG_CMD_PCI=y
|
||||
+CONFIG_CMD_SPI=y
|
||||
+CONFIG_CMD_USB=y
|
||||
+CONFIG_CMD_USB_MASS_STORAGE=y
|
||||
+# CONFIG_CMD_SETEXPR is not set
|
||||
+CONFIG_CMD_REGULATOR=y
|
||||
+CONFIG_OF_CONTROL=y
|
||||
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||
+CONFIG_NET_RANDOM_ETHADDR=y
|
||||
+CONFIG_ADC=y
|
||||
+CONFIG_SARADC_MESON=y
|
||||
+CONFIG_SATA=y
|
||||
+CONFIG_SCSI_AHCI=y
|
||||
+CONFIG_AHCI_PCI=y
|
||||
+CONFIG_MMC_MESON_GX=y
|
||||
+CONFIG_MTD=y
|
||||
+CONFIG_DM_MTD=y
|
||||
+CONFIG_DM_SPI_FLASH=y
|
||||
+CONFIG_SPI_FLASH_XTX=y
|
||||
+CONFIG_PHY_REALTEK=y
|
||||
+CONFIG_DM_ETH=y
|
||||
+CONFIG_DM_MDIO=y
|
||||
+CONFIG_DM_MDIO_MUX=y
|
||||
+CONFIG_ETH_DESIGNWARE_MESON8B=y
|
||||
+CONFIG_MDIO_MUX_MESON_G12A=y
|
||||
+CONFIG_PCI=y
|
||||
+CONFIG_PCIE_DW_MESON=y
|
||||
+CONFIG_MESON_G12A_USB_PHY=y
|
||||
+CONFIG_PINCTRL=y
|
||||
+CONFIG_PINCTRL_MESON_G12A=y
|
||||
+CONFIG_POWER_DOMAIN=y
|
||||
+CONFIG_MESON_EE_POWER_DOMAIN=y
|
||||
+CONFIG_DM_REGULATOR=y
|
||||
+CONFIG_DM_REGULATOR_FIXED=y
|
||||
+CONFIG_DM_REGULATOR_GPIO=y
|
||||
+CONFIG_DM_RESET=y
|
||||
+CONFIG_SCSI=y
|
||||
+CONFIG_DM_SCSI=y
|
||||
+CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
+CONFIG_DEBUG_UART_SKIP_INIT=y
|
||||
+CONFIG_MESON_SERIAL=y
|
||||
+CONFIG_SPI=y
|
||||
+CONFIG_DM_SPI=y
|
||||
+CONFIG_MESON_SPIFC=y
|
||||
+CONFIG_USB=y
|
||||
+CONFIG_USB_XHCI_HCD=y
|
||||
+CONFIG_USB_XHCI_DWC3=y
|
||||
+CONFIG_USB_DWC3=y
|
||||
+# CONFIG_USB_DWC3_GADGET is not set
|
||||
+CONFIG_USB_DWC3_MESON_G12A=y
|
||||
+CONFIG_USB_KEYBOARD=y
|
||||
+CONFIG_USB_GADGET=y
|
||||
+CONFIG_USB_GADGET_VENDOR_NUM=0x1b8e
|
||||
+CONFIG_USB_GADGET_PRODUCT_NUM=0xfada
|
||||
+CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
+CONFIG_USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8=y
|
||||
+CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
+CONFIG_DM_VIDEO=y
|
||||
+# CONFIG_VIDEO_BPP8 is not set
|
||||
+# CONFIG_VIDEO_BPP16 is not set
|
||||
+CONFIG_SYS_WHITE_ON_BLACK=y
|
||||
+CONFIG_VIDEO_MESON=y
|
||||
+CONFIG_VIDEO_DT_SIMPLEFB=y
|
||||
+CONFIG_SPLASH_SCREEN=y
|
||||
+CONFIG_SPLASH_SCREEN_ALIGN=y
|
||||
+CONFIG_VIDEO_BMP_RLE8=y
|
||||
+CONFIG_BMP_16BPP=y
|
||||
+CONFIG_BMP_24BPP=y
|
||||
+CONFIG_BMP_32BPP=y
|
||||
+CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
From 5d5fafb005313cfef25e2de69fd6521487047c20 Mon Sep 17 00:00:00 2001
|
||||
From: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Date: Fri, 17 Sep 2021 09:37:07 +0200
|
||||
Subject: [PATCH 13/30] FROMGIT: doc: boards: amlogic: update for Odroid HC4
|
||||
|
||||
Add documentation bits for the Odroid-HC4.
|
||||
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
---
|
||||
doc/board/amlogic/index.rst | 2 +-
|
||||
doc/board/amlogic/odroid-c4.rst | 3 +++
|
||||
2 files changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/doc/board/amlogic/index.rst b/doc/board/amlogic/index.rst
|
||||
index 8da7afddb4..af12f94fde 100644
|
||||
--- a/doc/board/amlogic/index.rst
|
||||
+++ b/doc/board/amlogic/index.rst
|
||||
@@ -18,7 +18,7 @@ This matrix concerns the actual source code version.
|
||||
| Boards | Odroid-C2 | P212 | Khadas VIM2 | S400 | U200 | Odroid-N2 | SEI610 |
|
||||
| | Nanopi-K2 | Khadas-VIM | Libretech-PC | | SEI510 | Khadas-VIM3 | Khadas-VIM3L |
|
||||
| | P200 | LibreTech-CC v1 | WeTek Core2 | | | GT-King/Pro | Odroid-C4 |
|
||||
-| | P201 | LibreTech-AC v2 | | | | | |
|
||||
+| | P201 | LibreTech-AC v2 | | | | | Odroid-HC4 |
|
||||
+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
| UART | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
diff --git a/doc/board/amlogic/odroid-c4.rst b/doc/board/amlogic/odroid-c4.rst
|
||||
index 5a5a8688b8..f66d60a54d 100644
|
||||
--- a/doc/board/amlogic/odroid-c4.rst
|
||||
+++ b/doc/board/amlogic/odroid-c4.rst
|
||||
@@ -17,6 +17,9 @@ Co. Ltd with the following specifications:
|
||||
- UART serial
|
||||
- Infrared receiver
|
||||
|
||||
+The ODROID-HC4 is a variant with a PCIe-SATA controller, the same commands
|
||||
+applies for HC4.
|
||||
+
|
||||
Schematics are available on the manufacturer website.
|
||||
|
||||
U-Boot compilation
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
From 160de51c71b384a5514394f261e3d0255ebf8454 Mon Sep 17 00:00:00 2001
|
||||
From: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Date: Fri, 17 Sep 2021 09:37:08 +0200
|
||||
Subject: [PATCH 14/30] FROMGIT: ARM: meson: add Beelink GS-King X board
|
||||
|
||||
The Beelink GS-King X is a variant of the GS King boards but with an internal
|
||||
USB to SATA bridge and advanced audio features.
|
||||
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
---
|
||||
arch/arm/dts/meson-g12b-gsking-x-u-boot.dtsi | 7 ++
|
||||
board/amlogic/beelink-s922x/MAINTAINERS | 1 +
|
||||
configs/beelink-gsking-x_defconfig | 70 ++++++++++++++++++++
|
||||
doc/board/amlogic/index.rst | 2 +-
|
||||
4 files changed, 79 insertions(+), 1 deletion(-)
|
||||
create mode 100644 arch/arm/dts/meson-g12b-gsking-x-u-boot.dtsi
|
||||
create mode 100644 configs/beelink-gsking-x_defconfig
|
||||
|
||||
diff --git a/arch/arm/dts/meson-g12b-gsking-x-u-boot.dtsi b/arch/arm/dts/meson-g12b-gsking-x-u-boot.dtsi
|
||||
new file mode 100644
|
||||
index 0000000000..236f2468dc
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/dts/meson-g12b-gsking-x-u-boot.dtsi
|
||||
@@ -0,0 +1,7 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
+/*
|
||||
+ * Copyright (c) 2019 BayLibre, SAS.
|
||||
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
|
||||
+ */
|
||||
+
|
||||
+#include "meson-g12-common-u-boot.dtsi"
|
||||
diff --git a/board/amlogic/beelink-s922x/MAINTAINERS b/board/amlogic/beelink-s922x/MAINTAINERS
|
||||
index 7f223df4ae..47b622765a 100644
|
||||
--- a/board/amlogic/beelink-s922x/MAINTAINERS
|
||||
+++ b/board/amlogic/beelink-s922x/MAINTAINERS
|
||||
@@ -5,5 +5,6 @@ L: u-boot-amlogic@groups.io
|
||||
F: board/amlogic/beelink-s922x/
|
||||
F: configs/beelink-gtking_defconfig
|
||||
F: configs/beelink-gtkingpro_defconfig
|
||||
+F: configs/beelink-gsking-x_defconfig
|
||||
F: doc/board/amlogic/beelink-gtking.rst
|
||||
F: doc/board/amlogic/beelink-gtkingpro.rst
|
||||
diff --git a/configs/beelink-gsking-x_defconfig b/configs/beelink-gsking-x_defconfig
|
||||
new file mode 100644
|
||||
index 0000000000..8a76e8829a
|
||||
--- /dev/null
|
||||
+++ b/configs/beelink-gsking-x_defconfig
|
||||
@@ -0,0 +1,70 @@
|
||||
+CONFIG_ARM=y
|
||||
+CONFIG_SYS_BOARD="beelink-s922x"
|
||||
+CONFIG_ARCH_MESON=y
|
||||
+CONFIG_SYS_TEXT_BASE=0x01000000
|
||||
+CONFIG_NR_DRAM_BANKS=1
|
||||
+CONFIG_ENV_SIZE=0x2000
|
||||
+CONFIG_DM_GPIO=y
|
||||
+CONFIG_DEFAULT_DEVICE_TREE="meson-g12b-gsking-x"
|
||||
+CONFIG_MESON_G12A=y
|
||||
+CONFIG_DEBUG_UART_BASE=0xff803000
|
||||
+CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
+CONFIG_IDENT_STRING=" beelink"
|
||||
+CONFIG_DEBUG_UART=y
|
||||
+CONFIG_OF_BOARD_SETUP=y
|
||||
+# CONFIG_DISPLAY_CPUINFO is not set
|
||||
+CONFIG_MISC_INIT_R=y
|
||||
+# CONFIG_CMD_BDI is not set
|
||||
+# CONFIG_CMD_IMI is not set
|
||||
+CONFIG_CMD_GPIO=y
|
||||
+# CONFIG_CMD_LOADS is not set
|
||||
+CONFIG_CMD_MMC=y
|
||||
+CONFIG_CMD_USB=y
|
||||
+CONFIG_CMD_USB_MASS_STORAGE=y
|
||||
+# CONFIG_CMD_SETEXPR is not set
|
||||
+CONFIG_CMD_REGULATOR=y
|
||||
+CONFIG_OF_CONTROL=y
|
||||
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||
+CONFIG_NET_RANDOM_ETHADDR=y
|
||||
+CONFIG_MMC_MESON_GX=y
|
||||
+CONFIG_MTD=y
|
||||
+CONFIG_DM_MTD=y
|
||||
+CONFIG_PHY_REALTEK=y
|
||||
+CONFIG_DM_ETH=y
|
||||
+CONFIG_DM_MDIO=y
|
||||
+CONFIG_DM_MDIO_MUX=y
|
||||
+CONFIG_ETH_DESIGNWARE_MESON8B=y
|
||||
+CONFIG_MDIO_MUX_MESON_G12A=y
|
||||
+CONFIG_MESON_G12A_USB_PHY=y
|
||||
+CONFIG_PINCTRL=y
|
||||
+CONFIG_PINCTRL_MESON_G12A=y
|
||||
+CONFIG_POWER_DOMAIN=y
|
||||
+CONFIG_MESON_EE_POWER_DOMAIN=y
|
||||
+CONFIG_DM_REGULATOR=y
|
||||
+CONFIG_DM_REGULATOR_FIXED=y
|
||||
+CONFIG_DM_RESET=y
|
||||
+CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
+CONFIG_DEBUG_UART_SKIP_INIT=y
|
||||
+CONFIG_MESON_SERIAL=y
|
||||
+CONFIG_USB=y
|
||||
+CONFIG_USB_XHCI_HCD=y
|
||||
+CONFIG_USB_XHCI_DWC3=y
|
||||
+CONFIG_USB_DWC3=y
|
||||
+# CONFIG_USB_DWC3_GADGET is not set
|
||||
+CONFIG_USB_DWC3_MESON_G12A=y
|
||||
+CONFIG_USB_KEYBOARD=y
|
||||
+CONFIG_USB_GADGET=y
|
||||
+CONFIG_USB_GADGET_VENDOR_NUM=0x1b8e
|
||||
+CONFIG_USB_GADGET_PRODUCT_NUM=0xfada
|
||||
+CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
+CONFIG_USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8=y
|
||||
+CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
+CONFIG_DM_VIDEO=y
|
||||
+# CONFIG_VIDEO_BPP8 is not set
|
||||
+# CONFIG_VIDEO_BPP16 is not set
|
||||
+CONFIG_SYS_WHITE_ON_BLACK=y
|
||||
+CONFIG_VIDEO_MESON=y
|
||||
+CONFIG_VIDEO_DT_SIMPLEFB=y
|
||||
+CONFIG_SPLASH_SCREEN=y
|
||||
+CONFIG_SPLASH_SCREEN_ALIGN=y
|
||||
+CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
diff --git a/doc/board/amlogic/index.rst b/doc/board/amlogic/index.rst
|
||||
index af12f94fde..de1a9ce284 100644
|
||||
--- a/doc/board/amlogic/index.rst
|
||||
+++ b/doc/board/amlogic/index.rst
|
||||
@@ -18,7 +18,7 @@ This matrix concerns the actual source code version.
|
||||
| Boards | Odroid-C2 | P212 | Khadas VIM2 | S400 | U200 | Odroid-N2 | SEI610 |
|
||||
| | Nanopi-K2 | Khadas-VIM | Libretech-PC | | SEI510 | Khadas-VIM3 | Khadas-VIM3L |
|
||||
| | P200 | LibreTech-CC v1 | WeTek Core2 | | | GT-King/Pro | Odroid-C4 |
|
||||
-| | P201 | LibreTech-AC v2 | | | | | Odroid-HC4 |
|
||||
+| | P201 | LibreTech-AC v2 | | | | GSKing-X | Odroid-HC4 |
|
||||
+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
| UART | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,154 @@
|
||||
From a29813bd3bfbe4d263b6fd9010d713383bc0fcf3 Mon Sep 17 00:00:00 2001
|
||||
From: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Date: Fri, 17 Sep 2021 09:37:09 +0200
|
||||
Subject: [PATCH 15/30] FROMGIT: ARM: amlogic: add Banana Pi M5
|
||||
|
||||
Banana Pi BPI-M5 is a credit card format SBC with the following features:
|
||||
- Amlogic S905X3 quad core Cortex-A55
|
||||
- Mali-G31 GPU
|
||||
- 4GB LPDDR4
|
||||
- 16GB eMMC flash
|
||||
- 4 USB 3.0
|
||||
- 1 GbE ethernet
|
||||
- HDMI output
|
||||
- 2x LEDS
|
||||
- SDCard
|
||||
- 2.5mm Jack with Stereo Audio + CVBS
|
||||
- Infrared Received
|
||||
- ADC Button
|
||||
- GPIO Button
|
||||
- 40 pins header + 3pins debug header
|
||||
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
---
|
||||
.../arm/dts/meson-sm1-bananapi-m5-u-boot.dtsi | 13 ++++
|
||||
board/amlogic/u200/MAINTAINERS | 1 +
|
||||
configs/bananapi-m5_defconfig | 73 +++++++++++++++++++
|
||||
doc/board/amlogic/index.rst | 1 +
|
||||
4 files changed, 88 insertions(+)
|
||||
create mode 100644 arch/arm/dts/meson-sm1-bananapi-m5-u-boot.dtsi
|
||||
create mode 100644 configs/bananapi-m5_defconfig
|
||||
|
||||
diff --git a/arch/arm/dts/meson-sm1-bananapi-m5-u-boot.dtsi b/arch/arm/dts/meson-sm1-bananapi-m5-u-boot.dtsi
|
||||
new file mode 100644
|
||||
index 0000000000..a86fdb5668
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/dts/meson-sm1-bananapi-m5-u-boot.dtsi
|
||||
@@ -0,0 +1,13 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
+/*
|
||||
+ * Copyright (c) 2021 BayLibre, SAS
|
||||
+ * Author: Neil Armstrong <narmstrong@baylibre.com>
|
||||
+ */
|
||||
+
|
||||
+#include "meson-sm1-u-boot.dtsi"
|
||||
+
|
||||
+ðmac {
|
||||
+ snps,reset-gpio = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
|
||||
+ snps,reset-delays-us = <0 10000 1000000>;
|
||||
+ snps,reset-active-low;
|
||||
+};
|
||||
diff --git a/board/amlogic/u200/MAINTAINERS b/board/amlogic/u200/MAINTAINERS
|
||||
index 8c23f9a7d3..655cf64a3d 100644
|
||||
--- a/board/amlogic/u200/MAINTAINERS
|
||||
+++ b/board/amlogic/u200/MAINTAINERS
|
||||
@@ -4,4 +4,5 @@ S: Maintained
|
||||
L: u-boot-amlogic@groups.io
|
||||
F: board/amlogic/u200/
|
||||
F: configs/u200_defconfig
|
||||
+F: configs/bananapi-m5_defconfig
|
||||
F: doc/board/amlogic/u200.rst
|
||||
diff --git a/configs/bananapi-m5_defconfig b/configs/bananapi-m5_defconfig
|
||||
new file mode 100644
|
||||
index 0000000000..a088761622
|
||||
--- /dev/null
|
||||
+++ b/configs/bananapi-m5_defconfig
|
||||
@@ -0,0 +1,73 @@
|
||||
+CONFIG_ARM=y
|
||||
+CONFIG_ARCH_MESON=y
|
||||
+CONFIG_SYS_TEXT_BASE=0x01000000
|
||||
+CONFIG_NR_DRAM_BANKS=1
|
||||
+CONFIG_ENV_SIZE=0x2000
|
||||
+CONFIG_DM_GPIO=y
|
||||
+CONFIG_DEFAULT_DEVICE_TREE="meson-sm1-bananapi-m5"
|
||||
+CONFIG_MESON_G12A=y
|
||||
+CONFIG_DEBUG_UART_BASE=0xff803000
|
||||
+CONFIG_DEBUG_UART_CLOCK=24000000
|
||||
+CONFIG_IDENT_STRING="bpi-m5"
|
||||
+CONFIG_DEBUG_UART=y
|
||||
+CONFIG_OF_BOARD_SETUP=y
|
||||
+# CONFIG_DISPLAY_CPUINFO is not set
|
||||
+CONFIG_MISC_INIT_R=y
|
||||
+# CONFIG_CMD_BDI is not set
|
||||
+# CONFIG_CMD_IMI is not set
|
||||
+CONFIG_CMD_GPIO=y
|
||||
+# CONFIG_CMD_LOADS is not set
|
||||
+CONFIG_CMD_MMC=y
|
||||
+CONFIG_CMD_USB=y
|
||||
+CONFIG_CMD_USB_MASS_STORAGE=y
|
||||
+# CONFIG_CMD_SETEXPR is not set
|
||||
+CONFIG_CMD_REGULATOR=y
|
||||
+CONFIG_OF_CONTROL=y
|
||||
+CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||
+CONFIG_NET_RANDOM_ETHADDR=y
|
||||
+CONFIG_ADC=y
|
||||
+CONFIG_SARADC_MESON=y
|
||||
+CONFIG_MMC_MESON_GX=y
|
||||
+CONFIG_PHY_REALTEK=y
|
||||
+CONFIG_DM_ETH=y
|
||||
+CONFIG_DM_MDIO=y
|
||||
+CONFIG_DM_MDIO_MUX=y
|
||||
+CONFIG_ETH_DESIGNWARE_MESON8B=y
|
||||
+CONFIG_MDIO_MUX_MESON_G12A=y
|
||||
+CONFIG_MESON_G12A_USB_PHY=y
|
||||
+CONFIG_PINCTRL=y
|
||||
+CONFIG_PINCTRL_MESON_G12A=y
|
||||
+CONFIG_POWER_DOMAIN=y
|
||||
+CONFIG_MESON_EE_POWER_DOMAIN=y
|
||||
+CONFIG_DM_REGULATOR=y
|
||||
+CONFIG_DM_REGULATOR_FIXED=y
|
||||
+CONFIG_DM_RESET=y
|
||||
+CONFIG_DEBUG_UART_ANNOUNCE=y
|
||||
+CONFIG_DEBUG_UART_SKIP_INIT=y
|
||||
+CONFIG_MESON_SERIAL=y
|
||||
+CONFIG_USB=y
|
||||
+CONFIG_USB_XHCI_HCD=y
|
||||
+CONFIG_USB_XHCI_DWC3=y
|
||||
+CONFIG_USB_DWC3=y
|
||||
+# CONFIG_USB_DWC3_GADGET is not set
|
||||
+CONFIG_USB_DWC3_MESON_G12A=y
|
||||
+CONFIG_USB_KEYBOARD=y
|
||||
+CONFIG_USB_GADGET=y
|
||||
+CONFIG_USB_GADGET_VENDOR_NUM=0x1b8e
|
||||
+CONFIG_USB_GADGET_PRODUCT_NUM=0xfada
|
||||
+CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
+CONFIG_USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8=y
|
||||
+CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
+CONFIG_DM_VIDEO=y
|
||||
+# CONFIG_VIDEO_BPP8 is not set
|
||||
+# CONFIG_VIDEO_BPP16 is not set
|
||||
+CONFIG_SYS_WHITE_ON_BLACK=y
|
||||
+CONFIG_VIDEO_MESON=y
|
||||
+CONFIG_VIDEO_DT_SIMPLEFB=y
|
||||
+CONFIG_SPLASH_SCREEN=y
|
||||
+CONFIG_SPLASH_SCREEN_ALIGN=y
|
||||
+CONFIG_VIDEO_BMP_RLE8=y
|
||||
+CONFIG_BMP_16BPP=y
|
||||
+CONFIG_BMP_24BPP=y
|
||||
+CONFIG_BMP_32BPP=y
|
||||
+CONFIG_OF_LIBFDT_OVERLAY=y
|
||||
diff --git a/doc/board/amlogic/index.rst b/doc/board/amlogic/index.rst
|
||||
index de1a9ce284..2913ab281a 100644
|
||||
--- a/doc/board/amlogic/index.rst
|
||||
+++ b/doc/board/amlogic/index.rst
|
||||
@@ -19,6 +19,7 @@ This matrix concerns the actual source code version.
|
||||
| | Nanopi-K2 | Khadas-VIM | Libretech-PC | | SEI510 | Khadas-VIM3 | Khadas-VIM3L |
|
||||
| | P200 | LibreTech-CC v1 | WeTek Core2 | | | GT-King/Pro | Odroid-C4 |
|
||||
| | P201 | LibreTech-AC v2 | | | | GSKing-X | Odroid-HC4 |
|
||||
+| | | | | | | | BananaPi-M5 |
|
||||
+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
| UART | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
From 9a68cb8d0d042b0c9ebc3546aeecdba75b320463 Mon Sep 17 00:00:00 2001
|
||||
From: Vyacheslav Bocharov <adeep@lexina.in>
|
||||
Date: Mon, 20 Sep 2021 11:40:14 +0300
|
||||
Subject: [PATCH 16/30] FROMGIT: ARM: amlogic: add JetHub common config header
|
||||
|
||||
JetHub devices uses its own boot sequence with "rescue" button
|
||||
|
||||
Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
---
|
||||
include/configs/jethub.h | 40 ++++++++++++++++++++++++++++++++++++++++
|
||||
1 file changed, 40 insertions(+)
|
||||
create mode 100644 include/configs/jethub.h
|
||||
|
||||
diff --git a/include/configs/jethub.h b/include/configs/jethub.h
|
||||
new file mode 100644
|
||||
index 0000000000..35f85095ac
|
||||
--- /dev/null
|
||||
+++ b/include/configs/jethub.h
|
||||
@@ -0,0 +1,40 @@
|
||||
+/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
+/*
|
||||
+ * Configuration for JetHome devices
|
||||
+ * Copyright (C) 2021 Vyacheslav Bocharov
|
||||
+ * Author: Vyacheslav Bocharov <adeep@lexina.in>
|
||||
+ */
|
||||
+
|
||||
+#ifndef __JETHUB_CONFIG_H
|
||||
+#define __JETHUB_CONFIG_H
|
||||
+
|
||||
+#if defined(CONFIG_MESON_AXG)
|
||||
+#define BOOTENV_DEV_RESCUE(devtypeu, devtypel, instance) \
|
||||
+ "bootcmd_rescue=" \
|
||||
+ "if gpio input 10; then " \
|
||||
+ "run bootcmd_usb0;" \
|
||||
+ "fi;\0"
|
||||
+#else
|
||||
+#define BOOTENV_DEV_RESCUE(devtypeu, devtypel, instance) \
|
||||
+ "bootcmd_rescue=" \
|
||||
+ "if test \"${userbutton}\" = \"true\"; then " \
|
||||
+ "run bootcmd_mmc0; " \
|
||||
+ "fi;\0"
|
||||
+#endif
|
||||
+
|
||||
+#define BOOTENV_DEV_NAME_RESCUE(devtypeu, devtypel, instance) \
|
||||
+ "rescue "
|
||||
+
|
||||
+#ifndef BOOT_TARGET_DEVICES
|
||||
+#define BOOT_TARGET_DEVICES(func) \
|
||||
+ func(RESCUE, rescue, na) \
|
||||
+ func(MMC, mmc, 1) \
|
||||
+ func(MMC, mmc, 0) \
|
||||
+ BOOT_TARGET_DEVICES_USB(func) \
|
||||
+ func(PXE, pxe, na) \
|
||||
+ func(DHCP, dhcp, na)
|
||||
+#endif
|
||||
+
|
||||
+#include <configs/meson64.h>
|
||||
+
|
||||
+#endif /* __JETHUB_CONFIG_H */
|
||||
--
|
||||
2.17.1
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,391 @@
|
||||
From e4e87754aff3c9e961f12ae46426ac05132c1f16 Mon Sep 17 00:00:00 2001
|
||||
From: Vyacheslav Bocharov <adeep@lexina.in>
|
||||
Date: Mon, 20 Sep 2021 11:40:16 +0300
|
||||
Subject: [PATCH 18/30] FROMGIT: ARM: amlogic: add JetHub D1/H1 docs
|
||||
|
||||
Fix doc/board/amlogic/index.rst:
|
||||
- Add S905W to S905X column.
|
||||
- Add JetHub devices to the corresponding columns.
|
||||
- Fix tabs to spaces for table alignment
|
||||
|
||||
Add doc/board/amlogic files:
|
||||
- jethub-j100.rst
|
||||
- jethub-j80.rst
|
||||
|
||||
Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>
|
||||
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
---
|
||||
doc/board/amlogic/index.rst | 128 +++++++++++++++---------------
|
||||
doc/board/amlogic/jethub-j100.rst | 108 +++++++++++++++++++++++++
|
||||
doc/board/amlogic/jethub-j80.rst | 97 ++++++++++++++++++++++
|
||||
3 files changed, 270 insertions(+), 63 deletions(-)
|
||||
create mode 100644 doc/board/amlogic/jethub-j100.rst
|
||||
create mode 100644 doc/board/amlogic/jethub-j80.rst
|
||||
|
||||
diff --git a/doc/board/amlogic/index.rst b/doc/board/amlogic/index.rst
|
||||
index 2913ab281a..c18f1b7e71 100644
|
||||
--- a/doc/board/amlogic/index.rst
|
||||
+++ b/doc/board/amlogic/index.rst
|
||||
@@ -10,69 +10,69 @@ An up-do-date matrix is also available on: http://linux-meson.com
|
||||
|
||||
This matrix concerns the actual source code version.
|
||||
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| | S905 | S905X | S912 | A113X | S905X2 | S922X | S905X3 |
|
||||
-| | | S805X | S905D | | S905D2 | A311D | S905D3 |
|
||||
-| | | | | | S905Y2 | | |
|
||||
-+===============================+===========+=================+==============+============+============+=============+==============+
|
||||
-| Boards | Odroid-C2 | P212 | Khadas VIM2 | S400 | U200 | Odroid-N2 | SEI610 |
|
||||
-| | Nanopi-K2 | Khadas-VIM | Libretech-PC | | SEI510 | Khadas-VIM3 | Khadas-VIM3L |
|
||||
-| | P200 | LibreTech-CC v1 | WeTek Core2 | | | GT-King/Pro | Odroid-C4 |
|
||||
-| | P201 | LibreTech-AC v2 | | | | GSKing-X | Odroid-HC4 |
|
||||
-| | | | | | | | BananaPi-M5 |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| UART | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| Pinctrl/GPIO | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| Clock Control | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| PWM | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| Reset Control | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| Infrared Decoder | No | No | No | No | No | No | No |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| Ethernet | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| Multi-core | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| Fuse access | **Yes** | **Yes** |**Yes** |**Yes** |**Yes** |**Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| SPI (FC) | **Yes** | **Yes** | **Yes** | **Yes** |**Yes** | **Yes** | No |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| SPI (CC) | No | No | No | No | No | No | No |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| I2C | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| USB | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| USB OTG | No | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| eMMC | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| SDCard | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| NAND | No | No | No | No | No | No | No |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| ADC | **Yes** | **Yes** | **Yes** | No | No | No | No |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| CVBS Output | **Yes** | **Yes** | **Yes** | *N/A* | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| HDMI Output | **Yes** | **Yes** | **Yes** | *N/A* | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| CEC | No | No | No | *N/A* | No | No | No |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| Thermal Sensor | No | No | No | No | No | No | No |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| LCD/LVDS Output | No | *N/A* | No | No | No | No | No |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| MIPI DSI Output | *N/A* | *N/A* | *N/A* | No | No | No | No |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| SoC (version) information | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
-| PCIe (+NVMe) | *N/A* | *N/A* | *N/A* | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
-+-------------------------------+-----------+-----------------+--------------+------------+------------+-------------+--------------+
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| | S905 | S905X | S912 | A113X | S905X2 | S922X | S905X3 |
|
||||
+| | | S805X | S905D | | S905D2 | A311D | S905D3 |
|
||||
+| | | S905W | | | S905Y2 | | |
|
||||
++===============================+===========+=================+==============+=============+============+=============+==============+
|
||||
+| Boards | Odroid-C2 | P212 | Khadas VIM2 | S400 | U200 | Odroid-N2 | SEI610 |
|
||||
+| | Nanopi-K2 | Khadas-VIM | Libretech-PC | JetHub J100 | SEI510 | Khadas-VIM3 | Khadas-VIM3L |
|
||||
+| | P200 | LibreTech-CC v1 | WeTek Core2 | | | GT-King/Pro | Odroid-C4 |
|
||||
+| | P201 | LibreTech-AC v2 | | | | GSKing-X | Odroid-HC4 |
|
||||
+| | | JetHub J80 | | | | | BananaPi-M5 |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| UART | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| Pinctrl/GPIO | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| Clock Control | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| PWM | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| Reset Control | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| Infrared Decoder | No | No | No | No | No | No | No |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| Ethernet | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| Multi-core | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| Fuse access | **Yes** | **Yes** |**Yes** |**Yes** |**Yes** |**Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| SPI (FC) | **Yes** | **Yes** | **Yes** | **Yes** |**Yes** | **Yes** | No |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| SPI (CC) | No | No | No | No | No | No | No |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| I2C | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| USB | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| USB OTG | No | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| eMMC | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| SDCard | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| NAND | No | No | No | No | No | No | No |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| ADC | **Yes** | **Yes** | **Yes** | No | No | No | No |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| CVBS Output | **Yes** | **Yes** | **Yes** | *N/A* | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| HDMI Output | **Yes** | **Yes** | **Yes** | *N/A* | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| CEC | No | No | No | *N/A* | No | No | No |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| Thermal Sensor | No | No | No | No | No | No | No |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| LCD/LVDS Output | No | *N/A* | No | No | No | No | No |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| MIPI DSI Output | *N/A* | *N/A* | *N/A* | No | No | No | No |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| SoC (version) information | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
+| PCIe (+NVMe) | *N/A* | *N/A* | *N/A* | **Yes** | **Yes** | **Yes** | **Yes** |
|
||||
++-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+
|
||||
|
||||
Board Documentation
|
||||
-------------------
|
||||
@@ -82,6 +82,8 @@ Board Documentation
|
||||
|
||||
beelink-gtking
|
||||
beelink-gtkingpro
|
||||
+ jethub-j100
|
||||
+ jethub-j80
|
||||
khadas-vim2
|
||||
khadas-vim3l
|
||||
khadas-vim3
|
||||
diff --git a/doc/board/amlogic/jethub-j100.rst b/doc/board/amlogic/jethub-j100.rst
|
||||
new file mode 100644
|
||||
index 0000000000..58602787d3
|
||||
--- /dev/null
|
||||
+++ b/doc/board/amlogic/jethub-j100.rst
|
||||
@@ -0,0 +1,108 @@
|
||||
+.. SPDX-License-Identifier: GPL-2.0+
|
||||
+
|
||||
+U-Boot for JetHub J100
|
||||
+=======================
|
||||
+
|
||||
+JetHome Jethub D1 (http://jethome.ru/jethub-d1) is a home automation
|
||||
+controller manufactured by JetHome with the following specifications:
|
||||
+
|
||||
+ - Amlogic A113X (ARM Cortex-A53) quad-core up to 1.5GHz
|
||||
+ - no video out
|
||||
+ - 512Mb/1GB DDR3
|
||||
+ - 8/16GB eMMC flash
|
||||
+ - 1 x USB 2.0
|
||||
+ - 1 x 10/100Mbps ethernet
|
||||
+ - WiFi / Bluetooth AMPAK AP6255 (Broadcom BCM43455) IEEE
|
||||
+ 802.11a/b/g/n/ac, Bluetooth 4.2.
|
||||
+ - TI CC2538 + CC2592 Zigbee Wireless Module with up to 20dBm output
|
||||
+ power and Zigbee 3.0 support.
|
||||
+ - 2 x gpio LEDS
|
||||
+ - GPIO user Button
|
||||
+ - 1 x 1-Wire
|
||||
+ - 2 x RS-485
|
||||
+ - 4 x dry contact digital GPIO inputs
|
||||
+ - 3 x relay GPIO outputs
|
||||
+ - DC source with a voltage of 9 to 56 V / Passive POE
|
||||
+ - DIN Rail Mounting case
|
||||
+
|
||||
+U-Boot compilation
|
||||
+------------------
|
||||
+
|
||||
+.. code-block:: bash
|
||||
+
|
||||
+ $ export CROSS_COMPILE=aarch64-none-elf-
|
||||
+ $ make jethub_j100_defconfig
|
||||
+ $ make
|
||||
+
|
||||
+Image creation
|
||||
+--------------
|
||||
+
|
||||
+Amlogic doesn't provide sources for the firmware and for tools needed
|
||||
+to create the bootloader image, so it is necessary to obtain binaries
|
||||
+from the git tree published by the board vendor:
|
||||
+
|
||||
+.. code-block:: bash
|
||||
+
|
||||
+ $ git clone https://github.com/jethome-ru/jethub-aml-tools jethub-u-boot
|
||||
+ $ cd jethub-u-boot
|
||||
+ $ export FIPDIR=$PWD
|
||||
+
|
||||
+Go back to mainline U-boot source tree then :
|
||||
+
|
||||
+.. code-block:: bash
|
||||
+
|
||||
+ $ mkdir fip
|
||||
+
|
||||
+ $ cp $FIPDIR/j100/bl2.bin fip/
|
||||
+ $ cp $FIPDIR/j100/acs.bin fip/
|
||||
+ $ cp $FIPDIR/j100/bl21.bin fip/
|
||||
+ $ cp $FIPDIR/j100/bl30.bin fip/
|
||||
+ $ cp $FIPDIR/j100/bl301.bin fip/
|
||||
+ $ cp $FIPDIR/j100/bl31.img fip/
|
||||
+ $ cp u-boot.bin fip/bl33.bin
|
||||
+
|
||||
+ $ $FIPDIR/blx_fix.sh \
|
||||
+ fip/bl30.bin \
|
||||
+ fip/zero_tmp \
|
||||
+ fip/bl30_zero.bin \
|
||||
+ fip/bl301.bin \
|
||||
+ fip/bl301_zero.bin \
|
||||
+ fip/bl30_new.bin \
|
||||
+ bl30
|
||||
+
|
||||
+ $ $FIPDIR/acs_tool.pyc fip/bl2.bin fip/bl2_acs.bin fip/acs.bin 0
|
||||
+
|
||||
+ $ $FIPDIR/blx_fix.sh \
|
||||
+ fip/bl2_acs.bin \
|
||||
+ fip/zero_tmp \
|
||||
+ fip/bl2_zero.bin \
|
||||
+ fip/bl21.bin \
|
||||
+ fip/bl21_zero.bin \
|
||||
+ fip/bl2_new.bin \
|
||||
+ bl2
|
||||
+
|
||||
+ $ $FIPDIR/j100/aml_encrypt_axg --bl3sig --input fip/bl30_new.bin \
|
||||
+ --output fip/bl30_new.bin.enc \
|
||||
+ --level v3 --type bl30
|
||||
+ $ $FIPDIR/j100/aml_encrypt_axg --bl3sig --input fip/bl31.img \
|
||||
+ --output fip/bl31.img.enc \
|
||||
+ --level v3 --type bl31
|
||||
+ $ $FIPDIR/j100/aml_encrypt_axg --bl3sig --input fip/bl33.bin --compress lz4 \
|
||||
+ --output fip/bl33.bin.enc \
|
||||
+ --level v3 --type bl33
|
||||
+ $ $FIPDIR/j100/aml_encrypt_axg --bl2sig --input fip/bl2_new.bin \
|
||||
+ --output fip/bl2.n.bin.sig
|
||||
+ $ $FIPDIR/j100/aml_encrypt_axg --bootmk \
|
||||
+ --output fip/u-boot.bin \
|
||||
+ --bl2 fip/bl2.n.bin.sig \
|
||||
+ --bl30 fip/bl30_new.bin.enc \
|
||||
+ --bl31 fip/bl31.img.enc \
|
||||
+ --bl33 fip/bl33.bin.enc --level v3
|
||||
+
|
||||
+and then write the image to eMMC with:
|
||||
+
|
||||
+.. code-block:: bash
|
||||
+
|
||||
+ $ DEV=/dev/your_emmc_device
|
||||
+ $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=512 skip=1 seek=1
|
||||
+ $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=1 count=444
|
||||
diff --git a/doc/board/amlogic/jethub-j80.rst b/doc/board/amlogic/jethub-j80.rst
|
||||
new file mode 100644
|
||||
index 0000000000..6b7bdc78b1
|
||||
--- /dev/null
|
||||
+++ b/doc/board/amlogic/jethub-j80.rst
|
||||
@@ -0,0 +1,97 @@
|
||||
+.. SPDX-License-Identifier: GPL-2.0+
|
||||
+
|
||||
+U-Boot for JetHub J80
|
||||
+======================
|
||||
+
|
||||
+JetHome Jethub H1 (http://jethome.ru/jethub-h1) is a home automation
|
||||
+controller manufactured by JetHome with the following specifications:
|
||||
+
|
||||
+ - Amlogic S905W (ARM Cortex-A53) quad-core up to 1.5GHz
|
||||
+ - No video out
|
||||
+ - 1GB DDR3
|
||||
+ - 8/16GB eMMC flash
|
||||
+ - 2 x USB 2.0
|
||||
+ - 1 x 10/100Mbps ethernet
|
||||
+ - SDIO WiFi / Bluetooth RTL8822CS IEEE 802.11a/b/g/n/ac, Bluetooth 5.0.
|
||||
+ - TI CC2538 + CC2592 Zigbee Wireless Module with up to 20dBm output
|
||||
+ power and Zigbee 3.0 support.
|
||||
+ - MicroSD 2.x/3.x/4.x DS/HS cards.
|
||||
+ - 1 x gpio LED
|
||||
+ - ADC user Button
|
||||
+ - DC source 5V microUSB
|
||||
+ - Square plastic case
|
||||
+
|
||||
+U-Boot compilation
|
||||
+------------------
|
||||
+
|
||||
+.. code-block:: bash
|
||||
+
|
||||
+ $ export CROSS_COMPILE=aarch64-none-elf-
|
||||
+ $ make jethub_j80_defconfig
|
||||
+ $ make
|
||||
+
|
||||
+Image creation
|
||||
+--------------
|
||||
+
|
||||
+Amlogic doesn't provide sources for the firmware and for tools needed
|
||||
+to create the bootloader image, so it is necessary to obtain binaries
|
||||
+from the git tree published by the board vendor:
|
||||
+
|
||||
+.. code-block:: bash
|
||||
+
|
||||
+ $ git clone https://github.com/jethome-ru/jethub-aml-tools jethub-u-boot
|
||||
+ $ cd jethub-u-boot
|
||||
+ $ export FIPDIR=$PWD
|
||||
+
|
||||
+Go back to mainline U-Boot source tree then :
|
||||
+
|
||||
+.. code-block:: bash
|
||||
+
|
||||
+ $ mkdir fip
|
||||
+
|
||||
+ $ cp $FIPDIR/j80/bl2.bin fip/
|
||||
+ $ cp $FIPDIR/j80/acs.bin fip/
|
||||
+ $ cp $FIPDIR/j80/bl21.bin fip/
|
||||
+ $ cp $FIPDIR/j80/bl30.bin fip/
|
||||
+ $ cp $FIPDIR/j80/bl301.bin fip/
|
||||
+ $ cp $FIPDIR/j80/bl31.img fip/
|
||||
+ $ cp u-boot.bin fip/bl33.bin
|
||||
+
|
||||
+ $ $FIPDIR/blx_fix.sh \
|
||||
+ fip/bl30.bin \
|
||||
+ fip/zero_tmp \
|
||||
+ fip/bl30_zero.bin \
|
||||
+ fip/bl301.bin \
|
||||
+ fip/bl301_zero.bin \
|
||||
+ fip/bl30_new.bin \
|
||||
+ bl30
|
||||
+
|
||||
+ $ python $FIPDIR/acs_tool.pyc fip/bl2.bin fip/bl2_acs.bin fip/acs.bin 0
|
||||
+
|
||||
+ $ $FIPDIR/blx_fix.sh \
|
||||
+ fip/bl2_acs.bin \
|
||||
+ fip/zero_tmp \
|
||||
+ fip/bl2_zero.bin \
|
||||
+ fip/bl21.bin \
|
||||
+ fip/bl21_zero.bin \
|
||||
+ fip/bl2_new.bin \
|
||||
+ bl2
|
||||
+
|
||||
+ $ $FIPDIR/j80/aml_encrypt_gxl --bl3enc --input fip/bl30_new.bin
|
||||
+ $ $FIPDIR/j80/aml_encrypt_gxl --bl3enc --input fip/bl31.img
|
||||
+ $ $FIPDIR/j80/aml_encrypt_gxl --bl3enc --input fip/bl33.bin --compress lz4
|
||||
+ $ $FIPDIR/j80/aml_encrypt_gxl --bl2sig --input fip/bl2_new.bin --output fip/bl2.n.bin.sig
|
||||
+ $ $FIPDIR/j80/aml_encrypt_gxl --bootmk \
|
||||
+ --output fip/u-boot.bin \
|
||||
+ --bl2 fip/bl2.n.bin.sig \
|
||||
+ --bl30 fip/bl30_new.bin.enc \
|
||||
+ --bl31 fip/bl31.img.enc \
|
||||
+ --bl33 fip/bl33.bin.enc
|
||||
+
|
||||
+and then write the image to SD/eMMC with:
|
||||
+
|
||||
+.. code-block:: bash
|
||||
+
|
||||
+ $ DEV=/dev/your_sd_device
|
||||
+ $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=512 skip=1 seek=1
|
||||
+ $ dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=1 count=444
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
From 4fba951d8285c969f9701ae080034cc8129dec83 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Hewitt <christianshewitt@gmail.com>
|
||||
Date: Wed, 15 Sep 2021 01:46:56 +0000
|
||||
Subject: [PATCH 19/30] FROMGIT: ARM: dts: sort Amlogic Makefile section
|
||||
|
||||
Alpha sort the Amlogic dtb list (same as the kernel).
|
||||
|
||||
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
||||
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
||||
---
|
||||
arch/arm/dts/Makefile | 16 ++++++++--------
|
||||
1 file changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
|
||||
index d1893a9812..f0ab716409 100644
|
||||
--- a/arch/arm/dts/Makefile
|
||||
+++ b/arch/arm/dts/Makefile
|
||||
@@ -158,31 +158,31 @@ dtb-$(CONFIG_ARCH_S5P4418) += \
|
||||
s5p4418-nanopi2.dtb
|
||||
|
||||
dtb-$(CONFIG_ARCH_MESON) += \
|
||||
+ meson-axg-s400.dtb \
|
||||
+ meson-axg-jethome-jethub-j100.dtb \
|
||||
meson-gxbb-nanopi-k2.dtb \
|
||||
meson-gxbb-odroidc2.dtb \
|
||||
meson-gxbb-nanopi-k2.dtb \
|
||||
meson-gxbb-p200.dtb \
|
||||
meson-gxbb-p201.dtb \
|
||||
- meson-gxl-s905x-p212.dtb \
|
||||
meson-gxl-s805x-libretech-ac.dtb \
|
||||
- meson-gxl-s905x-libretech-cc.dtb \
|
||||
- meson-gxl-s905x-libretech-cc-v2.dtb \
|
||||
- meson-gxl-s905x-khadas-vim.dtb \
|
||||
meson-gxl-s905d-libretech-pc.dtb \
|
||||
meson-gxl-s905w-jethome-jethub-j80.dtb \
|
||||
+ meson-gxl-s905x-khadas-vim.dtb \
|
||||
+ meson-gxl-s905x-libretech-cc.dtb \
|
||||
+ meson-gxl-s905x-libretech-cc-v2.dtb \
|
||||
+ meson-gxl-s905x-p212.dtb \
|
||||
meson-gxm-khadas-vim2.dtb \
|
||||
meson-gxm-s912-libretech-pc.dtb \
|
||||
meson-gxm-wetek-core2.dtb \
|
||||
- meson-axg-s400.dtb \
|
||||
- meson-axg-jethome-jethub-j100.dtb \
|
||||
- meson-g12a-u200.dtb \
|
||||
meson-g12a-sei510.dtb \
|
||||
+ meson-g12a-u200.dtb \
|
||||
+ meson-g12b-a311d-khadas-vim3.dtb \
|
||||
meson-g12b-gtking.dtb \
|
||||
meson-g12b-gtking-pro.dtb \
|
||||
meson-g12b-gsking-x.dtb \
|
||||
meson-g12b-odroid-n2.dtb \
|
||||
meson-g12b-odroid-n2-plus.dtb \
|
||||
- meson-g12b-a311d-khadas-vim3.dtb \
|
||||
meson-sm1-bananapi-m5.dtb \
|
||||
meson-sm1-khadas-vim3l.dtb \
|
||||
meson-sm1-odroid-c4.dtb \
|
||||
--
|
||||
2.17.1
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user