From patchwork Sat Jan 28 05:35:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 648074 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 B8CDCC27C76 for ; Sat, 28 Jan 2023 05:35:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231408AbjA1Ff1 (ORCPT ); Sat, 28 Jan 2023 00:35:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjA1Ff0 (ORCPT ); Sat, 28 Jan 2023 00:35:26 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE50168AE5 for ; Fri, 27 Jan 2023 21:35:25 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id m11so6584242pji.0 for ; Fri, 27 Jan 2023 21:35:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NNHRpc9kf9/6kdgtzVSDtrmKb3BBPZiSyauIlTgUR/g=; b=DTon+Ap5C4a/ZEInyw+981CO4aFtLOxviGlg/0WzeLvABXVv1YyQ6CFGVvTJLTJ/up 0SL4TIAB0uQ/YDQudC+8/5JjyKP55wUwZr0QS7CIKY7THHGQiByaf8O2cG8uZ4yLFj5H MQNelhjx1dN1ojnv8KXKC14FQo6gadyaDzyHAMCWu2j0Vpz6akV76aMOgzDQ+9RzjMzv ulsJqnIojmnmkQmibEqxZDQ3qguMqXudiJggjyKDV65u3hQsZLY8IeJYUGXwGWNGNygh bSyZ25+aVw8EtazqfvxAUlT++s8Dq74A1KGF78i6j7wtz42xL6X53X8quG0NsIIt2qyf 7PHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NNHRpc9kf9/6kdgtzVSDtrmKb3BBPZiSyauIlTgUR/g=; b=vHTstnjqYa5LtysJXr+IePNKNo9z4sdHzLyQ+5PDuHV4qAtfZi4DXiLkC0FzGs0Zq6 4UCLpU3dv8HBZdXKXf0nLirqRyDOqbm4GlTqb7krDozTWsc8JpFcG+EnEbslCbTJrdEr JRbgvpFGXYIfw1lCYoYkUjFM2+j9uBKymMiexZ+1JzdH4PjN7Vlo9KLUTtSWKxoLGZKE jlrawTj+pfSUcynUhKWSBG1cnZo91/R6vqSBE55nDpWY1nYWmd7RmOPVPlzxnZPQwBQy teawI/4rHqw6CHOjOD/Ao7mZ4F2bjuTzojX/JYjq3q0cbl5pgoKX2RctMZg9vwKXRhoz id5Q== X-Gm-Message-State: AO0yUKVUeyFl3QBf19DMBn/mpT6Qkt+RqiA8hUFIU67KfCQPLXP0xrVX Ya4F71yzdClPM1pSzbWGz1BSHg== X-Google-Smtp-Source: AK7set/+b+nUnrATMl0IfNK7E8wSsKjtGZxc41xjlUwaDohKkimv0iLiwT7nDf78J1Gd4rQR4v2bhA== X-Received: by 2002:a17:902:d4d1:b0:193:a5b:ccf6 with SMTP id o17-20020a170902d4d100b001930a5bccf6mr1215108plg.0.1674884125337; Fri, 27 Jan 2023 21:35:25 -0800 (PST) Received: from localhost.localdomain ([223.233.74.24]) by smtp.gmail.com with ESMTPSA id p15-20020a170902a40f00b00195e77c20a9sm3726841plq.163.2023.01.27.21.35.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 21:35:24 -0800 (PST) From: Bhupesh Sharma To: linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org Cc: mani@kernel.org, mathieu.poirier@linaro.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Subject: [PATCH 1/2] remoteproc: qcom: pas: Add sm6115 remoteprocs Date: Sat, 28 Jan 2023 11:05:03 +0530 Message-Id: <20230128053504.2099620-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Among the subsystems in the Qualcomm sm6115 platform we find audio, compute and modem DSPs. Add support for controlling these using the peripheral authentication service (PAS) remoteproc driver. Signed-off-by: Bhupesh Sharma Acked-by: Krzysztof Kozlowski Reviewed-by: Mukesh Ojha --- drivers/remoteproc/qcom_q6v5_pas.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 4e1d9b08def4..9eb5a92bf5f6 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1184,6 +1184,9 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,sdm845-adsp-pas", .data = &sdm845_adsp_resource_init}, { .compatible = "qcom,sdm845-cdsp-pas", .data = &sdm845_cdsp_resource_init}, { .compatible = "qcom,sdx55-mpss-pas", .data = &sdx55_mpss_resource}, + { .compatible = "qcom,sm6115-adsp-pas", .data = &adsp_resource_init}, + { .compatible = "qcom,sm6115-cdsp-pas", .data = &cdsp_resource_init}, + { .compatible = "qcom,sm6115-mpss-pas", .data = &sc8180x_mpss_resource}, { .compatible = "qcom,sm6350-adsp-pas", .data = &sm6350_adsp_resource}, { .compatible = "qcom,sm6350-cdsp-pas", .data = &sm6350_cdsp_resource}, { .compatible = "qcom,sm6350-mpss-pas", .data = &mpss_resource_init}, From patchwork Sat Jan 28 05:35:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 648742 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 838D2C38142 for ; Sat, 28 Jan 2023 05:35:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229540AbjA1Ffe (ORCPT ); Sat, 28 Jan 2023 00:35:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231809AbjA1Ffd (ORCPT ); Sat, 28 Jan 2023 00:35:33 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBD9281B0B for ; Fri, 27 Jan 2023 21:35:30 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id m2so1937284plg.4 for ; Fri, 27 Jan 2023 21:35:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gE9vgJ8RdpcnO9r+b86XorHTfhIOu45f5k1CvwyApiM=; b=MCKyMbw4lEcYsAxtGYPOhnuTHJPUuS7wM1LhDShDcz/vMV0R2DunPxSGSY+vsiSAya uVHMuCHcKP3oI2wAgvJXpQFWBCpciER6jcddiyDMy+sPLGFZsRmBXyI87axD1WLsxvDF IskIru9cOWQMTgDp5QOf9ZkVRJuYTZZl1aNlJFkDrR0GQZunsrZHxOJqNHBA677ugCYn LhHam8sbPRbcTogNXV6e0RDfEV6+8+KG/f7J4DIPwNbWhHdjJ5jL093DWNhQ6Ybw+Jp/ hBbrai4la0bHuDalbRY41CEvVQi1T/j+MKdGevYxZmYI2IFSrv+C02j+BUgPTPMVNqcr dwmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gE9vgJ8RdpcnO9r+b86XorHTfhIOu45f5k1CvwyApiM=; b=JoYAjqpps307Bg9GuREnnhiCyTSW+LhC0iI+4g6FOEgkZgdizagfdPASVeqNuucepZ ja7CsmiLnLaXPMHXeW0CWi2e26oV2qZQtSmrErPObq9US2UAxhhwSLfBhkkzMtXXbS91 n7FuW+1J+PbCIVRqyH1IY9Y+K7qZFaGVQNprXedxXK1X1WutJ4ln5yUiquJHQxpyYZTm yXY9PSQ5y9TQNhxEEtlJPcK37OwJeCbek52pUsVL3tWKn1J9Sv0+VjkswaFZ/NBsao4C 4z9iQUy0AwGKzsHdVmE9wmb9MfS3osphxH7WqL48+4xnETNaDCkEhXtuW9bEeGjgzE0S MfEg== X-Gm-Message-State: AFqh2krfUusjyLZQ/oduvfulftIpevDkq8R8NnoOGSYf3Iy4Rz1YDPRe D5GQB5OGoMGzf1juV7hB7d2w48se/IAKkdoY X-Google-Smtp-Source: AMrXdXvmJZgr6nK/MJnHyaDBvPmYtfsEzDGpR2DeIEFqi1UKDFJCc79QZ++Loyt8L9F3hZ1GxEVmyg== X-Received: by 2002:a05:6a20:c990:b0:a4:aa40:2253 with SMTP id gy16-20020a056a20c99000b000a4aa402253mr36384451pzb.21.1674884129831; Fri, 27 Jan 2023 21:35:29 -0800 (PST) Received: from localhost.localdomain ([223.233.74.24]) by smtp.gmail.com with ESMTPSA id p15-20020a170902a40f00b00195e77c20a9sm3726841plq.163.2023.01.27.21.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 21:35:29 -0800 (PST) From: Bhupesh Sharma To: linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org Cc: mani@kernel.org, mathieu.poirier@linaro.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Subject: [PATCH 2/2] dt-bindings: remoteproc: qcom: Add sm6115 pas yaml file Date: Sat, 28 Jan 2023 11:05:04 +0530 Message-Id: <20230128053504.2099620-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230128053504.2099620-1-bhupesh.sharma@linaro.org> References: <20230128053504.2099620-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This documents the aDSP, cDSP and MPSS DSPs present on the SM6115 SoC. Signed-off-by: Bhupesh Sharma --- .../bindings/remoteproc/qcom,sm6115-pas.yaml | 143 ++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,sm6115-pas.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm6115-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sm6115-pas.yaml new file mode 100644 index 000000000000..f5d1fa9f45f1 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm6115-pas.yaml @@ -0,0 +1,143 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sm6115-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM6115 Peripheral Authentication Service + +maintainers: + - Bhupesh Sharma + +description: + Qualcomm SM6115 SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sm6115-adsp-pas + - qcom,sm6115-cdsp-pas + - qcom,sm6115-mpss-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + memory-region: + minItems: 1 + description: Reference to the reserved-memory for the Hexagon core + + smd-edge: false + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: Firmware name for the Hexagon core + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sm6115-adsp-pas + - qcom,sm6115-cdsp-pas + then: + properties: + interrupts: + maxItems: 5 + interrupt-names: + maxItems: 5 + else: + properties: + interrupts: + minItems: 6 + interrupt-names: + minItems: 6 + + - if: + properties: + compatible: + enum: + - qcom,sm6115-cdsp-pas + - qcom,sm6115-mpss-pas + then: + properties: + power-domains: + items: + - description: CX power domain + power-domain-names: + items: + - const: cx + + - if: + properties: + compatible: + enum: + - qcom,sm6115-adsp-pas + then: + properties: + power-domains: + items: + - description: LPI CX power domain + - description: LPI MX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + remoteproc@ab00000 { + compatible = "qcom,sm6115-adsp-pas"; + reg = <0x0ab00000 0x100>; + + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "xo"; + + firmware-name = "qcom/sm6115/adsp.mdt"; + + 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"; + + memory-region = <&pil_adsp_mem>; + + power-domains = <&rpmpd SM6115_VDD_LPI_CX>, + <&rpmpd SM6115_VDD_LPI_MX>; + + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts = ; + label = "lpass"; + qcom,remote-pid = <2>; + mboxes = <&apcs_glb 8>; + + /* ... */ + + }; + };