Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp516361pxb; Thu, 23 Sep 2021 05:20:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV0lAsrVH2aHN97xmT1lpC+NkfHlT3ShSOyMbHyb2uPaAZAGpPaBG3TgqSJFB6xHqCBXx5 X-Received: by 2002:a17:906:b00c:: with SMTP id v12mr4628394ejy.222.1632399619685; Thu, 23 Sep 2021 05:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632399619; cv=none; d=google.com; s=arc-20160816; b=YJM2BYu+HMwgDvoS4KDiZTPIJT1fuMchcaccsOt0sjfQ5V4bRympeULA8C65jbX3MH NMRBXQJBQx8Q/uUjC1xjaQe6GilqSI2m7PI/rRwTnBE7LVq74Ow57ITBziN03LCgVFHO rwPc3XE+5E/jzVv1UhXPwRjUrR7TdJk7veTrDslvIcCDw+8bE/FTQ7cXWebROVt0fs2l sv8X1cmFQyw/O3htgWWYus5n2T6oSatdFAb5rEQ6mWQyKMDOxeZSKLPP5BbVEvLnUSGz 4Xn5DzrpZw+5JO+1vfJnpvId0RzjuHd/0n+xmUQlM/GVRGMeUW+5X5ezTca4nxkmufka hEtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=vDVruuMIV3Od0lzJ27zsw0TZrt8Sgf2IylHlOeqyXYU=; b=ytdGXh5LyUSHQ/SpJljOSRS2fXlU8VZ7DBq1LQanfSNDtaK7OWxGCspBbbnmjUNbXl Cs0be13O2TinMIWLBUe5H5cNQFi8b3XnScmz/6gr29LwMLNhLPZ177F+XARf/r5+hSd8 XwobFs13OvYB/Xbzx8ZiCfWV6b8KUn63jSvzizP3dj7SkzhXcUYUAieOafWONW6lTrdd OZU/8/1BN3yAUiWJK/BROU9OKcSnRWLngzKdxv12S8vg0bzV/6Lm/57cXLboNT4YB/WX ResnDMMFNYF2jB1gO5+gGI4Fx79QtigY0bcLowahiH+MI7IAe5Si0SBglYlFIfLpEhjl LhHw== ARC-Authentication-Results: i=1; mx.google.com; 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 nb38si5788005ejc.126.2021.09.23.05.19.55; Thu, 23 Sep 2021 05:20:19 -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; 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 S240958AbhIWMSd (ORCPT + 99 others); Thu, 23 Sep 2021 08:18:33 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:58133 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240682AbhIWMSY (ORCPT ); Thu, 23 Sep 2021 08:18:24 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 23 Sep 2021 05:16:47 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 23 Sep 2021 05:16:43 -0700 X-QCInternal: smtphost Received: from rajpat-linux.qualcomm.com ([10.206.21.0]) by ironmsg01-blr.qualcomm.com with ESMTP; 23 Sep 2021 17:46:26 +0530 Received: by rajpat-linux.qualcomm.com (Postfix, from userid 2344945) id 0B57E2160A; Thu, 23 Sep 2021 17:46:24 +0530 (IST) From: Rajesh Patil To: Andy Gross , Bjorn Andersson , Rob Herring Cc: 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, mka@chromium.org, dianders@chromium.org, Roja Rani Yarubandi , Rajesh Patil Subject: [PATCH V10 2/8] arm64: dts: sc7280: Add QSPI node Date: Thu, 23 Sep 2021 17:46:12 +0530 Message-Id: <1632399378-12229-3-git-send-email-rajpat@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1632399378-12229-1-git-send-email-rajpat@codeaurora.org> References: <1632399378-12229-1-git-send-email-rajpat@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roja Rani Yarubandi Add QSPI DT node and qspi_opp_table for SC7280 SoC. Move qspi_opp_table to / because SPI nodes assume any child node is a spi device and so we can't put the table underneath the spi controller. Signed-off-by: Roja Rani Yarubandi Signed-off-by: Rajesh Patil Reviewed-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd --- Changes in V10: - No changes Changes in V9: - No changes Changes in V8: - As per Doug's comments, Added "qcom,sc7280-qspi" compatible in qspi node Changes in V6: - As per Stephen comments, updated commit message regarding qspi_opp_table moved from /soc to / Changes in V4: - As per Stephen's comment updated spi-max-frequency to 37.5MHz, moved qspi_opp_table from /soc to / (root). Changes in V3: - Broken the huge V2 patch into 3 smaller patches. 1. QSPI DT nodes 2. QUP wrapper_0 DT nodes 3. QUP wrapper_1 DT nodes Changes in V2: - As per Doug's comments removed pinmux/pinconf subnodes. - As per Doug's comments split of SPI, UART nodes has been done. - Moved QSPI node before aps_smmu as per the order. arch/arm64/boot/dts/qcom/sc7280.dtsi | 61 ++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index fd78f16..2fbcb0a 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -415,6 +415,25 @@ method = "smc"; }; + qspi_opp_table: qspi-opp-table { + compatible = "operating-points-v2"; + + opp-75000000 { + opp-hz = /bits/ 64 <75000000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-150000000 { + opp-hz = /bits/ 64 <150000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + }; + soc: soc@0 { #address-cells = <2>; #size-cells = <2>; @@ -1318,6 +1337,23 @@ }; }; + qspi: spi@88dc000 { + compatible = "qcom,sc7280-qspi", "qcom,qspi-v1"; + reg = <0 0x088dc000 0 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&gcc GCC_QSPI_CNOC_PERIPH_AHB_CLK>, + <&gcc GCC_QSPI_CORE_CLK>; + clock-names = "iface", "core"; + interconnects = <&gem_noc MASTER_APPSS_PROC 0 + &cnoc2 SLAVE_QSPI_0 0>; + interconnect-names = "qspi-config"; + power-domains = <&rpmhpd SC7280_CX>; + operating-points-v2 = <&qspi_opp_table>; + status = "disabled"; + }; + dc_noc: interconnect@90e0000 { reg = <0 0x090e0000 0 0x5080>; compatible = "qcom,sc7280-dc-noc"; @@ -1513,6 +1549,31 @@ gpio-ranges = <&tlmm 0 0 175>; wakeup-parent = <&pdc>; + qspi_clk: qspi-clk { + pins = "gpio14"; + function = "qspi_clk"; + }; + + qspi_cs0: qspi-cs0 { + pins = "gpio15"; + function = "qspi_cs"; + }; + + qspi_cs1: qspi-cs1 { + pins = "gpio19"; + function = "qspi_cs"; + }; + + qspi_data01: qspi-data01 { + pins = "gpio12", "gpio13"; + function = "qspi_data"; + }; + + qspi_data12: qspi-data12 { + pins = "gpio16", "gpio17"; + function = "qspi_data"; + }; + qup_uart5_default: qup-uart5-default { pins = "gpio46", "gpio47"; function = "qup13"; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation