From patchwork Thu Jul 27 17:33:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 127089 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1260457vqo; Thu, 27 Jul 2023 10:42:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlFvLndFoTKztwcTlwcqmM5R9d1ikSa/L3kN3oZS6/ajWHMNSPSMBrfNC5WQWveJmlx622Rf X-Received: by 2002:a17:902:ea03:b0:1bb:4861:d3a7 with SMTP id s3-20020a170902ea0300b001bb4861d3a7mr46699plg.16.1690479721799; Thu, 27 Jul 2023 10:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690479721; cv=none; d=google.com; s=arc-20160816; b=qICZf0GFIB0DIR1YqfgEUCmvqi1G3LVT3BdkKd7Tm7jKmi3A3c4fUOZ9iHSp+2SNYB DIToDBUHTUdE3uaWUzs0r/UrJim8tYeEppa3jspwSrKhKHG8cppZbvKuDpi5woAbB+Pk fNDTPcjbzkPTOm41lKKnjskASy4kWri58tt4PknAyLNglIBDrxg/A2vu2gwFs39+wnE0 Fpravks/iCN1u7dYti3rI9sOnbA/MCisKFl6qi+/qF11qhUH7bTO+lvwU2Fuko2R2Lu3 kr8mbnXUlpvoJrvN9cs6MK75YYhqAp6kUkrf91jgYjC0XOMJajcKP/ELs12yCZKPpdN6 ZFsg== 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=Ab/j1VhwInQ6D6LVd9mtsScJ0oVMYT2f2KWdA6Xf3y4=; fh=8Ymu6y/azMkQYXUDlmju0zStBwkxUOOE8HH0BHv0MWc=; b=k4KlUQVbufnivzveLeNHnwwc+t6wvdEewGIZK6OcSo5R8d4kPlCUx+FNG7woLjhPNi +RuqkUTIKhp3YZ4I2YlqhZ76StRNvSv85Fo3e4iWkgvkDurqw4KDUM8gKHj26cTM8H/O p9lCc6SHqWZ3AncXMiZTNo5YdyZ/1e3ice4uOByWxwfUQFEwCF+zPzHHXOlumG3UH1eX RVFbjiTBZjL0I6gVlb77hiE9tjOI51F3PqZT4DJuUKq970LesPW+MV5qS7VwLI4mZNfu KX6gk1JPGcdxI6ReFH4OqajR9xkYA5fWiC8uO803bo/gresjiD4dEKeYKs4RLVfPJj2n TjuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="suyN/TPo"; 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 k3-20020a170902c40300b001b9ed01eb1dsi1688453plk.361.2023.07.27.10.41.49; Thu, 27 Jul 2023 10:42:01 -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="suyN/TPo"; 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 S231566AbjG0Rdb (ORCPT + 99 others); Thu, 27 Jul 2023 13:33:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbjG0Rd3 (ORCPT ); Thu, 27 Jul 2023 13:33:29 -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 A75892D68 for ; Thu, 27 Jul 2023 10:33:27 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4fbf09a9139so2153075e87.2 for ; Thu, 27 Jul 2023 10:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690479206; x=1691084006; 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=Ab/j1VhwInQ6D6LVd9mtsScJ0oVMYT2f2KWdA6Xf3y4=; b=suyN/TPoJfOW/stA8HgNGbUiosrPlTB+HnZxnsO9Z84LrJUufLVuvyffUi9ByOt6WA gZN8kTnxYV7NENi9mwwoj0kKnSzcE6qLS/XvRdAYxMVhzgqqPvASYQDmsskxpWu3rwF9 qeDRMzMTCW/Y7gFeoxV+0B4t3mQun15fVox1K6ZNiyQ9CDzR3/u54NO75qrZnxy19kNs 8+0YgxVrfKwO/VPcfeI8IXmUoagnQbI1/CAwAZsyTmQoK7WAB7KaBcmK8HY4e1iFBOxs 0fKyzeKW3ylGxE9axryZVEpKzH3lVmjOx70RBl7SqnAA7XeS9kS3weMEaXSUd+1SxA6S lkeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690479206; x=1691084006; 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=Ab/j1VhwInQ6D6LVd9mtsScJ0oVMYT2f2KWdA6Xf3y4=; b=C3Ml3+ZhO/9WxgFA54rP0Iu0IIEkIhluxLZRnTsE45k3JP3gGz+/d9Ox7tm+85ftv8 RN3FYTimB9KEu9QunG60/KZ2BGHLv1eB8Q1jNmsrLR02AnXjvbF4xVurWP1+ca6M59E8 WW+PH8z9ZBCZaRmZ8xwtMHM8XpeVn5GS4iavzuPeFa9KdFuqw+LYeTc7HOvdbTh4tU2F a02xdkCJrkF7rp9FdH6ly+Xu+JPHtxmEhDXvVUa9SOC16MHJ3rY24a1f5p2ffGcG76ee 3Vz7lbB+owkOtlPUtWWJgefeDRLXFz72dqO5MuDfrH2k3xS2lMjFqd1SlFhyYRYWKTMH 6h9A== X-Gm-Message-State: ABy/qLbLy7pHXSWQRF1q0LgBZENwVZFLdKGuM2CDTIikeuUNVAMuaDCQ 5Z1yi09eE6QwMwHvUfiVVtYpOQ== X-Received: by 2002:a05:6512:33d0:b0:4f4:b13a:d683 with SMTP id d16-20020a05651233d000b004f4b13ad683mr2689726lfg.69.1690479205919; Thu, 27 Jul 2023 10:33:25 -0700 (PDT) Received: from [192.168.1.101] (abxi99.neoplus.adsl.tpnet.pl. [83.9.2.99]) by smtp.gmail.com with ESMTPSA id g4-20020a19ac04000000b004fe07f06337sm412089lfc.53.2023.07.27.10.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 10:33:25 -0700 (PDT) From: Konrad Dybcio Date: Thu, 27 Jul 2023 19:33:21 +0200 Subject: [PATCH v5 1/3] dt-bindings: remoteproc: qcom,sm6375-pas: Document remoteprocs MIME-Version: 1.0 Message-Id: <20230725-topic-6375_rproc-v5-1-a8e9cde56a20@linaro.org> References: <20230725-topic-6375_rproc-v5-0-a8e9cde56a20@linaro.org> In-Reply-To: <20230725-topic-6375_rproc-v5-0-a8e9cde56a20@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690479202; l=4551; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=K8Y5MQuKaFIasmD90JuZnhm5/0/+pZwBQrIyp6ZmLeM=; b=g88H73ztvndFemP65IzBLXwDfIJgR8/oW1iaK0JsBk8vO8cnsP/FLcvyclbt8HDT281a4nfPZ DzJ0X0BvSCqDMLom/qa5A6dnNvxg8W+MM/k4aGn1f75CaNX+/uqnEw0 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: INBOX X-GMAIL-THRID: 1772596464654474553 X-GMAIL-MSGID: 1772596464654474553 SM6375 hosts an ADSP, CDSP and modem as remote processors. Create related bindings. Signed-off-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski --- .../bindings/remoteproc/qcom,sm6375-pas.yaml | 145 +++++++++++++++++++++ 1 file changed, 145 insertions(+) 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..3e4a03eb4532 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm6375-pas.yaml @@ -0,0 +1,145 @@ +# 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 + + memory-region: + maxItems: 1 + description: Reference to the reserved-memory for the Hexagon core + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: Firmware name for the Hexagon core + + 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>; + + /* ... */ + }; + }; From patchwork Thu Jul 27 17:33:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 127102 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1279863vqo; Thu, 27 Jul 2023 11:15:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlGUr+XDFOt98VJVuJUlnd4Job8dvwEKQdVjGizBFzrJlGImTB04LPt6XJNO0e6we3dr9IA+ X-Received: by 2002:a17:90a:6ac6:b0:262:ece1:5fd0 with SMTP id b6-20020a17090a6ac600b00262ece15fd0mr86592pjm.12.1690481712567; Thu, 27 Jul 2023 11:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690481712; cv=none; d=google.com; s=arc-20160816; b=LjmGNJ3gd8uo+Y9njJgmqS+PWKUxkHejmdSviXJZ5yixRz07sZCMXgHdmcfCTFUJUu qxdQp8gOdf9dgFjOMDhfbTR0FRsDnqF8uxwKGgWiBd3okzXH5wJoKl9Ta8/5tgsA/5rt AWSnQ/hZNYQMEfvtiUPwL++Xjq6kPuILkH/KUn02BNwBzxGBkwvJEAz+Tkl4nl4bQcvF 5QkLd98qwhcmdHQGwCgv7bxSTTiuRO4xzjlC0ZHK6dsUwr3yWyU9+0cGwFweIT7NLv5m gVU18eGxN6KJRp06jGWdc23owCyXvTBpJ0BIxxMy+TUcMJbq4P/+7LLYCL+RCmCvH6WJ cUKA== 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=2zU/cjwRMTTz2495il9q5eV7STYjp78SNHViO7CJZv4=; fh=8Ymu6y/azMkQYXUDlmju0zStBwkxUOOE8HH0BHv0MWc=; b=KiMmA0gRD+WWGyN7IDRrEuOisv06mgxBuNMXC3HsR63OOTP0gJ9lnj+2hZWUM8Wjw6 JJDE3+AQXRzN6EPxZ7x74l2XmS3txRTDZEAndAybLw+eFu04JSPPdejX+IfOh1wNBnRM 77YecF6cTl5gUZI1S8bAbRX6OekwhHDixK5AGLoMyXIZ28f6RDhX7Fmfrl/Z7+Mq48fQ PPZiA4WlIwtH4yziyqTDQDmykJ7UBdCXXkdCXqmLVE+QQzkECiBrsEyvmrpZggeaJN4f VP+FicqXcDspsBhhBF3xR9C4LHPusxNP4JBTtqXyIxAEdVh3FZJUqXoYxcUaIcwA8pl3 4gyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aawJwoZt; 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 g5-20020a17090a128500b002636b31935asi1677509pja.120.2023.07.27.11.14.59; Thu, 27 Jul 2023 11:15:12 -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=aawJwoZt; 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 S229946AbjG0Rdi (ORCPT + 99 others); Thu, 27 Jul 2023 13:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231510AbjG0Rdb (ORCPT ); Thu, 27 Jul 2023 13:33:31 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C47530E2 for ; Thu, 27 Jul 2023 10:33:29 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fb7dc16ff0so2171662e87.2 for ; Thu, 27 Jul 2023 10:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690479207; x=1691084007; 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=2zU/cjwRMTTz2495il9q5eV7STYjp78SNHViO7CJZv4=; b=aawJwoZtdtlmzFYOH9u38ujoIumO7jTEeokK1PlW6G4RYjskCVvfxlQuM4q1rIrW5c uEeDIeQ6ikVcKR508t9ozGw+K3YUik1eK8/IIoRuqJu4nyi8OQ5npMAvkJx4/KNhfXts h4dRUvNzbp5tUO4pjrkDGrcK+ihh4pDEihVLl1D7hWQc37yUPsxm9v8QI9Xw6r902zXO /nOk/67a0rB/z8QQ1ntwWmW+dEUX+43fDzeHPt8j8A40Z2Oopfx3hUZMg6KU0/b1zYwp PfrjpKia56s3+1klgDK9OSrPYFHN6rcu92CxGSmbWOawxtiUti5xQUz0VeBme4AhYz0S Hl0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690479207; x=1691084007; 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=2zU/cjwRMTTz2495il9q5eV7STYjp78SNHViO7CJZv4=; b=ahJdUR/xVikKi+xD7OHImOliGfIRE7A5L+mWi8pa58C6YYFqDcxO5vEGe384xGdB5E IP/M4ZJvXl6iIVdRo7txMf3V/ygogriCxO/FU6oK7/lp/z1ORqafW14610qYcrVnc0q/ PY+o+vFUr42tWwsPdKMhT+ZzfJrQLGnxjZrV9kklRUMow5MyFQRiLC981PIWpzytD+g2 fL6z1lB6VaRbyJ0mi3+6trpQTYucSdv+ExBbak0zm3/5Wz0JSo/ZcOzUCgKuXycktYuT Amowa6JgyIJ5hmD+MQb6gJpGzTdIBES3ICqMX2X244TRVxwTjgrT92zDxRR0xCZZlRR3 yejQ== X-Gm-Message-State: ABy/qLaLX6ASaCThRBAZQSpWLaFIiU+VWvPBp1n/nPXnS3lBfEn+xAAj n0iPNTo9MgvrsquGnmNFpaEfSWFlli0kWfOVDVP1mQ== X-Received: by 2002:a19:7512:0:b0:4fb:9da2:6cec with SMTP id y18-20020a197512000000b004fb9da26cecmr2285617lfe.7.1690479207657; Thu, 27 Jul 2023 10:33:27 -0700 (PDT) Received: from [192.168.1.101] (abxi99.neoplus.adsl.tpnet.pl. [83.9.2.99]) by smtp.gmail.com with ESMTPSA id g4-20020a19ac04000000b004fe07f06337sm412089lfc.53.2023.07.27.10.33.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 10:33:26 -0700 (PDT) From: Konrad Dybcio Date: Thu, 27 Jul 2023 19:33:22 +0200 Subject: [PATCH v5 2/3] remoteproc: qcom: pas: Add SM6375 ADSP & CDSP MIME-Version: 1.0 Message-Id: <20230725-topic-6375_rproc-v5-2-a8e9cde56a20@linaro.org> References: <20230725-topic-6375_rproc-v5-0-a8e9cde56a20@linaro.org> In-Reply-To: <20230725-topic-6375_rproc-v5-0-a8e9cde56a20@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690479202; l=1093; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=dhLWSUNPf4MHw81JBZTsRJ2sX68bGcNHGXn7nRcPQs0=; b=gzkyaQ6/ofOUqpvt1ivZImnV4ynsHOFETL170ObvEWPjt1AMTQE+p/TkX2lH3oFt/1iF7Xuvg p7Wkmpb9aT3Brn5oZqoegSVEj1t38p8oYRTs7SGZ+EK1Wko2IPPTaEi X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1772598552035850552 X-GMAIL-MSGID: 1772598552035850552 Add a config for the ADSP&CDSP present on SM6375. Signed-off-by: Konrad Dybcio --- drivers/remoteproc/qcom_q6v5_pas.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index b5447dd2dd35..0d58b5be9a77 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1180,6 +1180,8 @@ static const struct of_device_id adsp_of_match[] = { { .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}, + { .compatible = "qcom,sm6375-adsp-pas", .data = &sm6350_adsp_resource}, + { .compatible = "qcom,sm6375-cdsp-pas", .data = &sm8150_cdsp_resource}, { .compatible = "qcom,sm8150-adsp-pas", .data = &sm8150_adsp_resource}, { .compatible = "qcom,sm8150-cdsp-pas", .data = &sm8150_cdsp_resource}, { .compatible = "qcom,sm8150-mpss-pas", .data = &mpss_resource_init}, From patchwork Thu Jul 27 17:33:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 127090 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1264622vqo; Thu, 27 Jul 2023 10:49:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlECQBAcIfxJxvCnb6M228+AoyMbEUbza3wv0mDPkMoegcz1r+iaXREGJaHFBL04Gvqv/2ah X-Received: by 2002:a17:906:9bee:b0:99b:cb59:79b3 with SMTP id de46-20020a1709069bee00b0099bcb5979b3mr91291ejc.1.1690480186951; Thu, 27 Jul 2023 10:49:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690480186; cv=none; d=google.com; s=arc-20160816; b=pfjZgO/9coCY/34eGe6xQd0rZHZpA6Oo9la996kV5mLilEIumeDX4fZyUT5C/B1DLA wDLUaPP55LbNgGVJVwwBm/KDsntYJrLD+rRHUGLvAkFbX3R+4UaDydbWm8tIVjEcjgFM lK730u0WP/6S+WyRfnvv9aKDS973oGGSyopfQmMoyT3XDKNQ5Z9n4MSudla0rF93jj/J kRls3YBjO/cj2n9t2fq2PMYYqhXEoLRgxPPEF+H0OY2iB/8sIQxzBeiIX70J3/4uM2vO GbnhmY/8APfWPtdxI3unRRWpu2j5hXxRwwRtLozr8kPFm9VZ0xiRKz83L9ZDsW2eaVZr UzGA== 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=icO3d3uWVI1Ske0MIHcKUIP285+5TQhyvGKynKcarCg=; fh=8Ymu6y/azMkQYXUDlmju0zStBwkxUOOE8HH0BHv0MWc=; b=yhSJ9BohIfijHPSnfIwkrn62AZzXBbkirPZXWxXiUjHu5/CGpGduT9y5KzfzzLnsgl fHNcRYLG72CleDwcr/O41I90QShdovJYCJfnS3tKDfHoCuzPZ6/DrOVZ4d7XqiXdmhWR 9VoHY6zqi+dzVi5k+Tl7QlvKXxvoZfGTmypGozzdzhj5Q559QwODWSiAHC/c1Y75Ec/d GxprRoKDFlQPFmuaSWth0tjr309lGRdA8QmEpojEZxq2BcMtqOGJaOXC2mZT0jqEW75m MsQnr7SRB46nV9yoLbG8tsyHFsUmgaRWo/AXpcmtOibkOYM4h2lrrtwo1+6QgUwjGlCj zAZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UghMswEk; 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 r8-20020a170906c28800b00992f309cfe9si1341731ejz.598.2023.07.27.10.49.21; Thu, 27 Jul 2023 10:49:46 -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=UghMswEk; 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 S231603AbjG0Rdm (ORCPT + 99 others); Thu, 27 Jul 2023 13:33:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231452AbjG0Rdd (ORCPT ); Thu, 27 Jul 2023 13:33:33 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFEB3B5 for ; Thu, 27 Jul 2023 10:33:31 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4fba03becc6so3142603e87.0 for ; Thu, 27 Jul 2023 10:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690479210; x=1691084010; 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=icO3d3uWVI1Ske0MIHcKUIP285+5TQhyvGKynKcarCg=; b=UghMswEkqCLq7uFW0vg1z0BCw4oUeIeSnbl7RRVXmD+R4LSrBowDwJ2xk4rBk/1c3N YVcSqboHoiKkB54P3hXlJZfbr6wTvzZBtZvjMump/NpjjuE2Cvb/3G2+r+2Zdib0o/O2 EIkq5mkmozwuiBAJ7bztpa+UXln0i8suBJKJbi2VvNwlPJFYhvk+NLNPf2ecwds/QnbA PNSLX8ihTygl7/ACrKad7aIoL2qPhLCgtBCW2jFPYiQ91FH22K7bvs4hpkidx/mNykqf aJCm/sBp5AyvV+ME9S2eODDb+PPR6ID4Vn9FX54ONbs3VXRmWLe1RVDAYAYDvgpjozb4 s2Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690479210; x=1691084010; 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=icO3d3uWVI1Ske0MIHcKUIP285+5TQhyvGKynKcarCg=; b=TDUUgPsOxGuw1J00zxn2bdAlzdcZ84FYPPXh+mmHMScHGq/4BDmNJfuRhM0Ok0Pjnt obDbLlM9y9vvlf1XP0ptBt+TVxjHbUqKcTHvlQMtbshT2doJZzsLi7Jdh2zhVofBHV4s 8nLNz8KDTRwinButmJcX36v0MO2Q/yj79qRBlKhF/+6XZCOM8WvllOSeqJz7I4Ngd5li 2oSgNO6YeHV4Tc5Q7hk8l8jWsy0P0I02NXsvO3+hAKNTbSskkq0tG70NaRW7Bo1S/WQ7 JmjiYOSgHXFREKCx3Xmm0aoJojI6Anj/Qa2AmwSRe8XShmv/bdk3C+VuZxjhNjMzPXjP Y9Bg== X-Gm-Message-State: ABy/qLYgW42ljJt9AC2+R9vuXS/Rn4fDlBDg54ArnBMKJ/J5Kk76CAr4 EwynjbWlv3ZrFJIuwuXFAreEOw== X-Received: by 2002:ac2:57c8:0:b0:4fd:f6db:a7d9 with SMTP id k8-20020ac257c8000000b004fdf6dba7d9mr2060lfo.32.1690479210117; Thu, 27 Jul 2023 10:33:30 -0700 (PDT) Received: from [192.168.1.101] (abxi99.neoplus.adsl.tpnet.pl. [83.9.2.99]) by smtp.gmail.com with ESMTPSA id g4-20020a19ac04000000b004fe07f06337sm412089lfc.53.2023.07.27.10.33.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 10:33:28 -0700 (PDT) From: Konrad Dybcio Date: Thu, 27 Jul 2023 19:33:23 +0200 Subject: [PATCH v5 3/3] remoteproc: qcom: pas: Add SM6375 MPSS MIME-Version: 1.0 Message-Id: <20230725-topic-6375_rproc-v5-3-a8e9cde56a20@linaro.org> References: <20230725-topic-6375_rproc-v5-0-a8e9cde56a20@linaro.org> In-Reply-To: <20230725-topic-6375_rproc-v5-0-a8e9cde56a20@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690479202; l=1570; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=sj7Uy3Esp9/kv46p/vCH0qMBjFc8YM0n5pfjJE2JRcc=; b=pwCv/rsLcc3qhJEeFtI+WrIDbwPG+xDQNkdjonSUEWRcDMWOxqw6LamKTxlr5pRFwGeBJZl6C 28XhYu1QvlKCk6fdUsPaJ9if6YEffEAsLoY5D3x1lj3hPWevlUYXCJ2 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1772596952667828993 X-GMAIL-MSGID: 1772596952667828993 Add a config for the MPSS present on SM6375. Signed-off-by: Konrad Dybcio --- drivers/remoteproc/qcom_q6v5_pas.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 0d58b5be9a77..1c87ae9cec9e 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -813,6 +813,21 @@ static const struct adsp_data sm6350_adsp_resource = { .ssctl_id = 0x14, }; +static const struct adsp_data sm6375_mpss_resource = { + .crash_reason_smem = 421, + .firmware_name = "modem.mdt", + .pas_id = 4, + .minidump_id = 3, + .auto_boot = false, + .proxy_pd_names = (char*[]){ + "cx", + NULL + }, + .ssr_name = "mpss", + .sysmon_name = "modem", + .ssctl_id = 0x12, +}; + static const struct adsp_data sm8150_adsp_resource = { .crash_reason_smem = 423, .firmware_name = "adsp.mdt", @@ -1182,6 +1197,7 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,sm6350-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sm6375-adsp-pas", .data = &sm6350_adsp_resource}, { .compatible = "qcom,sm6375-cdsp-pas", .data = &sm8150_cdsp_resource}, + { .compatible = "qcom,sm6375-mpss-pas", .data = &sm6375_mpss_resource}, { .compatible = "qcom,sm8150-adsp-pas", .data = &sm8150_adsp_resource}, { .compatible = "qcom,sm8150-cdsp-pas", .data = &sm8150_cdsp_resource}, { .compatible = "qcom,sm8150-mpss-pas", .data = &mpss_resource_init},