From patchwork Sat May 21 20:35:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 575311 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 CEE47C4332F for ; Sat, 21 May 2022 20:35:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345833AbiEUUf3 (ORCPT ); Sat, 21 May 2022 16:35:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345777AbiEUUf2 (ORCPT ); Sat, 21 May 2022 16:35:28 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3674393D0 for ; Sat, 21 May 2022 13:35:26 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id u23so19586939lfc.1 for ; Sat, 21 May 2022 13:35:26 -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=xU1pY7ZmHzq1qWB+fNbq08vc5F06jzd4+OCKJVFnSMg=; b=PUqGn2M/XUSc8dj832XHXodX2asafqhCmEPRhoaWB/Mtl0lP722i12dydMjkSblNsJ WeoO2rpnfk959g0/uDsbO7VEeb1fRZ4g7lj3UT8vIj80rSGE3sRkP5SIzg1TwdRA4bQP 4lk6vD65t4Myg/xfyz2zRZe4Q8MW+XV8FpUf8KuKueecxH+VUl+fZILZh+tJmKaMbh2g lMtFHPW+YDty+2UN7IpmOtrbSUmhsovOVwhRvqHy4HqkhBolG9g7J5V0HNOWiUoxJqg4 zeJjVjOGvSXfGyrxA3V68Sya//d9PlL4f8bDNUmRRVLa12Vcqh8QwIA1zazoD7sRqkQs 5nXg== 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=xU1pY7ZmHzq1qWB+fNbq08vc5F06jzd4+OCKJVFnSMg=; b=j/wd26SB3LhOmumeIqny/PyBYJwXrRDTJWk6DTGcbErbvRG5eCDDJSfcgZIU8CVda+ giobY4G1/vXer4l4UmVNZiiDUlBKqCteyu7bD/r+/kD4QupUQ82ZBqJ37uKqMkhUokRH /wyel87C4ws8fSz05hfuXN3BmUVM1I/4I6nKCnF4n7+E6/GRIYO6J60eAgcit28MZPoZ t4yoa6x5t+HyZgtSBgO9Cpa3QxKiYH4JAa0UR1oh6RleFxVPpCpoQa/sBRqKxhGSVoWV X5yXOYzQl8ldeJNIoZlw9I+CW+J9H5y9yukzuuUdwCFrII9KmWaHcK/bwvlG2Cdrc0Xo 33aA== X-Gm-Message-State: AOAM5332ocwY6Zed1Rga2RViEyB9zzH1sJl5gBX5iI6ZcLFMhO35PyTL WtW/WO3D0uwFm5kE1SwFZWGyBg== X-Google-Smtp-Source: ABdhPJwB0tI2NwiWmPCLCvUQQhXiaVp8RrpMpOO9wEKt0phUVGGKZhUdWjibOURZpk5njS72Gy59mw== X-Received: by 2002:a05:6512:752:b0:474:40ca:b0b with SMTP id c18-20020a056512075200b0047440ca0b0bmr11462140lfs.633.1653165324927; Sat, 21 May 2022 13:35:24 -0700 (PDT) Received: from eriador.lan ([2001:470:dd84:abc0::8a5]) by smtp.gmail.com with ESMTPSA id q18-20020a056512211200b00477930c48dasm1179729lfr.184.2022.05.21.13.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 13:35:24 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Konrad Dybcio , Marijn Suijten Subject: [PATCH v2 2/4] arm64: dts: qcom: sdm660: add device node for the compute PAS Date: Sat, 21 May 2022 23:35:18 +0300 Message-Id: <20220521203520.1513565-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220521203520.1513565-1-dmitry.baryshkov@linaro.org> References: <20220521203520.1513565-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 f51f5b27819f..1869eeaff066 100644 --- a/arch/arm64/boot/dts/qcom/sdm660.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm660.dtsi @@ -16,6 +16,74 @@ * enabled upstream. */ +/ { + 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"; /* Adreno 512 shares the frequency table with 509 */