From patchwork Mon Apr 3 17:36:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 78654 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2475564vqo; Mon, 3 Apr 2023 10:45:00 -0700 (PDT) X-Google-Smtp-Source: AKy350Yu7y/M5LON+Tc7IM/lW1tetD0Oy2mWJaG0TqAN7j83PIWsGZSy4JlXvl2xpZyEy28WiA1S X-Received: by 2002:a17:907:7788:b0:932:c1e2:9984 with SMTP id ky8-20020a170907778800b00932c1e29984mr35098183ejc.58.1680543900749; Mon, 03 Apr 2023 10:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680543900; cv=none; d=google.com; s=arc-20160816; b=KlSSUPt/MESnxQj7nl43zXlcKm/4izcjuOO5OAAmZ3abC47aG/uOz76zi6uOOCegza 2uNgaT+pRV2FaAZ5ULcdJm1Z9qMCi8GK0Kk+wHyyrjWN9X2hLU/NolVFg/4O85S/091v vkDWAW+I2Ltt27ilQHf/G5CXyrVVdo5Y1RfHga8b1o6GkrCwVVPnoOneiEMgwbevaeyE pRoD17shFWQ5LNoGox31NyttdP6x4cmDKdQVbWTj01ClsTwn7GVtQimtPp4J1XNMYC34 n9Zj3Hw8xpjKVhI+TNYMpARDvuEDGO0STOjc4bn5r/xTG/Qp76BvS49YRXokotXJfPYg yibQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Ex9xMh3gTSM9WsBX8GKkun9yHoiTNR6HSOi61NvUkJ4=; b=VOfgJttoF//+DdHwJGv8vFG4Kf3P9VLLJkUHoK1cz65EyE8srQQ+T8YVT1cxdo01oQ hzeHfArMY78KKjmbPPi4aqbhnT9dEUy0zPQVIPcj9YwkS7A/H1lEeuEOyWrAwMnRzHof hGMdjAL7tMWWekTwn3Yt1DZZkLDHurhaOy7PJDfMiQlUFHr/3JOLPfZ9mju5rf74Dr6j TUyKh4JnzC4tyMvSLyHk1iqaAMuvBbAseypRSUHVawIp4ChVSdp3moPyz4Wqp4QgZMOh v3WZOn4rS3iPanKKkSEa+gQS8cSFnAL6feHx4C3LDrztuhftTs1+J0EXiP46V6tAJ+QN lauQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JDcOz3RD; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020aa7c0c6000000b004af6a174397si6098834edp.231.2023.04.03.10.44.25; Mon, 03 Apr 2023 10:45:00 -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=@linaro.org header.s=google header.b=JDcOz3RD; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231538AbjDCRhM (ORCPT + 99 others); Mon, 3 Apr 2023 13:37:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbjDCRgo (ORCPT ); Mon, 3 Apr 2023 13:36:44 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2434130EB for ; Mon, 3 Apr 2023 10:36:37 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id bi9so39057141lfb.12 for ; Mon, 03 Apr 2023 10:36:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680543396; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Ex9xMh3gTSM9WsBX8GKkun9yHoiTNR6HSOi61NvUkJ4=; b=JDcOz3RDyN2tCPMdsvqcqYbKTyzvtaFqA5GNGQl4FLOh9wKoeIe+R/dZThobD7OW0u Dy0JWPoovcTSBlHB6dpbBbCwoVxyfUXbHjeWHt6bXdq7AO2nXkaE86VhKmPv2SkePndg kCexQDl2stywhKwASbizHd9WZYg3tsEqqVOjin1KrQPtgbONYK149yyrpdSHZt0JLBIk yC22Veeasv49NZTor6oIGkm6KW38SqeC2VLAZgR2Ofml1bP7Glf2EB9sRIrS+yiansPE 9dMbE8Ye5BvXNoD78GZWFhC4uOw6DWC4+hhjykg6RjABqRJFiBpZhkbf1hZqKu5NMmMU USkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680543396; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ex9xMh3gTSM9WsBX8GKkun9yHoiTNR6HSOi61NvUkJ4=; b=AKyls3RC/hpSXBAxrm0Ub/nEDntCFlGsciqT/5IJ9EpdmZee8OwescQsj29LxVHM7N zgsNYehjmMpN6YhW8aZvGiNESEKBDV8mqggSMH2rEFdwsPWWAHNtfyjJXJT69A6z/sqs MWviU+KODAOhfSxQV7nWjj1bs6hdvW0tbNhqSr2n2QZD7oBOSbNNY2wbxImFHJFeeX9W nzEqTGO+bZ5VTdI4DSU5Lfb9UTceIBoIKQFOzPuHHGastDo9BRjhJpeVbYvqBIBxHeem DhoAh5W2IeK50UEvoL2qF7G935eQdG21cVHLRwL/mvzKawk81tfPwqYEkaUMy51GeSPF ALSA== X-Gm-Message-State: AAQBX9cHGo2887s2W665SZ9IrY5BwWUyX80524XZsc6bBv8sOpanogLn EJjMAWPdn2Awjbcj9LNczo89rw== X-Received: by 2002:ac2:5fe6:0:b0:4e0:a426:6ddc with SMTP id s6-20020ac25fe6000000b004e0a4266ddcmr8140551lfg.0.1680543395858; Mon, 03 Apr 2023 10:36:35 -0700 (PDT) Received: from [192.168.1.101] (abxj135.neoplus.adsl.tpnet.pl. [83.9.3.135]) by smtp.gmail.com with ESMTPSA id v2-20020a056512096200b004cc5f44747dsm1871094lft.220.2023.04.03.10.36.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 10:36:35 -0700 (PDT) From: Konrad Dybcio Date: Mon, 03 Apr 2023 19:36:05 +0200 Subject: [PATCH 7/9] arm64: dts: qcom: qcm2290: Add ADSP & modem MIME-Version: 1.0 Message-Id: <20230403-topic-rb1_qcm-v1-7-ca849b62ba07@linaro.org> References: <20230403-topic-rb1_qcm-v1-0-ca849b62ba07@linaro.org> In-Reply-To: <20230403-topic-rb1_qcm-v1-0-ca849b62ba07@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Robert Marko , Das Srinagesh Cc: Bhupesh Sharma , Vladimir Zapolskiy , Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1680543384; l=2821; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=nI7O0aESNOZQGnI3AVXtPe7EyrGGV5JwTPh0CcsLkO4=; b=nydKnQCSIvvJ3+etpcfYj7n3msoWDjHiV9UWtay+QyGjzkZ22zdd4VPoxzP2f4tbQ40ivpQJvDLE 2YZgfECkDvet1d7VCwKKY44ZpcT/oz3bhDSqrSCRCL+aiAkV5P6n X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762178001656870053?= X-GMAIL-MSGID: =?utf-8?q?1762178001656870053?= Add required nodes to support the ADSP and modem found on the QCM2290. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qcm2290.dtsi | 73 +++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts/qcom/qcm2290.dtsi index 228a1d94501b..825623243787 100644 --- a/arch/arm64/boot/dts/qcom/qcm2290.dtsi +++ b/arch/arm64/boot/dts/qcom/qcm2290.dtsi @@ -1013,6 +1013,79 @@ usb_dwc3: usb@4e00000 { }; }; + remoteproc_mpss: remoteproc@6080000 { + compatible = "qcom,qcm2290-mpss-pas", "qcom,sm6115-mpss-pas"; + reg = <0x0 0x06080000 0x0 0x100>; + + interrupts-extended = <&intc GIC_SPI 307 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>, + <&modem_smp2p_in 7 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack", + "shutdown-ack"; + + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "xo"; + + power-domains = <&rpmpd QCM2290_VDDCX>; + + memory-region = <&pil_modem_mem>; + + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts = ; + label = "mpss"; + qcom,remote-pid = <1>; + mboxes = <&apcs_glb 12>; + }; + }; + + remoteproc_adsp: remoteproc@ab00000 { + compatible = "qcom,qcm2290-adsp-pas", "qcom,sm6115-adsp-pas"; + reg = <0x0 0x0ab00000 0x0 0x100>; + + interrupts-extended = <&intc GIC_SPI 282 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", + "fatal", + "ready", + "handover", + "stop-ack"; + + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "xo"; + + power-domains = <&rpmpd QCM2290_VDD_LPI_CX>, + <&rpmpd QCM2290_VDD_LPI_MX>; + + memory-region = <&pil_adsp_mem>; + + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + status = "disabled"; + + glink-edge { + interrupts = ; + label = "lpass"; + qcom,remote-pid = <2>; + mboxes = <&apcs_glb 8>; + }; + }; + apps_smmu: iommu@c600000 { compatible = "qcom,qcm2290-smmu-500", "qcom,smmu-500", "arm,mmu-500"; reg = <0x0 0x0c600000 0x0 0x80000>;