From patchwork Thu Jan 19 13:44:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 644079 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp216888pvb; Thu, 19 Jan 2023 05:44:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXtT/X/TTSOIdMsl1dwJ2F/4Og2qrv7eHXmI6g5Gs4lWy0JOdh7t5UF0b/hjuwc/A5gKPijV X-Received: by 2002:a05:6808:3020:b0:364:5b57:363d with SMTP id ay32-20020a056808302000b003645b57363dmr5893742oib.59.1674135894449; Thu, 19 Jan 2023 05:44:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674135894; cv=none; d=google.com; s=arc-20160816; b=PqNTrhTQhNirG4738IyGiRX7gTBNgOw3nL98QbM+WF8yJST0VpHJN8U9tMBKZH/rt0 4DsnC0GSjS79B1nBpVZL3nJTDr7RhdUo0Xh1KAUZdDVVX8aqL9Vet53xIUL4jJzrbIk4 zrsxfMawUscEYslgySH8Y+w1PZ6Zg/koHAZThWxIjnJnr7wdkvb91RFj7fw6lBfIwwEi 9U2ydsCag2myJA6F3URP/o6oFxGvQ97YDRR5S3eW6ZhBkw4/zBT2CZanBNPCXw1kgRZh Cu/MLTA93l4kQWOaHTkacGg0LTAq3nd7EQN/qt/z1gaSvXcV21ZD8Cd8JPTl6hWv9Csu 6z+Q== 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=UjdsykXBrE0REl43ikDHvOfEsE8NxaTIb8Vg/gD/bog=; b=ONPO18uPytlFpf3I+RRU7qfLw4R7g/HULxJaVbV7EzoPYL/Wl6ABsHWFGkzP6Cg5Sq Q/6pPAJnO7XXoxCPursjcSwX39TTbVxWNXxCxcYQyNLhOMte7hZ/QDPRVQbmS8PMNeAS OPs2a5kLLIJV7wiXogr3FF/M8qoimVV27jlw3woqsu+wQFPWwPncVleaRgBccXfSnMbW cqEA1KyiYRw4T9ojHiIa9mjGm8D6d1DxgMPT5N5HLSRllUvSclzl6UcFEysyVEuVLB7c DP/ztQjsceNg2zmZqxENvCBpUEvEHBqP6ABdQS6ZuiCTy0/REcwB0HpNHovhqQIldqGl pIWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hbmD73Nr; 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 a9-20020a056808098900b00354d8b293dasi34524708oic.67.2023.01.19.05.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 05:44:54 -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=hbmD73Nr; 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 1DA9B85673; Thu, 19 Jan 2023 14:44:38 +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="hbmD73Nr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 556CF8564E; Thu, 19 Jan 2023 14:44:27 +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-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 E26D485650 for ; Thu, 19 Jan 2023 14:44:21 +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-x336.google.com with SMTP id c10-20020a05600c0a4a00b003db0636ff84so1319698wmq.0 for ; Thu, 19 Jan 2023 05:44:21 -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=UjdsykXBrE0REl43ikDHvOfEsE8NxaTIb8Vg/gD/bog=; b=hbmD73NrLj0v7U4QPxyRcnSeGJoLS2NZrTQHPgHJYXXImvWwsicOK+rF9HivvlUm1T WuZFH410pQZHevDoNdDpp3Thwnv6twMbKENLcnFep3owfEAh9a7xX0iknwjolSwK9qyh h8NVFa6aP6xnizvN2Y/WAsa3rfEwfN4Y3x20YwplJsECzomG0E/9sP1ipbXTWIIFiCOR hCScHe+O4ZuinIHv6xbccNhU3kDepqBH6Z3z0AN+JDtjdlGd4lf4Flsm/V7P3jXrxuO6 oaWmRQX/ZeSjG++WTp0OsuR7By9SQo8Eq5y+ANiJDVGBJBiJZFtoMKTuTiDJo293Djr7 /3Dw== 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=UjdsykXBrE0REl43ikDHvOfEsE8NxaTIb8Vg/gD/bog=; b=701zC7UM19oB25iYvwp59dCb34octRhsAG9FJX6QbiNc/I2o0yvHGbgk3ob0Sb5TYJ 18fom6JnhcvYvpcX6+eILR6kxHi0YvlBn5J32nW5FADtoiZRNCMxcVll/1zuI3Qd9b0t 8fqluSa8AebxHsVqappS7qzY3BZ5zYmv7qp0rudLu5lzewpD0WiXehQHNUCvkdvIh3bE 2OCo9HsRf3j3uiW8PEDb1ETmPT6PbXcdbgaAHsrFuFerfcYktmyM1zeydAwWvHxeqhwj zim+z57w+l9qhtIHJYPbuAZYheIHhmoU0DnJnH8ZS/R12Nw1UVqeiX44MrNjDxokrmtu fnaQ== X-Gm-Message-State: AFqh2kqBr2xzhEMLNHA26uZgivfUBdeCGEOntu8TBpNtIQ30ZMXQh8na qn9i1us2SY38WlW34zuWNsTSIngDTC+8JDdH67c= X-Received: by 2002:a05:600c:4b07:b0:3da:2809:217f with SMTP id i7-20020a05600c4b0700b003da2809217fmr10460801wmp.15.1674135861338; Thu, 19 Jan 2023 05:44:21 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id p13-20020a05600c1d8d00b003daf7721bb3sm4960305wms.12.2023.01.19.05.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 05:44:21 -0800 (PST) From: Neil Armstrong Date: Thu, 19 Jan 2023 14:44:18 +0100 Subject: [PATCH 2/2] ARM: meson: add support for Odroid Go Ultra MIME-Version: 1.0 Message-Id: <20230119-u-boot-odroid-go-ultra-v1-2-f96bab9db396@linaro.org> References: <20230119-u-boot-odroid-go-ultra-v1-0-f96bab9db396@linaro.org> In-Reply-To: <20230119-u-boot-odroid-go-ultra-v1-0-f96bab9db396@linaro.org> To: u-boot@lists.denx.de, u-boot-amlogic@groups.io, Neil Armstrong X-Mailer: b4 0.11.1 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 This adds initial support for the Hardkernel Odroid Go Ultra. The Odroid Go Ultra is a portable gaming device with the following characteristics: - Amlogic S922X SoC - RK817 & RK818 PMICs - 2GiB LPDDR4 - On board 16GiB eMMC - Micro SD Card slot - 5inch 854×480 MIPI-DSI TFT LCD - Earphone stereo jack, 0.5Watt 8Ω Mono speaker - Li-Polymer 3.7V/4000mAh Battery - USB-A 2.0 Host Connector - x16 GPIO Input Buttons - 2x ADC Analog Joysticks - USB-C Port for USB2 Device and Charging The following are not yet handled: - Battery RK818 Gauge and Charging - 5inch 854×480 MIPI-DSI TFT LCD Signed-off-by: Neil Armstrong --- .../arm/dts/meson-g12b-odroid-go-ultra-u-boot.dtsi | 16 +++++ configs/odroid-go-ultra_defconfig | 70 ++++++++++++++++++++++ doc/board/amlogic/index.rst | 4 +- doc/board/amlogic/odroid-go-ultra.rst | 34 +++++++++++ 4 files changed, 123 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/meson-g12b-odroid-go-ultra-u-boot.dtsi b/arch/arm/dts/meson-g12b-odroid-go-ultra-u-boot.dtsi new file mode 100644 index 0000000000..00852f5e54 --- /dev/null +++ b/arch/arm/dts/meson-g12b-odroid-go-ultra-u-boot.dtsi @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2023 Neil Armstrong + */ + +#include "meson-g12-common-u-boot.dtsi" + +/* RK817/818 BOOST regulator aren't supported yet, so remove phandles from PHY nodes */ + +&usb2_phy1 { + /delete-property/ phy-supply; +}; + +&usb3_pcie_phy { + /delete-property/ phy-supply; +}; diff --git a/configs/odroid-go-ultra_defconfig b/configs/odroid-go-ultra_defconfig new file mode 100644 index 0000000000..a4d349fba4 --- /dev/null +++ b/configs/odroid-go-ultra_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-go-ultra" +CONFIG_MESON_G12A=y +CONFIG_DEBUG_UART_BASE=0xff803000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_IDENT_STRING=" odroid-go-ultra" +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_BUTTON=y +CONFIG_BUTTON_ADC=y +CONFIG_BUTTON_GPIO=y +CONFIG_DM_I2C=y +CONFIG_SYS_I2C_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_PMIC=y +CONFIG_PMIC_RK8XX=y +CONFIG_DM_REGULATOR=y +CONFIG_DM_REGULATOR_FIXED=y +CONFIG_DM_REGULATOR_GPIO=y +CONFIG_DM_RESET=y +CONFIG_REGULATOR_RK8XX=y +CONFIG_DEBUG_UART_ANNOUNCE=y +CONFIG_DEBUG_UART_SKIP_INIT=y +CONFIG_MESON_SERIAL=y +CONFIG_SYSINFO=y +CONFIG_SYSINFO_SMBIOS=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_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_OF_LIBFDT_OVERLAY=y diff --git a/doc/board/amlogic/index.rst b/doc/board/amlogic/index.rst index 4d407f9362..11443d9f2c 100644 --- a/doc/board/amlogic/index.rst +++ b/doc/board/amlogic/index.rst @@ -19,7 +19,8 @@ This matrix concerns the actual source code version. | | Nanopi-K2 | Khadas-VIM | Libretech-PC | JetHub J100 | SEI510 | Khadas-VIM3 | Khadas-VIM3L | | | P200 | LibreTech-CC v1 | WeTek Core2 | | Radxa Zero | GT-King/Pro | Odroid-C4 | | | P201 | LibreTech-AC v2 | | | | GSKing-X | Odroid-HC4 | -| | | JetHub J80 | | | | | BananaPi-M5 | +| | | JetHub J80 | | | | Odroid-Go- | BananaPi-M5 | +| | | | | | | Ultra | | +-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ | UART | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | **Yes** | +-------------------------------+-----------+-----------------+--------------+-------------+------------+-------------+--------------+ @@ -105,6 +106,7 @@ Board Documentation odroid-c2 odroid-c4 odroid-n2 + odroid-go-ultra p200 p201 p212 diff --git a/doc/board/amlogic/odroid-go-ultra.rst b/doc/board/amlogic/odroid-go-ultra.rst new file mode 100644 index 0000000000..8df9e0cb79 --- /dev/null +++ b/doc/board/amlogic/odroid-go-ultra.rst @@ -0,0 +1,34 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +U-Boot for ODROID-GO-ULTRA +========================== + +The Odroid Go Ultra is a portable gaming device with the following +characteristics: + + - Amlogic S922X SoC + - RK817 & RK818 PMICs + - 2GiB LPDDR4 + - On board 16GiB eMMC + - Micro SD Card slot + - 5inch 854×480 MIPI-DSI TFT LCD + - Earphone stereo jack, 0.5Watt 8Ω Mono speaker + - Li-Polymer 3.7V/4000mAh Battery + - USB-A 2.0 Host Connector + - x16 GPIO Input Buttons + - 2x ADC Analog Joysticks + - USB-C Port for USB2 Device and Charging + +U-Boot compilation +------------------ + +.. code-block:: bash + + $ export CROSS_COMPILE=aarch64-none-elf- + $ make odroid-go-ultra_defconfig + $ make + +Image creation +-------------- + +Pleaser refer to :doc:`pre-generated-fip` with codename `odroid-go-ultra`