Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 92361C04A68 for ; Wed, 27 Jul 2022 18:29:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 64141844CF; Wed, 27 Jul 2022 20:25:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=edgeble.ai Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=edgeble-ai.20210112.gappssmtp.com header.i=@edgeble-ai.20210112.gappssmtp.com header.b="bGVnkKB9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 02B62817E6; Wed, 27 Jul 2022 19:42:11 +0200 (CEST) Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3E16A817E6 for ; Wed, 27 Jul 2022 19:42:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=edgeble.ai Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=jagan@edgeble.ai Received: by mail-pj1-x1034.google.com with SMTP id q7-20020a17090a7a8700b001f300db8677so2834213pjf.5 for ; Wed, 27 Jul 2022 10:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RiRhmu07vDHwueeXsKcClxHKIGzyW80+DBShDVnUUs4=; b=bGVnkKB9ARM0OZb1mOqaWh7KlwhhwQIR1veeg8PgPkWEk+UVKVD/djGCSj0zIxNK27 cg5RIi48Z75ROY7A189/WsN3Kb2V0dRl5Ltnu3Q772eofVGpHU3bXIz3hiJDmTpNUcHs end0/NxEuToHrSDUhl293ILw9X4Sk4Er+pG6OzA6nur+DSX/G19uBQkIlwX7BdT2bV4U 65QNK718jIwBWJH9/eAxsH9Z22ScFGgGhLfnJJE5CGejA204z0uBMsqvtu0S39sfMVdV ZX/EFxqIY4u55hDheD2jHIOgP03QIvcMtFJ8AM52fpAt9YP06f8kCgP0DwVP5kY++MbU xf7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RiRhmu07vDHwueeXsKcClxHKIGzyW80+DBShDVnUUs4=; b=ydOs6K6W18HjzZj9BxW59d9MGc0Dy8DpQjDi1mkY5o28opri0WbEDnH6VojtklmeRJ 7591dBog+I7Uu/a4W+ltfyeS0DqccZQtJ/KtvZWtbUPz3+lR8oqo5gqeGTbbxEJXAs5P 4PDvHdbFrlN8tITlEIphAJ3EAw6s3LfwtlVyDamCxCQkwI12nwxba53zAIZ2RWFlvaXp TP/mSoWZ+lDWj+Zy0uOtwtin6BL4GSjcSSYmQKJG4p/kSn2Wv6SV8pVSaVC9rGBJiAh3 X3RTwFjcg25hWCBuqT+eOuOiMh67YI7VAqLRFfhZKOeeMZKF7t7d9H51q/q72BUFKZip KIKQ== X-Gm-Message-State: AJIora8S6mNV/kmZu0T46qcVaQBEb/AIcwdKbxo3XnDeZOVQlc1gDVOv anSLHe1XjSn3GjRvlBsvvEuxSw== X-Google-Smtp-Source: AGRyM1v0bV1OKJL7oEMykUr56yzgOhfFa9kd+VvW1Gku7Kc7lF1sHf8b1kcrM9+Oh2cnWq6CWvAtTQ== X-Received: by 2002:a17:90b:3887:b0:1f2:bc1f:64d7 with SMTP id mu7-20020a17090b388700b001f2bc1f64d7mr5921552pjb.31.1658943726529; Wed, 27 Jul 2022 10:42:06 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:7b77:efa3:a08f:c6d8]) by smtp.gmail.com with ESMTPSA id d4-20020a621d04000000b00528c8ed356dsm14492958pfd.96.2022.07.27.10.42.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 10:42:06 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Cc: u-boot@lists.denx.de, Jagan Teki Subject: [PATCH 28/28] board: Add Edgeble AI Edge Compute Module 0 Carrier Date: Wed, 27 Jul 2022 23:10:50 +0530 Message-Id: <20220727174050.2214617-29-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220727174050.2214617-1-jagan@edgeble.ai> References: <20220727174050.2214617-1-jagan@edgeble.ai> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 27 Jul 2022 20:23:40 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Edge Compute Module 0 Carrier is an industrial form factor evaluation board from Edgeble AI. General features: - microSD slot - 2x MIPI CSI2 connectors - MIPI DSI connector - 2x USB Host - 1x USB OTG - Ethernet - mini PCIe - Onboard PoE - RS485, RS232, CAN - Micro Phone array - Speaker - RTC battery slot - 40-pin expansion Edge Compute Module 0 needs to mount on top of this Carrier board for creating Edge Compute Module 0 Carrier platform. Add support for it. Signed-off-by: Jagan Teki --- .../rv1126-edgeble-ecm0-carrier-u-boot.dtsi | 10 ++++ arch/arm/mach-rockchip/rv1126/Kconfig | 12 ++++ board/edgeble/edge-compute-module-0/Kconfig | 16 ++++++ .../edgeble/edge-compute-module-0/MAINTAINERS | 6 ++ board/edgeble/edge-compute-module-0/Makefile | 7 +++ board/edgeble/edge-compute-module-0/ecm0.c | 4 ++ configs/ecm0-carrier-rv1126_defconfig | 56 +++++++++++++++++++ include/configs/edge-compute-module-0.h | 21 +++++++ 8 files changed, 132 insertions(+) create mode 100644 arch/arm/dts/rv1126-edgeble-ecm0-carrier-u-boot.dtsi create mode 100644 board/edgeble/edge-compute-module-0/Kconfig create mode 100644 board/edgeble/edge-compute-module-0/MAINTAINERS create mode 100644 board/edgeble/edge-compute-module-0/Makefile create mode 100644 board/edgeble/edge-compute-module-0/ecm0.c create mode 100644 configs/ecm0-carrier-rv1126_defconfig create mode 100644 include/configs/edge-compute-module-0.h diff --git a/arch/arm/dts/rv1126-edgeble-ecm0-carrier-u-boot.dtsi b/arch/arm/dts/rv1126-edgeble-ecm0-carrier-u-boot.dtsi new file mode 100644 index 0000000000..51a1617708 --- /dev/null +++ b/arch/arm/dts/rv1126-edgeble-ecm0-carrier-u-boot.dtsi @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. + */ + +#include "rv1126-u-boot.dtsi" + +&sdio { + status = "disabled"; +}; diff --git a/arch/arm/mach-rockchip/rv1126/Kconfig b/arch/arm/mach-rockchip/rv1126/Kconfig index 86abc4e2fa..3078a97f40 100644 --- a/arch/arm/mach-rockchip/rv1126/Kconfig +++ b/arch/arm/mach-rockchip/rv1126/Kconfig @@ -1,5 +1,15 @@ if ROCKCHIP_RV1126 +config TARGET_RV1126_ECM0 + bool "Edgeble AI Edge Compute Module 0 SoM" + help + Edge Compute Module 0 is a 96boards SoM-CB compute module based + on Rockchip RV1126 from Edgeble AI. + + ECM0-Carrier: + Edge Compute Module 0 needs to mount on top of this Carrier board + for creating Edge Compute Module 0 Carrier platform. + config SOC_SPECIFIC_OPTIONS # dummy def_bool y select HAS_CUSTOM_SYS_INIT_SP_ADDR @@ -40,4 +50,6 @@ config SYS_MALLOC_F_LEN config SYS_TEXT_BASE default 0x600000 +source board/edgeble/edge-compute-module-0/Kconfig + endif diff --git a/board/edgeble/edge-compute-module-0/Kconfig b/board/edgeble/edge-compute-module-0/Kconfig new file mode 100644 index 0000000000..65b2faa10b --- /dev/null +++ b/board/edgeble/edge-compute-module-0/Kconfig @@ -0,0 +1,16 @@ +if TARGET_RV1126_ECM0 + +config SYS_BOARD + default "edge-compute-module-0" + +config SYS_VENDOR + default "edgeble" + +config SYS_CONFIG_NAME + default "edge-compute-module-0" + +config BOARD_SPECIFIC_OPTIONS # dummy + def_bool y + select RAM_ROCKCHIP_LPDDR4 + +endif diff --git a/board/edgeble/edge-compute-module-0/MAINTAINERS b/board/edgeble/edge-compute-module-0/MAINTAINERS new file mode 100644 index 0000000000..f21295cc6c --- /dev/null +++ b/board/edgeble/edge-compute-module-0/MAINTAINERS @@ -0,0 +1,6 @@ +RV1126-ECM0 +M: Jagan Teki +S: Maintained +F: board/edgeble-ai/edge-compute-module-0 +F: include/configs/edge-compute-module-0.h +F: configs/ecm0-carrier-rv1126_defconfig diff --git a/board/edgeble/edge-compute-module-0/Makefile b/board/edgeble/edge-compute-module-0/Makefile new file mode 100644 index 0000000000..c42a0b7fba --- /dev/null +++ b/board/edgeble/edge-compute-module-0/Makefile @@ -0,0 +1,7 @@ +# +# Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += ecm0.o diff --git a/board/edgeble/edge-compute-module-0/ecm0.c b/board/edgeble/edge-compute-module-0/ecm0.c new file mode 100644 index 0000000000..3d2262ce97 --- /dev/null +++ b/board/edgeble/edge-compute-module-0/ecm0.c @@ -0,0 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. + */ diff --git a/configs/ecm0-carrier-rv1126_defconfig b/configs/ecm0-carrier-rv1126_defconfig new file mode 100644 index 0000000000..11cd68fb41 --- /dev/null +++ b/configs/ecm0-carrier-rv1126_defconfig @@ -0,0 +1,56 @@ +CONFIG_ARM=y +CONFIG_SPL_SKIP_LOWLEVEL_INIT_ONLY=y +CONFIG_TPL_SKIP_LOWLEVEL_INIT_ONLY=y +CONFIG_COUNTER_FREQUENCY=24000000 +CONFIG_SYS_ARCH_TIMER=y +CONFIG_ARCH_ROCKCHIP=y +CONFIG_NR_DRAM_BANKS=1 +CONFIG_DEFAULT_DEVICE_TREE="rv1126-edgeble-ecm0-carrier" +CONFIG_ROCKCHIP_RV1126=y +CONFIG_TARGET_RV1126_ECM0=y +CONFIG_DEBUG_UART_BASE=0xff570000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_SYS_LOAD_ADDR=0xe00800 +CONFIG_DEBUG_UART=y +CONFIG_FIT_VERBOSE=y +CONFIG_DEFAULT_FDT_FILE="rv1126-edgeble-ecm0-carrier.dtb" +# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_DISPLAY_BOARDINFO_LATE=y +CONFIG_MISC_INIT_R=y +CONFIG_SPL_PAD_TO=0x7f8000 +CONFIG_SPL_NO_BSS_LIMIT=y +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set +# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set +# CONFIG_CMD_BOOTD is not set +CONFIG_SYS_BOOTM_LEN=0x4000000 +# CONFIG_CMD_ELF is not set +# CONFIG_CMD_IMI is not set +# CONFIG_CMD_XIMG is not set +CONFIG_CMD_GPT=y +# CONFIG_CMD_LOADB is not set +# CONFIG_CMD_LOADS is not set +CONFIG_CMD_MMC=y +# CONFIG_CMD_ITEST is not set +# CONFIG_CMD_SETEXPR is not set +# CONFIG_SPL_DOS_PARTITION is not set +# CONFIG_ISO_PARTITION is not set +CONFIG_EFI_PARTITION_ENTRIES_NUMBERS=64 +CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" +CONFIG_ENV_IS_IN_MMC=y +CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_ROCKCHIP_GPIO=y +CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y +CONFIG_MMC_DW=y +CONFIG_MMC_DW_ROCKCHIP=y +CONFIG_REGULATOR_PWM=y +CONFIG_PWM_ROCKCHIP=y +# CONFIG_RAM_ROCKCHIP_DEBUG is not set +CONFIG_BAUDRATE=1500000 +CONFIG_DEBUG_UART_SHIFT=2 +CONFIG_SYSRESET=y +# CONFIG_TPL_SYSRESET is not set +CONFIG_DM_THERMAL=y +CONFIG_SPL_TINY_MEMSET=y +CONFIG_LZO=y +CONFIG_ERRNO_STR=y diff --git a/include/configs/edge-compute-module-0.h b/include/configs/edge-compute-module-0.h new file mode 100644 index 0000000000..32f4e3227b --- /dev/null +++ b/include/configs/edge-compute-module-0.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. + */ + +#ifndef __EDGE_COMPUTE_MODULE_0_H +#define __EDGE_COMPUTE_MODULE_0_H + +#define ROCKCHIP_DEVICE_SETTINGS \ + "stdout=serial,vidconsole\0" \ + "stderr=serial,vidconsole\0" + +#include + +#undef BOOT_TARGET_DEVICES + +#define BOOT_TARGET_DEVICES(func) \ + func(MMC, mmc, 0) \ + func(MMC, mmc, 1) + +#endif /* __EDGE_COMPUTE_MODULE_0_H */ -- 2.25.1