From patchwork Thu Sep 13 18:05:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 146639 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp893119ljw; Thu, 13 Sep 2018 11:06:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZjdFgZDiJ9ppyvFRb49xSWWNh3ExI3WOgpzN4Djy6rVrcfsaMrLE1oMH3WWwZhyiX1om7r X-Received: by 2002:a62:c8d2:: with SMTP id i79-v6mr8493108pfk.35.1536861991162; Thu, 13 Sep 2018 11:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536861991; cv=none; d=google.com; s=arc-20160816; b=rFU31f3CsmrZ992NIwzY+QM75re0l7U5/va7Rqgg7u6I655F956mPhLkqnlNrciKcR XsEghpeG8jwFTIkjrkpvtUehH2ZuunBwtvbk01AXUV64LHx7pPs6jGZzbVMfP3/ANelM rA720MbAnh5zo89WqNEn6AWNEa0BASCLYLbZG2B+M/wb71RZ/r0nZ4r+fQDdbdpvnv5T WpD+lF3VsY+q3PsR46j15LMd6eNyRnwH2cp+a8Iy3NG7faO+AleKP7xlPfwFPfzuXT8h 0FzLj9GiHmEzLAMbPEiJKj248ZY9wz3HoYEVMwPvW+IAiba0LARs+RzO2FtrGt7R2KHC 4GJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=mcD3Gsw2jnJovjOLBdoMu6xKaPO6ftrBI9PWwdc6lAA=; b=rQaboDD4jjiPOmqFm5sg+NpBvn+X37CtFQyxcOLlMZkbf93Vjs14eCGqIbPS5TaslJ cpqLzTvXz83BBAaLY8dfsubN7E5AqfV1TR6ptfP5+hY4cln4Vy3KsVOHXgfKfmcLtX6R 7D9fKk2NweNE3PSPnr+GhPXN6dbspjOVmbN5RUCZo3YwE9C4S0JKR+xS/wJn7Eq7T1TP LFm9VQSJwPLis6P2Xi7jfWVGiBPzQbT8HNJzmnXVtMHKjOeBa4ROr7R6loJGPm+q0cRm 4Ljj4YAWDP/TBP+yNQms1eqSOB3EJJe7jkwaqY+E5qxJ5cGfEiaZoONuzF4CYi32I1Xf QeqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dYVeaEjH; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r69-v6si4472497pfl.260.2018.09.13.11.06.30; Thu, 13 Sep 2018 11:06:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dYVeaEjH; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727999AbeIMXRF (ORCPT + 6 others); Thu, 13 Sep 2018 19:17:05 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:42084 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727811AbeIMXRE (ORCPT ); Thu, 13 Sep 2018 19:17:04 -0400 Received: by mail-pf1-f193.google.com with SMTP id l9-v6so3017332pff.9 for ; Thu, 13 Sep 2018 11:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mcD3Gsw2jnJovjOLBdoMu6xKaPO6ftrBI9PWwdc6lAA=; b=dYVeaEjHus1bM2c+C4F4blFVr+BbAzeNR6AoTfS3UuP/T5UpbNpgfy1mjWFbgSOlR6 np+IrjZitgA0UydwXxPNXDRUYB+r3oELexUMaAq2RCiBYzDHa2adEjMuyFJsPmGU5GFY hLoDgXdXZyht9kpzdcSJ1kW9outArXsHq16L0= 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; bh=mcD3Gsw2jnJovjOLBdoMu6xKaPO6ftrBI9PWwdc6lAA=; b=qUJ2iVbOlVPSDSooq9b2eIGrucHBjjf9cY4O9jYtq07Ko2wayJm4Vp20jPje4Xo91j NLWGueG1VoW9i7/6SXHnAgLzeVRrdR7mTSuuwW8vfbH86mYglVxCF7eQjnMJnb/GG/jr wNOvUKnPYFm1LjmasW/7497k5kLJvnMi+s+bFrTfrQ1HKTPTW78XG2jU5VSnC74LV7DA 0PvT7bXiK+xCAMwJtQIdz7x7qmgK+5nx+S7FOk7X5WcLfxY5oc0iL4zc8cXR+E1TxuFP QHWbFquK7zuDYruD+FV9d/nyhN6oCwZEVxyGEoUfbnjbRpsqV0CQ//FRNdPXkjh3metB FWtw== X-Gm-Message-State: APzg51AfyQGOypXktHMWhyzTLGYyNJrEZhZNXmnrHWiBO1fbgQ/cLmYB E/4kwuvWdbel0zeZ6m/J/Pkq X-Received: by 2002:a65:608b:: with SMTP id t11-v6mr8257556pgu.259.1536861988847; Thu, 13 Sep 2018 11:06:28 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6115:a36e:955b:f94d:4607:e9b9]) by smtp.gmail.com with ESMTPSA id u184-v6sm8856802pgd.46.2018.09.13.11.06.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Sep 2018 11:06:28 -0700 (PDT) From: Manivannan Sadhasivam To: heiko@sntech.de, robh+dt@kernel.org Cc: vicencb@gmail.com, shawn.lin@rock-chips.com, ezequiel@collabora.com, enric.balletbo@collabora.com, pbrobinson@gmail.com, tom@vamrs.com, dev@vamrs.com, stephen@vamrs.com, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v3 3/4] arm64: boot: dts: rockchip: Add support for Rock960 board Date: Thu, 13 Sep 2018 23:35:44 +0530 Message-Id: <20180913180545.29756-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180913180545.29756-1-manivannan.sadhasivam@linaro.org> References: <20180913180545.29756-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add devicetree support for Rock960 board, one of the Consumer Edition boards of the 96Boards family. This board support utilizes the common Rock960 family board support that includes Ficus 96Board. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3399-rock960.dts | 52 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rock960.dts -- 2.17.1 diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index b0092d95b574..57c0d76458e6 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -14,5 +14,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-firefly.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-bob.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-kevin.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock960.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire-excavator.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts new file mode 100644 index 000000000000..3c3308daec98 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts @@ -0,0 +1,52 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2018 Linaro Ltd. + */ + +/dts-v1/; +#include "rk3399-rock960.dtsi" + +/ { + model = "96boards Rock960"; + compatible = "vamrs,rock960", "rockchip,rk3399"; + + chosen { + stdout-path = "serial2:1500000n8"; + }; +}; + +&pcie0 { + ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>; +}; + +&pinctrl { + pcie { + pcie_drv: pcie-drv { + rockchip,pins = + <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + usb2 { + host_vbus_drv: host-vbus-drv { + rockchip,pins = + <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&usbdrd_dwc3_0 { + dr_mode = "otg"; +}; + +&usbdrd_dwc3_1 { + dr_mode = "host"; +}; + +&vcc3v3_pcie { + gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>; +}; + +&vcc5v0_host { + gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; +};