Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp85243ybi; Thu, 30 May 2019 21:04:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7jwOiwvq5ZNC7QWHMO+dxk646eF+1GfUoXzF5lZqHT6MWJ0gcefCgBHLiwiH2cOsAV+f6 X-Received: by 2002:a63:4006:: with SMTP id n6mr7011464pga.424.1559275454649; Thu, 30 May 2019 21:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559275454; cv=none; d=google.com; s=arc-20160816; b=vY7hkxNu2WpVWSRM/oO+W7eCf69v5+Zq7JkbRMqRvWoFoEot0wvh2yc55Vaqz8CauM pXLc6QhnosWdA/gbuFja2d8llqNn3xTInCwCTGOxXtFI7SzQP4Bu48wCPgI//9lkr9Y+ d91x88MsbMEzqORh2UnxOCnsyKYmZJx3BU42HHqot7pwisqpu7rmUW0HVNpcxsPa7wCY 9SDtBdt8xDn7mFD26chbUhoXLCLipkyaW4tkqO0mRFVtlk2FU6FUtUamzUIz+GsKnEPz eiQuSfUOurFAXg2R3R+VWryUmktQ3bBKUpviP5cxxP9qYAh2rA9LpIvEJvMGAF4vJEpQ PXtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ukEC3MMMF7VZfZKjRmeuoQSQX5eGcJH/5lmeM5Xiv1s=; b=OhViNCK26qX07IYuE8fM+UBcCQLOStbjJ12Fl/FoTOj9v7DhNdBS8g7SIGYoQV3cNm 4N4YZ39JG20JGQdbVLq43Zz4udBSrerKCLeoEV8OtWjPwvSaYQpAdlSJDdJg8/hgMFEJ SKajB3AELyFxAOhClHM4SxT70GXTo4A4GADXKq0sDGV4nryDvRBeNomhOt2RVh66FsVa CI+VCtHP0aTbDTfaNWt8A6HZPrQx4cZK4Wrf6mylBL9Z2c7n9Bjx0T4AVFs5xcSOk8uN h5V5nQpz0yQfZ1siFR81sAO+n2KuGlJvk8J1nRliG+igrkOX309spNeNB/P9Ztm3GXDm uLWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VXw9JliX; 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=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 p13si4729823pgh.417.2019.05.30.21.03.55; Thu, 30 May 2019 21:04:14 -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=@linaro.org header.s=google header.b=VXw9JliX; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726331AbfEaECd (ORCPT + 99 others); Fri, 31 May 2019 00:02:33 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44213 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725900AbfEaECd (ORCPT ); Fri, 31 May 2019 00:02:33 -0400 Received: by mail-pf1-f193.google.com with SMTP id c9so2055653pfc.11 for ; Thu, 30 May 2019 21:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ukEC3MMMF7VZfZKjRmeuoQSQX5eGcJH/5lmeM5Xiv1s=; b=VXw9JliX+By7ETjpg/VwT4cIvO5bt9B5kaUNS2hcsP92UbdLa1fgpaQAE/XPqJSi/7 qBTnZtb9FYsYB/JtGEalVQ7ZZYtdHM4K5tJy44QI1wae6QDJJ6S6xEvY4zV25yXLj0CZ 2MZqvtdmBIoISzz2bpfpAUYtDs14qrbKfwdwqmhwipBSmelAD2M1dde0La5Nr8hrGpXN vSzuF5L7pr/hdm+lHqsgGzCD0/7xwed8vMYeMKe/4H5rC+PljIl3sPxhcohWdzLdxYFR D2w+5vzntIcMRodAV6qZV7cE2XYHYiHmQrgogQZ7ubjNO0Lh9y3elutJb5Pb9iO8vsbM QB5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ukEC3MMMF7VZfZKjRmeuoQSQX5eGcJH/5lmeM5Xiv1s=; b=G3prxbe9qgoeF32GZttvwG2KCbNRUAbf/wxUl7Ci3ak2ooCq235Sdv1a2ifQSokQ4e /7MqE3omm+YlA+0s3569P/wZ/cyrBhQqgdAiBMqraLyTf4JBpP5JA+HyGFktKJb1FhIR vrVejIwSGCF5gEdKaOxNvfltrT5hxr8YnQf44Ri3sL05vLv59lWn5bFpYP8ySC2X45nn wxs/EqDH/BovA4ONTaTXQk4WPDn9WO8kllqRLZb3zSQxhIi09QFC4YCJNT7ocNXbEfJl UF/yHII02Lym6jxGeJ5BQS8tplQQOc1kbFJJCZ++Zz/nNrDYt16d9N8WBacQhoMidTr/ ZX4A== X-Gm-Message-State: APjAAAVdotRGG//iU3Vvd5TJVoQ6pW+Np6bZpjhLF0EDWCZi/fCOziyw N/j6gJo3fRAv5vXfBnZG+iYZ4gZk7g== X-Received: by 2002:a17:90a:26a9:: with SMTP id m38mr6679956pje.93.1559275352740; Thu, 30 May 2019 21:02:32 -0700 (PDT) Received: from Mani-XPS-13-9360 ([2405:204:72cb:ebf2:a51d:3877:feab:5634]) by smtp.gmail.com with ESMTPSA id q7sm4348899pjb.0.2019.05.30.21.02.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 May 2019 21:02:31 -0700 (PDT) Date: Fri, 31 May 2019 09:32:22 +0530 From: Manivannan Sadhasivam To: Anand Moon Cc: Rob Herring , Heiko Stuebner , Ezequiel Garcia , Jagan Teki , Enric Balletbo i Serra , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: rockchip: Add missing PCIe pwr amd rst configuration Message-ID: <20190531040222.GB9641@Mani-XPS-13-9360> References: <20190530125837.730-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190530125837.730-1-linux.amoon@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, May 30, 2019 at 12:58:37PM +0000, Anand Moon wrote: > 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>; > + }; Which schematics did you refer? According to Rock960 v2.1 schematics [1], below is the pin mapping for PCI-E PWR and PERST: PCIE_PERST - GPIO2_A2 PCIE_PWR - GPIO2_A5 Above mapping holds true for Rock960 version 1.1, 1.2 and 1.3. Also, rk3399-rock960.dtsi is common for both Rock960 and Ficus boards, so the board specific parts should go to rk3399-rock960.dts and rk3399-ficus.dts. Thanks, Mani [1] https://dl.vamrs.com/products/rock960/docs/hw/rock960_sch_v12_20180314.pdf > + }; > + > sdmmc { > sdmmc_bus1: sdmmc-bus1 { > rockchip,pins = > -- > 2.21.0 >