Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp328811lqp; Wed, 22 May 2024 06:04:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUiCtPC9EwnmRFT0feLpQiSXsdU9iGJtBpWW1WfqL8nIL/nWx9s8p9CEAuWwqsWfVa8j+grkC6+22eKuJ1a5ZS/w/OJTIf0/dUUHQMoLQ== X-Google-Smtp-Source: AGHT+IGRbj71tInSMdoJ1aguMEBEAxDpcJ9dIsUKfRQ92fBHnEIjtL3OPxr7T3W2/X/gNt3aDvy1 X-Received: by 2002:a17:906:a2d3:b0:a59:bbea:14e8 with SMTP id a640c23a62f3a-a5d5b018e3dmr1052369566b.17.1716383093484; Wed, 22 May 2024 06:04:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716383093; cv=pass; d=google.com; s=arc-20160816; b=q47JfKkbmmWJwi/kYhq6AHCq+CqBAkCOeFQK7YPWj+CZIURYasvcM37D4SWQxl9vrm O2m0YOU42uXHqscdbqCAoKWreGmCJFJ7zQtY0xvlTvX8jXbDcRAPPr3M7ZT729qHB2XJ EVwSGxlkrnNj3BoVZLqay8aZEbU5tecQ4+9J+XyR8TrI1mcfGtJ3fG1DUrb7z0dOfAum BVumiMOhfnfe6atzobZMD05gHdqhaRNKmL0VNg8pkaZh4w+w9XmnG90oSlkEyO65XX7H RHE0mGeNb3Cm77qNBIHzHfvn0jm0gkhPm2fxoHs1AmNrni5D0ScNuB8r8S1DB02erBp4 dTIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=DGTGELrUuaUwo7ycK6qRf+gpBatOH6Oxm8oaeQeJOPA=; fh=Cbs7xvY7HOPEWZkxbAS4JjY3zgyv+pOp7hNU056Iu5c=; b=W1iTEzyKM2JgEpuOdlE/FXCeBjsz5fRJV61sxBO0gmC6iUxZCU92YrQMI3Uqv3dhmZ nEdmMdixm9mdpzjNKzqaT28Dywbo4/ix1tjbTEAiYav6569HGx9510CnJKJ1zxb6bWvQ 7grWA1N9nk2t6xs+Fh8YgUb+Dxhh8E+PQP+vnwtTYoNtbFovwZXtKo3AlQw03MzEyqKf +yAtHSDFwxxhREx3vqLajqndb86tGHvPLkQanBNSyiM7y9EblacOS4r/Fu7PHoSBMxIU s2tkckVCDNsLnUllipBEOxi4GjK7SrS+wVgzZFzH5k8TlveoZ0TXol3G8ogLtr5ZB1jE Hgww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=aiR9Rt8G; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-186252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186252-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17946228si1550461366b.159.2024.05.22.06.04.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 06:04:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=aiR9Rt8G; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-186252-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186252-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B72C51F2229C for ; Wed, 22 May 2024 13:04:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C8A513D61A; Wed, 22 May 2024 13:04:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="aiR9Rt8G" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7D8213DB99 for ; Wed, 22 May 2024 13:04:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716383085; cv=none; b=UgeSOtW+lFZJOhdBPThOx5y5ux5hwZuXnF4coTbq6JK1pPq+z4qFTA8fyvHKeTAy+6ONNC0GlmhrwjrlgaD5LLSVi/OuR4TZjl63gvOn8zaOke5H1msscJgMx8Bux1OwLZvUuBQyOJk71XR66SlsgKBczYxzusFp/Dx94HOYQwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716383085; c=relaxed/simple; bh=brhl0/DXRnXV/ZHmDUXj41RbzdwcZhb7GnVstZ8T2/Q=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=qEZ0Vqveau4ruENk/CydtgwaKzT8T3Awn0T9afti9aeL73XlktguSr/lqDN9h7THLzFGbStnEV88zBepcoj+VGX5KVDYTnehv9lfWFWegskObVV5h3naI2lRr0YAxTB2EpxaQX8mKkYpW+HaEWH+uIpw/e52v1QRvzIKavDreeI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=aiR9Rt8G; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-51fcb7dc722so763622e87.1 for ; Wed, 22 May 2024 06:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1716383082; x=1716987882; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DGTGELrUuaUwo7ycK6qRf+gpBatOH6Oxm8oaeQeJOPA=; b=aiR9Rt8GxGCnpDFGFQfe3dCY7F2nZCvdSz2NjiWDzctcYTihJ4E/zfJKvrEpeQsU+I Uuy7MY3gAb67512YFST2WvzRTqDTt62dChL9HANYacUASG9WyqAI7IS7S8SAH6nNNlE6 43J3Ns3ggwdugR5I1EpETEk765RNiDyWzHW8h21s0LGUdbc0x0ErxQcjtjvl1WZJAgLa LBFaNexDmFQyolAIMmxEouA9hlkNzpAJ3npSZ3hY2v/joRCCKwlVP0QNi7+45zf5zh69 pRPdB4Bbdyj3hkqsLQAwneFnug/VFEMl5GW2DT5BxEfDBL8XtgPZi4C21HSP4tl+/2wr FAvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716383082; x=1716987882; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DGTGELrUuaUwo7ycK6qRf+gpBatOH6Oxm8oaeQeJOPA=; b=OIqCuBfRp2/0VTPUJE13S4W1rUprWpgMUvQUvjIAh47VjVKek3P78KchrexntwmVX/ Mb+En0uHDzycUGBgsaktiww3oEkC6QKwWcx7rLmJ7jxKaRCTPk+G3Xkl1Lo4UTbD9COg GmD6ddssJfC/BAp4PFvmbKwykOTVFuWIVFteK4h2J9mvMlzzCXMF+jb6fv5wNRFXEv4E 1vDlZBuuNiXiESbaBrt43mNRVHyqrQezxrnOrlCL+yOJFW7BbmeQWq+WyUA2a/u42NLl uomqDPWbr7DXcczKXBO4k4OW+E1zGJ7cXTBQ6/DL9RdWteq2oSPY+8zaA4Ryax5qsdi6 pCeQ== X-Forwarded-Encrypted: i=1; AJvYcCWb17rVW74B+yiSGx1dRO3J/SOzMb3Y8lOT3YSaOwH94eCYEZaVzQfcmvtxADiEsolJ8Xy43DmjT0D0705Xavc7MHEu94ntNJ9mVYf7 X-Gm-Message-State: AOJu0YxfXTjc7YZmaZxAwk3y2yo5x8PTmyU/Dx+XY9OBa6Vp+nqFOW+5 LehO4xNNO75w0q+GgbHjAjMIinXGa24A1IpH3bf8duiBnok1Rih9G44wKzTUlNihU1tx95cWDUN j6w9GcQBSy3v2cfcQgdEvTddFvIVeMIlNbbh6rQ== X-Received: by 2002:ac2:5f70:0:b0:520:77e7:79d0 with SMTP id 2adb3069b0e04-524079a89acmr3037442e87.4.1716383081916; Wed, 22 May 2024 06:04:41 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240522-topic-lemans-iot-remoteproc-v1-0-af9fab7b27f0@linaro.org> <20240522-topic-lemans-iot-remoteproc-v1-1-af9fab7b27f0@linaro.org> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 22 May 2024 15:04:30 +0200 Message-ID: Subject: Re: [PATCH 1/5] dt-bindings: remoteproc: qcom,sm8550-pas: Document the SA8775p ADSP, CDSP and GPDSP To: neil.armstrong@linaro.org Cc: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Manivannan Sadhasivam , Jassi Brar , Bartosz Golaszewski , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tengfei Fan , Srini Kandagatla , Alex Elder Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 22, 2024 at 2:42=E2=80=AFPM wrote: > > On 22/05/2024 14:08, Bartosz Golaszewski wrote: > > From: Tengfei Fan > > > > Document the compatibles for the components used to boot the ADSP, CDSP= 0, > > CDSP1, GPDSP0 and GPDSP1 on the SA8775p SoC. > > > > Signed-off-by: Tengfei Fan > > Co-developed-by: Bartosz Golaszewski > > Signed-off-by: Bartosz Golaszewski > > --- > > .../bindings/remoteproc/qcom,sm8550-pas.yaml | 76 +++++++++++++= ++++++++- > > 1 file changed, 75 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-p= as.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml > > index 73fda7565cd1..9d3a862c39e1 100644 > > --- a/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml > > +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml > > @@ -16,6 +16,11 @@ description: > > properties: > > compatible: > > enum: > > + - qcom,sa8775p-adsp-pas > > + - qcom,sa8775p-cdsp0-pas > > + - qcom,sa8775p-cdsp1-pas > > + - qcom,sa8775p-gpdsp0-pas > > + - qcom,sa8775p-gpdsp1-pas > > - qcom,sm8550-adsp-pas > > - qcom,sm8550-cdsp-pas > > - qcom,sm8550-mpss-pas > > @@ -44,12 +49,13 @@ properties: > > > > firmware-name: > > $ref: /schemas/types.yaml#/definitions/string-array > > + minItems: 1 > > This will allow a single firmware name for all compatible, > which is wrong > So increasing the limit from the default under allOf doesn't seem to work, should I instead keep this and make the lower limit stricter for all other models? Bart > > items: > > - description: Firmware name of the Hexagon core > > - description: Firmware name of the Hexagon Devicetree > > > > memory-region: > > - minItems: 2 > > + minItems: 1 > > Same here > > > items: > > - description: Memory region for main Firmware authentication > > - description: Memory region for Devicetree Firmware authentica= tion > > @@ -81,6 +87,21 @@ allOf: > > maxItems: 5 > > memory-region: > > maxItems: 2 > > + - if: > > + properties: > > + compatible: > > + enum: > > + - qcom,sa8775p-adsp-pas > > + - qcom,sa8775p-cdsp0-pas > > + - qcom,sa8775p-cdsp1-pas > > + - qcom,sa8775p-gpdsp0-pas > > + - qcom,sa8775p-gpdsp1-pas > > + then: > > + properties: > > + interrupts: > > + maxItems: 5 > > + interrupt-names: > > + maxItems: 5 > > - if: > > properties: > > compatible: > > @@ -128,6 +149,7 @@ allOf: > > properties: > > compatible: > > enum: > > + - qcom,sa8775p-adsp-pas > > - qcom,sm8550-adsp-pas > > - qcom,sm8650-adsp-pas > > - qcom,x1e80100-adsp-pas > > @@ -177,6 +199,58 @@ allOf: > > - const: cx > > - const: mxc > > - const: nsp > > + - if: > > + properties: > > + compatible: > > + enum: > > + - qcom,sa8775p-cdsp-pas > > + then: > > + properties: > > + power-domains: > > + items: > > + - description: CX power domain > > + - description: MXC power domain > > + - description: NSP0 power domain > > + power-domain-names: > > + items: > > + - const: cx > > + - const: mxc > > + - const: nsp0 > > + > > + - if: > > + properties: > > + compatible: > > + enum: > > + - qcom,sa8775p-cdsp1-pas > > + then: > > + properties: > > + power-domains: > > + items: > > + - description: CX power domain > > + - description: MXC power domain > > + - description: NSP1 power domain > > + power-domain-names: > > + items: > > + - const: cx > > + - const: mxc > > + - const: nsp1 > > + > > + - if: > > + properties: > > + compatible: > > + enum: > > + - qcom,sa8775p-gpdsp0-pas > > + - qcom,sa8775p-gpdsp1-pas > > + then: > > + properties: > > + power-domains: > > + items: > > + - description: CX power domain > > + - description: MXC power domain > > + power-domain-names: > > + items: > > + - const: cx > > + - const: mxc > > > > unevaluatedProperties: false > > > > >