Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2602753pxb; Tue, 21 Sep 2021 03:41:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMzfgmVIc11HPtAT0NinqFOGNttfjt2porxpDQuowNl93MEQ3rX8BCtDBnKTrEktViwJxB X-Received: by 2002:a92:4a10:: with SMTP id m16mr21246005ilf.91.1632220890869; Tue, 21 Sep 2021 03:41:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632220890; cv=none; d=google.com; s=arc-20160816; b=jBWxdjAkN6EHdkmJENfaCcA3Ci7e/H+gAatyPKTIAsY2Cyn5A3TuVNz6rblKP4fYDk OYEjV00DD+mMRYVUHJPigix4IqPk7m8ab5B54GnqMKmmvwxfElC/3p1Dv7HPRK4hi6ci iJ8fN2L8c+7WqMndyq+fT77XBbnKS+QliPIyNIgPp4So46+8P1wWtNWkOmBu/Vx7Mpz4 oeubtHdIMKzPjJa0lbTh6oLsAw2W3I4n4DZDkf+ymPNhDt+iiIHyOSnkO3/wRCk+wBVO iStCL2MWH3/WgYZcaAvwll31//HZe2PQxCOgL/T5lNif9Y1joMWZaASTINxpuS/Lih/m Rhqg== 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=mrXEr76ko4dPcuQEYHv5uVFptLgHkKZ5GAvZjg0N9bE=; b=J1IN3ElQJFfbwbg48FMXDTRY5y0aKz1r9zWxMF5CGlE/XJDQ87E1Evu+e5lsBo3P7f VAE+KwD5EDI+xfFzwdE6JWvHrs6BK8/wSxbTJQpOCW8ChJ4hQavPFp0EBVDm8Qn6EaUt aRXq3nwOABJlWXzX5WZ29MTDJQ6s+diWwf31ITDLULVFPRlUwMVTTCdlgLSuhErb8efu J+50XOE+twi9xbtsuBTmIpZq511i6ixiCpUvZV+zlkmakWS/G0ozpolc3euL2XnZCb1Q 6ChBH6aDOwESHngRp6ibclmR6Q7Wxq5VDKcpGAGPCyWyH47bVThQqGgnEYnSEJETnZ4E /xbg== 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 13si17885132jan.43.2021.09.21.03.41.10; Tue, 21 Sep 2021 03:41:30 -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 S232305AbhIUKlZ (ORCPT + 99 others); Tue, 21 Sep 2021 06:41:25 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:22196 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232101AbhIUKlO (ORCPT ); Tue, 21 Sep 2021 06:41:14 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 21 Sep 2021 03:39:46 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 21 Sep 2021 03:39:44 -0700 X-QCInternal: smtphost Received: from rajpat-linux.qualcomm.com ([10.206.21.0]) by ironmsg01-blr.qualcomm.com with ESMTP; 21 Sep 2021 16:09:20 +0530 Received: by rajpat-linux.qualcomm.com (Postfix, from userid 2344945) id 6C1BB215EE; Tue, 21 Sep 2021 16:09:19 +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 V9 2/8] arm64: dts: sc7280: Add QSPI node Date: Tue, 21 Sep 2021 16:09:00 +0530 Message-Id: <1632220746-25943-3-git-send-email-rajpat@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1632220746-25943-1-git-send-email-rajpat@codeaurora.org> References: <1632220746-25943-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 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