From patchwork Wed Jun 10 10:36:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1359 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 DFC0B3F066 for ; Wed, 10 Jun 2020 12:37:34 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id a19sf1144666pgl.8 for ; Wed, 10 Jun 2020 03:37:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1591785453; cv=pass; d=google.com; s=arc-20160816; b=cOwN3ZjWryGeJgv9+FuuxDZUp2KqwmfQDkGLl4m2iBEkmgmQ5HOxflAJiOwWYn4tVZ pPWADiCrCrsDOk/MTAlyfMMHP6+DYwxahPlIv7QA/DIWEmGF0VT3N8S36u1iojZa7nyq Y8Wl5wgjYqWtISUjLmJWBLz49w9cO86XX62m5cp5exoN4YlvxxZSyQePyG+ZSgoUmAhE EIskFon7IHqaTgOzeA7DXn9ZS3tm9TGzsutcyAm3wV2yrEp3urKUUvAHvil+gQKwfmUa 4yaNMIbtVvHfwLR0p0UCyd6DlO+9z1pH2Mf4BRU8Wjt1iAtmJtHV5IJmqZPULxihkdSX UCaQ== 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=FIvHX4T47S3Tf3jFaIPnRbDQebbZHcE/aY4xur+/L8s=; b=ISgcSQBh1m8l9RdoEB/jQBw0Eka+Tl3yco0rXPhifE0tTlapuSx04CDeKOlUhiHvgv 2MQrONDQqeXiswUtWoMr2RcACyDROLaOtXMZBbtcSZI7bkDH+Zyf7/IRnBywMUisehsa pcwFhhMuyvnHe9d963gwIxScBM6pxzgOzx/WIU+eiBGfM2cS3LLnDgRV7tturmL9ClZj G3epN/TYbGjt1oceO8YqY7qtLg7t9Xn7elqMFmmI2YAIewNq1xsxWDu6DkdjK9m++k4E Y2yBq7QJqk5BNvrF6gQQ/kYw/AaZd69I/e91KJFRRGXYiXGxgErq6tvAH2ODh6C7MZEj O1cQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=aIOHuNko; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=FIvHX4T47S3Tf3jFaIPnRbDQebbZHcE/aY4xur+/L8s=; b=hi90MDpfhE2ckh4SWhjnO32wa9Bp0+tJbpduLzr5FdV9fZncIJLM4rMUaAnG4xTSJJ SZeHpPUe7d2iyxyHLzTDSunPXh90av2Is5aoojt3LGk4AkyHw+TESknODOXUM2Ld5G+Q uKi2leJfY1vUJK5gTPxVjKdagiXt0TGNvMAP8= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=FIvHX4T47S3Tf3jFaIPnRbDQebbZHcE/aY4xur+/L8s=; b=ZDZKvthvb2cNfFNClxVm6x/6QbA4GghpR7GhWi+q6BmywlHi+18/s9cKLvM89cuUVp 3zGo1M6PyPx3UNfHoUzp2l9p1/fBdlXero3kslVzM1G6jCYWUBZ9vgAFhcdblGgEsOg3 /zz1LH80AV1EcqDDIq9iBMcRl+Fg3+YzH4oAI9Q7xCUWYtPEOHp4Qv5VFSF7Uwcs1uwq Y1F459t32P+tyVNU96Ysvu57g3SoGfSbynWjTXK3X8nXWj9/7IRcLq+oHtFfjyZzsxir veY06kBXmmdEvqcO47oEKPccJdPEsCP5kUgUv/YB6wWgphB/1aW38IRRpc/iNBn9EuNR N/ZQ== X-Gm-Message-State: AOAM532NZ6TRx2mnWfDK9eE0JFXexHd05Z6MfI2g/Hhh/FO5w+pgLuj0 FdNlHF8lvR+olDXHwU7VFmNAxORC X-Google-Smtp-Source: ABdhPJydhzGM3XsrGQl5VME2iKBDRgfsYSmiG3b8AS2vhqItvy2NOaIr/9J6G7VAtj9rhhsYhWYhHw== X-Received: by 2002:a63:2f43:: with SMTP id v64mr2139985pgv.232.1591785453321; Wed, 10 Jun 2020 03:37:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:e28d:: with SMTP id d13ls1071130pjz.3.gmail; Wed, 10 Jun 2020 03:37:33 -0700 (PDT) X-Received: by 2002:a17:902:8c97:: with SMTP id t23mr2499719plo.108.1591785452850; Wed, 10 Jun 2020 03:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591785452; cv=none; d=google.com; s=arc-20160816; b=S5lz3pAVuGTBuh8Lag1zSCqLFML6kGdMAemgWu9TMyhlMK5Ktel0Vg6q7YBWodGH7L l+wC+7n2wp/6vUMwKxTLWGPErbGAPk9rofg2lS4wqWdOsYEpyMonkWmM5b5qchsc1f0s tSPiHZk8eMG8r8yWuUYYlifOyAHAIv2loeEcCzgXT9dcswh/R/irO10kjQIUiYiLWxyZ 9MUdQIEphmdCk0HokR9lS0m9xzlgcv9VEA+C+tav5zmuj3jHVUUn4sNEhXiIvnkeUorw 7yXtwuuK7SQlHRfkRoi1NARKGvWYE6OilrD9TdfdfEd3zcB0FvyKj9ht+7aHVx3pNV9W ngew== 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=e6IVnybWPlJWNbvR/6aFZERVLH4MS68wkLid7aBGi0U=; b=l9oNIeDrNJNori1eBVbxOT0AF0gOLX6/LATSv7BNLY6KMm4iXPHRRh2qzNDFvhlduh toJBEyMikW3Cf+BEzmkyknBsjk6bvMJNisaEWoVM6N/UUh5wrwTvtg7x5toG0FvNClja bFyI0VbUx8wGrZvkAnk5vU5RPQ5B1nJXk7d0XdoiD76UYzQ8lluurFU2p4sBNvQdCxt4 ZgIxzxJ8i2uOG+5MmrcInivvB+MlNHsxNp7InEtHmQmQeNulwyZv84sB2V05W6bpjvre uAMki7bYUhVY73gpXO64M8QYGdqKM590Wo4SEii4NZkAKo1ct6Zd8kiZlYr4aXqqHb3x etbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=aIOHuNko; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id b4sor18186686plz.30.2020.06.10.03.37.32 for (Google Transport Security); Wed, 10 Jun 2020 03:37:32 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:8496:: with SMTP id c22mr2523993plo.57.1591785452416; Wed, 10 Jun 2020 03:37:32 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9daa:1b72:7bd0:50df]) by smtp.gmail.com with ESMTPSA id x191sm12454754pfd.37.2020.06.10.03.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 03:37:31 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Cc: Tom Cubie , Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH 4/4] arm64: dts: rockchip: Add Radxa Rock Pi N10 initial support Date: Wed, 10 Jun 2020 16:06:58 +0530 Message-Id: <20200610103658.96678-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200610103658.96678-1-jagan@amarulasolutions.com> References: <20200610103658.96678-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=aIOHuNko; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@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: , Rock Pi N10 is a Rockchip RK3399Pro based SBC, which has - VMARC RK3399Pro SOM (as per SMARC standard) from Vamrs. - Compatible carrier board from Radxa. VAMRC RK3399Pro SOM need to mount on top of radxa dalang carrier board for making Rock Pi N10 SBC. So, add initial support for Rock Pi N10 by including rk3399, rk3399pro vamrc-som and raxda dalang carrier board dtsi files. rk3399pro-rock-pi-n10.dts was synced from linux-next v5.7-rc1. Tested - ROCK PI N10 Model B - ROCK PI N10 Model C - Boot from SD Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/dts/Makefile | 3 +- .../arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi | 7 +++ arch/arm/dts/rk3399pro-rock-pi-n10.dts | 18 ++++++++ arch/arm/dts/rk3399pro-u-boot.dtsi | 6 +++ board/rockchip/evb_rk3399/MAINTAINERS | 6 +++ configs/rock-pi-n10-rk3399pro_defconfig | 46 +++++++++++++++++++ 6 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi create mode 100644 arch/arm/dts/rk3399pro-rock-pi-n10.dts create mode 100644 arch/arm/dts/rk3399pro-u-boot.dtsi create mode 100644 configs/rock-pi-n10-rk3399pro_defconfig diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 9900b44274..07dfe06230 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -136,7 +136,8 @@ dtb-$(CONFIG_ROCKCHIP_RK3399) += \ rk3399-roc-pc-mezzanine.dtb \ rk3399-rock-pi-4.dtb \ rk3399-rock960.dtb \ - rk3399-rockpro64.dtb + rk3399-rockpro64.dtb \ + rk3399pro-rock-pi-n10.dtb dtb-$(CONFIG_ROCKCHIP_RV1108) += \ rv1108-elgin-r1.dtb \ diff --git a/arch/arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi b/arch/arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi new file mode 100644 index 0000000000..946a0230db --- /dev/null +++ b/arch/arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include "rk3399pro-u-boot.dtsi" +#include "rk3399-sdram-lpddr3-4GB-1600.dtsi" diff --git a/arch/arm/dts/rk3399pro-rock-pi-n10.dts b/arch/arm/dts/rk3399pro-rock-pi-n10.dts new file mode 100644 index 0000000000..6ac2d4d721 --- /dev/null +++ b/arch/arm/dts/rk3399pro-rock-pi-n10.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd + * Copyright (c) 2019 Radxa Limited + * Copyright (c) 2019 Amarula Solutions(India) + */ + +/dts-v1/; +#include "rk3399.dtsi" +#include "rk3399-opp.dtsi" +#include "rk3399pro-vmarc-som.dtsi" +#include + +/ { + model = "Radxa ROCK Pi N10"; + compatible = "radxa,rockpi-n10", "vamrs,rk3399pro-vmarc-som", + "rockchip,rk3399pro"; +}; diff --git a/arch/arm/dts/rk3399pro-u-boot.dtsi b/arch/arm/dts/rk3399pro-u-boot.dtsi new file mode 100644 index 0000000000..7bddc3acdb --- /dev/null +++ b/arch/arm/dts/rk3399pro-u-boot.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include "rk3399-u-boot.dtsi" diff --git a/board/rockchip/evb_rk3399/MAINTAINERS b/board/rockchip/evb_rk3399/MAINTAINERS index 792df1087f..578638a58b 100644 --- a/board/rockchip/evb_rk3399/MAINTAINERS +++ b/board/rockchip/evb_rk3399/MAINTAINERS @@ -68,3 +68,9 @@ M: Jagan Teki S: Maintained F: configs/rock-pi-4-rk3399_defconfig F: arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi + +ROCK-PI-N10 +M: Jagan Teki +S: Maintained +F: configs/rock-pi-n10-rk3399pro_defconfig +F: arch/arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi diff --git a/configs/rock-pi-n10-rk3399pro_defconfig b/configs/rock-pi-n10-rk3399pro_defconfig new file mode 100644 index 0000000000..c705ce01ce --- /dev/null +++ b/configs/rock-pi-n10-rk3399pro_defconfig @@ -0,0 +1,46 @@ +CONFIG_ARM=y +CONFIG_ARCH_ROCKCHIP=y +CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_SPL_GPIO_SUPPORT=y +CONFIG_ENV_OFFSET=0x3F8000 +CONFIG_ROCKCHIP_RK3399=y +CONFIG_TARGET_EVB_RK3399=y +CONFIG_NR_DRAM_BANKS=1 +CONFIG_DEBUG_UART_BASE=0xFF1A0000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_DEBUG_UART=y +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399pro-rock-pi-n10.dtb" +CONFIG_MISC_INIT_R=y +CONFIG_DISPLAY_BOARDINFO_LATE=y +# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set +CONFIG_SPL_STACK_R=y +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 +CONFIG_TPL=y +CONFIG_CMD_BOOTZ=y +CONFIG_CMD_GPT=y +CONFIG_CMD_MMC=y +# CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_TIME=y +CONFIG_SPL_OF_CONTROL=y +CONFIG_DEFAULT_DEVICE_TREE="rk3399pro-rock-pi-n10" +CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" +CONFIG_ENV_IS_IN_MMC=y +CONFIG_SYS_RELOC_GD_ENV_ADDR=y +CONFIG_ROCKCHIP_GPIO=y +CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y +CONFIG_MMC_DW=y +CONFIG_MMC_DW_ROCKCHIP=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_ROCKCHIP=y +CONFIG_DM_ETH=y +CONFIG_ETH_DESIGNWARE=y +CONFIG_GMAC_ROCKCHIP=y +CONFIG_PMIC_RK8XX=y +CONFIG_REGULATOR_PWM=y +CONFIG_REGULATOR_RK8XX=y +CONFIG_PWM_ROCKCHIP=y +CONFIG_BAUDRATE=1500000 +CONFIG_DEBUG_UART_SHIFT=2 +CONFIG_SYSRESET=y +CONFIG_ERRNO_STR=y