Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp733396ybi; Thu, 30 May 2019 06:01:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtsT8Zje2mlwVrhIpmmzso1MCADYSkBRuFVfxLJBDrPSNk7zSOxj7eWqWhgNPWH2S1kFZy X-Received: by 2002:a62:1990:: with SMTP id 138mr3611293pfz.133.1559221315170; Thu, 30 May 2019 06:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559221315; cv=none; d=google.com; s=arc-20160816; b=iLv6Cw73SpVDlBj/ufz5ZYVSNt+BQFHZVCIWIOg+D6eJZ8emWFvjx0oTB57fSwIR7r bQmHsOqUkL8LUuzchClM7NbaHEooe4txgLmdfG8GRYbqlZ89YIOuRC1nN8pR0Ob41bSN Vq9CGGPZnM7bEW25JJw7d9DOavB56jShicWh5tCIH1wNZPH1hFSFgPTyk1rKhQLTPXGf 90ItGUHW4n2FFU5A8yAluxaA9ZVUSoeLlCzZz1uFTXIaJPQ80BajN4S7bn4nEMcrmAb6 l/pONHKY3x+/wlye/83aJ/kpcBPDmA2+x8n+nFRZqO4bMilTwY8tym/PAKCAm1Ld07bQ sBSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GvIkFSS6zYb3I2dgFnSydPQ6jC4jn1KdG+v4VePYDQk=; b=wR2An1414dvCQ/MbKLkseA5XSPqGbd4+0NoMbHdoAG0oq14xOLWA2r/lPEQwuV0rAP Rc4bpg5f9Fx02CN7qUHRwXBs9/0VrWE7/DqqNWTTVeLGm9kyUcYA0jRjtWIog+p88B6o QQiYoRICqRe+NDY0JrQAEiezSePZZAzt4yCE8omWF9vj0Us9qxacsihXVO+qR9kQtDii jtWSLUGVdThaVpDIxijRPjRq5oVX/z9xNm3nb+uD+E6vaKzfVRcxRxmpy91NStqITeUK Sb/QGZ+b/jZmMk5Y9Z2E01KtICGLZH//v2515IZDaeELh0JmNa4joTkQ+ZS/pjSrlafx yEHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gZ0kUco2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p127si2978874pgp.217.2019.05.30.06.01.37; Thu, 30 May 2019 06:01:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=gZ0kUco2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727100AbfE3M6q (ORCPT + 99 others); Thu, 30 May 2019 08:58:46 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36406 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbfE3M6p (ORCPT ); Thu, 30 May 2019 08:58:45 -0400 Received: by mail-pf1-f195.google.com with SMTP id u22so3930210pfm.3; Thu, 30 May 2019 05:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GvIkFSS6zYb3I2dgFnSydPQ6jC4jn1KdG+v4VePYDQk=; b=gZ0kUco2TbQiQDQDexJBvPdg0HouSZLKePsOfYv6pLG+qWJ0GrIa4KS0xDHzq7Njp1 JVX6Yd55JBSYaL22fwI4u7uzTEp4gJcZqLcB73bkSZlzEjKFp8dDB5P7Tk6X/kaB1YHn QfAC/0xUHvqisTK71ekwrUFYQyTNhCU6wOjlTvrB8tX7crU4DR8FV65k4FyheSikFYjv KJASKPKyS3NfhgHPlOcoDys4WcuH/Mm67Qie62B23Y+m20R7rZKGS5EALfq3AP2zT5HX 5VC1IujrphDhnuTa9lxmASESCmScK/wXSsufBZX9TIBVC9ofCknRuN8wwtquBNt3PU71 YTog== 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:mime-version :content-transfer-encoding; bh=GvIkFSS6zYb3I2dgFnSydPQ6jC4jn1KdG+v4VePYDQk=; b=jEOwsIAKsxbW4dRBMBAWVHr4R4se60MMXpJND2XaZRHxkH+BryxrS5h3R/2ysMTyng hvMDzxF7kG/kp97/kaV/ysspCnH15ReW0M3F38OdgVv0HfDUI/Rr3V8sVBuGGINuRNrW lkQjFFXT8oi5P/ZMhjQablfHHRxk8bc4tZM16tstQEeh2wVGspKdZ6+4AvaSNEJg9TxZ OXm0s//ArtBv/RicDZ7ZwocVA92YHTaMhYBxntPkMtJ4tcoKIWSwNmg8S2ymnTh2BoSy RQcmo57TuhUCAl5qpuREdlFYwF1dA168oFfqsGHs24zVGtBqw8siZoQowoeLJ9xm4T9c P5Ow== X-Gm-Message-State: APjAAAXxZGFO9EXZU8nwnN2tTEXexbnBWiPWJbhB15+Jz8nfQsXBpoTa WjrMo4Qc0HiPXaIZhU+mKpo= X-Received: by 2002:a63:8ac3:: with SMTP id y186mr3590817pgd.22.1559221124817; Thu, 30 May 2019 05:58:44 -0700 (PDT) Received: from localhost.localdomain ([45.114.62.35]) by smtp.gmail.com with ESMTPSA id j13sm2928912pfh.13.2019.05.30.05.58.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 May 2019 05:58:44 -0700 (PDT) From: Anand Moon To: Rob Herring , Heiko Stuebner , Ezequiel Garcia , Manivannan Sadhasivam , Jagan Teki , Enric Balletbo i Serra Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: rockchip: Add missing PCIe pwr amd rst configuration Date: Thu, 30 May 2019 12:58:37 +0000 Message-Id: <20190530125837.730-1-linux.amoon@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch add missing PCIe gpio and pinctrl for power (#PCIE_PWR) also add PCIe gpio and pinctrl for reset (#PCIE_PERST_L). Signed-off-by: Anand Moon --- Tested on Rock960 Model A --- arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi index c7d48d41e184..f5bef6b0fe89 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi @@ -55,9 +55,10 @@ vcc3v3_pcie: vcc3v3-pcie-regulator { compatible = "regulator-fixed"; + gpio = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>; enable-active-high; pinctrl-names = "default"; - pinctrl-0 = <&pcie_drv>; + pinctrl-0 = <&pcie_drv &pcie_pwr>; regulator-boot-on; regulator-name = "vcc3v3_pcie"; regulator-min-microvolt = <3300000>; @@ -381,9 +382,10 @@ }; &pcie0 { + ep-gpio = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; num-lanes = <4>; pinctrl-names = "default"; - pinctrl-0 = <&pcie_clkreqn_cpm>; + pinctrl-0 = <&pcie_clkreqn_cpm &pcie_perst_l>; vpcie3v3-supply = <&vcc3v3_pcie>; status = "okay"; }; @@ -408,6 +410,16 @@ }; }; + pcie { + pcie_pwr: pcie-pwr { + rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + pcie_perst_l:pcie-perst-l { + rockchip,pins = <2 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + sdmmc { sdmmc_bus1: sdmmc-bus1 { rockchip,pins = -- 2.21.0