From patchwork Wed Nov 16 10:20:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 20874 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp61512wru; Wed, 16 Nov 2022 02:21:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf7K6SVr1f2lS2M4RCN/MNKQWBNcStIEua755RsX7eUjyNf5UbJGomyZjOxdwq26okjwsaAx X-Received: by 2002:a17:906:4cc8:b0:7ae:1e53:3f97 with SMTP id q8-20020a1709064cc800b007ae1e533f97mr17395432ejt.169.1668594064301; Wed, 16 Nov 2022 02:21:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668594064; cv=none; d=google.com; s=arc-20160816; b=IzS35AIe4MoCHAANamtJ8/trlFtLOiZd32fwIBeDqDCrlf/Ebp+XF6QBriAa2iMZr5 2SJoR6uvDgqr/fs54rB25uSs8+iDAeTyauM8LdbplLc5gY28mS3/hVwlkoKJwc7qgbQS LdhbzGT5kx2XNxS9MnuiSfYvN2I9wSASA+sSjaoFkhmuObsT7uTw5Oa9pKZbC/ENg49h XWvHkIAyN3XJoahK+MpoiMwxPpPDfciRdl6hF/PiAsY6jEIOcqGoYWSjlpmBP3mlWS93 bqFJpVYuRMjHr2cAmKMyFfpdldRASZPFjZXgxuxgDGj47Mqi0GahrlDYBC7hzt155v/1 TJoA== 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=abLnCQfmT+XQT6aD06ckoOE5xV2tdrjNEbUU00A7GbU=; b=AMAioa3DgpLFm+fuJF5Y+AVYdtFwwAzF+HhHs9DpNBhXFwTX9eABJKPSVDQdpxd2UO n9cFomJU3CLNuChGZyaveshvsB7CzVKTW4bXtkOwyvfN4s7ac70GOZMg3z6JeM/4NkBE zbsVrOtfJrDa6CJ+Q9iDL+i3T84G6xoFSE/iW3Pu/n7j2M9t43YL7HlmcLbhi0iAKKuz O66vsj7p9eg7aROblxIGzrE9NGlDSRHCJcH1TVZcjpB2x/8KJLfAgqcu3yDRM4ShLfUT qzI4n3v22/+kFOdUvO2/QiRomXQxjkfExMHVbY28NcP/jhy0hjcnrqDI/q52bxaiCIS9 9Aew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uS7ki5F3; 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 f17-20020a50d551000000b0046453c385e4si12560972edj.365.2022.11.16.02.20.38; Wed, 16 Nov 2022 02:21:04 -0800 (PST) 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=uS7ki5F3; 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 S233421AbiKPKUQ (ORCPT + 99 others); Wed, 16 Nov 2022 05:20:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233286AbiKPKUJ (ORCPT ); Wed, 16 Nov 2022 05:20:09 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E61912A9D for ; Wed, 16 Nov 2022 02:20:08 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id 5so11556193wmo.1 for ; Wed, 16 Nov 2022 02:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=abLnCQfmT+XQT6aD06ckoOE5xV2tdrjNEbUU00A7GbU=; b=uS7ki5F34mhuwfL0SfdXPitiKSVZkMAIG7y611sNMJi6qXzh6/BTOuMINJQRLMJIyU QUwLURyU7Vw6Bxo7JaOSPYdBszqOdWabEau/5fZPFDbE5TFXS2ztTF/4RiPI2ohPNQWM jPU6mjdbhRu82oOrRcOB4urwV7n+kdnJozJ2rWBwbEjI7M9gfNt2a7PlHu6GGcXkaS5i 4qNfDomQp8jdSMowJrj6AV08ZsuVjnUYmR+B92OTXFrf0BXnyHBo1YjPK+q9Ohw+fmQu r0Gq2kpd/h9Gk/mHER2m2kOuQ1b56u5xBpsmQBvTxZovoJlWCmnECpJ7OsJwKf/L+157 5PDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=abLnCQfmT+XQT6aD06ckoOE5xV2tdrjNEbUU00A7GbU=; b=XO8DLln31v0qkAbYjPM7Bd+9cG12eo9Em6I+LlbF2JW//brB3GLYHO+lHAH1j+aBxF 3ZifOYSbxN4uWIqvql8NkS7/Y3N3gp1eTgOLipgm2dcCDarTc2PKL1XLwCLmA/DSf+zT Bt7ZqBoeTBuoPu+ZA6VOOXyO/q4+dgq84ykpNZm3DWy3+1o1ltDKijgX1lOH1Tut0dah SkwdBQqa7nz6eG/egp6B+pMtlJFmCCX+yX4IX+Zwqe71D6t2HzECTj7hzizKUSRDbKOp XahesR04n8MDTWz72Q3xRITkfmcUcWVb/UXc9F5MX7/ZTSbHEI4Q6s8ykBiPq9tklOIX x4eA== X-Gm-Message-State: ANoB5pmRksBr7L9Ff436Okpt4iZx4fADY+FPwZd1oP8djBpIQrUPnEIf g8GhCBlo8WhJgLqterenh6g9Hg== X-Received: by 2002:a05:600c:524a:b0:3cf:6a41:9aec with SMTP id fc10-20020a05600c524a00b003cf6a419aecmr1644226wmb.159.1668594006964; Wed, 16 Nov 2022 02:20:06 -0800 (PST) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id l18-20020a05600c4f1200b003c6f3f6675bsm1709900wmq.26.2022.11.16.02.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 02:20:06 -0800 (PST) From: Neil Armstrong Date: Wed, 16 Nov 2022 11:20:04 +0100 Subject: [PATCH 1/4] dt-bindings: remoteproc: qcom: adsp: document sm8550 adsp, cdsp & mpss compatible MIME-Version: 1.0 Message-Id: <20221114-narmstrong-sm8550-upstream-remoteproc-v1-1-104c34cb3b91@linaro.org> References: <20221114-narmstrong-sm8550-upstream-remoteproc-v1-0-104c34cb3b91@linaro.org> In-Reply-To: <20221114-narmstrong-sm8550-upstream-remoteproc-v1-0-104c34cb3b91@linaro.org> To: Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio , Andy Gross , Manivannan Sadhasivam , Amol Maheshwari , Srinivas Kandagatla , Rob Herring , Mathieu Poirier Cc: devicetree@vger.kernel.org, Abel Vesa , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.10.1 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 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749647689367109819?= X-GMAIL-MSGID: =?utf-8?q?1749647689367109819?= This documents the compatible for the component used to boot the aDSP, cDSP and MPSS on the SM8550 SoC. The SM8550 boot process on SM8550 now requires a secondary "Devicetree" firmware to be passed along the main Firmware, and the cDSP a new power domain named "NSP". Signed-off-by: Neil Armstrong --- .../devicetree/bindings/remoteproc/qcom,adsp.yaml | 60 +++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index db9e0f0c2bea..678cb73f10de 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -55,6 +55,9 @@ properties: - qcom,sm8450-cdsp-pas - qcom,sm8450-mpss-pas - qcom,sm8450-slpi-pas + - qcom,sm8550-adsp-pas + - qcom,sm8550-cdsp-pas + - qcom,sm8550-mpss-pas reg: maxItems: 1 @@ -116,8 +119,13 @@ properties: $ref: /schemas/types.yaml#/definitions/string description: Firmware name for the Hexagon core + qcom,dtb-firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: Devicetree Firmware name for the Hexagon core + memory-region: - maxItems: 1 + minItems: 1 + maxItems: 2 description: Reference to the reserved-memory for the Hexagon core qcom,qmp: @@ -212,6 +220,9 @@ allOf: - qcom,sm8450-cdsp-pas - qcom,sm8450-slpi-pas - qcom,sm8450-mpss-pas + - qcom,sm8550-adsp-pas + - qcom,sm8550-cdsp-pas + - qcom,sm8550-mpss-pas then: properties: clocks: @@ -327,6 +338,8 @@ allOf: - qcom,sm8450-adsp-pas - qcom,sm8450-cdsp-pas - qcom,sm8450-slpi-pas + - qcom,sm8550-adsp-pas + - qcom,sm8550-cdsp-pas then: properties: interrupts: @@ -347,6 +360,7 @@ allOf: - qcom,sm8150-mpss-pas - qcom,sm8350-mpss-pas - qcom,sm8450-mpss-pas + - qcom,sm8550-mpss-pas then: properties: interrupts: @@ -448,6 +462,7 @@ allOf: - qcom,sm8150-mpss-pas - qcom,sm8350-mpss-pas - qcom,sm8450-mpss-pas + - qcom,sm8550-mpss-pas then: properties: power-domains: @@ -475,6 +490,7 @@ allOf: - qcom,sm8350-slpi-pas - qcom,sm8450-adsp-pas - qcom,sm8450-slpi-pas + - qcom,sm8550-adsp-pas then: properties: power-domains: @@ -504,6 +520,25 @@ allOf: - const: cx - const: mxc + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8550-cdsp-pas + then: + properties: + power-domains: + items: + - description: CX power domain + - description: MXC power domain + - description: NSP power domain + power-domain-names: + items: + - const: cx + - const: mxc + - const: nsp + - if: properties: compatible: @@ -573,6 +608,29 @@ allOf: properties: qcom,qmp: false + - if: + properties: + compatible: + contains: + enum: + - qcom,sm8550-adsp-pas + - qcom,sm8550-cdsp-pas + - qcom,sm8550-mpss-pas + then: + properties: + memory-region: + minItems: 2 + description: + First entry is a phandle for a reserved memory area that holds + the main Firmware for authentication, and second entry a phandle for a + reserved memory area that holds the Devicetree Firmware for authentication. + else: + properties: + qcom,dtb-firmware-name: false + + memory-region: + maxItems: 1 + examples: - | #include