Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8008545rwb; Tue, 13 Dec 2022 00:26:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FaCBP7X/sOZPelLxP7DsB0Xr9c7/rNMz2XuFsNpha4lKW1XZiMni35zNZ2dKfJyR8AhKj X-Received: by 2002:a17:906:c51:b0:7b2:91e8:1553 with SMTP id t17-20020a1709060c5100b007b291e81553mr17256640ejf.20.1670920014219; Tue, 13 Dec 2022 00:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670920014; cv=none; d=google.com; s=arc-20160816; b=LxG1jH2h7hPqXakpkXgTEfiNmM+R6aRtQ0zTnqECSFelHtDr7gl24Nk3PJfU3g5R3u yxf7eEvpW6ahlNViSax/UMXYzmBE9T+LyRztd/id7iwjPkfE121TEBObjIRUC9HD15Uv +gdzJqOkuV0cz1GqJQjaFTIVpZ+6obFGsjkw27J/F6f+nTByQ7xJ/6md9dk+WEwIeVkL P0laUhoyBVQomgDNuwp1vNvhE4UVU+Au58kDADuogXd9faaU7SPjlOjD/H+PrK2Ic51n usoLDOtGS7yK+2E7TjazVE437lqy/4eYqQptcEOMofBHbUANUuaMbc0j2u4JvbcapBps Q7tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6G8q+3qhB+NaOet77bJec0YaltEtxXNHvFwnAfL2oNI=; b=gzP40XeawnWGpeYVl5WGlue88SD+hxYe5aETUAQO25G+5qvwlaKIyTHmN4g+oDPOVT DgU5ZLwF+8XQHRhUU9LScKbQE++BvrFe9PowgrkR6C2Sy0ZQPLIFK2f4ll/sGA4FasQR skT8q0cla7Vkjkx2v+uFpg+byg9T0yGZjZ4ARst7jtNWV8UYELSlcALrffKCID7yXqCu /cV7krh8A0qlPb7PIlKAiS+OIgc40SdN5jwPKekj2mwEj2PxHbTASB3MgMgRcv0JLnF8 g9a4cK7N8QVLqZyh2sJ/6XhjjLplmEBCKzclGilv7nVxqC2LBVQuRV8eRGPMdtc+uhWg NCRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lh7GH3rF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a170906a28500b007adc8d6b77esi6592229ejz.308.2022.12.13.00.26.35; Tue, 13 Dec 2022 00:26:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lh7GH3rF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233761AbiLMITX (ORCPT + 74 others); Tue, 13 Dec 2022 03:19:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233635AbiLMITU (ORCPT ); Tue, 13 Dec 2022 03:19:20 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E86DF5AC; Tue, 13 Dec 2022 00:19:19 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 191F361355; Tue, 13 Dec 2022 08:19:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AB59C433D2; Tue, 13 Dec 2022 08:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670919558; bh=yY2CBwuvD37TBBn1YVRIQf5C8+KaMDI6W4l+pvlpPa0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lh7GH3rF4j1xjuSIE0oMEm3C8qe6u0yXRQ3Go5NTcFizeEhbj9tPTrPEm63VvBiD3 0zaZPm+5hBE1AOXTBti0S36eREIkoXOw+bX9JtK3ZWT1Lo6aTyTZDCsKcOsiXiKWDn P1lYnb4R6PROtm5ZhHD1uDKXNolmV2Phk5zF6mpTldC6K4MgorZQ9bgi1vrpZSOETk oSDjWfF06pJ6/nrqRFn/KdCbfRRGexhN5HLtWIkbkKLxpmkzN9/IVOwhI78cd4D4WE Qv9Te1donqVPYH8RyHKzrtcGVScjVUllboi4mOT5a3WeC0GxC+Pb66eT1aIlQr7FUv 2WclzIoyvub0A== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1p50Vq-0004l2-SD; Tue, 13 Dec 2022 09:19:43 +0100 Date: Tue, 13 Dec 2022 09:19:42 +0100 From: Johan Hovold To: Shazad Hussain Cc: andersson@kernel.org, bmasney@redhat.com, kernel test robot , Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] arm64: dts: qcom: sa8540p-ride: enable pcie2a node Message-ID: References: <20221213051109.8685-1-quic_shazhuss@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221213051109.8685-1-quic_shazhuss@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 13, 2022 at 10:41:08AM +0530, Shazad Hussain wrote: > Add the pcie2a, pcie2a_phy, and respective tlmm > nodes that are needed to get pcie 2a controller > enabled on Qdrive3. > > This patch enables 4GB 64bit memory space for > PCIE_2A to have BAR allocations of 64bit pref mem > needed on this Qdrive3 platform with dual SoCs > for root port and switch NT-EP. Hence this ranges > property is overridden in sa8540p-ride.dts only. Please break your lines at 72 columns or so (not 50). > Signed-off-by: Shazad Hussain > Reviewed-by: Brian Masney > Reported-by: kernel test robot No need for this Reported-by (even if some people may disagree). > --- > Changes since v3: > - Fix syntax error and add Reported-by (Kernel test robot) > > Changes since v2: > - Discard below patch as v3 is merged in qcom tree > [v4] arm64: dts: qcom: sa8540p-ride: enable PCIe support > https://lore.kernel.org/all/20221206161916.315640-1-bmasney@redhat.com/ > - Move tlmm PINCTRL to the end and add R-b (Brian) > > Changes since v1: > - Fix ranges property indentation (Konrad) > > arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 96 +++++++++++++++++------ > 1 file changed, 71 insertions(+), 25 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > index 6c547f1b13dc..d70859803fbd 100644 > --- a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > @@ -146,6 +146,27 @@ vreg_l8g: ldo8 { > }; > }; > > +&pcie2a { > + ranges = <0x01000000 0x0 0x3c200000 0x0 0x3c200000 0x0 0x100000>, > + <0x02000000 0x0 0x3c300000 0x0 0x3c300000 0x0 0x1d00000>, > + <0x03000000 0x5 0x00000000 0x5 0x00000000 0x1 0x00000000>; > + > + perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>; > + wake-gpios = <&tlmm 145 GPIO_ACTIVE_HIGH>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&pcie2a_default>; > + > + status = "okay"; > +}; > + > +&pcie2a_phy { > + vdda-phy-supply = <&vreg_l11a>; > + vdda-pll-supply = <&vreg_l3a>; > + > + status = "okay"; > +}; > + > &pcie3a { > ranges = <0x01000000 0x0 0x40200000 0x0 0x40200000 0x0 0x100000>, > <0x02000000 0x0 0x40300000 0x0 0x40300000 0x0 0x20000000>, > @@ -186,31 +207,6 @@ &remoteproc_nsp1 { > status = "okay"; > }; > > -&tlmm { > - pcie3a_default: pcie3a-default-state { > - perst-pins { > - pins = "gpio151"; > - function = "gpio"; > - drive-strength = <2>; > - bias-pull-down; > - }; > - > - clkreq-pins { > - pins = "gpio150"; > - function = "pcie3a_clkreq"; > - drive-strength = <2>; > - bias-pull-up; > - }; > - > - wake-pins { > - pins = "gpio56"; > - function = "gpio"; > - drive-strength = <2>; > - bias-pull-up; > - }; > - }; > -}; > - This is a separate change which should go in its own patch. (We sometimes make exceptions to this general rule, but then you must least mention that you're also moving the tlmm nodes and why you're doing so in the commit message.) > &ufs_mem_hc { > reset-gpios = <&tlmm 228 GPIO_ACTIVE_LOW>; > > @@ -268,3 +264,53 @@ &usb_2_qmpphy0 { > &xo_board_clk { > clock-frequency = <38400000>; > }; > + > +/* PINCTRL */ > + > +&tlmm { Johan