From patchwork Tue May 7 18:36:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 369 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 63D6D3F066 for ; Tue, 7 May 2019 20:37:10 +0200 (CEST) Received: by mail-pl1-f198.google.com with SMTP id 94sf8078807plc.19 for ; Tue, 07 May 2019 11:37:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557254229; cv=pass; d=google.com; s=arc-20160816; b=YqjdSpFbRl745C5+ILcr8CQNNTV/Zd2lDDdZbVf1Lt3IZEQt+MGhNZ55kBjcuD9Aqv CnYVIOUgwz/wCAcaGJAOZCvxLolfS+tGxZqSygFmEeiWK8VRVx++6aw1HzVHtBGkyhjx 1I6eLlIbk6SDwgmcuUxAQvIMJpjhHx0Hsm6M/59l3EqvkZiAkanXvMoioVSb7lvJVIpV tYX7hFxyQQodwYekEwUU4bokzbqOXWhVBmz5VrsJ8O9R1+7fDeyZqjr2AN3gAForJmml yyeaqQvN0YmjSegBWZ0NOJUiN6MdjJqZ6B13HnvaFzaxLoZi4TAPe3mJJKSfhVR6gI4t FA+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=lPq7RCrmXcwIPo1HHjvcEyCZCvAUvkflepwBeSjOxc8=; b=S2eHMzisNJCHkeWCp0gFkOH81JStVAxUB+afp3NSEBKo5gdsVESGY5Ntgn8F5Vz9RS Sg1Q08J2xSxM9Z2kvUvxTVK6Nvy8M6PanwIBrxCrTz6gSJApQabJ5C8w2VD+9Y0grAJu WFM8aRVk8Q4gOUQFYT2d/YKom++4uN97ie9yj+ioYJhY34nNPycrYMQuIWPuAAieve1W zxFocAG3DsfA+rlwg393NZnlwKkAlOABSPpR7N/s4AAjMRsvswv6/twIbnMbj/iONCkC 0ObQMIfmJB9pRDzSn8Xa8IUTylxq2L3GbncRkDiamW/HckU0JEqEIL1qM5IAunOsNdH0 4Vsg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QrOJuSNP; 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=lPq7RCrmXcwIPo1HHjvcEyCZCvAUvkflepwBeSjOxc8=; b=C2ln0a7U1M7rhxk9mXRqFXKbAmja0wxPrsmUpznItwLwl1jUcfBXlggzuTZmhj/FSh 36yrZd73RgCaxl4TbcVErp7LHuPJcRpbbAZn09GxYifA1PIRC8zmKIxqMScdX6auhJMf dTQBf5w0KmYG+y98J+NibxM78T2OjYkVRI4og= 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=lPq7RCrmXcwIPo1HHjvcEyCZCvAUvkflepwBeSjOxc8=; b=Aoi27IJVRYyMy7gZ0vpzaeZBfQiSdNi2fERErQiWhVB8rg/VpvhEy3fck31ci50oWf NGWAWxb2YPBKS8cXLNdTuebmL1cCKMGLjt37vDlqBqV9tz1YdJxdQPa8FkLN0nNbkORY u6t46wwAZzzYO4+a5E7gagbgkdNk58VRRwqAbUQcku51tOHC9Gos9vPuNH1mVSrC9tL9 mt5oUa57mUmue6i07MQ2IkOGpl1Qm0GzJvkaXr/s70yX5U9DFZbNhvQ/oP8N6MagoYTG xxztbjohhCpVu1VGUBeNAYdKgrA4jWuNzi/bbThFNgeje/AX8VQmjfLNt9NLr+7OBr/m ROJA== X-Gm-Message-State: APjAAAU1tMdIJFR+XEjTm8MGGuVgZWw/0eJWEyYDmw5q8sGwhESFOXI+ qiV0ERQ4DRvol1DtmWowH59vNVmH X-Google-Smtp-Source: APXvYqzcd1V3VM0ajWAl9B69mTbkH0X9C5HEqMY4m1u7NwWHWs1/lqXiN93LU55lo+4NQ9mjtGWmSQ== X-Received: by 2002:a63:1354:: with SMTP id 20mr24043544pgt.356.1557254229204; Tue, 07 May 2019 11:37:09 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:9f86:: with SMTP id g6ls4306233plq.3.gmail; Tue, 07 May 2019 11:37:08 -0700 (PDT) X-Received: by 2002:a17:902:6b02:: with SMTP id o2mr41037011plk.24.1557254228713; Tue, 07 May 2019 11:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557254228; cv=none; d=google.com; s=arc-20160816; b=ihNYQ26ZPhccCGMtUEonNUVl4VKUU2HcT3e6s78U5HwdiT6iKm1x1aCFZa37UCDxNG gbf7ZAR5ewiYfntMV7dbYULfU+ydL6mxcTSMf6g0RSXsm+lI3Q5IqPx3eZNYQ7L7n7US B3ue2VQWAaTCoH/cAndbB0GVmEsdSxQ0Xg4gymv+u2QhS7tT55eO4A+Pe1dG3xAep57l Xy/5VMlR5GrwgdQaAl48nKFFQOwE8u8ZCHclXXwYhqaD+Fl23q8n6T72M9aLS/xr05xx Fv/uYlqoWjPuMkKPQM9qR5nU60/jxsJ8GlTwtTCgRmDMtjuAEyEamzzISv+Ci2QT5ggi OdLQ== 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=n58Gi1myZ255mLgf+aKO9+TS+7sVA9rL2+581VG4HdA=; b=jSfYBmbUgiWAvKo5ib3JbBa2Sxl7aJ82+NAwZjX0RGhZyk4aYvhzg+Jvgf2a5NXFXT TwN3WN3Rh3X/fnJCc2onfHuHxjfvGyvAV+CtAJ5VHcSU/CCqCKnD8iUK9RW33zFSB8yX 9wz5fldgOmNVRyqpzZLEh8CKwgs6BJ15tjRzn9gyxlQXJ7yWui8DJdQyGTkHI5f3YaTn 5UUachIGWhsjCqU2c1R93m5eLHD5d7F+MlOpfk2C3DpVZQEjcKxgMM50WvazSQq2tpG4 V3j7XFwEUm4Cy+jqoSL9h4BUogTegPzt9lITdy4EvpPG3NzpLtY5DABxa24b2Jro0qYF F4Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QrOJuSNP; 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 e2sor16434862pfh.61.2019.05.07.11.37.08 for (Google Transport Security); Tue, 07 May 2019 11:37:08 -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:a62:6d47:: with SMTP id i68mr11679742pfc.189.1557254228346; Tue, 07 May 2019 11:37:08 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id b22sm21743728pgg.88.2019.05.07.11.37.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 11:37:07 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: Paul Kocialkowski , linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH v7 08/11] rockchip: rk3399: Add Nanopi NEO4 board support Date: Wed, 8 May 2019 00:06:24 +0530 Message-Id: <20190507183625.5983-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190507183625.5983-1-jagan@amarulasolutions.com> References: <20190507183625.5983-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=QrOJuSNP; 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: , Add initial support for Nanopi NEO4 board. Specification - Rockchip RK3399 - 1GB DDR3-1866 - SD card slot - eMMC Socket - RTL8211E 1Gbps - AP6212 WiFI/BT - HDMI In/Out, DP, MIPI CSI - USB 3.0, 2.0 - USB Type C power and data - GPIO expansion ports - DC 5V/3A Commit details of rk3399-nanopi-neo4.dts sync from Linux: "arm64: dts: rockchip: Add Nanopi NEO4 initial support" (sha1: 092470b537f19788d957aed12d835a179b606014) Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3399-nanopi-neo4-u-boot.dtsi | 6 +++ arch/arm/dts/rk3399-nanopi-neo4.dts | 50 +++++++++++++++++ board/rockchip/evb_rk3399/MAINTAINERS | 6 +++ configs/nanopi-neo4-rk3399_defconfig | 59 +++++++++++++++++++++ 5 files changed, 122 insertions(+) create mode 100644 arch/arm/dts/rk3399-nanopi-neo4-u-boot.dtsi create mode 100644 arch/arm/dts/rk3399-nanopi-neo4.dts create mode 100644 configs/nanopi-neo4-rk3399_defconfig diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index adaca524c3..529c506b4d 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -108,6 +108,7 @@ dtb-$(CONFIG_ROCKCHIP_RK3399) += \ rk3399-gru-bob.dtb \ rk3399-nanopc-t4.dtb \ rk3399-nanopi-m4.dtb \ + rk3399-nanopi-neo4.dtb \ rk3399-orangepi.dtb \ rk3399-puma-ddr1333.dtb \ rk3399-puma-ddr1600.dtb \ diff --git a/arch/arm/dts/rk3399-nanopi-neo4-u-boot.dtsi b/arch/arm/dts/rk3399-nanopi-neo4-u-boot.dtsi new file mode 100644 index 0000000000..7d22528f49 --- /dev/null +++ b/arch/arm/dts/rk3399-nanopi-neo4-u-boot.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include "rk3399-nanopi4-u-boot.dtsi" diff --git a/arch/arm/dts/rk3399-nanopi-neo4.dts b/arch/arm/dts/rk3399-nanopi-neo4.dts new file mode 100644 index 0000000000..195410b089 --- /dev/null +++ b/arch/arm/dts/rk3399-nanopi-neo4.dts @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2019 Amarula Solutions B.V. + * Author: Jagan Teki + */ + +/dts-v1/; + +#include "rk3399-nanopi4.dtsi" + +/ { + model = "FriendlyARM NanoPi NEO4"; + compatible = "friendlyarm,nanopi-neo4", "rockchip,rk3399"; + + vdd_5v: vdd-5v { + compatible = "regulator-fixed"; + regulator-name = "vdd_5v"; + regulator-always-on; + regulator-boot-on; + }; + + vcc5v0_core: vcc5v0-core { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_core"; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vdd_5v>; + }; + + vcc5v0_usb1: vcc5v0-usb1 { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_usb1"; + regulator-always-on; + regulator-boot-on; + vin-supply = <&vcc5v0_sys>; + }; +}; + +&vcc3v3_sys { + vin-supply = <&vcc5v0_core>; +}; + +&u2phy0_host { + phy-supply = <&vcc5v0_usb1>; +}; + +&vbus_typec { + regulator-always-on; + vin-supply = <&vdd_5v>; +}; diff --git a/board/rockchip/evb_rk3399/MAINTAINERS b/board/rockchip/evb_rk3399/MAINTAINERS index f55c92f80c..1f51f65160 100644 --- a/board/rockchip/evb_rk3399/MAINTAINERS +++ b/board/rockchip/evb_rk3399/MAINTAINERS @@ -18,6 +18,12 @@ S: Maintained F: configs/nanopi-m4-rk3399_defconfig F: arch/arm/dts/rk3399-nanopi-m4-u-boot.dtsi +NANOPI-NEO4 +M: Jagan Teki +S: Maintained +F: configs/nanopi-neo4-rk3399_defconfig +F: arch/arm/dts/rk3399-nanopi-neo4-u-boot.dtsi + ORANGEPI-RK3399 M: Jagan Teki S: Maintained diff --git a/configs/nanopi-neo4-rk3399_defconfig b/configs/nanopi-neo4-rk3399_defconfig new file mode 100644 index 0000000000..188656a2b4 --- /dev/null +++ b/configs/nanopi-neo4-rk3399_defconfig @@ -0,0 +1,59 @@ +CONFIG_ARM=y +CONFIG_ARCH_ROCKCHIP=y +CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_SPL_LIBCOMMON_SUPPORT=y +CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_SYS_MALLOC_F_LEN=0x4000 +CONFIG_ROCKCHIP_RK3399=y +CONFIG_ROCKCHIP_SPL_RESERVE_IRAM=0x4000 +CONFIG_DEBUG_UART_BASE=0xFF1A0000 +CONFIG_DEBUG_UART_CLOCK=24000000 +CONFIG_SPL_STACK_R_ADDR=0x80000 +CONFIG_DEBUG_UART=y +CONFIG_NR_DRAM_BANKS=1 +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-nanopi-neo4.dtb" +# CONFIG_DISPLAY_CPUINFO is not set +CONFIG_DISPLAY_BOARDINFO_LATE=y +CONFIG_SPL_TEXT_BASE=0xff8c2000 +CONFIG_SPL_STACK_R=y +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x4000 +CONFIG_CMD_BOOTZ=y +CONFIG_CMD_GPT=y +CONFIG_CMD_MMC=y +CONFIG_CMD_SF=y +CONFIG_CMD_USB=y +# CONFIG_CMD_SETEXPR is not set +CONFIG_CMD_TIME=y +CONFIG_SPL_OF_CONTROL=y +CONFIG_DEFAULT_DEVICE_TREE="rk3399-nanopi-neo4" +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_ROCKCHIP_GPIO=y +CONFIG_SYS_I2C_ROCKCHIP=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_USB=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_EHCI_GENERIC=y +CONFIG_USB_HOST_ETHER=y +CONFIG_USB_ETHER_ASIX=y +CONFIG_USB_ETHER_ASIX88179=y +CONFIG_USB_ETHER_MCS7830=y +CONFIG_USB_ETHER_RTL8152=y +CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_USE_TINY_PRINTF=y +CONFIG_ERRNO_STR=y