From patchwork Fri Feb 17 11:58:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2720 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 39E773F07F for ; Fri, 17 Feb 2023 12:59:11 +0100 (CET) Received: by mail-pl1-f199.google.com with SMTP id n1-20020a170902f60100b0019a68e484e1sf639251plg.14 for ; Fri, 17 Feb 2023 03:59:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1676635150; cv=pass; d=google.com; s=arc-20160816; b=xEVLCnH/+FSAcoxgoSZw1dndxiLvJuBDIZXFbxYwEZp7FMDz693Xt095z4W8yySi3M 2X2aQ9l36UcvLZJ15gcAblOWrKo5gYn/v2xz7tpCL8JLif9BXoXb8MQZfcdcTKHtTxcM vpOGl7zol19de9gXd7SlKSZ4w8vZ9zMjyyaNiEs59A08S+3FTmq11Bk9Mk8Km0w0YKwM elBr95WDTVqHTKPIutuTA8FMWzi+u0MRa6ksf7kjXHE/raX/BNBXxb0eqZabXDjUVvT1 M8etOr+5A4mK9N+9XkHHrZt/5SEU3AlxEIc5yRH6yGN/ovd5e/0m8Q30otwxqt7NEC5n nVNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=8a+lF8Xrx9nlTpO3BU+LzsL9pgGxdV8zdFWLZgdCyLY=; b=kbdo+HXCzE+7bly9xU50hWhls75TQObERK1gHIaYZOy95bEYUABBfLg3XaCT+G+Qj7 i4O10jh7Nu14C/TtDmYsS85wvOtkQf4dmogeoqwxGAyDt/WOOLU7XT1qRokskU6wV8Vn ODnHy1INTXQX7XA29SHos6bt2vyLQw47NSgGi4OEK4vZI6YYdKZX38Edx1pPIG9AVd7I J+eQjDntlLBvpVxzNOxAX6+pfRZMTpG5Bg9ty+VFM2FfcYTKqclFP0uJeZ1WS9SNu+F9 EdRXXo68OvlG0V8kxjRlMthc4BgZ+oYiIr051gwJbt+TytGeDUoJ/mMGqknWCsfF1pEm uNtw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VwuEyZx6; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=8a+lF8Xrx9nlTpO3BU+LzsL9pgGxdV8zdFWLZgdCyLY=; b=RVq8LD2GL66yPUV5EFyIJpcdHmXQt/JfqaKWUF4tldw6t35y7xWEiqjR6/ypyWDUMC KPod2B8Rp/4QklhZaaw/fYnBKIAaVmorMn5KacKvxKlP2FU4CRRfNGzkLMSgu3K0XIA4 hnMiNuWYuQHz4wwGmMxAiq4zjzaGT7d/zO1CU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8a+lF8Xrx9nlTpO3BU+LzsL9pgGxdV8zdFWLZgdCyLY=; b=khsEMPVgi8VX6Q0Ao9d6zdFyv4oMJss/tmWyPU2aI5H0WqTjKejC2ZV1MTgsmEwW+6 UNhi8wMkegyX9MFBZS+gMvCrbYzG9LR2ugBapjXjQwNJ4ZZO4MsYoLF8LQdKqchNrdUL xRUL2Jrdy8KMXWYyjZ2nXE5UWCmuoLKoTgODNr53287sQ53nVlclAlCDSppPivdvQTag 0yTTFkxrXPA3MUe9tu5Ndgv/Mn+K1AvWIRC+MmpwFNCpCXMYhXST8giAuGEoEDdt5NE1 eh1UvE1RbxnsO8dnpjU+JomTPLBLv7p1PEmc5lG8d2QRXsv9OGJyUaGN3nUK7ViwnE6p o9Ng== X-Gm-Message-State: AO0yUKVkAGBh5RzxVYXn2766zxWYsk/80EW/BsVDgmzfJTlKN4fAante sVn+CUtDMl85jUpyT5NuNSk7m8E/fniuOg== X-Google-Smtp-Source: AK7set8HP4wqmZatLPLVctRl/fwvyoFD7l6LqMPHHHjQvG1Ras0tmlE+qxxglLPuYwBdW1A5TPoCNw== X-Received: by 2002:a17:90b:4d8c:b0:230:87d0:6b with SMTP id oj12-20020a17090b4d8c00b0023087d0006bmr1579233pjb.11.1676635149927; Fri, 17 Feb 2023 03:59:09 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:fcb:b0:234:a618:558a with SMTP id 69-20020a17090a0fcb00b00234a618558als1075442pjz.1.-pod-control-gmail; Fri, 17 Feb 2023 03:59:09 -0800 (PST) X-Received: by 2002:a17:902:d4d1:b0:19b:dbf7:f9e4 with SMTP id o17-20020a170902d4d100b0019bdbf7f9e4mr2816860plg.29.1676635149059; Fri, 17 Feb 2023 03:59:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676635149; cv=none; d=google.com; s=arc-20160816; b=wFJHxJ6NV3JnZ4uAEGIwbSt8TKrrcuLHIPJihkFSp4xPy9QHKdWdYN0c7Fl+zoHuv9 A5O3y7fdTW1Wzowik0WgRbTDNJdVeoxjMmyGPEFwySX1RqRB0pwrIfisG1YMkNwuQp61 LP+9LSh0OS2Eepd47lafEzQPSBBRogeQaYKXnfwL8rMoFlS7vgEJPtnCs4tMycUmI+I9 P5/yHW9/EDoWNWXqJA7f2PuBLKFod0ncpUek3h+yUZvrUa0gH3mDrO0vE48fLGcR/mMs nvdE+5QJ/EareuLaXjR5+8iQ6NP93DlKQ9WxmXwQzIh1Da4P0WyluDF4nIQ6JaLUr9Bi 0PLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ZwMTkLEhcBKnw+uY94vxhHExZJgKmGaCBa+XGRD0uQ0=; b=s56qbtdoPnwiJJdSEDm4V+ZwG+TUsMcdqmVSUTOwV/MFGrNaNySNy9OH+xuI3VJgWK R1hf5pJU6Aphw6i/wgXZ//Q6EUNqXr6LOnlf454Da8bNt17gpSpBnfN2xedE2akvQfmP ooprHshdM2Kun/h1/pXqTlPUay893FefA4NRMQcglCX1zg1jN2RdmbJgNSjiI/1RqgAZ mctyxeSmawj0f4+F+AQmczJaq/IqG92rPrlY9g8yMhA+Majqn03w3GHnjXsqgSrWRkG+ L/ZOXol+4wxGdORic4VJ99OqFg7RisBQ31SZdzyNabl0BUFeROBc0rNYfZ5Hq1aS7sbv zQkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VwuEyZx6; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a7-20020a170902ecc700b0019482352535sor2177287plh.1.2023.02.17.03.59.09 for (Google Transport Security); Fri, 17 Feb 2023 03:59:09 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:902:f682:b0:199:2ee:6238 with SMTP id l2-20020a170902f68200b0019902ee6238mr795988plg.16.1676635148788; Fri, 17 Feb 2023 03:59:08 -0800 (PST) Received: from localhost.localdomain ([183.83.141.79]) by smtp.gmail.com with ESMTPSA id ik15-20020a170902ab0f00b001991d6c6c64sm2989418plb.185.2023.02.17.03.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 03:59:07 -0800 (PST) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v4 05/12] board: rockchip: Add Radxa Compute Module 3 IO Board Date: Fri, 17 Feb 2023 17:28:38 +0530 Message-Id: <20230217115845.75303-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230217115845.75303-1-jagan@amarulasolutions.com> References: <20230217115845.75303-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VwuEyZx6; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Radxa Compute Module 3(CM3) IO board an application board from Radxa and is compatible with Raspberry Pi CM4 IO form factor. Radxa CM3 needs to mount on top of this IO board in order to create complete Radxa CM3 IO board platform. Add support for Radxa CM3 IO Board defconfig and -u-boot.dtsi Reviewed-by: Kever Yang Signed-off-by: Jagan Teki --- arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi | 18 ++++++ board/rockchip/evb_rk3568/MAINTAINERS | 5 ++ configs/radxa-cm3-io-rk3566_defconfig | 66 ++++++++++++++++++++ 3 files changed, 89 insertions(+) create mode 100644 arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi create mode 100644 configs/radxa-cm3-io-rk3566_defconfig diff --git a/arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi b/arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi new file mode 100644 index 0000000000..3c925161d4 --- /dev/null +++ b/arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2021 Rockchip Electronics Co., Ltd + */ + +#include "rk356x-u-boot.dtsi" + +/ { + chosen { + stdout-path = &uart2; + }; +}; + +&uart2 { + clock-frequency = <24000000>; + u-boot,dm-spl; + status = "okay"; +}; diff --git a/board/rockchip/evb_rk3568/MAINTAINERS b/board/rockchip/evb_rk3568/MAINTAINERS index b6ea498d2b..88d11f05c2 100644 --- a/board/rockchip/evb_rk3568/MAINTAINERS +++ b/board/rockchip/evb_rk3568/MAINTAINERS @@ -4,3 +4,8 @@ S: Maintained F: board/rockchip/evb_rk3568 F: include/configs/evb_rk3568.h F: configs/evb-rk3568_defconfig + +RADXA-CM3 +M: Jagan Teki +S: Maintained +F: configs/radxa-cm3-io-rk3566_defconfig diff --git a/configs/radxa-cm3-io-rk3566_defconfig b/configs/radxa-cm3-io-rk3566_defconfig new file mode 100644 index 0000000000..a79d9b25e3 --- /dev/null +++ b/configs/radxa-cm3-io-rk3566_defconfig @@ -0,0 +1,66 @@ +CONFIG_ARM=y +CONFIG_SKIP_LOWLEVEL_INIT=y +CONFIG_COUNTER_FREQUENCY=24000000 +CONFIG_ARCH_ROCKCHIP=y +CONFIG_TEXT_BASE=0x00a00000 +CONFIG_SPL_LIBCOMMON_SUPPORT=y +CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_NR_DRAM_BANKS=2 +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xc00000 +CONFIG_DEFAULT_DEVICE_TREE="rk3566-radxa-cm3-io" +CONFIG_ROCKCHIP_RK3568=y +CONFIG_SPL_ROCKCHIP_BACK_TO_BROM=y +CONFIG_SPL_ROCKCHIP_COMMON_BOARD=y +CONFIG_SPL_MMC=y +CONFIG_SPL_SERIAL=y +CONFIG_SPL_STACK_R_ADDR=0x600000 +CONFIG_TARGET_EVB_RK3568=y +CONFIG_SPL_STACK=0x400000 +CONFIG_DEBUG_UART_BASE=0xFE660000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_SYS_LOAD_ADDR=0xc00800 +CONFIG_DEBUG_UART=y +CONFIG_FIT=y +CONFIG_FIT_VERBOSE=y +CONFIG_SPL_LOAD_FIT=y +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3566-radxa-cm3-io.dtb" +# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_DISPLAY_BOARDINFO_LATE=y +CONFIG_SPL_MAX_SIZE=0x20000 +CONFIG_SPL_PAD_TO=0x7f8000 +CONFIG_SPL_HAS_BSS_LINKER_SECTION=y +CONFIG_SPL_BSS_START_ADDR=0x4000000 +CONFIG_SPL_BSS_MAX_SIZE=0x4000 +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set +# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set +CONFIG_SPL_STACK_R=y +CONFIG_SPL_ATF=y +CONFIG_CMD_GPT=y +CONFIG_CMD_MMC=y +# CONFIG_CMD_SETEXPR is not set +# CONFIG_SPL_DOS_PARTITION is not set +CONFIG_SPL_OF_CONTROL=y +CONFIG_OF_LIVE=y +CONFIG_NET_RANDOM_ETHADDR=y +CONFIG_SPL_REGMAP=y +CONFIG_SPL_SYSCON=y +CONFIG_SPL_CLK=y +CONFIG_ROCKCHIP_GPIO=y +CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y +CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_MMC_DW=y +CONFIG_MMC_DW_ROCKCHIP=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_SDMA=y +CONFIG_MMC_SDHCI_ROCKCHIP=y +CONFIG_ETH_DESIGNWARE=y +CONFIG_GMAC_ROCKCHIP=y +CONFIG_REGULATOR_PWM=y +CONFIG_PWM_ROCKCHIP=y +CONFIG_SPL_RAM=y +CONFIG_BAUDRATE=1500000 +CONFIG_DEBUG_UART_SHIFT=2 +CONFIG_SYSRESET=y +CONFIG_ERRNO_STR=y