From patchwork Tue Apr 28 10:00: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: 1127 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0F9EC3F37B for ; Tue, 28 Apr 2020 12:00:52 +0200 (CEST) Received: by mail-pj1-f69.google.com with SMTP id ev2sf2106340pjb.3 for ; Tue, 28 Apr 2020 03:00:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588068051; cv=pass; d=google.com; s=arc-20160816; b=1BlsR3tWCW2jBhJjN+AaIg6ZNVAltdKYZSfMmyXecfg1LlZ+IuIaK3BOfjC3HL5vjk kEYcUIrW4ycqcK3uVmN3fkC/6q7mSgtMfdivdw1zFYLm6ltVL5O5mTfZmowFhCpjGugi GVdjTUINvA65/sHAPqbpIc8/bE4nzjBUiyXeCL/WuR1LZcX9S1VeO9Fgk1aa5I79NS9I hnjQFUvnOANwc2om3X7YueBvbxTXNpMT6BRovb/pTQAWPkcbL4hl0MGEYvp5AIxOi/pN +4K8fr4UoRfpORa/9quOWSW3/V/zMCWFZWDXfZeCuCQL1551ZBWIDWeHwtWUGy8Gvmzi ynnw== 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=xafQckjBU7hdiBS01C6ZnsRWxdPJnD0Yk+43uGJEGYY=; b=fnAwNcynpy2m/ZvMYAo3jKqsNFpS4z/tHKFVCRhu1O5RWBqIfpfsJqix1WK/5RwRre ojkQiEaLmBT5pA33UMS9JKtvZF1ITRjn50QHXqx/4dsnKZtm50OThLps8hUxbgeIIfID NJMHkNo5Vu+JlKInkbXXavQSwYP3wgC00Wukk93/i1h8PbNf8/Mw0miessdEJn58eQYc ESWF44edCymPrrWvOCsJU1oEJWjVsp6TA0RQSIcqhYUjYI+X124s4V2L6YnImDeRZ/m1 dF2qtTwPrnmqb9uiRhkG+Dt3+p7XYVZyrQj7OqB5O1bWI4B65jb1Xh9qZra95xGlOP8G /fZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EPTfT4vr; 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=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=xafQckjBU7hdiBS01C6ZnsRWxdPJnD0Yk+43uGJEGYY=; b=fdhJTs/rIyJ+yqZA5f7QxHOw4nT/UwD7/WuKhN7FfjnJGfvteo8imJxCxvfgCq3peo Cu0WmkmHgqqRt4h8EjWVSilwAwallqjhRkdemuYZi92LaIF7icr1+M6juMrpRfCRiCTI m6PhlBfRwS2kmd3C7zoNuYzgtI7gfOeJXO3fI= 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=xafQckjBU7hdiBS01C6ZnsRWxdPJnD0Yk+43uGJEGYY=; b=YeXyalGSfqfQK498h8lWq2yl3PSIKit2aDa1je48lom4An1/VjEA3PiOJun8+mr7mt x6bZ0KDRJvj3Z0Zk8VBEfk2r9Ji6mwdJ/R8tM1QCN+UMGu3hLRJCHbOapG/gXwIEi+aN 2tc5RbE00Uy0Qum71XljoUdUsNFJmushvLcaXBdXlQJjoBBlSJM4Yuwb7XQNd7BccnIo TV+VaRuCMmeNzMTo9hyRwzduv2qX+iban0LfEbwYqUMJ77ubgmIqe+x83ZmyoWt2cy0g a3o/W3bjzizgeNAE9AUp0arOaz9EhMT9OMUua1tZWKgLCeY9z7XyQrAWZFAWf789nkLB Xc3w== X-Gm-Message-State: AGi0PuZcvc4nG5Jx1+5hUBHzGSMHpmx/RBbXvkrARLlQ/ZMJA2Pz5xPO 5ub530ernoQra2ZxxOEsL6RMLP36 X-Google-Smtp-Source: APiQypJSA4ZafvVjTbUBFf70odE5l3iBDZ4gFApGlrNu80v3z9sUiWY6qympKm3E52Jb8NAe7YfNYw== X-Received: by 2002:a63:7ce:: with SMTP id 197mr19447020pgh.113.1588068050845; Tue, 28 Apr 2020 03:00:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:224f:: with SMTP id c73ls4106348pje.3.canary-gmail; Tue, 28 Apr 2020 03:00:50 -0700 (PDT) X-Received: by 2002:a17:90a:d808:: with SMTP id a8mr4105166pjv.6.1588068050318; Tue, 28 Apr 2020 03:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588068050; cv=none; d=google.com; s=arc-20160816; b=vBLF9nPA76aV2HQ2ngtj4Lyt++pOoHrmSihvl4KKuwJ1eC1aYZNMStnYiLLo5xpIkr 7zO9AM09b7pDKVktEs6LbUMgYG1LX6BVuhzJ4puO8G7/mLZer4RxbNN2eNlfjtPhpKLB cBTCwmSfCROU0+HhhWjAgAD19WwjRfNNh3HKXlypGYEgS0WH1C0ZLd99n6Nk+yH3ylEL rW+3ph9YFRmFwesb+xFnHWCiqswTwmg9PuESkxAmlCFGQtWHqWAcKNUBiMlWCpp3ixIX O6qQISHsHFMYUkmT0eo74M5lsYykpXCjuUJ+JCeJ+qXVVQ7xIn42hMIn6fEpVvVZHJGG Q+qA== 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=0oMe2DD/reatfvO3u85Qztq2FmvG6vjgDNDK7VrZJfc=; b=ofvPfbSeTsNwM+dRbvOjh/SFeR3Z1Ak66XFg27j1nU1YvsSNKADrcdGEntcj3xhugW uzSR30Zj9SfnVCG+w5M56IpGIZU1DnvioxUx5dTdKkpm5z5nmvrOoN/v/+/Wfu2Unc8I copovqDiWm2R9RXqVq6UVyN2JWZDw9J5ODN0ZKrO3yjCMoqs7/oc+Wxb8i0V1fjUKgT1 RlTbAdZAvMOdcPlRddARRuczrn1QSWNLIrP2nuzHaS8I4+HddCaRQiYP+J3ZXuiNU1BQ GE27nBLZVLnXCL/UNCAvW0R2DViSRHQe2Fl9OpCPclv4Oeycve5zLyJoLSJ4HDeVR7rw kfnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EPTfT4vr; 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 ce17sor2704934pjb.28.2020.04.28.03.00.50 for (Google Transport Security); Tue, 28 Apr 2020 03:00:50 -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:90a:d98e:: with SMTP id d14mr4003321pjv.178.1588068049980; Tue, 28 Apr 2020 03:00:49 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:f9c1:1c6a:49dc:267d]) by smtp.gmail.com with ESMTPSA id j32sm12676379pgb.55.2020.04.28.03.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2020 03:00: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 v2 5/6] arm: dts: rk3399: Sync roc-pc-mezzanine from v5.7-rc1 Date: Tue, 28 Apr 2020 15:30:18 +0530 Message-Id: <20200428100019.19155-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200428100019.19155-1-jagan@amarulasolutions.com> References: <20200428100019.19155-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=EPTfT4vr; 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: , Sync Firefly ROC-RK3399-PC Mezzanine Board dts file from Linux v5.7-rc1. Signed-off-by: Suniel Mahesh Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v2: - none 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 af7d804b66..409b0d1b3f 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -131,6 +131,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"; +};