From patchwork Sat May 14 00:03:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 572879 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45F7FC433F5 for ; Sat, 14 May 2022 02:54:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230246AbiENCy4 (ORCPT ); Fri, 13 May 2022 22:54:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbiENCyl (ORCPT ); Fri, 13 May 2022 22:54:41 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EC9832FBE0 for ; Fri, 13 May 2022 18:14:02 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id c24so7687761lfv.11 for ; Fri, 13 May 2022 18:14:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SHyTroMz5ImSiERShLEYY2Lrzc1ZDEW9nKld+SBJzIg=; b=JF/o8z2xGK4IYyajhW7kic1uo6fhcgzKoKiUSqS9rQflZeYs4G0rGL5On+qzYrzzgN tSBvYR1KaG/Tf5PRVu1Kc0mmr5L5ytxQ+dsKT+Sh7GIL49+uI9yj0ys1Q9qqIdDLT10z HdhYfPAQ4ubYkMtwQyM0wkIYZygbmOJKURPSwUOfML+r6EKUhCTZVeWeaqaCJ6YJ6wPr xIYBft6qO6nJP8P2LmE6Hq/H6ZlhDysAxdCX4P68mpgPkq6GPAcJLpw+z3UZuhgkRY2X n1g1ydDeOB/WtBy7Y816i6HV6p3a5oAOzGWJEGH63unTYOlGqZebWh1iVaeZxt0q8EJg PVhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SHyTroMz5ImSiERShLEYY2Lrzc1ZDEW9nKld+SBJzIg=; b=5LpJZ/3tXf6yux4a4aVNGj8MPKoDAyMgD16nx4mU7KLtq6s2ss0EEhK3Bul4/85Mlm 9koGm1/fsL318k+O6zv+crCchQoj95tpMRHI00soHf7yQGGVX30K3Yhw0JfFD8q/dYfN LzTa9jn7aDndfSDfG+YmPxqTa3UtyvHdteUB0xmDyKMSCGoHjhym1RYgD2M3NfbsEv/P enpMGNnBTKsHJqYDGTJZTyf59zH4v9QGDsawSSyMt2zwezOsdyp1bePJsEQY3YRn1gTn J4yJibAHWmlaserHTZ76Vt8OQtviSQlR1r5A7+MyrmM6mWC6D1Oj3Iy5W34KmZKQgH68 VcDw== X-Gm-Message-State: AOAM533S8ZlYmb+hL5kSxkZkBEl/KWjM2dFFcoNiaY+voYufEin/mOiL 3J0xnZcnCZg4mfAUlNjNSUEuhMPAUfhnzQ== X-Google-Smtp-Source: ABdhPJyt9kZ0moFirieBEehdkuftUzbvXW3I6DqWzhK4hLUA8C3Z1+kCmz78zAb4I7GoTqvLc4WB/g== X-Received: by 2002:a05:6512:2308:b0:473:da88:ea2b with SMTP id o8-20020a056512230800b00473da88ea2bmr5129769lfu.339.1652486592103; Fri, 13 May 2022 17:03:12 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id r10-20020a19ac4a000000b0047255d211c3sm529231lfc.242.2022.05.13.17.03.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:03:11 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: qcom: sdm630: add device node for the modem PAS Date: Sat, 14 May 2022 03:03:08 +0300 Message-Id: <20220514000310.3070578-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220514000310.3070578-1-dmitry.baryshkov@linaro.org> References: <20220514000310.3070578-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add device tree node describing modem device found on the SDM630/SDM660 devices. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdm630.dtsi | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index b06e87152cd4..1bc0602e9f64 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -1018,6 +1018,65 @@ sd-cd { }; }; + mss_pil: remoteproc@4080000 { + compatible = "qcom,sdm660-mss-pil"; + reg = <0x04080000 0x408>, <0x04180000 0x48>; + reg-names = "qdsp6", "rmb"; + + interrupts-extended = + <&intc GIC_SPI 448 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 = <&gcc GCC_MSS_CFG_AHB_CLK>, + <&gcc GCC_BIMC_MSS_Q6_AXI_CLK>, + <&gcc GCC_BOOT_ROM_AHB_CLK>, + <&gcc GCC_MSS_GPLL0_DIV_CLK>, + <&gcc GCC_MSS_SNOC_AXI_CLK>, + <&gcc GCC_MSS_MNOC_BIMC_AXI_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>, + <&rpmcc RPM_SMD_QDSS_CLK>; + clock-names = "iface", "bus", "mem", "gpll0_mss", + "snoc_axi", "mnoc_axi", "xo", "qdss"; + + qcom,smem-states = <&modem_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + resets = <&gcc GCC_MSS_RESTART>; + reset-names = "mss_restart"; + + qcom,halt-regs = <&tcsr_mutex_regs 0x23000 0x25000 0x24000>; + + power-domains = <&rpmpd SDM660_VDDCX>, + <&rpmpd SDM660_VDDMX>; + power-domain-names = "cx", "mx"; + + status = "disabled"; + + mba { + memory-region = <&mba_region>; + }; + + mpss { + memory-region = <&mpss_region>; + }; + + glink-edge { + interrupts = ; + label = "modem"; + qcom,remote-pid = <1>; + mboxes = <&apcs_glb 15>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + adreno_gpu: gpu@5000000 { compatible = "qcom,adreno-508.0", "qcom,adreno"; From patchwork Sat May 14 00:03:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 572636 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1FBCC433FE for ; Sat, 14 May 2022 02:54:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230328AbiENCys (ORCPT ); Fri, 13 May 2022 22:54:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230217AbiENCyl (ORCPT ); Fri, 13 May 2022 22:54:41 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BB8A37E4D9 for ; Fri, 13 May 2022 18:13:37 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id y19so12121345ljd.4 for ; Fri, 13 May 2022 18:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=POq1kk+h3rPcrtH2pN+MXZtFUgmIFpbvHrXaH9miF64=; b=gLFkAJf8zI9Bq1DgypAOh0C3O2OfnQ5/UYssFR8KZqpaFHvoGOJarzJG4LDlOLR3qg 7avK4i2DdSsvxyLHts1mOi0AeEHOhTMrcroeIQaVlVkk9Wz+K6nSPd008yvrxBvNWxsE NrMPWdE0hZd4g1jqyqucNgCwmIFcN6h0uAOi27aokRviNRonHLDMq7QxjKmgvA+laXr2 6t7+nqXz+JNfx+iaTuAqA14E/KT8f99h1z69OXtYY/datmZRFDsSbm9yxU2FoCrOTy7X Ktl/rkxlZtx/YnFkOK7c3B9Mk8yqym5QFp8XpDcQhw93uD/TvSa0y0lfBM88PpDStw0p 1rPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=POq1kk+h3rPcrtH2pN+MXZtFUgmIFpbvHrXaH9miF64=; b=WpRAQLr42uA68x+momlSSXKp0X3KscKT4kWPMS+L+3WA0MIWXsuc100ryUqRQu2P0P KDZHuF4jPlWSUSlsg4rxyoe10ubgN2yNpa13saq1LmOWcwyYUgYdnJ3m2su5M+Zf5O2I BcE63gEdAZkZtCBbU993Ekc/H93IXNGd/AIKhlVbxkmzhOZXpHwgnXQL7ZJt0g1T0sLm QoNtVha4MR2vXVcx98OiEy229hWzDGZkJkNtFvxTfFByzaFjDzYY0hIn2qsdBJeYiBNb tdp4SHA/FlakrlUKJJxvhdxWYgdHD9UnaNRH9E3XR6/5YFeh7dqjM7SPerfZLqc4aZ81 2KGg== X-Gm-Message-State: AOAM5303iclZI6/j9LGAEbSGY77cMqHu9tjxt0W5zjD9gt7w8ZNIwRlJ 18lJ4F9XV4htr9dmbHBySeAY5oTLD4zOpA== X-Google-Smtp-Source: ABdhPJzLTOftwnTS6vNzC9fvTTF5i3x2HX52DiHRO0WOMmWevvb7oeyQeXluxYzdL0SiehRhi6GFAw== X-Received: by 2002:a05:6512:33a7:b0:472:481b:9d6c with SMTP id i7-20020a05651233a700b00472481b9d6cmr5086979lfg.451.1652486592863; Fri, 13 May 2022 17:03:12 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id r10-20020a19ac4a000000b0047255d211c3sm529231lfc.242.2022.05.13.17.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:03:12 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: qcom: sdm660: add device node for the compute PAS Date: Sat, 14 May 2022 03:03:09 +0300 Message-Id: <20220514000310.3070578-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220514000310.3070578-1-dmitry.baryshkov@linaro.org> References: <20220514000310.3070578-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add device tree node describing CDSP device found on the SDM660 (but not on SDM630) platform. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdm660.dtsi | 68 ++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm660.dtsi b/arch/arm64/boot/dts/qcom/sdm660.dtsi index 023b0ac4118c..3b70eff68807 100644 --- a/arch/arm64/boot/dts/qcom/sdm660.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm660.dtsi @@ -9,6 +9,74 @@ #include "sdm630.dtsi" +/ { + reserved-memory { + /delete-node/ tzbuffer@94a00000; + + cdsp_region: cdsp@94a00000 { + reg = <0x0 0x94a00000 0x0 0x600000>; + no-map; + }; + + }; + + smp2p-cdsp { + compatible = "qcom,smp2p"; + qcom,smem = <94>, <432>; + interrupts = ; + mboxes = <&apcs_glb 30>; + qcom,local-pid = <0>; + qcom,remote-pid = <5>; + + cdsp_smp2p_out: master-kernel { + qcom,entry-name = "master-kernel"; + #qcom,smem-state-cells = <1>; + }; + + cdsp_smp2p_in: slave-kernel { + qcom,entry-name = "slave-kernel"; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + soc { + cdsp_pil: remoteproc@1a300000 { + compatible = "qcom,sdm660-cdsp-pas"; + reg = <0x1a300000 0x4040>; + + interrupts-extended = + <&intc GIC_SPI 518 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&cdsp_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"; + + memory-region = <&cdsp_region>; + power-domains = <&rpmpd SDM660_VDDCX>; + power-domain-names = "cx"; + + qcom,smem-states = <&cdsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts = ; + + label = "turing"; + mboxes = <&apcs_glb 29>; + qcom,remote-pid = <5>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + }; +}; + &adreno_gpu { compatible = "qcom,adreno-512.0", "qcom,adreno"; operating-points-v2 = <&gpu_sdm660_opp_table>; From patchwork Sat May 14 00:03:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 572880 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B172C433F5 for ; Sat, 14 May 2022 02:35:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229769AbiENCfg (ORCPT ); Fri, 13 May 2022 22:35:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbiENCfg (ORCPT ); Fri, 13 May 2022 22:35:36 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21B0B33B5D2 for ; Fri, 13 May 2022 17:37:02 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id l19so12038078ljb.7 for ; Fri, 13 May 2022 17:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6xHwMp2GjMLCtRgHvLeJhsJBgeLi1U+fn/JxefeSa5g=; b=t4Z4degRkSMSLcDe19rXju8Y5ZvZX7w1l8wj49AjpcEcFduJog/L23Yi3eIUIKFYte 1MxeRHF4IjkdGVp+ZpU8FV3jlQ33+/vDrzbxbND0xiP85awMxYAuq3ZXgXPjQs3Yk3lK nC1/yQnvMi8nZyhlFnZtwIahS8BvyGy0U6f8gxlO5DCBAPX9frWfOcEJLaw1uAkl9Jgm WW7QJzqpHpwJ/prENp1ShJIiGpAr6FYvwJWCbINWemrhtsbZR4YjQE6Jw130IeC+9U/l gIZ77UoZhac52CiEYITDg/BRuvszD1uBmuOA6t/lJfVU6DH9Z/JGLhyILI4KpYsz+7ke vufQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6xHwMp2GjMLCtRgHvLeJhsJBgeLi1U+fn/JxefeSa5g=; b=znynk9eSpRL/Owh9Fu2VGpCihEJpkO3ZzRYxPNSGJIwJSnTMR3JqtxiydNZXc2byV7 uRXZU7Fu7r4PpOzBqULHQhwaarLzzpGmf8g/We5Nih8zZOOAjln9ppn+ZXKlAx1GjPEk 6d93eNpx7tnzL0PxfyIA7tvbfPnbfyChFTIoROFL2BIm2ToMMeDVL18KMU0upanNG16R lVrDPYDIpPqKLwJgKxRMr0sP4yN+mxuBzOuk/MKxoW4hVF+DI6SqzKUSjC6vyFkJvgcG pe9Q4CkjU1PrmQmqHaI0wGjl+gJzUvaVxmnV6JcugV0YcVcabD+apqp3z1Uwl7yhhbe7 9Lmg== X-Gm-Message-State: AOAM531uIaVr66bXi693N83slFDUy1jjr+Hp3DPvWJsXdAzfiHiZ3TnY bZMo9EjU1kJMvNxlGBbGc/nHMIoLCj/FMw== X-Google-Smtp-Source: ABdhPJwVLJhERxZo8wGuRJdOjpgH3e90ALydSoTimxLZOZu5WM0xcBikJZDpuqrdMiWoKr9ge5ItnQ== X-Received: by 2002:a05:6512:39c1:b0:471:b37e:fe5a with SMTP id k1-20020a05651239c100b00471b37efe5amr4868072lfu.527.1652486593551; Fri, 13 May 2022 17:03:13 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id r10-20020a19ac4a000000b0047255d211c3sm529231lfc.242.2022.05.13.17.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:03:13 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: qcom: sda660-inforce-ifc6560: enable cdsp and modem Date: Sat, 14 May 2022 03:03:10 +0300 Message-Id: <20220514000310.3070578-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220514000310.3070578-1-dmitry.baryshkov@linaro.org> References: <20220514000310.3070578-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable CDSP and modem devices on the Inforce IFC6560 board. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts index dc6e4de02b42..c2f98863c27c 100644 --- a/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts +++ b/arch/arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts @@ -102,6 +102,11 @@ &adsp_pil { firmware-name = "qcom/ifc6560/adsp.mbn"; }; +&cdsp_pil { + status = "okay"; + firmware-name = "qcom/ifc6560/cdsp.mbn"; +}; + &blsp_i2c6 { status = "okay"; @@ -194,6 +199,11 @@ &mmss_smmu { status = "okay"; }; +&mss_pil { + status = "okay"; + firmware-name = "qcom/ifc6560/mba.mbn", "qcom/ifc6560/modem.mbn"; +}; + &pon_pwrkey { status = "okay"; };