From patchwork Wed Jul 8 10:05:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1459 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 58DF23F062 for ; Wed, 8 Jul 2020 12:05:54 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id b69sf23401525pfb.14 for ; Wed, 08 Jul 2020 03:05:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594202753; cv=pass; d=google.com; s=arc-20160816; b=R5pfxoB4zhECNo3vegonaB/HuHE0CR46XCJ1eKZw305m+uaERRV7fGgnnQSkgwfZ7T gLllbO3mv7pq0sr4D2ml3ckyM05MSkokeXatSFwBrBE7J8WE58z9gA+s4ftHXZa/axpB Jg5X2tQxh7/o7goUGqW9m3q1Xw7XAj0dKdUvIXWxBMGdcBPawucTVyUjJLMkzhx5yrs1 /VzFlmnMIVOAjwlPYG+mBvT6Fe/9mBIVMHx0vNvGahxSuWedojGzaBIW4fTNN5o7AmxR V26XF4/8gJDGPqoarmMrJh4pZgAw07W+wpLexQ9fkqGgEVUOcTkcj2y9SsPmLo693zzj W16A== 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=Q8JPyW66fkeqmPsseovMcmu5Gw7arYNIPwMu26FH/fI=; b=f1PF/dxpfALIqoJhyEQoUyAN86m78ydMdh8R5w8mVCpii0xEPTLGyp9nEJe/HSFzj/ ygSF+tZGaf42D5JWq1abEtKlQICXj1xQGuTPXHMbQbLQb/c7qR6FqKQMzmaXBk4Xtl9E YYAXdBke2JQaxvuEVJGJeC5SRy5IToAWNvQtocfjyeLM3x6maBwmBORibfuk4PW5Gmaw 0OqcHpaH1qvW7z5SH3WHucexlnSbCyjXyKvSVxEToZMQ48kq42TtUOCO259/YpNSMkEs nxGKpcv+CFVVN230CTSOz8VAlM2zkxrzQ9gpVEtPzRafz0kdTlVsf8Y5uCqQ5t0qb7+8 rSxA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hzuKqwm7; 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=Q8JPyW66fkeqmPsseovMcmu5Gw7arYNIPwMu26FH/fI=; b=ZQ7fD+cqS3rX4+JmCvJJBhLjHX6Qun+VL8t+6E04pRyMaTU8+T8E3N8Tqek940/lIQ gS0MKGc8UlLqk1eKop1OZU09oMdNdVWGLFNnd5be0hRhRWU1DzvAhrzbqtSqheXAmfft aGuRWoPVwI/jadYMsitiPeFOGfXjFyM8+PieM= 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=Q8JPyW66fkeqmPsseovMcmu5Gw7arYNIPwMu26FH/fI=; b=lO7rsKKIfE14FLGjkfmT+h6vi2ShoElW8iVNnSH/K31tVe+gJIOI2go19mDlLsCgA2 MXnojBsBIFq6Sg1ncutlYERENgL4Jgsiery/6Ejveq3Nx0shv4CQ38oQpMZEFLLksGRC 2VuGX+7tZ0628WQcfXtbVlXTn481qLLrqe4LOWoM4YWTMSeJOMf+oaQI8xPVkkiypH1V A0POLxzvEhqqIh3qP4kd9SN7kHIfE8WzVM06QsLNEIHlF9VpHPAzXiUlYV8sRzITOK2v PqxETEhqNi7HgprPygLoSovbTYt6t1pB3U/wBTSQiJmMr5jJkYzLVormlH+S2BdUWqOe WwmA== X-Gm-Message-State: AOAM531S1zbwolJJ4RWrXMZFgwv3mJsuExvNeBTosEexIt3m4mVEhskm qXbVDDEUrIP7zwRpYvnLKzoE5MrP X-Google-Smtp-Source: ABdhPJzxVLyNk6bLtuqiHDMerjM0tw+ss/Uu3KsUO+FvPb/TwHZrbaxRg3qLrNKCJudLUnRISUihZA== X-Received: by 2002:a63:fc09:: with SMTP id j9mr50435817pgi.308.1594202753073; Wed, 08 Jul 2020 03:05:53 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b602:: with SMTP id b2ls805608pls.3.gmail; Wed, 08 Jul 2020 03:05:52 -0700 (PDT) X-Received: by 2002:a17:90b:2348:: with SMTP id ms8mr8339023pjb.5.1594202752511; Wed, 08 Jul 2020 03:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594202752; cv=none; d=google.com; s=arc-20160816; b=P4Rbp6YbyopIYQcv2aG7ARk1ikahQ/oW+FGzaUe5YnD4QlZoTBdIEFHSdxeKiQ3jwr jXz5Hmnw9F1+5n6ttT+v39x1FRvIt3gfHCk/v0DUBd76+kK6RiRVEpZW75/oxuR2D21U MLcLqNQF5UBS/HH27Abcx2uDjkJRhr2mrNAEtXPw8m0euOCA3BHk4CFFEJpkCT1Co8bd f6sTpf/Tg4P6U7vsoTZM+4dGApPxaUCsqQIEEL8gczzxFFaD5JViS94IqivU5tHqcOjQ 2c9+fm7Kx5F1J0MEBy1vwMzqm7xQ6MWnyJ1LO2XBiq31VbDJrcIBHifCoL5O2awNC//2 pRAA== 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=gpgiPiYyQ3FIPjPKzvYCSf15PWG3SC6968IC4C3AT3g=; b=vHcoFuF9J0EAkWzaExm4QrM6/wj03FLu62uBjJRFhn176ZDtiMTYSrRUUhbx7E113T uWC42XNKdXMLWtRn4lHCWJXCYUYz+paEOqRrCb+RfZgEaONSFRXvPLaG/BmAXEHIcegK UuTg+MdJ+ZaygEXTLSa/jvrwfh4PVCMH9V7zQBgbgSd0GxwVLPJ4GALtqc/7t7m9/Xlk T8ZYM4kK1gumGb0NezSD9NZGArJB7bRl+P4ZBBG5kvHk7NR1PhlLnjeznPc6xXdcEYrJ 7GlaYp3P9oQ1B/mYcvQcYhf3xUH9UAXDlK/h5LilH1xqyOPtXtmoyE8+oHFHrQ67pa32 KJzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hzuKqwm7; 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 o131sor32699797pfg.81.2020.07.08.03.05.52 for (Google Transport Security); Wed, 08 Jul 2020 03:05:52 -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:aa7:9a92:: with SMTP id w18mr10060739pfi.233.1594202752175; Wed, 08 Jul 2020 03:05:52 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:ade2:f5f3:8cc0:52f9]) by smtp.gmail.com with ESMTPSA id n18sm25726647pfd.99.2020.07.08.03.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2020 03:05:51 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki , Tom Cubie Subject: [PATCH v2 4/7] arm64: dts: rockchip: Add Radxa Rock Pi N10 initial support Date: Wed, 8 Jul 2020 15:35:25 +0530 Message-Id: <20200708100528.419035-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200708100528.419035-1-jagan@amarulasolutions.com> References: <20200708100528.419035-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=hzuKqwm7; 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 89fa448818..36f3dc6db8 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