Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp730582pxb; Thu, 26 Aug 2021 13:13:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8GIWXJOL/FPbc4tVvZcKpM0UWnNRysj+GbrEFsXyujxHs/dBQ44AvETu86NnbDmwlsrV9 X-Received: by 2002:aa7:c64d:: with SMTP id z13mr6086752edr.349.1630008800967; Thu, 26 Aug 2021 13:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630008800; cv=none; d=google.com; s=arc-20160816; b=M5S69rfzX7lMaDxVNikO2jf2wdYHcjUll4N7xGhAdHQzbUxkMMAOeuDhP2A6ibdgAS ps5HR/hWcJSUeETeAxfK3bZGGCLFQ0UoFy6APS/Mhd/I6VN/h2BNxvaNDq2DHg7ZM6my jXxBpQ81fOPigXsLicSCbnacb1VVvew7Dx230ztFv+cUIQUuNgJ+MovplBRA4LDKt5mR iomLcl5LjNvLUOdvr1KMNBoXGlmRnkioHPfWFypz8Uc2t0XANdx7YvDvLix8q3AvAKn5 pqb2sKa/SWLbomF5PPQVknUtnEvmJmyng4QNqFpqAfu7tmNFbmCeMJ28cIGNhyb2dVVG SMNA== 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=VHDAlaTfHXt7FKs8c2LGFeGm+rtm8CR5b7sqru6Uaj0=; b=EkbrP+LmeZXdkCkAEx7kFnxfA04rrBcb3/+yvX6qCM4uKxkGhgy3yeFBz4jAEL8FIt v65r0g+HVpLu9PbHo+7ukIcVyDnOCi14gx7BnY3JhgGpgz36lp25/TDYxav09q436oQo VGpt3D3x9oikShEoK8bOlw1OoBi/iH+zGNnqefEYKQjKwHnNN+AeFHGCxgc6eNruHdym 8v4pwEAw5FZTc6szNHaKQaEsuYN2wqV7QIblF38TUxgpxa+VJ8lPBC8rKrkCLFm2gufo WGszbQ5Hgz/dho9rGbZqJc+F50pe8516eZMXNNMVcH6bEAvkBRSPp/9HNhu+6ljudRiJ CCRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VZvCLjbc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si5427907edj.163.2021.08.26.13.12.48; Thu, 26 Aug 2021 13:13:20 -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=@chromium.org header.s=google header.b=VZvCLjbc; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243398AbhHZUJs (ORCPT + 99 others); Thu, 26 Aug 2021 16:09:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234503AbhHZUJs (ORCPT ); Thu, 26 Aug 2021 16:09:48 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EB0EC0613C1 for ; Thu, 26 Aug 2021 13:09:00 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id g184so3999003pgc.6 for ; Thu, 26 Aug 2021 13:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VHDAlaTfHXt7FKs8c2LGFeGm+rtm8CR5b7sqru6Uaj0=; b=VZvCLjbcIcQqQWcDSeljuWzefS7PKmWkpsMta3enfmpNdYi4q/8jiXFd9pYCEIl1dq JD76iHG8/vOzw9NbVOzGynclP6TUMN+I9J3vaAAXoK1r29BH5DKfA1cT9B3ew7s8D/tH AvrCrLQVFGliSBlwhGubr/8YI1GhiGvA80B8A= 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; bh=VHDAlaTfHXt7FKs8c2LGFeGm+rtm8CR5b7sqru6Uaj0=; b=Q4O4cZhoXUsJWHI57SrbNODyq01b2WENHi6jzh4rshDgqk7CPehXh9iyLdL/TW5VsA 7GPbM84JwD/XLfnRSTgoIGb6waC/6VrvH2x61pG8Vqv6lOxDwf2lsHbIYuwQ3ZHhqo6+ FG9YssbwfApN+XffkISW9feqjWLaGVGde16T+gDQKPwOSxaD2ptznYnDsq+4G+EiTSVn 3SmOBZ1vsVVOiLCQdq6goLLizav8By/BBdAJdlpqrrrRX5Z7VWnj48hYNzl3bYebPLLN bLM3c2bXoLAYg8bcXBkvrUABK65fd4Gkx5/KlFbCg9hQqEckoem2ujk+wkuQKJD+gS5/ 6vZg== X-Gm-Message-State: AOAM533ydBjj2nEkaTg07DwZXBT6oIuW0EtBoTXmG7i0CLmLiUZ7iVq7 V8wwJvWlf3zz1JTuQL6GlXi6Ng== X-Received: by 2002:a63:5013:: with SMTP id e19mr4775006pgb.63.1630008540062; Thu, 26 Aug 2021 13:09:00 -0700 (PDT) Received: from localhost ([2620:15c:202:201:bd0b:bcb8:ebdb:c24d]) by smtp.gmail.com with UTF8SMTPSA id n10sm3895505pjp.3.2021.08.26.13.08.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Aug 2021 13:08:59 -0700 (PDT) Date: Thu, 26 Aug 2021 13:08:57 -0700 From: Matthias Kaehlcke To: Rajesh Patil Cc: Andy Gross , Bjorn Andersson , Rob Herring , 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, sboyd@kernel.org, Roja Rani Yarubandi Subject: Re: [PATCH V6 3/7] arm64: dts: sc7280: Add QUPv3 wrapper_0 nodes Message-ID: References: <1629983731-10595-1-git-send-email-rajpat@codeaurora.org> <1629983731-10595-4-git-send-email-rajpat@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1629983731-10595-4-git-send-email-rajpat@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 26, 2021 at 06:45:27PM +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 | 724 ++++++++++++++++++++++++++++++++++- > 1 file changed, 722 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index f8dd5ff..da3cf19 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -434,6 +434,25 @@ > }; > }; > > + qup_opp_table: qup-opp-table { > + compatible = "operating-points-v2"; > + > + opp-75000000 { > + opp-hz = /bits/ 64 <75000000>; > + required-opps = <&rpmhpd_opp_low_svs>; > + }; > + > + opp-100000000 { > + opp-hz = /bits/ 64 <100000000>; > + required-opps = <&rpmhpd_opp_svs>; > + }; > + > + opp-128000000 { > + opp-hz = /bits/ 64 <128000000>; > + required-opps = <&rpmhpd_opp_nom>; > + }; > + }; > + > soc: soc@0 { > #address-cells = <2>; > #size-cells = <2>; > @@ -536,24 +555,425 @@ > qupv3_id_0: geniqup@9c0000 { > compatible = "qcom,geni-se-qup"; > reg = <0 0x009c0000 0 0x2000>; > - clock-names = "m-ahb", "s-ahb"; > clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, > <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; > + clock-names = "m-ahb", "s-ahb"; > #address-cells = <2>; > #size-cells = <2>; > ranges; > + iommus = <&apps_smmu 0x123 0x0>; > status = "disabled"; > > + i2c0: i2c@980000 { > + compatible = "qcom,geni-i2c"; > + reg = <0 0x00980000 0 0x4000>; > + clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>; > + clock-names = "se"; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_i2c0_data_clk>; > + interrupts = ; > + #address-cells = <1>; > + #size-cells = <0>; > + interconnects = <&clk_virt MASTER_QUP_CORE_0 0 &clk_virt SLAVE_QUP_CORE_0 0>, > + <&gem_noc MASTER_APPSS_PROC 0 &cnoc2 SLAVE_QUP_0 0>, > + <&aggre1_noc MASTER_QUP_0 0 &mc_virt SLAVE_EBI1 0>; > + interconnect-names = "qup-core", "qup-config", > + "qup-memory"; > + status = "disabled"; > + }; > + > + spi0: spi@980000 { > + compatible = "qcom,geni-spi"; > + reg = <0 0x00980000 0 0x4000>; > + clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>; > + clock-names = "se"; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_spi0_data_clk>, <&qup_spi0_cs>, <&qup_spi0_cs_gpio>; as per the discussion on v5 (https://patchwork.kernel.org/project/linux-arm-msm/patch/1628754078-29779-4-git-send-email-rajpat@codeaurora.org/) I remain unconvinced that configuring the CS pin both as CS and GPIO is a good idea. If you think it is necessary in this case (maybe some kind of quirk?) please provide a rationale.