From patchwork Mon Jan 9 13:56:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13093610 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 84D6CC54EBD for ; Mon, 9 Jan 2023 13:57:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236365AbjAIN5K (ORCPT ); Mon, 9 Jan 2023 08:57:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236536AbjAIN4y (ORCPT ); Mon, 9 Jan 2023 08:56:54 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EE05102F for ; Mon, 9 Jan 2023 05:56:53 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id j17so13081159lfr.3 for ; Mon, 09 Jan 2023 05:56:53 -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=OtRHADvv4anssYS+846iuuGfMjeI+w9hq/ijC5zrofw=; b=WqL6AtiLfyUJGsXEppqg/3kDZ4w4mbT0rOXsF17gBI/mhAh+xw8hrpjkVggQPhDsCV T9Mlycd5fJ1mybRDaK2theN0czfSAvKSxUgx9gWQp5zYFiMYqOgsC+yFnvXPORcanvH/ MlNe+2OoAWnBnHZJUQRk2bjWs5aYvTBl3FqYSvBeneecFNNP5OsjwI0F6bY4ckIi4f/B Wsa1fX06aLSKkZ4kbM0sxVH9Z2CJz06uY1cH7t1xUSSTGh9gV4OhEhKto/8m/2QhyBEc qe2EtZyUQC/p57Xyrdealzvjzw5zONdk586yNihvzRi6Lu53mRsLf4lTZbVCIU4vxyyu zpIg== 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=OtRHADvv4anssYS+846iuuGfMjeI+w9hq/ijC5zrofw=; b=v2klNr+j2U7TsP84fC1Lt9xzeZCp8mzSN72flbZ6ejoIMepIDMJnpToOW+gdiIdzRd Qh3vtLJbeh5R6Z4gszU0dgdW3zkCi5bNb8DQT6WPLDB4X5+QEVK5P7j7+KLsVby00X3L 8efMn5cDluM3Ob85N7gIIpIUPWfuhihrXAYkYMjPkXmV7p/aIXtP6y2RXZ9cOsovjwVp 6/8XE85F/StnjN9jbuzLevxhlQcuCV/bp8D03KUnXNX/WZ1nravzCcf1bDj7Oc51Il9V 3YC+DW4Mht6VG+fALPXeZemEkc7HMVbcYsRBw4LOG+h+rerBtqjBVP5rkLhTymU0eSJH WoKw== X-Gm-Message-State: AFqh2ko5vEA5O1R1pbIeCeoAbfSxwaEhTGi40Gj39dA6yvyEQMLY7vJT n9JNjdwD8VII0r/rgR5E1/ab7A== X-Google-Smtp-Source: AMrXdXttJHE0iG9e7/ObKTMZrDXIQploREc8fiolCCeZWtCVHUy25KAKs4KPKbvkrRIfYRj5wXhcTA== X-Received: by 2002:ac2:5503:0:b0:4b5:9845:c8a9 with SMTP id j3-20020ac25503000000b004b59845c8a9mr17428962lfk.47.1673272611912; Mon, 09 Jan 2023 05:56:51 -0800 (PST) Received: from localhost.localdomain (abxi45.neoplus.adsl.tpnet.pl. [83.9.2.45]) by smtp.gmail.com with ESMTPSA id x16-20020a056512079000b004c89b9fb1fdsm1638226lfr.68.2023.01.09.05.56.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jan 2023 05:56:51 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/4] dt-bindings: remoteproc: qcom,sm6375-pas: Document remoteprocs Date: Mon, 9 Jan 2023 14:56:44 +0100 Message-Id: <20230109135647.339224-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230109135647.339224-1-konrad.dybcio@linaro.org> References: <20230109135647.339224-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org SM6375 hosts an ADSP, CDSP and modem as remote processors. Create related bindings. Signed-off-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- v2 -> v3: - Separate out 6375 bindings .../bindings/remoteproc/qcom,sm6375-pas.yaml | 137 ++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,sm6375-pas.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm6375-pas.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sm6375-pas.yaml new file mode 100644 index 000000000000..60ee3fc7ab5b --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm6375-pas.yaml @@ -0,0 +1,137 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,sm6375-pas.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SM6375 Peripheral Authentication Service + +maintainers: + - Manivannan Sadhasivam + +description: + Qualcomm SM6375 SoC Peripheral Authentication Service loads and boots + firmware on the Qualcomm DSP Hexagon cores. + +properties: + compatible: + enum: + - qcom,sm6375-adsp-pas + - qcom,sm6375-cdsp-pas + - qcom,sm6375-mpss-pas + + reg: + maxItems: 1 + + clocks: + items: + - description: XO clock + + clock-names: + items: + - const: xo + + smd-edge: false + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/remoteproc/qcom,pas-common.yaml# + - if: + properties: + compatible: + enum: + - qcom,sm6375-adsp-pas + - qcom,sm6375-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,sm6375-adsp-pas + then: + properties: + power-domains: + items: + - description: LCX power domain + - description: LMX power domain + power-domain-names: + items: + - const: lcx + - const: lmx + + - if: + properties: + compatible: + enum: + - qcom,sm6375-cdsp-pas + - qcom,sm6375-mpss-pas + then: + properties: + power-domains: + items: + - description: CX power domain + power-domain-names: + items: + - const: cx + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + #include + + remoteproc_adsp: remoteproc@a400000 { + compatible = "qcom,sm6375-adsp-pas"; + reg = <0x0a400000 0x100>; + + interrupts-extended = <&intc GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>, + <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>, + <&smp2p_adsp_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 SM6375_VDD_LPI_CX>, + <&rpmpd SM6375_VDD_LPI_MX>; + power-domain-names = "lcx", "lmx"; + + memory-region = <&pil_adsp_mem>; + + qcom,smem-states = <&smp2p_adsp_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts-extended = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP + IRQ_TYPE_EDGE_RISING>; + mboxes = <&ipcc IPCC_CLIENT_LPASS + IPCC_MPROC_SIGNAL_GLINK_QMP>; + + label = "lpass"; + qcom,remote-pid = <2>; + + /* ... */ + }; + };