Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1171041lqt; Sat, 20 Apr 2024 03:57:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtntIsvv2U3b+BnrYU/cImH030u5usFRTmleAB807voLSsOUduTqHsu9Rruwd2ACTE8aG/VnSPeAG4gwObH5CzZd3oPIHD/mk1rzInfw== X-Google-Smtp-Source: AGHT+IGyDrXm1lpF4hXSQO2m2aEAPQyFt86ZyEQjsk0C1l36V81TnPQUS+auVjcTI3mgf0XjsGso X-Received: by 2002:ad4:420b:0:b0:69b:66b9:8d79 with SMTP id k11-20020ad4420b000000b0069b66b98d79mr5218957qvp.15.1713610678708; Sat, 20 Apr 2024 03:57:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713610678; cv=pass; d=google.com; s=arc-20160816; b=WWtJ0enfSxWnjmYQ3HFvgWY8hUXp3egajpIjLjxnDk07eyhyBZw1rqP4pQLosPxTiK 0q4M0Ai+5VtCiEqfgVUspQzl4EDtcBWX2sVPkeohvlAr6dgxKCz9z08wMaguyh/pP5+p dSqfPV+7LyEpiGMgWSiu3cYTvxKWce0Bp00Ndd5bor1bu//mWitZnAnO9oTOYVHQOwDH 8+D5WzBgHNLEAScV9upXFYYqexpi3U5XgEJNRHHr1YNftGpsdcnQcQT0Xed+JM61D4I3 e1G4TTrTQ1ejTy9D+jPKkmrle9RUP6/gGR4HDhtPd9zirZW5yZXg+qqhSQ0b38a4iW7u /eVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Ipeqzc6ZZ02TREHla/6ToLuSgvq7MVUYfKOCJgBT6bM=; fh=lGrBEd+kfzfwDjytTkQVtAerKFGwngwl8pqurs9ZxqY=; b=VBqCA9P2TYyPoNLJWt1+TKgiU+nKCxyCAuZvLjX+73D3znLudfzoF6id9e5W8x+49O rhaDcp8gcaeXDYORi++KH35NdZr6tV/mcWEISRBakgGARw4Y9IBZv4bce+J6+I4CFRNZ 7oIAH5B/coD1GGcH9vOH062yQNZhrkHaxPoLzaIG/HqemhwnftuOcwOc1/WbOFPlsxvq kwo91ztiKfMOlzYHxIsBKXBF42cH0rT6ZG/bxSQY3gGsxtNwLEOTo0HAZa5ZideeXuJn ZcNzVPOlLCDCT/m6ECrrGOlgYOn9+HZhtHs0W7x6ZgCKfrZ/42yPd7R6VXkmGfKW/t0C m0yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=owxG409S; 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-152234-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152234-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. [147.75.199.223]) by mx.google.com with ESMTPS id a16-20020a0cefd0000000b006a05ad3ff09si4491479qvt.61.2024.04.20.03.57.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 03:57:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152234-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=owxG409S; 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-152234-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152234-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 6387D1C20C5E for ; Sat, 20 Apr 2024 10:57:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9C892941F; Sat, 20 Apr 2024 10:57:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="owxG409S" Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 BD8561B809 for ; Sat, 20 Apr 2024 10:57:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713610669; cv=none; b=FwTkoL3mF3h19B05RMyHniBTcGt7wET1MaPh/R7lXmLMB07JOMJTSI8i6Th3X+2pYEVhykmy/sB26Zr/KLD22rL6WFRfjbEU9OZlLFqymaaxGIEYxXHtymSEFddC4GEu7Fctl4dS1tibS5JVkSi7YhkeoKP2mtaQ8PiJxEzBu7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713610669; c=relaxed/simple; bh=23hWeEr+W84WKW10MFW2wGv1mxXeR0jauqdsZvPF0GI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=O0TwPBcjLLLcDTJGcfq/oTHLLB1ozSj/vnvsqX5moIrmchRmkkvugotjXjsFDjbAcCWp7M8gIQ2ONvZQpsXGuH4+fSfAQohP+zZwANq/fQi4CmlyRQY2JcDrQQl9SpcnCAtvSivq2r+d0TpK1wl3y3teGzuiPsdEKHtxpPY2ZkU= 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=owxG409S; arc=none smtp.client-ip=209.85.221.42 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-wr1-f42.google.com with SMTP id ffacd0b85a97d-34a00533d08so1808752f8f.3 for ; Sat, 20 Apr 2024 03:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713610666; x=1714215466; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=Ipeqzc6ZZ02TREHla/6ToLuSgvq7MVUYfKOCJgBT6bM=; b=owxG409SfEpU5cOFtgZcJEhFPcw5NUntZLZBL4vQs9lTeeDnpX62Bc7d4YGtoIdjBJ Eu4ha6pi+t9LwujS2virBMeoVM05N+76ryd4eFqtWigv3cFXof2vmk2HTG7imdl8AcFr TK5lgdcYMtJpiLa/obgpULqJqF9kQxd5nO0sXEGm/9JcVHRjVEiIseBvOfjctV3boKfg fRubbjbs3cvZeyQBqZcPYXlCrytsAYHLv5PRcb2eLwxMDDwDp57ifaTVKIKZDdXAStLU 6b3ynl6ikthICRhfwC0IlIwH5c/mKHWsawyh7VPnxDJr206mqw148gF+q66XkcFR/BTg +3tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713610666; x=1714215466; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ipeqzc6ZZ02TREHla/6ToLuSgvq7MVUYfKOCJgBT6bM=; b=S3CuvjkzFF3kTuoJLXib1T5UuBShiKSc8+QxgfTFMVkKwkUp5kuZeB/0MfZWc5Rjng 4FbKh2MP087Wlq25M7q8/koc0KO7fETr/IUWQtFkJEPSnRxYHPO0nZJxMgBLy0OEEtx6 VjWu0vF9Gj09p0G7XmHyigI4zh653hNsdogye3BvrwoIhGNkSh8OjqfoYVz0muk+d9ql hKq3PPSnx7k7bO2fwle9b8YA0qIg59vPwZJ22C/sOKNpQx4nvTQye4zkUoCAHd9e5kSy P2ui6kgfY0ppQWbTY6JpJNwKaBml7KVTGhaSkeR88mSKsBbGQ2TzUmenyTrohxPWZe8j dzxA== X-Forwarded-Encrypted: i=1; AJvYcCXdjRuF4HJCNsFJ0PP9QmIL1Vgf71FoyQVQFTR26rcAnbhsSGupbf/KCytJppHs3dPYy5dPO20ifzNynO5c75Yfwrzjl+LirstL9V6x X-Gm-Message-State: AOJu0YwS3juwd/98OlFQikvscxexIBpwioGaqhIYptjB8aEjWnPIlllA qC4elRW8aniAERN257Irsztuv/xWNcvkJe3EJdlniLays9a+nizhnBlBBz6HCN8= X-Received: by 2002:a5d:49c9:0:b0:343:44d2:3828 with SMTP id t9-20020a5d49c9000000b0034344d23828mr3230642wrs.16.1713610666016; Sat, 20 Apr 2024 03:57:46 -0700 (PDT) Received: from [10.236.36.88] ([88.128.88.151]) by smtp.gmail.com with ESMTPSA id n17-20020a05600c501100b00419e078677csm2258995wmr.16.2024.04.20.03.57.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Apr 2024 03:57:45 -0700 (PDT) Message-ID: <19bee3e2-ea14-4fe9-ba10-497166ab791e@linaro.org> Date: Sat, 20 Apr 2024 02:50:26 +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 Subject: Re: [PATCH v2 1/4] dt-bindings: power: reset: Convert mode-.* properties to array To: Elliot Berman , Bjorn Andersson , Konrad Dybcio , Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Andy Yan , Lorenzo Pieralisi , Mark Rutland , Bartosz Golaszewski Cc: Satya Durga Srinivasu Prabhala , Melody Olvera , Shivendra Pratap , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Florian Fainelli , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20240414-arm-psci-system_reset2-vendor-reboots-v2-0-da9a055a648f@quicinc.com> <20240414-arm-psci-system_reset2-vendor-reboots-v2-1-da9a055a648f@quicinc.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1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FZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240414-arm-psci-system_reset2-vendor-reboots-v2-1-da9a055a648f@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14/04/2024 21:30, Elliot Berman wrote: > PSCI reboot mode will map a mode name to multiple magic values instead > of just one. Convert the mode-.* property to an array. Users of the > reboot-mode schema will need to specify the maxItems of the mode-.* > properties. Existing users will all be 1. > > Signed-off-by: Elliot Berman > --- > .../devicetree/bindings/power/reset/nvmem-reboot-mode.yaml | 4 ++++ > Documentation/devicetree/bindings/power/reset/qcom,pon.yaml | 4 ++++ > .../devicetree/bindings/power/reset/reboot-mode.yaml | 12 ++++++++++-- > .../devicetree/bindings/power/reset/syscon-reboot-mode.yaml | 4 ++++ > 4 files changed, 22 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml b/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml > index 627f8a6078c2..03b3b9be36de 100644 > --- a/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml > +++ b/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml > @@ -30,6 +30,10 @@ properties: > > allOf: > - $ref: reboot-mode.yaml# > + - patternProperties: > + "^mode-.*$": > + items: > + maxItems: 1 You still need to limit total number of items. This only defines how many items you have in each inner cell of the matrix. What about the other cell? I understood that you want something more or less equivalent, but the code does not look like. Best regards, Krzysztof