From patchwork Thu Feb 9 14:30:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2708 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 849193F046 for ; Thu, 9 Feb 2023 15:32:01 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id 201-20020a6300d2000000b004ccf545f44fsf1167062pga.12 for ; Thu, 09 Feb 2023 06:32:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675953120; cv=pass; d=google.com; s=arc-20160816; b=A9DSbvo9WJ2xXumPVkW6nL9KNZ+gP1LMqZOYNQIY24pVJSojac01UE5Cm1+NuKnTi8 39A32nEUcigxIowuYijmg07n/5X1lT+34Rs2jmIpEj3uKLIMvKdyR7wr3DwXZ4j+M4PG 4neXAaenU+ro4u0lkHQNaVDLzaOpVJt+rqb3FUGCoslahbdO8tPhA1ysKLY4slCKyXL7 Kvy91GcaNIwcaNbz02LtLnBbBAYSf5d4sYopmy8gpVuBtXFuw7XPK0Q9iWbIDsvhsz6A 7DiVpSkIUF8zIQJ/Zjq6pNRL1QaKf4SMDVG65rB6uSsHmSFp62CCWRSbkcvl8KEJDeOP l//Q== 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=uja161zxeBM/L4sjOu19S6D7bFUf6s/rAYWMEGYSiMc=; b=xlivRex1WekS4AfjguuZ1L0lkCOV23MBeYqHBigKmMeE5tTyQOp72H+dS+4xMcsc+i sft2Iqn2SrBYPL2KCxwoLXYJs7tLArS17dSnIy+vQWp5ubY6b3Sw2U9U9Ivy1fxHQtrK d5Ya0NVeZTijq5DI6tctGBcKUy7bHeQ5jiT5yXPtXqewbbxhxgfGdhWFpqMo+1AKZz6M 4Cs6c5XfTBMiqYpytl6QXi/NqHWkjD/z52/82vnLmWe2qnkRfEdH6xyxubwfosMjktMu Lhzmrz0gMhZR244XyNDT9h1nHIyT3I/o8URyS/lsnqsRmsMAIrn1siA+YPA4SQQaz9T/ lm1A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n5kj1mYE; 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=uja161zxeBM/L4sjOu19S6D7bFUf6s/rAYWMEGYSiMc=; b=V0fDaAHDDBxeSJDg+hmBUMpnppp78kMb2FuyNgGMskUkAWhPBoEANUvaZuklXtR9uc VVLB5lRarsFpZT8F14qXV7DMWRr6IWlwNnaihHvQkQtVHEJxDs/h3haduPRbo/9x7IkR 1pH5VuYg1vs/AMI3+GA4W8iOCtJjuYmbe46YY= 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=uja161zxeBM/L4sjOu19S6D7bFUf6s/rAYWMEGYSiMc=; b=S9CHxiBv/Ah4QooAd8t2/Z7zFNO25Cxx2UFRL4pKTTY2wG+D38Tzva00xurwAtFvtA Yn1oagQI/XXnOJnJLgl/zpYMbDVY/p7R83263Yto2J0Q/D4/x1y/gmJ1mmefUIPW0iHV ZgN9Blbvnpe1vEuStuwd2jhoGZ3et2X3EzEEH5QTtovtZ5As0R5YLgcTZh9wAW0g1Kmn v2wDe8Sr0J41hviekzjCNHoqQZGXieITVnJQt4ilonV6eIIrvWHLkmu3ZNkIJk60/GLE kA1HD4/5zh46nfp3RFLDjFMkBw9Ek7DQ7FSBovjtdYIcr61sEKEpohWXCR3Uy3xd1w1z Pw1g== X-Gm-Message-State: AO0yUKWLMUdqbEWpBuRYksXMnWS0BFME6FBUHiTKpeuOqh/HjxRw3fbh NQ7hJN/20dDVFzdWp9gmS5hlyl1P X-Google-Smtp-Source: AK7set88FyL1ZfFPDPQ9msgM+KspUAE74bMVM+naqbJrb4IW6ZEDTEuZViqfKlKhqwWzrvOAMtHW8w== X-Received: by 2002:a17:90b:3109:b0:230:80f3:f05a with SMTP id gc9-20020a17090b310900b0023080f3f05amr1714118pjb.136.1675953120216; Thu, 09 Feb 2023 06:32:00 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8546:b0:192:62df:a3e7 with SMTP id d6-20020a170902854600b0019262dfa3e7ls2557021plo.9.-pod-prod-gmail; Thu, 09 Feb 2023 06:31:59 -0800 (PST) X-Received: by 2002:a17:902:e885:b0:199:15bb:8316 with SMTP id w5-20020a170902e88500b0019915bb8316mr13712092plg.68.1675953119280; Thu, 09 Feb 2023 06:31:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675953119; cv=none; d=google.com; s=arc-20160816; b=bWfgmiA4FWXgS8QRIRkruurdd/0DcFHX31h4Bay1LlIQGlf84L7RFvI3jQDXxrnsZ/ Y9OfHaIfqaVHboupIXXYH8gb8ji5lORhvZbBsC08kExzWTmwP461Mji/eZdUT6w40/Ms a8MRRZwl4oHifVu4u10cY/ZRaXyt9N9Yy2Ewt4zwjwM0b9JA5II08hQbRpVeSkNVO2kw JX7yKnvEgvC2j6VqoJ3IrdnKEep8siKaHqweGv1MF8taCXPeXN3Dtr1r6cFFuPn/Djgr 3XqIiEBLycCiGRpuLKDBJ2onFaI+6iL61CY81ALAOfX2rqYG3cwO5TlLtNXsy6Dr7G0J iLyw== 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=VILZr7bDCNWhBQS7ve+8VDkF4NLwA3172ZaR7lDc3lU=; b=qo7xSnJLy5PKl9jbtncXoKsKC2tFimskQsUPw5inmp0sqNdD8S+D5YjfU/gqp/Uk7X OybG6kgzoPS9//JS1xlcxpR9bbUUr93IzGgzYZfwECMHDSxFZSKw2Pi0YfCb66UjA5BL csXve/som8JfO7iuS/aDmFSJUV32G+Ds1WpZeVuM4N2WigqBZAbQ+NxpS287esTNFwXx 7jzuwZ5bjKycXBBIyAN4Ihw0B5UoWkvbIzm9CNxIydi61d2x976dMd8FDk1YYeZ1qxsl bUFNMnFDVjZ+XIyX0xMdOXdPpgC9KjJrK/B4yoB4sQzNbfoNoDOWnpt1PId7a1r2Pas4 x3RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n5kj1mYE; 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 y19-20020a1709029b9300b001963f6b6bf5sor974061plp.88.2023.02.09.06.31.59 for (Google Transport Security); Thu, 09 Feb 2023 06:31:59 -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:a05:6a20:7d8d:b0:c2:faf8:364b with SMTP id v13-20020a056a207d8d00b000c2faf8364bmr8079170pzj.51.1675953118948; Thu, 09 Feb 2023 06:31:58 -0800 (PST) Received: from localhost.localdomain ([183.83.141.79]) by smtp.gmail.com with ESMTPSA id j7-20020aa783c7000000b005938bd2bfd3sm1501226pfn.120.2023.02.09.06.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Feb 2023 06:31:58 -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 v3 4/7] board: rockchip: Add Radxa Compute Module 3 IO Board Date: Thu, 9 Feb 2023 20:00:57 +0530 Message-Id: <20230209143100.113376-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230209143100.113376-1-jagan@amarulasolutions.com> References: <20230209143100.113376-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=n5kj1mYE; 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 --- Changes for v3: - none Changes for v2: - collect Kever RB arch/arm/dts/rk3566-radxa-cm3-io-u-boot.dtsi | 18 ++++++ board/rockchip/evb_rk3568/MAINTAINERS | 5 ++ configs/radxa-cm3-io-rk3566_defconfig | 68 ++++++++++++++++++++ 3 files changed, 91 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..10b81e0c6d --- /dev/null +++ b/configs/radxa-cm3-io-rk3566_defconfig @@ -0,0 +1,68 @@ +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_DM_RESET=y +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_BINMAN_FDT is not set +CONFIG_ERRNO_STR=y