Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp467458pxv; Thu, 24 Jun 2021 11:56:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2+J7KIOgqvplpERvpwGd1QYWGofZJLGYNXY2ZjAkDUJB3gNf91Oggm7hTNPFjlNW61iL6 X-Received: by 2002:a50:c344:: with SMTP id q4mr9178259edb.197.1624561010360; Thu, 24 Jun 2021 11:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624561010; cv=none; d=google.com; s=arc-20160816; b=HOUVJmv5gBqAI3MDMTDKaDYLsjPZD3HgfcTb6KG+JM2jr7mA1GR4aS2K+2eT3RcSEB sAszb8mPSq+nEjt540DZV8+u3ZobGWHv9RGbdJrh7SITPbCuAqDez+f9gvE5e9jsrVxq YQf2REh5jKsN4WIWT9EqOEBl7rzzRIgUeujvJcRBtDU+ATKl3v/awMUZFV7Cwd+4NXc2 GS1lkhYsnARGgufZLvz01j/qeDialhfz95Xlap2VYjom7qQjlg0LD6vLRpyjN0OjP2nB rlMH/MtwR+f6PBJhT6g0Ff9sHcxscMdhPJS9QVre9wh5DZuzNXfEMH7J9fYojZT/bFIt LDKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=z0uOPxSboO8njQ474js31h0ajBzpX7LbKg1ryAx3J0s=; b=HdoujGFbupyC6uR8HpsoLULSy1+LbgwkAWk0m1xMCQRpyh0Z+bo2tNMtULn61TrRLA BkFyE5cUlxqDR6KfI8ix65yTPArjlxYMORtCj0u0F5nZM+Tc38Kv2EPJgbe4/1Dpq3BX O4fcntnm0XY7pjj3UZY/gYtijU2mBMxGwDtrrAO2TtoOLeZ+dismRzP3F25w/bIOPymO 2oE7UteisbxRKDgmFwkEzhV0bspzkjXLOPDUiJQlwHSpkXeaMOSGMh+lgRpcz/WvsMkq miU+8K9vb6JzZwTornVCheAzojaNA8cI76xNXIudRCr8XYX6SVsjCx+kTh+unfOf8FTC KBow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=m9mKI4sV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc43si4234557ejc.241.2021.06.24.11.56.27; Thu, 24 Jun 2021 11:56:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=m9mKI4sV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232694AbhFXSzk (ORCPT + 99 others); Thu, 24 Jun 2021 14:55:40 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:21512 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232674AbhFXSzg (ORCPT ); Thu, 24 Jun 2021 14:55:36 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1624560797; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=z0uOPxSboO8njQ474js31h0ajBzpX7LbKg1ryAx3J0s=; b=m9mKI4sVPe88hexu7+uVTHqVlW32uI2+E/8n1Z7ClA0HeX2xlZ5iKV4d+u5PIcXKUOT3oSL0 isw7L0hNAAozWSW2jDDNyhSYJMS2erIciQ0W0b43ojhT2A0o9hn84VZufUnUQGbPkG5unlei NyWrGNdsNKeS/ho0uaW7MiGIyQo= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 60d4d484d2559fe3924d6bea (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 24 Jun 2021 18:52:52 GMT Sender: sibis=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7B454C433D3; Thu, 24 Jun 2021 18:52:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from blr-ubuntu-87.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id 783C8C4323A; Thu, 24 Jun 2021 18:52:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 783C8C4323A Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=sibis@codeaurora.org From: Sibi Sankar To: bjorn.andersson@linaro.org, robh+dt@kernel.org, swboyd@chromium.org Cc: ulf.hansson@linaro.org, rjw@rjwysocki.net, agross@kernel.org, ohad@wizery.com, mathieu.poirier@linaro.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dianders@chromium.org, rishabhb@codeaurora.org, sidgup@codeaurora.org, Sibi Sankar Subject: [PATCH v3 02/13] dt-bindings: remoteproc: qcom: pas: Add QMP bindings Date: Fri, 25 Jun 2021 00:21:56 +0530 Message-Id: <1624560727-6870-3-git-send-email-sibis@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1624560727-6870-1-git-send-email-sibis@codeaurora.org> References: <1624560727-6870-1-git-send-email-sibis@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Qualcomm Mailbox Protocol (QMP) binding to replace the power domains exposed by the AOSS QMP node. Signed-off-by: Sibi Sankar --- v3: * Misc. documentation fixes: - Reduce power-domain maxItems due to load_state pd removal - Combine compatibles where possible with the load_state pd removal - Fixup the qcom,qmp ref to phandle type .../devicetree/bindings/remoteproc/qcom,adsp.yaml | 62 +++++++++++----------- 1 file changed, 30 insertions(+), 32 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml index 9ea05e608bc1..ad85617b43fa 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml @@ -75,11 +75,11 @@ properties: power-domains: minItems: 1 - maxItems: 3 + maxItems: 2 power-domain-names: minItems: 1 - maxItems: 3 + maxItems: 2 firmware-name: $ref: /schemas/types.yaml#/definitions/string @@ -89,6 +89,10 @@ properties: maxItems: 1 description: Reference to the reserved-memory for the Hexagon core + qcom,qmp: + $ref: /schemas/types.yaml#/definitions/phandle + description: Reference to the AOSS side-channel message RAM. + qcom,smem-states: $ref: /schemas/types.yaml#/definitions/phandle-array description: States used by the AP to signal the Hexagon core @@ -359,13 +363,11 @@ allOf: properties: power-domains: items: - - description: Load State power domain - description: CX power domain - description: MX power domain - description: MSS power domain power-domain-names: items: - - const: load_state - const: cx - const: mx - const: mss @@ -381,43 +383,20 @@ allOf: properties: power-domains: items: - - description: Load State power domain - description: CX power domain - power-domain-names: - items: - - const: load_state - - const: cx - if: properties: compatible: contains: enum: + - qcom,sdx55-mpss-pas - qcom,sm8150-mpss-pas - qcom,sm8350-mpss-pas then: properties: power-domains: items: - - description: Load State power domain - - description: CX power domain - - description: MSS power domain - power-domain-names: - items: - - const: load_state - - const: cx - - const: mss - - - if: - properties: - compatible: - contains: - enum: - - qcom,sdx55-mpss-pas - then: - properties: - power-domains: - items: - description: CX power domain - description: MSS power domain power-domain-names: @@ -439,12 +418,10 @@ allOf: properties: power-domains: items: - - description: Load State power domain - description: LCX power domain - description: LMX power domain power-domain-names: items: - - const: load_state - const: lcx - const: lmx @@ -458,12 +435,10 @@ allOf: properties: power-domains: items: - - description: Load State power domain - description: CX power domain - description: MXC power domain power-domain-names: items: - - const: load_state - const: cx - const: mxc @@ -499,6 +474,29 @@ allOf: - const: mss_restart - const: pdc_reset + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7180-mpss-pas + - qcom,sm8150-adsp-pas + - qcom,sm8150-cdsp-pas + - qcom,sm8150-mpss-pas + - qcom,sm8150-slpi-pas + - qcom,sm8250-adsp-pas + - qcom,sm8250-cdsp-pas + - qcom,sm8250-slpi-pas + - qcom,sm8350-adsp-pas + - qcom,sm8350-cdsp-pas + - qcom,sm8350-mpss-pas + - qcom,sm8350-slpi-pas + then: + properties: + qcom,qmp: + items: + - description: Reference to the AOSS side-channel message RAM. + examples: - | #include -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project