Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp330516lqp; Wed, 22 May 2024 06:06:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiVCgg1A4gg5/QYAQVT1vX7KnDj9/c2zbuJdhJ71XQLIRpqSkcXS7PKdP1apsfhyxiu3fWNvRJrYroXbd94dpXbQJEnho9g84MUsfUIw== X-Google-Smtp-Source: AGHT+IHAqdtWL7qHZHSukPCiQdwQf0rQiQK/AlBHTQF1mfAGbobSlKjz+6pNyOWgFSWTItmU37aI X-Received: by 2002:ac8:5702:0:b0:43a:f150:a4ac with SMTP id d75a77b69052e-43f9e17360emr16825201cf.48.1716383215002; Wed, 22 May 2024 06:06:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716383214; cv=pass; d=google.com; s=arc-20160816; b=dqSfFJo5N6xyu8BcA8F6XHOebWXzGm2I++AGFrRXLgBVHSUHtcUWV3ApvwRqCpyTPE U+PSq3+kPaHznx/S8//0S8ts1dt4QMg3H2XIDieyUb6AvsbyuSG75qrkocxMDpisnKsD /e0CjeRcm+LFopsiaBpbxJXUQIdtCPbz2CMteEhTCKci49n46hdHJSPYWLSn5gqVynPv mCdDk69UrxF+B6mTUQIL6/2+gbyv+52NlIIitPqh7K2t5SwaXCbgK6FPa8foPZbYnL59 EluUfk/JxUhliC22BLPwH7EDVU/pEXeclJMDkzCd1HwY8E0VqAyLZ5s+xWVC/jiFr/Pu XOfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=IHQs81pS5e/M8Ft067yAZNFQ01IZ5xjkXQeMA4zm/pc=; fh=NEG+dw+ZDLNy4SL0XDjh7+V573dGovS5QVCtS6PPofI=; b=M/uz+fA5VwHARI6riXh4xgCflkdz3aYhz7ZRJxMllnQU3qFZ5n4WnGYJUsjEeSkJXK FaXLINTiWQQNUIoEK4LN7gutkFOETq1KvsSeBy/U4sz6KVrXJJH4RBkHhiKQX4S1Jtcl 6BGRKKIdJaEbdW+QID4Y/kMUsjqdn8gS1nYdVV7bCcyPcevqeHC8ya9+pltZePARUtKW Oz2KfP+Rbkh3f0bCMCnUPFr5mUOQVbDQRdmPAnPZ+JMyJs9l7V16BNrhiBSgmkVM9HAt ijSc8yaQe/jg5mGY2Ef8U0xY9KyIprH5x7noqkqr63NBswm1DlUmGn6szJ5PFDq8+wwO 88FA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P3OtvXoW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-186253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df566f199si2145331cf.351.2024.05.22.06.06.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 06:06:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P3OtvXoW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-186253-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186253-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A939E1C2253F for ; Wed, 22 May 2024 13:06:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABD5F13DDC3; Wed, 22 May 2024 13:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="P3OtvXoW" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 AE40B82487 for ; Wed, 22 May 2024 13:06:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716383204; cv=none; b=BMKLhYHsUXcwoQeo+YpP9CnyUqh/FcRKo44IrlQ3X8r0ekivJI5hcIeXGLYXbIyk7pKUPlc/tDk07KEpGDQGHlVzpvZl3VwCCluESPMiVq7jzqZ59C1px89kuPC1lSqDi3MC9fnAot0pxP4yvNBvEYnsyDtbdWmq7DwzB4Ty8y8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716383204; c=relaxed/simple; bh=eCw2iXIxZvZ4hdXnwCeU0//1RJ8cFUohcuV/vFYGTmE=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=bFyIg1pYzhsNiTHVQH1v6P7IlcQWFMby5AyAkLqTX4M6CaCX30iejAIp4eZu5gdOeAHZ8glM0cpL+8lWsRLkeLEGToH1DdmJ9PrTnqSffJRr9i3ANfGjl+ZxAm/xibhDnD3Mw7HhJceFP0aqSvjhENgoPbLxC+sIpi9CVwgHXfo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=P3OtvXoW; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-51f71e4970bso7992350e87.2 for ; Wed, 22 May 2024 06:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716383201; x=1716988001; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=IHQs81pS5e/M8Ft067yAZNFQ01IZ5xjkXQeMA4zm/pc=; b=P3OtvXoWEagyM1xLMdbHscmyw5lRg3JAAbhkBOe1DICZ7xuGM+8GANu7Mik53jl6tc 7mYeubiJrhAOItWBBsyovysAw5Jbo04+iugxoXQsipxHWcRDL7sd7R9GWCrXhtxwWR4u 8AeWC31JLpEWCQ/wzVVqdxG/nC1zlypzCBrycwyKsAVMxPAi2L9tk85QxLZu6d1YZFjZ +Gelq6DavPXDmNKiyhK6YASi+67iCjqgNtxBKDZxdVPkAiK3tNebNON4b+jwRkQ/g/Vp azDIfLVbSE2gLDKz/dAvJbxNGM2DLYomRsCkN87cFn9zLJ/fniS82QZOnISv5BDRKH6R cYcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716383201; x=1716988001; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=IHQs81pS5e/M8Ft067yAZNFQ01IZ5xjkXQeMA4zm/pc=; b=CJjhKyO6wBvH08sntkdE/Eftprj0OcEzjhBacR1pj1A6pBRS9x3/WZQmjk6rug9tDJ v5lC9fbXFBSiEKwai+eoW/3oeRHIjH3OtWWoRpspN8pZl92XuKbKVpWKyb4KwXoOlM4P 9cfrB7d5Et4rujD9lfSRhDgdCYdTPcc4wMy578wQMkGAsGXYiVyPY96HxRBX6S5g1Pwl ity/ClDdyMZMFL3k0jG/Obo3y0zpWSoT4M7vZF5cHRdkmeYKZ23ev/urydrhUcrEJbkP gUAou1ni920qGHd/fh5KLckIDNDOpKlWw3Bkw3/q/cOaKaQgrgGb71XvwqJZDxaqrJze fpAA== X-Forwarded-Encrypted: i=1; AJvYcCVOw3fWc0UuiCq9BM5FUas5mXx6FrS2yg8kFjL3/DVyQxdzris9jgZYNU5yd3pJgGBjqEjdS/a476EyRZFM/bKfUkhudmtpdg3Q6W4F X-Gm-Message-State: AOJu0Ywp78dKQB9IdsaMQFKlSRYbpcVPFsRS5MIMb02R5UEhjjKlABz7 YzyTsQbgoeY6KjruW/p3x6YJFE0X+dSyLPj57AlguB1L8S9ke7w8sEFZqUAM6Bk= X-Received: by 2002:ac2:5548:0:b0:51d:9808:6645 with SMTP id 2adb3069b0e04-526c0a68dd6mr1569386e87.50.1716383200660; Wed, 22 May 2024 06:06:40 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:8b9d:52bd:4757:6b10? ([2a01:e0a:982:cbb0:8b9d:52bd:4757:6b10]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7d2bsm1759195266b.120.2024.05.22.06.06.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 May 2024 06:06:40 -0700 (PDT) Message-ID: <42ba8472-9d63-4125-b538-39d8090203b4@linaro.org> Date: Wed, 22 May 2024 15:06:38 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 1/5] dt-bindings: remoteproc: qcom,sm8550-pas: Document the SA8775p ADSP, CDSP and GPDSP To: Bartosz Golaszewski 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 References: <20240522-topic-lemans-iot-remoteproc-v1-0-af9fab7b27f0@linaro.org> <20240522-topic-lemans-iot-remoteproc-v1-1-af9fab7b27f0@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5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7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 22/05/2024 15:04, Bartosz Golaszewski wrote: > On Wed, May 22, 2024 at 2:42 PM wrote: >> >> On 22/05/2024 14:08, Bartosz Golaszewski wrote: >>> From: Tengfei Fan >>> >>> Document the compatibles for the components used to boot the ADSP, CDSP0, >>> 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-pas.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? Yes add minItems in all the allOf:if: and add the missing allOf:if: for the new compatibles to set the minItems, same for memory-region. Or you may simply spin off a new yaml, this one is getting quite large. Neil > > 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 authentication >>> @@ -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 >>> >>> >>