From patchwork Tue Jul 25 09:00:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 125451 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2344509vqg; Tue, 25 Jul 2023 02:27:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9iqyDEXHMqj4bBY2bBJ4EzZZEfkjIJdrP9IWKd34ctU6Fb2ZlDtJBim/ETC5xjX4pPPRG X-Received: by 2002:a17:906:6495:b0:97e:56d5:b885 with SMTP id e21-20020a170906649500b0097e56d5b885mr11287393ejm.60.1690277226775; Tue, 25 Jul 2023 02:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690277226; cv=none; d=google.com; s=arc-20160816; b=RtiGINF9X5JPMplG9WQo8m6FUG+Egv+d+V9wf8xYIC3bnDd/LVnCaGGoNcK+HvZGso Z9+hQcGKexxPHBL2V1fEFrWdaM97/5FEky5ialaYO2rFyN9gTtqaAa34dzGAGYlt1/7v JBJqO+MLCi2D1mAe4xuXNj2rs+iMolmy5bIaP2pLjal1uc754ZcBcHR1XLU+1lfpruUL VLqwbb57/QWTIYgEABwjYXFmxJFMxE2E1HmB92Gm5PV03O59uIsIp3SqN3JoU6MENJnX F39AYOxjitmKwdt/OqW2Exc2ux2xKzsUPpFsqAXULNeOjfVINaqqrBoLogTFq7UTdTEM OiCQ== 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=a7K8nxIZpShzeSCTf6xMMLnjngvYy+BOizxURXufMvo=; fh=efn5PAqBnwRbCBezi7nZY/EkJQTz2E+r5waTujLS7CY=; b=KPXrRhFu18Mb77qMmFUEX01nub5KnhNop6y8loETwLLhRJZN5+ojpl97qJrymsH8JO rvOJ4RnRIa9+MF9hl43LEQK4aJfSbuWt3zGPxh0Im5+5wqkSc6Uui4+fJtkjPiRXuCjX KTZHVxO7FiEp7X013tFScLP52ouOSPy2JpfzBDjyFD7PV38k6Vqip4U3BhMn5q7YbW0Q Qe/Uso0yCpCa094BF0H99lfkrFws6IAAq7606/0D1QIupfuYgnmuNyp4qPyPE6uCCl1v lQGntH51lDE7MsEgIt0Dnwx9HJRSLCnELPQt65zC9MipZweivv4YgUwA9POv1kuL3WlP wyig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BMUow0YP; 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 a14-20020a170906244e00b00993181656b3si8069233ejb.453.2023.07.25.02.26.42; Tue, 25 Jul 2023 02:27:06 -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=BMUow0YP; 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 S232894AbjGYJBV (ORCPT + 99 others); Tue, 25 Jul 2023 05:01:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232725AbjGYJBK (ORCPT ); Tue, 25 Jul 2023 05:01:10 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15FB61FEF for ; Tue, 25 Jul 2023 02:00:43 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3fbc1218262so51793775e9.3 for ; Tue, 25 Jul 2023 02:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690275635; x=1690880435; 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=a7K8nxIZpShzeSCTf6xMMLnjngvYy+BOizxURXufMvo=; b=BMUow0YPkcyGhHa7QT07tlBD87quCMneQDdzKMvACAbcnhZa71IwmXm++ze/fr2CU6 0IltiRkiEgZ5sgXBXVyLg80vO1RDzxwvPMbCmmxs/u8pm6FerBuHg1l46uG2nKD4ntrR Rlq7UXlqvn4J/psbnCqx37B8/uQ5ij44xXLVxizWZXiDOAJjrwvDlMKtoOemB645QWGi ERdVN5dSRBVJIWfPiOGxW2WH2chqlKlYcGyay5wRF1yTiS/w/zzGcwKhs7ed0OA9ZeLi GiFpRpXujlf6Q6ckF+7CU+pti8TppkgAZ7kw4gCBsSYL7hGxVQ0x7WiAAE8eDGMpRqbI Jc4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690275635; x=1690880435; 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=a7K8nxIZpShzeSCTf6xMMLnjngvYy+BOizxURXufMvo=; b=gLa3St+QZ0e8dDlu8Y9CVOwlDNMLq8L/YgMrldoYUFLexF8G5X9TxVUJOQ7JQXBs2b 2tzdMX0DCpWOkINgVKRsPhdO6OwdCe0dPfpjyWjAWUdIUqAk+sPRWTCIjOFtuDg8zZxN 2HDmP5QJfVN/EtSnXt+9Lle0vv3kpqfX2Jpsx24jCOOiv0ElGi5eySC3rqbkmOauZkRQ tK7Sw1vkqOobpYoTSrQ31+5qLuNRhbhox2iotvcXvMmbDWGf41Gtg25JqQK70wq86fVR EnBtjRGJfMYJT6idc4B9CXBx3jCTEqO54nOYVfPqHJGEjrcjTuXvoZbmySmZArIXcIil 6Jcg== X-Gm-Message-State: ABy/qLb3FlgyUa5iI8zcBmyHfDbKMQNIpQDEZCADXQ/Rxg6QOqn9jipC ZgOQNYXzyzDCiFtfZKZQXgB1yZ3phCGdAd0wE+yY2A== X-Received: by 2002:a05:600c:ac6:b0:3fc:5606:c243 with SMTP id c6-20020a05600c0ac600b003fc5606c243mr10117259wmr.13.1690275635331; Tue, 25 Jul 2023 02:00:35 -0700 (PDT) Received: from [192.168.1.101] (abxj221.neoplus.adsl.tpnet.pl. [83.9.3.221]) by smtp.gmail.com with ESMTPSA id f5-20020a1c6a05000000b003fc015ae1e1sm12648420wmc.3.2023.07.25.02.00.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 02:00:35 -0700 (PDT) From: Konrad Dybcio Date: Tue, 25 Jul 2023 11:00:28 +0200 Subject: [PATCH v4 1/3] dt-bindings: remoteproc: qcom,sm6375-pas: Document remoteprocs MIME-Version: 1.0 Message-Id: <20230725-topic-6375_rproc-v4-1-d55e8a6d0f5f@linaro.org> References: <20230725-topic-6375_rproc-v4-0-d55e8a6d0f5f@linaro.org> In-Reply-To: <20230725-topic-6375_rproc-v4-0-d55e8a6d0f5f@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, Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690275632; l=4377; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Kz6Ktb07wAdLnp1vHpLFn8SJ0/Kt84BenGBICrSQ2Bk=; b=B9H7CXHxbMtl85LCvSqaRuOI7eXZto3hApKxU2pjHXfoGSyK+PRUjtHRdGFiHByljh0r49zcC OXh2sO2ola4A9Wz14++KnJ6dthqFPBmH9rGug/NhA0hF9HSQ0/m0oTd 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,URIBL_BLOCKED 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: 1772384133344916739 X-GMAIL-MSGID: 1772384133344916739 SM6375 hosts an ADSP, CDSP and modem as remote processors. Create related bindings. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Konrad Dybcio --- .../bindings/remoteproc/qcom,sm6375-pas.yaml | 137 +++++++++++++++++++++ 1 file changed, 137 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..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>; + + /* ... */ + }; + }; From patchwork Tue Jul 25 09:00:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 125473 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2360757vqg; Tue, 25 Jul 2023 03:05:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlEn93cJS3Os/RpoyHJk9xyfD0zjw41qF67En/k9qxcX+OZpvqxssujEuNJwD7kV5NiWqczA X-Received: by 2002:a17:907:a064:b0:982:7545:efb6 with SMTP id ia4-20020a170907a06400b009827545efb6mr12455649ejc.66.1690279551169; Tue, 25 Jul 2023 03:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690279551; cv=none; d=google.com; s=arc-20160816; b=S6v3vn3gDz1/aT3ssq4MDzVGDPpoHHNGWDHoTgud9+17iIP/1+Kct0eZz4mhZUzPFx ekB2Inbd/POabVMK3Lr6jOPwtVU2XQ4KDpcu5qrMj1EUe0Ld2yK1dVG2+cD4JplsiAWn qbo8ezEqMGEUOHWrXZJ8dfOZEBwL/ZxEH7cbzLh0k/Unm6vRC/DIlSTC8lC0CFNFU9rK rZknU0jg/vd0DMs04SlnVpPrdOYoTNyhAYSoRi1KxBsh87QlQUqmLk0ZU7Q6yUffRwNF mTNar+njfKriBsUIaYMao5pjAgu4eVIPoTs6MyJrb2BXSAFxSWPbGAuO6eRpueFZA7UZ zYsw== 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=x7AvBcgt5qQh7jLMLqEyu9++Y3A1YbPht0YUDUmHTFW/Hqr3phjgyULB59iAivYE5n cJy5VCsbCKAgIa5ozVnfYjDqAYuHLNiF5rAKa0RK7Q3bqj2Yj5bEo3uNsjP4IzIIj0v0 +cd2rzcM9aYCclYTLkpGmDXulv5maEW7Kij9VWUXnTxVmuLVOVQhE1qaEmHkWbo05yjo oQgUIvEb232kYHzjGWRv/dCfCM+5KaGPTy4NSjmfihbv7DKaeUXxfcRwqIYjtcjNC9Ji PFRG7yw2kDH4cMkpanCWI14wGnbiBbAqEqRJLn/8j01P/aJqUkHlh5okO96ASlDINTOj cawQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lpxJA1OE; 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 lc5-20020a170906f90500b0099b41fa79f3si7835030ejb.331.2023.07.25.03.05.26; Tue, 25 Jul 2023 03:05:51 -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=lpxJA1OE; 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 S232555AbjGYJB1 (ORCPT + 99 others); Tue, 25 Jul 2023 05:01:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232437AbjGYJBM (ORCPT ); Tue, 25 Jul 2023 05:01:12 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE4EE1BEC for ; Tue, 25 Jul 2023 02:00:45 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3fbc244d384so43576035e9.0 for ; Tue, 25 Jul 2023 02:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690275637; x=1690880437; 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=lpxJA1OEBqmxCVZwM7/k5ol2T7tS4AJJFs3Xmwi3+Q3qO1iQeyMQwLyyR9O+gdOaty j+2zL3ad+2KVxyIhtRuPeoKqnxJFdXWGFRtzsZpqzkvMRj+PKQCuvEljaUto5TSDfa3v ocDOQ4fzIF/HdWWfxiTLEJXeU9EG007kQKt7NPkHe5FQal+bMrO2WcLSV2WDZFWZWjla ArBCMr71ny2p9suFlOb//mccdxu9SMtqES5JYD2OQgHOpD+SKfmmwL3SgnhpzIG+sxQf J2/8sgDN99c3yFVDkc9ujfY2//1nxhpPe2y+0ql1/pNhAhXEFFhWoTxFSOACnz2kYOiA MrKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690275637; x=1690880437; 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=OpAdEC81U/S20xTxZQW04iI3bnFoUnTl4EYcg4LYpk2AnY/qb9fyHLMWwqr4MmI8Vg PdjadlLbEUNRhdla9MBnKzVK2Th3wqLGtfNKBJ4eA2nvMfBAT10x46FJh4oQteQ+KMvu M5DRs9zYWxtHV/qqxpRQdi+V3RpnMppvSFDEJ37T6LjOA8LEvvD3HgDAvZsuEwBaKOEY hHe29RYYE3Nhvw64afvJwQNqz4M3UelQLn8d29tS8M4sMrCKMtVlQLhNsAqVNiKYnqGi BzI5TxJXR26DETRHckQHrv2EIxdekQS5NSUEPdzHPv8n4kpVms9PYt0ztDyiadz9dB4F 2/wA== X-Gm-Message-State: ABy/qLYIzV3hS2vFmnPDRMS32/1jncoACD4yNCtmd12RbRcmdClxHzka eLrfQkfTVoO9s3KIG9jlp+PVWA== X-Received: by 2002:a1c:7217:0:b0:3fc:1f0:a66e with SMTP id n23-20020a1c7217000000b003fc01f0a66emr8996587wmc.1.1690275636818; Tue, 25 Jul 2023 02:00:36 -0700 (PDT) Received: from [192.168.1.101] (abxj221.neoplus.adsl.tpnet.pl. [83.9.3.221]) by smtp.gmail.com with ESMTPSA id f5-20020a1c6a05000000b003fc015ae1e1sm12648420wmc.3.2023.07.25.02.00.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 02:00:36 -0700 (PDT) From: Konrad Dybcio Date: Tue, 25 Jul 2023 11:00:29 +0200 Subject: [PATCH v4 2/3] remoteproc: qcom: pas: Add SM6375 ADSP & CDSP MIME-Version: 1.0 Message-Id: <20230725-topic-6375_rproc-v4-2-d55e8a6d0f5f@linaro.org> References: <20230725-topic-6375_rproc-v4-0-d55e8a6d0f5f@linaro.org> In-Reply-To: <20230725-topic-6375_rproc-v4-0-d55e8a6d0f5f@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=1690275632; l=1093; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=dhLWSUNPf4MHw81JBZTsRJ2sX68bGcNHGXn7nRcPQs0=; b=P+oi8UCkLPTSksv3BuliO13fIMgjcU4aLpTLAj8O7oMwSD1PGF41N5zMvfWhaWA42zhS/U/38 uzW78XXOn1DBJX/Ugq3RvcbS913XCbXKR94K0kbjwkPgtJtQQQQC9vd 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,URIBL_BLOCKED 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: 1772386570942135286 X-GMAIL-MSGID: 1772386570942135286 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 Tue Jul 25 09:00:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 125447 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2343954vqg; Tue, 25 Jul 2023 02:25:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlEM36F6fFpDzcRXsZp/uwueGlweVwTUSGp4oUjlU7EC+7RF5GccAFFfgMHTiS3h/c2yR8W0 X-Received: by 2002:a17:906:220f:b0:994:536c:ab45 with SMTP id s15-20020a170906220f00b00994536cab45mr12444715ejs.50.1690277153800; Tue, 25 Jul 2023 02:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690277153; cv=none; d=google.com; s=arc-20160816; b=ldnM2q3eEXg60NWO7nVRo0v+YU/gUxOZYQLu5HH7G4Sbt/NPtnAq6j4grzyB6NVgYn dGhiBkSX04mbam4N+oFhLOIJ8JYEKqRJFDoL3xAQjfHMEyOeLkIIGWNIjK8exoYOhBKx axCnkla74UHkeSheroFA0Mi3Y7vCrn85bYqbXPl/xthMqnqVrsHyG1YKtvqVohQgI4OU +f9LQDmjJSvWeYU+VbYUH91iZbs8jfKRJNuCtKHTU4Ct/SWEzdWzs2t8EkJctwjv4+yS +Ldq+upxd+x+pN5QUQHIh6cMm7/DTnU++PaY2ByTAWs+qNUA31FP7MemfErylqDVM9wV gVoQ== 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=HeYk3QmlnlMvaCT9+bkK/Jmk3GI9ITjr3lHsmMivwDXaNQTASus36u3bBbhUCW96fT uqagt4PplgkG974KhWwuOh5456CejUjkPMimRKLfKg11nlG6f0uvM+pseTdUnXIzd+Zc 1TLQd9lSTVYYjb4t4xWe/MLjhOja2QLHjWFG8fpR44j6tlheT5mpebBOozRGhevk73NG hbY+gcywX8Gx30tB9ogbtcXEtwgFgzh4+dvBQnOwLCPtiqBIODnTVUocujvb+LZCNSqK rku5+uUr1JY0bcJHj8ztJMVdqHaDFfeE0adccU9bGqedojkFzP39Iax0y9Q+OT8pER1u 8HJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qnCYmM6B; 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 lf19-20020a170906ae5300b0099b9f551fd1si2175292ejb.972.2023.07.25.02.25.29; Tue, 25 Jul 2023 02:25:53 -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=qnCYmM6B; 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 S232975AbjGYJBg (ORCPT + 99 others); Tue, 25 Jul 2023 05:01:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232767AbjGYJBO (ORCPT ); Tue, 25 Jul 2023 05:01:14 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC1D02100 for ; Tue, 25 Jul 2023 02:00:47 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3fc04692e20so51872205e9.0 for ; Tue, 25 Jul 2023 02:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690275638; x=1690880438; 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=qnCYmM6BJyv1Kl4qBOeYmNIfEPeInO5QGW3kjTgb9vkXSYyGqYALWrmWonXCZ1ODuk dHDorFnKy0ODvRsnS3SAybtdTewEKSlIAOeESkADTPmxTjPa7vG6Ie2LOcQFPCyCOXDB Gk4cY3cehTtlL47UgjtTVcEKl4cjIdITsDJVHXmuh8ZyFuJ/y/C87HmX/+Et8FtXOfYv MCAcaBfCY/+8sR1HRyOFDpvgepi5v0ZPbnVMTpSYaKq4KSTkLzW/H/pfaZU87SPXKwbT dedXggaFRw5YpoaMIoq5KbuuU840x7r5dWE1T1CtiCdJ6m+BDJpuDaH9p+v7LjdmZEik aBNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690275638; x=1690880438; 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=CNdp0pNph0lNvX/Tl8s6VwjBQpqG4cJBtGBcjOBS4N2poULEmvl1T4rkAgYHvLbmc5 hAkfFPjJ+t8MhyWK5/oa6I3Sa94BSk2vk/cnU8miZGwx9oKjB2X/BA7FtejtJmGBvACj ch3w7F1NfaYV48GRHcqRdAQJ9rQVrf58JqGabj8IIBRb+Mkg5rv11qQ4Vfc2rQynwL9n uGGP5K7HGxq0dahcTKJ7vHhaF5p+eG2Lm11j/TxkqUipPlpiHSTbxU7SdTvIgRUjqTAe s5vaDkeRqsza1BPOMiTKHo0QpHG3Cl6WyQgpwKPsbQUXAWfhWAqLmbU5UodB1s7ma0rT ++XA== X-Gm-Message-State: ABy/qLaWxcoxzCaQ9rskuo5UUzOXPrJHm+BUf2wPluY+xpo5thqgqbmG K2eNJAx5EzuepI5FO4Ic+RFakg== X-Received: by 2002:a05:600c:22cf:b0:3fd:2dd9:6d58 with SMTP id 15-20020a05600c22cf00b003fd2dd96d58mr7113128wmg.26.1690275638192; Tue, 25 Jul 2023 02:00:38 -0700 (PDT) Received: from [192.168.1.101] (abxj221.neoplus.adsl.tpnet.pl. [83.9.3.221]) by smtp.gmail.com with ESMTPSA id f5-20020a1c6a05000000b003fc015ae1e1sm12648420wmc.3.2023.07.25.02.00.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 02:00:37 -0700 (PDT) From: Konrad Dybcio Date: Tue, 25 Jul 2023 11:00:30 +0200 Subject: [PATCH v4 3/3] remoteproc: qcom: pas: Add SM6375 MPSS MIME-Version: 1.0 Message-Id: <20230725-topic-6375_rproc-v4-3-d55e8a6d0f5f@linaro.org> References: <20230725-topic-6375_rproc-v4-0-d55e8a6d0f5f@linaro.org> In-Reply-To: <20230725-topic-6375_rproc-v4-0-d55e8a6d0f5f@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=1690275632; l=1570; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=sj7Uy3Esp9/kv46p/vCH0qMBjFc8YM0n5pfjJE2JRcc=; b=tj7otmCNcsfvt3qlyFn/RfNnxqor/qP+02vY0/mdd83Mkg2azTQyDLl5/lt+Fo7IC0kgd/0Fm bwi5UamLR4KDY95Bfnob6XctHbKPKwI6twgfwa7KEFE51zz+IBXHep4 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,URIBL_BLOCKED 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: 1772384056378495520 X-GMAIL-MSGID: 1772384056378495520 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},