Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4464992pxj; Tue, 22 Jun 2021 00:25:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4t34IfCE1g+WrOhl5FVQ+I0v9iAu9WvrTBAbYnE/6CQhs3EZ4Dt5SCQ2iLLKAb0giuBP1 X-Received: by 2002:a6b:7009:: with SMTP id l9mr1780577ioc.82.1624346735739; Tue, 22 Jun 2021 00:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624346735; cv=none; d=google.com; s=arc-20160816; b=kYfLWfc+Td4CcPfoIlprOwi93oYpplVEMgpHrNRhBPaY7yywaF6Bp8V+hY5ZoW0lvv WGtPEouIdBwoGsibxQhenNcnB5iSbhChliyHAB31ynfytv/zhvg2rQnbBxtUErHHWAj0 OryJ+rciFGeVqqyoIVLzjr5WiNL8XfLUi1uaO2TRiVsnakauu+re2lsBBvfokS2aMYs6 DDjX29QI82CeANUmcvcbhgzAg9+bZ+W80NdV93RihH6TKCNDXqc3I2YasSdBhIxmcWr2 0aRuWdPH7t4VesoAQaPJ3MgtqsoV8y41VYFS3ODje5d32DLxVZvDenUpdOXweRKxwTjn Ls7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=zfZLUV+XLhKbuRPyWy17JYb48rB9RQJB0YLvF+0B5RI=; b=FWVUmmTryShaqw7I3joZOUYu5ZkwCW7oZjOzShYQNQA0JcVa7YXbmjy8Bj6r6KLq6+ PbNCTevuv8gRp8MQ/np2Myi2micPA5bWcHcVuHkHIYDoIZPs/Wwx6+pehfnUcv8j8Uxv JBKa5Anwcd3CZLo88ZZJ5XPED+QYjGsa9CDbrcNH3UBsg+i5pMNdBdNYDFppEdIJj3Yv NEy900l2NFQ3GDkL52bAHg/9gOchqxxZrpG1kPX6DO6tzqyYKhhKhp7rdFO+QqeJP7bB CbM7eWnFUMky6QwzML6lhT9CAHr4Z2qvkCMKbR3gmSbAkKd4KImAYblaY/q3NOzMQuB2 jk6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=KMzdvow7; 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 n3si26298442ioh.98.2021.06.22.00.25.23; Tue, 22 Jun 2021 00:25:35 -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=KMzdvow7; 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 S229876AbhFVHZp (ORCPT + 99 others); Tue, 22 Jun 2021 03:25:45 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:38471 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbhFVHZp (ORCPT ); Tue, 22 Jun 2021 03:25:45 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1624346610; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=zfZLUV+XLhKbuRPyWy17JYb48rB9RQJB0YLvF+0B5RI=; b=KMzdvow7W/FNi3a1phIsZFECtpF//z8X34ahFzL+sb7a6ByEPdXfyLCGLiHLxIYrT7iZ3aRv TS6vr5TQAqegRuEOoFIVtMgUM9U6WOZofW/onJRH+8Y7DyU4I2sLbgEe8f985EclF6QAzGek Lyyrv4JLdlYto4nfDslcJmoGgKg= 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-n01.prod.us-east-1.postgun.com with SMTP id 60d18fe76ddc3305c41b571d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 22 Jun 2021 07:23:19 GMT Sender: sibis=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 62A75C43217; Tue, 22 Jun 2021 07:23:18 +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, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id 54DAAC433D3; Tue, 22 Jun 2021 07:23:17 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 22 Jun 2021 12:53:17 +0530 From: Sibi Sankar To: Rob Herring Cc: bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, swboyd@chromium.org, ulf.hansson@linaro.org, rjw@rjwysocki.net, agross@kernel.org, ohad@wizery.com, 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 Subject: Re: [PATCH v2 02/13] dt-bindings: remoteproc: qcom: pas: Add QMP bindings In-Reply-To: <20210618202512.GA2811174@robh.at.kernel.org> References: <1623080372-13521-1-git-send-email-sibis@codeaurora.org> <1623080372-13521-3-git-send-email-sibis@codeaurora.org> <20210618202512.GA2811174@robh.at.kernel.org> Message-ID: X-Sender: sibis@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Rob, Thanks for the review. On 2021-06-19 01:55, Rob Herring wrote: > On Mon, Jun 07, 2021 at 09:09:21PM +0530, Sibi Sankar wrote: >> Add Qualcomm Mailbox Protocol (QMP) binding to replace the power >> domains >> exposed by the AOSS QMP node. >> >> Signed-off-by: Sibi Sankar >> --- >> >> v2: >> * Drop R-b from Rob/Stephen due to yaml conversion. >> >> .../devicetree/bindings/remoteproc/qcom,adsp.yaml | 40 >> +++++++++++++++------- >> 1 file changed, 27 insertions(+), 13 deletions(-) >> >> diff --git >> a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml >> b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml >> index 9ea05e608bc1..b6396bc07388 100644 >> --- a/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml >> +++ b/Documentation/devicetree/bindings/remoteproc/qcom,adsp.yaml >> @@ -89,6 +89,10 @@ properties: >> maxItems: 1 >> description: Reference to the reserved-memory for the Hexagon >> core >> >> + qcom,qmp: > > Is there more than one QMP? If not just search for the QMP node and you > can avoid the ABI issue at least partially. yeah there is just one qmp node used by all remote processors and we just search for the qmp node. > >> + $ref: /schemas/types.yaml#/definitions/phandle-array > > There's more than 1 cell? What's in them? Just a single cell i.e. handle to the qmp node. I'll fix this in the re-spin. > >> + 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,12 +383,7 @@ 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: >> @@ -399,12 +396,10 @@ allOf: >> 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 >> >> @@ -439,12 +434,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 +451,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 +490,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 >> >> -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.