Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5000800pxb; Mon, 28 Mar 2022 06:39:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxk+SajokvjYWsGXYg8rKSYQeWJHGCfHvGamhIBXFXZkQ44xvlvEor5J50Faz4xCMibuf1t X-Received: by 2002:a17:902:a714:b0:154:6dfe:bba9 with SMTP id w20-20020a170902a71400b001546dfebba9mr26080501plq.124.1648474766869; Mon, 28 Mar 2022 06:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648474766; cv=none; d=google.com; s=arc-20160816; b=XrGq4BgzFyDXt7irFGrKLBpgtW3fpZGCIdI/rh67EOasjuzTcm54BU9vs7U+qgwJYU 9IW5XMKSSYw0fvmtT1VCK9BEeQAFOYBZcdbpgTfbOSu6K2SkUaP8uoXty3o+jsR8VRs6 Ykw24j/EIEPZhux52Ecq4ZlMK+jJeLugcQTT9HG+BAvAR/DSzKXJ82QOepVrPGSvVDMM DgilLYg1uwyJFf94HvMawWak00DRoMJipEMQOTYUOuJ/JFUNQH3T9Fucp6vp2of1h04v trFAobnHmxXEJwvuyEiOZjOeqxueqJJFo+FsMEoWzd1ewo9Z/fub1tBbHI2a06ebmTBX rAbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=iKKjbMlhQ9O01nA5FHTsRYbYntbRkkX3eUwWUELIyZk=; b=bQ18u/KLM6TYA3zx/y/Lf+hNf6Ba2kVSjf3ozjnj1zrr+0/+V5IbyJABuwUmPNnn71 hD55JM7I5kz82GzFppcSUco+BVLFSw664ONCJac2VUiQuzsJ2F7iBPwYZjRPjmqzPs0v YijyFwRU54Ri+/zWzhSuwEL7xGbQOA2A35QXU93spHeXSjexuLRgcMZOoOPgNVdJYAjY uk2LgDvspzSiU3ubOD6HvDl/YF7YjAo9pyVpSDq7Mem2skXpjVwgncq2tad7DPe9fuZ9 tkyORmBXsCQxNyCCM+iosq4SWSj5RxY8amSmD5HL0eibZCAwx1PqGX7Kf3WHPNV+YoHU foVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=h6QVNuRu; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a63d34d000000b003985b5d10dbsi3346989pgi.384.2022.03.28.06.39.13; Mon, 28 Mar 2022 06:39:26 -0700 (PDT) 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=@quicinc.com header.s=qcdkim header.b=h6QVNuRu; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238640AbiC1HJM (ORCPT + 99 others); Mon, 28 Mar 2022 03:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiC1HJI (ORCPT ); Mon, 28 Mar 2022 03:09:08 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74FE952B0C; Mon, 28 Mar 2022 00:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1648451248; x=1679987248; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iKKjbMlhQ9O01nA5FHTsRYbYntbRkkX3eUwWUELIyZk=; b=h6QVNuRuGd311JegZxqMGR2AHWMGXVfjaxpKWyI34JcqPolVHH2LpUE2 enZxYiloBRnldrN9OVZwW0wyHGL4/KzUyjtsY7qi0heSx+6pU9MnhtVAC OuHyuJD8rn+2OwMnscKTWYQFEjIh0uXYMcwRuZb8H9E/7wVX3n/Tkqly1 c=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-02.qualcomm.com with ESMTP; 28 Mar 2022 00:07:28 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 00:07:27 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 28 Mar 2022 00:07:27 -0700 Received: from mpubbise-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 28 Mar 2022 00:07:23 -0700 From: Manikanta Pubbisetty To: , , , CC: , , , , , , Manikanta Pubbisetty Subject: [PATCH v10] arm64: dts: qcom: sc7280: Add WPSS remoteproc node Date: Mon, 28 Mar 2022 12:37:01 +0530 Message-ID: <20220328070701.28551-1-quic_mpubbise@quicinc.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Rakesh Pillai Add the WPSS remoteproc node in dts for PIL loading. Reviewed-by: Stephen Boyd Signed-off-by: Rakesh Pillai Signed-off-by: Manikanta Pubbisetty --- Changes from v9: - Rebased on ToT Changes from v8: - Enable remoteproc_wpss from sc7280-idp.dtsi as the change is common for IDP and IDP2 Changes from v7: - Remove wpss_mem from reserved memory. Its part of board dtsi. Changes from v6: - Swap the oder of two properties in wpss_mem reserved memory Changes from v5: - Update the clock names arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 4 ++ arch/arm64/boot/dts/qcom/sc7280.dtsi | 51 ++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi index ecbf2b89d896..069ffbc37bc4 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -547,3 +547,7 @@ sw_ctrl: sw-ctrl { }; }; +&remoteproc_wpss { + status = "okay"; +}; + diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index f0b64be63c21..b757e8ad1199 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2842,6 +2842,57 @@ qspi: spi@88dc000 { status = "disabled"; }; + remoteproc_wpss: remoteproc@8a00000 { + compatible = "qcom,sc7280-wpss-pil"; + reg = <0 0x08a00000 0 0x10000>; + + interrupts-extended = <&intc GIC_SPI 587 IRQ_TYPE_EDGE_RISING>, + <&wpss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&wpss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&wpss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&wpss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>, + <&wpss_smp2p_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", + "stop-ack", "shutdown-ack"; + + clocks = <&gcc GCC_WPSS_AHB_BDG_MST_CLK>, + <&gcc GCC_WPSS_AHB_CLK>, + <&gcc GCC_WPSS_RSCP_CLK>, + <&rpmhcc RPMH_CXO_CLK>; + clock-names = "ahb_bdg", "ahb", + "rscp", "xo"; + + power-domains = <&rpmhpd SC7280_CX>, + <&rpmhpd SC7280_MX>; + power-domain-names = "cx", "mx"; + + memory-region = <&wpss_mem>; + + qcom,qmp = <&aoss_qmp>; + + qcom,smem-states = <&wpss_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + resets = <&aoss_reset AOSS_CC_WCSS_RESTART>, + <&pdc_reset PDC_WPSS_SYNC_RESET>; + reset-names = "restart", "pdc_sync"; + + qcom,halt-regs = <&tcsr_mutex 0x37000>; + + status = "disabled"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_WPSS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_WPSS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "wpss"; + qcom,remote-pid = <13>; + }; + }; + dc_noc: interconnect@90e0000 { reg = <0 0x090e0000 0 0x5080>; compatible = "qcom,sc7280-dc-noc"; -- 2.35.1