From patchwork Sat Apr 25 10:53:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1111 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9B2803F355 for ; Sat, 25 Apr 2020 12:53:52 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id v71sf10494017pjb.6 for ; Sat, 25 Apr 2020 03:53:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587812031; cv=pass; d=google.com; s=arc-20160816; b=jQzdOkt86w4N8eg25gxvLmGFd3YklhffxuemeCt4pWnqHdexlyWLZrUMd2bGMYuqZp RkLOp9kUL2zRXCVfTJ8uf7i6jlFgi+iV3pzztBxCTP23lD26LPxNqZ1ZHrS7KrJLfLgf xYAo0VrmlgIplHehsMYe0AuGkV+rCsj/idwEOq9A3njUoJXI3O/+NlZvG5OT50vLFsuR XouzTYgNFKy6Wev1vMUuGozPFQIEkUAmMY63KmxsrQ1FcOQGXdW8FB+VjftRafIigGoe XQ2Tj4pezcg4BlUdI2ShB6FCgEXzezdHWlMEZz+9CVjZj5ylsxTu0FG/93Nk2gVVc9xP 7mDg== 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:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=VvWKb1saMIQW/Im9WmgJmfAkkBUAJfV/2Fa0f+6/EgA=; b=oK1LIiDmR3Do/JnxzDvUDiJjifTn+lMeHSzLtKazl02+PC1AhMDlAyllU8hs0U2zXy xM0MKVdcw4Xhq8TEzye5HpqGzzgdPhd1BTpABJMBLJ7BWo9WIjVeIhiu8lAaymGKUqmm 0xhVRbvB9HU+M8d0YBecwMPrBFtkFDDF18REMkOIMFvLp/BfME+JeGp4y2FQVsC80yb+ J+KTNpECb1UpibqCsU3nTXVNifAmdXN6uYqc09ALGnIU4t+PfqD0pshgi5k3UlQMIwuo 5d72xdyqR4mPZUw46LmfN5g2gXHIZxqpFCytFeQv5eSBLayx3tML63s6n3dfYOTyXVdJ a2Dw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pZZ2h3Md; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=VvWKb1saMIQW/Im9WmgJmfAkkBUAJfV/2Fa0f+6/EgA=; b=KOaq8Zs+B9IAJx+gbo+sWWnnioMNGbK5Nkh3JclBY6Af8FRvfUbAJMW3mnRHvwwyS6 HLUdeFeZwVRFEsYUImEKNrxtCtvmD047hRM5YnaArEdC2TpXIf26ks/h0g5fZq55Izg1 eMxi7maTgF5xn0V/JlhYzEJKN3wmiV24hhqwk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references: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=VvWKb1saMIQW/Im9WmgJmfAkkBUAJfV/2Fa0f+6/EgA=; b=hkqIksDMn5aXjQIE1GLlQOW+zS0VmM0RqX+AaN37COZqZCRq+9cgqXG8iyjlgfm3IT nBlYsF0iVPcHNtPa7bdCV9RZhmGvLJuIeBKzyVt8gby+YtXGS/HKRew3irCUoK5juAnO 6l6EkdDwsXfmgyrqMykhBzm89J3IwZ29ZYV1L8GLQ85fkEIsNqwuUK9s4tWEW7sBIxOE J4EuWoepg2n16va7lOvGzdirMZPOY0xHoj1t7P2pzYEyk7jfmbklDSOMmwLWgbZJ1Yvf qs6/3dYcBlqMX/shGVMJ/nHatv2lSFzehi+7Kd1XvZKZ86XFp15Rf4q35tIietr1iQkt j87Q== X-Gm-Message-State: AGi0PuZBuCw/qLZK3Jd3VNEcJRXW+hJqtSL+jJS8LRWZ1cHb3v9SKz+l HRY/9ndlYXtGbuDhAZZ2Y2fmUElF X-Google-Smtp-Source: APiQypIewhm6KaMzhi5xl7SsTjM4rCn12AcC9h9BTjnuexiOHr+LjsdxkXiBBmj+X3iJD+y8AC8biQ== X-Received: by 2002:a63:e503:: with SMTP id r3mr14447334pgh.106.1587812031352; Sat, 25 Apr 2020 03:53:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:ddc9:: with SMTP id w192ls9109353pff.1.gmail; Sat, 25 Apr 2020 03:53:51 -0700 (PDT) X-Received: by 2002:aa7:8d81:: with SMTP id i1mr14915361pfr.34.1587812030806; Sat, 25 Apr 2020 03:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587812030; cv=none; d=google.com; s=arc-20160816; b=XTVm1r2QWU7gzi3ZNQxLSW/5YkWGrVoviMPqjWrPgeZqHKoWhL/BhocMTX6K89mS2I ibI2Oaxr6cULJHyI6BbcE5JtDqUEtrqJceswtsj/T6GTjhZsarqb8LlRShdhajHSihHf X+QmCCY6fG3LIrhC4oGejI/gJXnFY4vFOj6ZUwVHDQXeGjH1G5Rp5nRCi4YJEHXDnHeX VXEkyT4CWfnEjsmmETOAcQ6KEHANVwHfFlwUVwPstAYegP3JHz9luTI0dwGLBuohup1k VUzW0wQqJA46Zt+0V7n0h3s5zL+QNi5+4ZhZi7n7fYjG4Fbn8wU1+MQAYsRq8JfoaYL1 deig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QYblLEpBV9ju1D5Vg6djnUr+yY8gBY14dCc+wH2qPtM=; b=ugxpvx9BM/8IXKLFmUEUN0OOsCtDnG/7zagdfOFKaxfIow7r5PZCLBrQcK0TOlmd13 Zx6Jo6pY9LEsmItPeVgLU4yDdMSHmoGlK5fVst4CfqpvZ/RIfU1BXYZ8FeyhgnVMwxah Cpg4Bl1kQOL5I6zFcuKiGGIzTOG1Fk2Vr/TCiZzUxJCRfTg6IQe71FcaCwwwqjK6IZUz 0BP1M0sLtwBGjnnV591e4cnJyVuRf0xn/mIaSvRG3URgfe4FGytkArzoul3VyutPkpO8 H317KsU87SThcW2irTLJ0dqc89QvjdlErh7/mv/T8BCLJwdPL9MK2XagkjiHgGd/mtnl a4cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pZZ2h3Md; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@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 z2sor9558715plo.48.2020.04.25.03.53.50 for (Google Transport Security); Sat, 25 Apr 2020 03:53:50 -0700 (PDT) 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:a17:902:ee15:: with SMTP id z21mr13424374plb.71.1587812030368; Sat, 25 Apr 2020 03:53:50 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:1d46:fa69:c34:93dc]) by smtp.gmail.com with ESMTPSA id u188sm7996303pfu.33.2020.04.25.03.53.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2020 03:53:49 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 5/6] arm: dts: rk3399: Sync roc-pc-mezzanine from v5.7-rc1 Date: Sat, 25 Apr 2020 16:23:18 +0530 Message-Id: <20200425105319.12009-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200425105319.12009-1-jagan@amarulasolutions.com> References: <20200425105319.12009-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pZZ2h3Md; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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: , Sync Firefly ROC-RK3399-PC Mezzanine Board dts file from Linux v5.7-rc1. Signed-off-by: Suniel Mahesh Signed-off-by: Jagan Teki --- arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3399-roc-pc-mezzanine.dts | 93 ++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 arch/arm/dts/rk3399-roc-pc-mezzanine.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 6d1e8668e7..747f5f1e8a 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -129,6 +129,7 @@ dtb-$(CONFIG_ROCKCHIP_RK3399) += \ rk3399-puma-ddr1600.dtb \ rk3399-puma-ddr1866.dtb \ rk3399-roc-pc.dtb \ + rk3399-roc-pc-mezzanine.dtb \ rk3399-rock-pi-4.dtb \ rk3399-rock960.dtb \ rk3399-rockpro64.dtb diff --git a/arch/arm/dts/rk3399-roc-pc-mezzanine.dts b/arch/arm/dts/rk3399-roc-pc-mezzanine.dts new file mode 100644 index 0000000000..2acb3d500f --- /dev/null +++ b/arch/arm/dts/rk3399-roc-pc-mezzanine.dts @@ -0,0 +1,93 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2017 T-Chip Intelligent Technology Co., Ltd + * Copyright (c) 2019 Markus Reichl + */ + +/dts-v1/; +#include "rk3399-roc-pc.dtsi" + +/ { + model = "Firefly ROC-RK3399-PC Mezzanine Board"; + compatible = "firefly,roc-rk3399-pc-mezzanine", "rockchip,rk3399"; + + vcc3v3_ngff: vcc3v3-ngff { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_ngff"; + enable-active-high; + gpio = <&gpio4 RK_PD3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc3v3_ngff_en>; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&dc_12v>; + }; + + vcc3v3_pcie: vcc3v3-pcie { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3_pcie"; + enable-active-high; + gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc3v3_pcie_en>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&dc_12v>; + }; +}; + +&pcie_phy { + status = "okay"; +}; + +&pcie0 { + ep-gpios = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>; + num-lanes = <4>; + pinctrl-names = "default"; + pinctrl-0 = <&pcie_perst>; + vpcie3v3-supply = <&vcc3v3_pcie>; + vpcie1v8-supply = <&vcc1v8_pmu>; + vpcie0v9-supply = <&vcca_0v9>; + status = "okay"; +}; + +&pinctrl { + ngff { + vcc3v3_ngff_en: vcc3v3-ngff-en { + rockchip,pins = <4 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + pcie { + vcc3v3_pcie_en: vcc3v3-pcie-en { + rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + pcie_perst: pcie-perst { + rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&sdio0 { + bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + keep-power-in-suspend; + mmc-pwrseq = <&sdio_pwrseq>; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; + sd-uhs-sdr104; + vmmc-supply = <&vcc3v3_ngff>; + vqmmc-supply = <&vcc_1v8>; + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; + status = "okay"; +};