From patchwork Fri Nov 6 09:07:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 320785 Delivered-To: patch@linaro.org Received: by 2002:a17:906:d156:0:0:0:0 with SMTP id br22csp297884ejb; Fri, 6 Nov 2020 01:08:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJySOEuupotGzyuuu30+gESaQ5Jy1IGyN6tjDm91+8wBM5dzTcawAoLHkMWcO0eddy/9wSfV X-Received: by 2002:a17:906:35da:: with SMTP id p26mr1096046ejb.256.1604653736617; Fri, 06 Nov 2020 01:08:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604653736; cv=none; d=google.com; s=arc-20160816; b=z2SLZASMy/c2VgQaOAMeZRMUdJTrDsifngwS4AgHZ4nuck97UDdXSkABFx5EiRQZQt 5JzTngM/yJqbABEwTT83hfkQzmNkNYYH9iwJzySZ7Ju1UCa2CCE2u2/4RD/5zVmAsh0B Oz8QDarplBw5iFfF3NQcqaRkOFy/eJnW9TejiXQlGrY6za1KysNcL97OVzg0DwaGTBBd 9tx4ygPY82RciHOhdhlUBreip1vwSICtbwVd8DoTWsq7lf6OetZOXLV50Ugv3ijE7MRp ikpTBAOKpeS6v0utxjFi5slbuI831StGnZZsb/A/iogkJJ2dK5k6266iydaX+KtUa8Lk fvcA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/sCGQvFU/zZ7HtTPj3BQOLLF5V4fF1rtuL7B/tbn9Vc=; b=xlNhZ0NpM/yNDhmMmtYmZKQJ36Xq9X5i/73P2E5iz9BHCPnbTxKFqnSoEPZnW+Dbgr VArV6H0hvegXG8eHCuX0jPMWRf/+1D4Hch5ibYDSTKubYx09JWk/yB16tvLzbUrCcx2v sJ8qroYWfTjHachLHlC06iFe890wLb8GWPJBqlLkjimMxKo6pKt4BLnh0bW9AH1qKbdU eUPlKTQClHGCsszk/iq9o6g5SDB33hzl0VeHFw4rqch1Kw26+YjXkq8cH15Z46YLMcm6 JXcNkCMsAVW/kMpW29Jx2W9Ll+28GygaxRRQw+DWDa9sAsCyTZ99aa2tEMMhJGfcG0Tw vHQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=nBgPVZ4i; 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 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 r10si459302ejr.168.2020.11.06.01.08.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 01:08:56 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=nBgPVZ4i; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1AD1A82369; Fri, 6 Nov 2020 10:08:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com 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=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="nBgPVZ4i"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C238F808F1; Fri, 6 Nov 2020 10:08:31 +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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,UPPERCASE_50_75,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (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 9A48F808F1 for ; Fri, 6 Nov 2020 10:08:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbrunet@baylibre.com Received: by mail-wr1-x444.google.com with SMTP id a3so475264wrx.13 for ; Fri, 06 Nov 2020 01:08:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/sCGQvFU/zZ7HtTPj3BQOLLF5V4fF1rtuL7B/tbn9Vc=; b=nBgPVZ4iXZCY9T6SMtEFyPcgWQjTgGezWOlaIKGMKeuIBLnyZWIXyV+tksGx34XRPm NDiwUGjGVCd6zfbuwF55luj4fJrkftRG9+A9sP51/Kz6lsNOW8Y1Ws9blnke9WA15BcE mVVeAwGQs+cLHzZjnbRweOk9OoPnsRk/SBpAXPZevBqQFRBENsgJAXrm3C7qnz4oHjOz fXzmUlh+dD+d03HgARZbLJ1RS2EyjNnz32dv5V2Z6zpggWr+S5KPZMluzIl5WaOZwSw0 XgzyTTBJkAIV3KRz+6eCHi1TsJJo8K/FOitVdoWMLIvNCz6ia2jr4GzyarY/XCIK6mkH wEAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/sCGQvFU/zZ7HtTPj3BQOLLF5V4fF1rtuL7B/tbn9Vc=; b=LGHbrIw5qmEGndARF1YeGvt2xoceOjNvU5iL9RtzAy5S4U11brnsBp3BRSFD4sSZQq c4AMRgHFIL0kNjVmqSBeCJ1Der9cVgjrFqwkwDfz0SqQ47fx6KX0HfNxH/2axCm9dMRt b2TIYtwgH8h9rQy5rM2GaQkqQ9Jlvf14BOl3NndG92XuJ1jRfL7KpjniyeUPUvtlVvjc GcERJmLSxcHpZK4fknciBk65w9IcFChzveCNnu84zuOZoZ2JG+InmeKGfFOTqUmgFu6m DkO/1Zt6+S5YRV42BlrMJ0mKl30jlReBXCOLePGweCekKcox8IIF6kioojiTKSafWURy kQig== X-Gm-Message-State: AOAM533WBiaPf8ysx3CFpyA3dfl41E8u/3gFI5ccvVAVAOwLGRl/5YEX 9q6BnW+7VhKTfnXD4hTwl2TFyg== X-Received: by 2002:a5d:4ac1:: with SMTP id y1mr1562694wrs.27.1604653707190; Fri, 06 Nov 2020 01:08:27 -0800 (PST) Received: from localhost.localdomain (253.35.17.109.rev.sfr.net. [109.17.35.253]) by smtp.googlemail.com with ESMTPSA id m21sm1615960wmi.3.2020.11.06.01.08.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 01:08:26 -0800 (PST) From: Jerome Brunet To: Neil Armstrong , u-boot@lists.denx.de, u-boot-amlogic@groups.io Cc: Jerome Brunet , Da Xue Subject: [PATCH v2 2/2] arm64: meson: add support for libretech-cc v2 Date: Fri, 6 Nov 2020 10:07:52 +0100 Message-Id: <20201106090752.31005-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201106090752.31005-1-jbrunet@baylibre.com> References: <20201106090752.31005-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean Add support for the Amlogic based libretech cc version 2. As version 1, it is based on the s905x SoC. Signed-off-by: Jerome Brunet --- arch/arm/dts/Makefile | 1 + ...eson-gxl-s905x-libretech-cc-v2-u-boot.dtsi | 7 ++ configs/libretech-cc_v2_defconfig | 82 +++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 arch/arm/dts/meson-gxl-s905x-libretech-cc-v2-u-boot.dtsi create mode 100644 configs/libretech-cc_v2_defconfig -- 2.28.0 diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index b195723f1645..e957820e8e62 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -159,6 +159,7 @@ dtb-$(CONFIG_ARCH_MESON) += \ 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-gxm-khadas-vim2.dtb \ diff --git a/arch/arm/dts/meson-gxl-s905x-libretech-cc-v2-u-boot.dtsi b/arch/arm/dts/meson-gxl-s905x-libretech-cc-v2-u-boot.dtsi new file mode 100644 index 000000000000..8ff5a0ef2ba5 --- /dev/null +++ b/arch/arm/dts/meson-gxl-s905x-libretech-cc-v2-u-boot.dtsi @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2020 BayLibre, SAS. + * Author: Jerome Brunet + */ + +#include "meson-gxl-u-boot.dtsi" diff --git a/configs/libretech-cc_v2_defconfig b/configs/libretech-cc_v2_defconfig new file mode 100644 index 000000000000..e71f88edaec6 --- /dev/null +++ b/configs/libretech-cc_v2_defconfig @@ -0,0 +1,82 @@ +CONFIG_ARM=y +CONFIG_ARCH_MESON=y +CONFIG_SYS_TEXT_BASE=0x01000000 +CONFIG_ENV_SIZE=0x2000 +CONFIG_ENV_OFFSET=0xFFFF0000 +CONFIG_ENV_SECT_SIZE=0x10000 +CONFIG_DM_GPIO=y +CONFIG_MESON_GXL=y +CONFIG_NR_DRAM_BANKS=1 +CONFIG_DEBUG_UART_BASE=0xc81004c0 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_IDENT_STRING=" libretech-cc-v2" +CONFIG_DEBUG_UART=y +CONFIG_OF_BOARD_SETUP=y +CONFIG_USE_PREBOOT=y +CONFIG_PREBOOT="usb start" +CONFIG_MISC_INIT_R=y +# CONFIG_DISPLAY_CPUINFO is not set +# CONFIG_DISPLAY_BOARDINFO is not set +# CONFIG_CMD_BDI is not set +# CONFIG_CMD_IMI is not set +CONFIG_CMD_ADC=y +CONFIG_CMD_GPIO=y +# CONFIG_CMD_LOADS is not set +CONFIG_CMD_MMC=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_DEFAULT_DEVICE_TREE="meson-gxl-s905x-libretech-cc-v2" +CONFIG_ENV_IS_IN_SPI_FLASH=y +CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_NET_RANDOM_ETHADDR=y +CONFIG_SARADC_MESON=y +CONFIG_DM_KEYBOARD=y +CONFIG_DM_MMC=y +CONFIG_MMC_MESON_GX=y +CONFIG_MTD=y +CONFIG_DM_MTD=y +CONFIG_DM_SPI_FLASH=y +CONFIG_SPI_FLASH_GIGADEVICE=y +CONFIG_PHY_ADDR_ENABLE=y +CONFIG_PHY_ADDR=8 +CONFIG_PHY_MESON_GXL=y +CONFIG_DM_ETH=y +CONFIG_ETH_DESIGNWARE=y +CONFIG_PHY=y +CONFIG_MESON_GXL_USB_PHY=y +CONFIG_PINCTRL=y +CONFIG_PINCTRL_MESON_GXL=y +CONFIG_POWER_DOMAIN=y +CONFIG_MESON_GX_VPU_POWER_DOMAIN=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_SPI=y +CONFIG_DM_SPI=y +CONFIG_MESON_SPIFC=y +CONFIG_USB=y +CONFIG_DM_USB=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_DWC3_OF_SIMPLE=y +CONFIG_USB_DWC3=y +# CONFIG_USB_DWC3_GADGET is not set +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_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_OF_LIBFDT_OVERLAY=y