From patchwork Thu Jan 26 09:48:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 647084 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp151319pvb; Thu, 26 Jan 2023 01:48:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXsgVSNSWUEvyLE87sDS05ey8wmANsAGolXPMwSD/7IoP1SffAVD3Z5orUoUNnxWar4JVeyc X-Received: by 2002:a4a:33d6:0:b0:4f2:ca50:7571 with SMTP id q205-20020a4a33d6000000b004f2ca507571mr16910298ooq.3.1674726529505; Thu, 26 Jan 2023 01:48:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674726529; cv=none; d=google.com; s=arc-20160816; b=tOhe7LXMDfLNHxEMkUiLiLNOqm1HLsa0Jq4GXghGqc26BUzmLQJ7ite3gbNJ8XwJcy qNj6jKwTxL/Xi5peg7Jg/m5F1wi2lbr9KjrlBvciWQDyRyC8hEVE1/8sS4zwpLHTX1qc Q5f8R760PDSvRo8XnOFsSmZNJWS/vhocsERdmvpy0uuOw5kyuwpR7uxTTzWdEYIo7ivX uvF+5ZvhGbjaapDswi5gsC32acVtPI1Rp0975uW+xL6ckgLkpz36LwRXj+2vPgMy+JW+ p/zKHznyP/Nzw6HNjxFCxQc3Xgjd4MmawImF6EWWscSmgEe8gY8eMQwag9BeMF2OXVUD pENg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=CMIt0IDHqrf8Q/B+/ijprhoZ4ml6e5GfJrLmcn8HZCA=; b=PlhSXJ7V8RnooTAIfBU+bGCTA9GtRhgQlSZQm5jP3Z8nBc4XKAcHxw+aDTppqMLdVh wrvh7DHO/hN1/iYW3mKSMzzgc25Zlt7zo/lIsp7DTo2Av32law/9ZW4yqfxaMHonJS6S 2ajo/ei3ZkwgmHugDd9RoUyP6qRkwhkiyMQtD3cSJAQ7zRDxHUCTkms3sD0SOOgUtv+4 21h0v0XccfYPZXUPdLVLGfIjRffoYhoKHzFI4id7r9hx2Uut+9WfywDtWKH7JFe82qAF ImcgO9ZHYmiPs4diWNCJ0wRjzMj3KCVOpsKjglpA8Jsnb7LHm/TU/+xowdmxsICJaxM8 YJ5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LsfIjPda; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id v187-20020a4a7cc4000000b005111f2a9ad4si1138681ooc.69.2023.01.26.01.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 01:48:49 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LsfIjPda; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D1F4785695; Thu, 26 Jan 2023 10:48:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="LsfIjPda"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 660F48551E; Thu, 26 Jan 2023 10:48:39 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 60C34856CA for ; Thu, 26 Jan 2023 10:48:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=neil.armstrong@linaro.org Received: by mail-wm1-x334.google.com with SMTP id f25-20020a1c6a19000000b003da221fbf48so743359wmc.1 for ; Thu, 26 Jan 2023 01:48:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CMIt0IDHqrf8Q/B+/ijprhoZ4ml6e5GfJrLmcn8HZCA=; b=LsfIjPda16zJP+i2ut9WOyHuhZ/kHPdMxMwY0EEYccjDQq3gCRPEV6kTcdhtBeZJIt EP8D3srT2WZZstTbL33H/wZSwz24heAc+lEAc2p6tX1OaU8XHoPSJkoEmpIZZKUyCM+e klnn2TdZiS1B+bVVWAevx/R0tHeKE9S6L/jk9R8A6r/TPentuyXIDHzvdeal59eZ032p KcQ3vIOAaMxC7Pl7mJNwWbtptmg1hBf9Yq7knLXe/XLK+wbG9jo4lCeVwZb5UyguuDhI Kq90iLSV8d4nS38HfsHcf1MHjrH8XxH35LgPiO5tVIRbX+8hrl0RZCKF4jdpyN+LDzaP C61g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CMIt0IDHqrf8Q/B+/ijprhoZ4ml6e5GfJrLmcn8HZCA=; b=v9n4EqIT6ACvZLodyCvKVSpX76L6GVSxfsMYQWgPUIf7N1c5Rv0AwUsgth8Cy2daiE E7ToawkhRRZMtU3vGf/JaDM1bwzNPfj8smpPTRF8RBVR16837WaiNNSVFLixVrrs9T4Y dgacjURii2GSSoL+NcnGeuDYPNIAkjhRrpUeVqCQ3JKjlicEcvjq3ymsn9LNadRu1rVf aIWTgxGloFeA6jUAnInCopXLPeR1NKaSaFZBjuZWR2IBS9w96wveoezjPIeZv5VXb3UG W02bO2aSMaOMleISy50yuxvSOhIzUJKZwGRaYeknbsxXPfZUTmjDLnog5loqMotUmDpK 5cpQ== X-Gm-Message-State: AFqh2kpdCYnl0gUjDOoccJJbMFJ9qWU2CoiUUdLbc7grP3i7PFP+6cS/ QL+hDuHCtYa+KZ2PU3g22atCOveg7Kmg3AQU8gI= X-Received: by 2002:a05:600c:5d1:b0:3d0:761b:f86 with SMTP id p17-20020a05600c05d100b003d0761b0f86mr35324954wmd.28.1674726511817; Thu, 26 Jan 2023 01:48:31 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id w8-20020a05600c2a0800b003db06224953sm1062044wme.41.2023.01.26.01.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 01:48:30 -0800 (PST) From: Neil Armstrong Date: Thu, 26 Jan 2023 10:48:21 +0100 Subject: [PATCH 2/2] ARM: meson: Add support for Odroid-N2L MIME-Version: 1.0 Message-Id: <20230126-u-boot-odroid-n2l-v1-2-c60f695e0f6c@linaro.org> References: <20230126-u-boot-odroid-n2l-v1-0-c60f695e0f6c@linaro.org> In-Reply-To: <20230126-u-boot-odroid-n2l-v1-0-c60f695e0f6c@linaro.org> To: u-boot@lists.denx.de, u-boot-amlogic@groups.io, Neil Armstrong X-Mailer: b4 0.12.0 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 ODROID-N2L is a variant SBC in small form factor and some peripherals are removed from ODROID-N2PLUS based on S922X SoC. - On-board ethernet is removed - On-board RTC is removed - USB 3.0 hub is removed, so one USB 2.0 and one USB 3.0 host ports are available - Huge heatsink is replaced with 40x40mm heatsink, 5V active heatsink is recommended or a tall passive sink is optional - 3.5mm earjack is removed - IR remote receiver is removed - MIPI DSI port is added It doesn't use the odroid-n2 board support since ADC revision collides with Odroid-N2+ and since it doesn't have on-board ethernet no need to load the MAC address from eFuses. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-g12b-odroid-n2l-u-boot.dtsi | 7 +++ configs/odroid-n2l_defconfig | 70 ++++++++++++++++++++++++++ doc/board/amlogic/index.rst | 2 + doc/board/amlogic/odroid-n2l.rst | 31 ++++++++++++ 4 files changed, 110 insertions(+) diff --git a/arch/arm/dts/meson-g12b-odroid-n2l-u-boot.dtsi b/arch/arm/dts/meson-g12b-odroid-n2l-u-boot.dtsi new file mode 100644 index 0000000000..236f2468dc --- /dev/null +++ b/arch/arm/dts/meson-g12b-odroid-n2l-u-boot.dtsi @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 BayLibre, SAS. + * Author: Neil Armstrong + */ + +#include "meson-g12-common-u-boot.dtsi" diff --git a/configs/odroid-n2l_defconfig b/configs/odroid-n2l_defconfig new file mode 100644 index 0000000000..7f9e64d942 --- /dev/null +++ b/configs/odroid-n2l_defconfig @@ -0,0 +1,70 @@ +CONFIG_ARM=y +CONFIG_SYS_BOARD="w400" +CONFIG_ARCH_MESON=y +CONFIG_TEXT_BASE=0x01000000 +CONFIG_NR_DRAM_BANKS=1 +CONFIG_ENV_SIZE=0x2000 +CONFIG_DM_GPIO=y +CONFIG_DEFAULT_DEVICE_TREE="meson-g12b-odroid-n2l" +CONFIG_MESON_G12A=y +CONFIG_DEBUG_UART_BASE=0xff803000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_IDENT_STRING=" odroid-n2l" +CONFIG_SYS_LOAD_ADDR=0x1000000 +CONFIG_DEBUG_UART=y +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x20000000 +CONFIG_REMAKE_ELF=y +CONFIG_OF_BOARD_SETUP=y +# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_MISC_INIT_R=y +CONFIG_SYS_MAXARGS=32 +# 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_ADC=y +CONFIG_SARADC_MESON=y +CONFIG_MMC_MESON_GX=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_DM_USB_GADGET=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_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_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 11443d9f2c..f945f672dd 100644 --- a/doc/board/amlogic/index.rst +++ b/doc/board/amlogic/index.rst @@ -21,6 +21,7 @@ This matrix concerns the actual source code version. | | P201 | LibreTech-AC v2 | | | | GSKing-X | Odroid-HC4 | | | | JetHub J80 | | | | Odroid-Go- | BananaPi-M5 | | | | | | | | Ultra | | +| | | | | | | Odroid-N2L | | +-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ | UART | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | +-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ @@ -106,6 +107,7 @@ Board Documentation odroid-c2 odroid-c4 odroid-n2 + odroid-n2l odroid-go-ultra p200 p201 diff --git a/doc/board/amlogic/odroid-n2l.rst b/doc/board/amlogic/odroid-n2l.rst new file mode 100644 index 0000000000..afd4409d1b --- /dev/null +++ b/doc/board/amlogic/odroid-n2l.rst @@ -0,0 +1,31 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +U-Boot for ODROID-N2L +===================== + +ODROID-N2L is a single board computer manufactured by Hardkernel +Co. Ltd with the following specifications: + + - Amlogic S922X ARM Cortex-A53 dual-core + Cortex-A73 quad-core SoC + - 4GB DDR4 SDRAM + - HDMI 2.1 4K/60Hz display + - 40-pin GPIO header + - 1 x USB 3.0 Host, 1 x USB USB 2.0 Host + - eMMC, microSD + - MIPI DSI Port + +Schematics are available on the manufacturer website. + +U-Boot compilation +------------------ + +.. code-block:: bash + + $ export CROSS_COMPILE=aarch64-none-elf- + $ make odroid-n2l_defconfig + $ make + +Image creation +-------------- + +For simplified usage, pleaser refer to :doc:`pre-generated-fip` with codename `odroid-n2l`