Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp365199pxb; Wed, 1 Sep 2021 00:10:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0hek4HeR8fpDFOJRZO/5AIdRo+kwdxAVwemDb0z+Oi88cFL/yRHlCbR3G8Y+qq/rZjxR0 X-Received: by 2002:a17:906:1416:: with SMTP id p22mr34504676ejc.364.1630480257791; Wed, 01 Sep 2021 00:10:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630480257; cv=none; d=google.com; s=arc-20160816; b=uWTozA5lHaVN2OSjbq2WWlghPPsA+3IR+YJ1rwzg0EXG8AI977ajaQFuLdPsV88/F4 MIsGvL84N2iFTxfCYndhnDnkCQlhuK/Zc6GQ8qh7lPw5EoH3IG9bYZz6Lx2t+u1rnMXm g+ovKdukJj+KsvV4FpE9Sr7j/hG0YZVUcj8TjqW9vd58jDUi2uvVTZh3xgkITGhZp71A 8j0x/RC45eCbFdR3YzthmD44GmPVrKf4NLAUZVEpUc4KyUczmusZKoE3bTpVkPpACzkb m2afmS5LhxUIP+29fdmH5zgDVodsnvJcfb/W7xIdsSG/YkspGZTlB/5xycpRkjHgHiCO /OaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=L22obe0p898qJXX0hILjMKUiF4qgcHKEEeB63dfBMRY=; b=uOKTSr6CwxHbWPk7KiR1X6yAGUx0be7Om8P/3bYB6WOnnIkTbEx0Oax4KCzMR8Ox3z pOyzLOFobn2IlE5sU3HqLVAN7r5S6O/oMPJNbY5oR6bwXA1EOMpWIXy21CiM57tOeEw4 wxMahyntrVpQfZlsaWVHf7Ma4ZZQedOQbsURBll3cLuPxnAuaDppuYW7p1iZSsOVxmLG VhdN568osCRnOQwCFQqcwbIlZ/Rwd7WMxtyQIYLx6ij2UQ1QZir4Ce+3g9j7CmuWknFF Zvygn6Ha3L5QfmfahUegzoFJfOcDE/KXbKgVSx1DD5aidbdOMkeg+Mx68fD83COX9cWR L3Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=VQV7wCh7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si3364032edq.488.2021.09.01.00.10.07; Wed, 01 Sep 2021 00:10:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=VQV7wCh7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242416AbhIAHIH (ORCPT + 99 others); Wed, 1 Sep 2021 03:08:07 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:64307 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242424AbhIAHIG (ORCPT ); Wed, 1 Sep 2021 03:08:06 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1630480030; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=L22obe0p898qJXX0hILjMKUiF4qgcHKEEeB63dfBMRY=; b=VQV7wCh7GHSH8tkOACP4+Rv65GBOEGm+65c3e9U7I6j3Qqe08tafA8XueXa2kNZq59NXr+qu jp2oVvSKpSO/Q8Zmd+5fh03/lFN1jGrWnpWVJREF8rMVqlO6Yf5ncf6fjcDmYBPIh332ts5F YaOYpDJx9h25foILCVQ3bTqNz2o= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 612f26924d644b7d1c412267 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 01 Sep 2021 07:06:58 GMT Sender: rajpat=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 912D8C4360C; Wed, 1 Sep 2021 07:06:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: rajpat) by smtp.codeaurora.org (Postfix) with ESMTPSA id C4F5CC4338F; Wed, 1 Sep 2021 07:06:57 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 01 Sep 2021 12:36:57 +0530 From: rajpat@codeaurora.org To: Matthias Kaehlcke Cc: Andy Gross , Bjorn Andersson , Rob Herring , swboyd@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, rnayak@codeaurora.org, saiprakash.ranjan@codeaurora.org, msavaliy@qti.qualcomm.com, skakit@codeaurora.org, dianders@chromium.org Subject: Re: [PATCH V5 3/7] arm64: dts: sc7280: Add QUPv3 wrapper_0 nodes In-Reply-To: References: <1628754078-29779-1-git-send-email-rajpat@codeaurora.org> <1628754078-29779-4-git-send-email-rajpat@codeaurora.org> <114d7419b0a85fcacf775cc34f279f0e@codeaurora.org> Message-ID: X-Sender: rajpat@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-08-27 01:21, Matthias Kaehlcke wrote: > On Thu, Aug 26, 2021 at 06:37:02PM +0530, rajpat@codeaurora.org wrote: >> On 2021-08-12 19:44, Matthias Kaehlcke wrote: >> > On Thu, Aug 12, 2021 at 01:11:14PM +0530, Rajesh Patil wrote: >> > > From: Roja Rani Yarubandi >> > > >> > > Add QUPv3 wrapper_0 DT nodes for SC7280 SoC. >> > > >> > > Signed-off-by: Roja Rani Yarubandi >> > > Signed-off-by: Rajesh Patil >> > > --- >> > > arch/arm64/boot/dts/qcom/sc7280.dtsi | 720 >> > > +++++++++++++++++++++++++++++++++++ >> > > 1 file changed, 720 insertions(+) >> > > >> > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi >> > > b/arch/arm64/boot/dts/qcom/sc7280.dtsi >> > > index f8dd5ff..e461395 100644 >> > > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi >> > > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi >> > > >> > > ... >> > > >> > > + spi0: spi@980000 { >> > > + compatible = "qcom,geni-spi"; >> > > + reg = <0 0x00980000 0 0x4000>; >> > > + clock-names = "se"; >> > > + clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>; >> > > + pinctrl-names = "default"; >> > > + pinctrl-0 = <&qup_spi0_data_clk>, <&qup_spi0_cs>, >> > > <&qup_spi0_cs_gpio>; >> > >> > What is the story behind 'qup_spiN_cs' and 'qup_spiN_cs_gpio'? Both >> > configure >> > the CS pin with a different function: >> > >> >> As per discussion here [1], we have split like this. >> >> [1] https://lore.kernel.org/patchwork/patch/1393353/#1591826 > > IIUC that's only about having separate configs for each pin, instead of > groups like 'qup-spi0-default'. What you are doing above with > 'qup_spi0_cs' > and 'qup_spi0_cs_gpio' is to configure the same pin (GPIO 3) both as > SPI > chip select and as GPIO. Which one is it? > > I imagine we want to have both pinctrl definitions to allow a board to > configure the pin either as SPI CS or GPIO. However it should be only > one > of the two at a time, and the SoC .dtsi should provide a reasonable > default, which probably is SPI CS. > I agree. Will remove it in next version. > Maybe I'm missing something, if so please provide details on why it is > necessary to have this config.