Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2665198lqo; Mon, 20 May 2024 12:29:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUv5ESvVObAWk7y86JgWLomend9cvtXbP4GcLKj1As+V5qC35vw9UdET2fGyAIoDZEcE2sDI4gGGHqXVmvC0ynpMXdVT2i6W6fh9N3WaA== X-Google-Smtp-Source: AGHT+IGA2X291ryCzGDm6WnTtGcj5ywTNVQgjmCt/fCxIj0Suxa+OjqPJb74xQ8CAfhLWGZ2yWe+ X-Received: by 2002:a05:620a:424e:b0:794:8dbf:7d84 with SMTP id af79cd13be357-7948dbf8107mr179400785a.4.1716233359144; Mon, 20 May 2024 12:29:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716233359; cv=pass; d=google.com; s=arc-20160816; b=iUcIVGemECPpXpTkhtfFO/f2k6lw6ZeuYvQ7+SEUNc5j8tP1oyt0t9OsT32rLY0qaz g+mke2nacou9BMfuaXvP6xvbCOIUBBipMJ5Do6eBGvqsmpBPmdyLvi6TrxqQCwMhcCFn uF9bZ/+yhJhLdjEC1lz9EdzqpN+mluQAgHCSOTfdqIpKn9gO2yjBK1c98/UCqBHovIXI azQZYwgUmbOFLpBskvPIXbSeN7chtjdiBLNy+KgEa4qH79I1KoCXg6GJ5jmPrUktNU3r RXlPy89Jvu4jjTtyQZpXUBcsI/re9A7qMUAlCTcyQUnDN9g6qKLptc/kcZtH2wEnV0cN i5qA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=n4LTndWM1T0gpUWb+wLcBaph5Go6m7GEizoTwtmOots=; fh=+2VOlwdflj/f5nGOChAmjJnmlQS5+mFJN9QMJRnneTA=; b=i6ssUSp9P0wX522BrXLo4CTTFueL/W4/MiehlG6isWNURBddWxOeyp4mYcjm9NeZxm 0ZIAYwnWAVAKTmjEL9woId5GpsVReRmb9otyoh028eGR79iJ7JpVQNGYFmvgkpNLW5BA CmgL3hu3cRIcT8fVQdLBbw5i+SJ+Qy6+4jGSApILoTpLnyTkIhiOlAYJkXGvytHBJVRX KW23MJqfTStTk/yWlnzD1QZjb7+iEuoiJN6bQ+CIAutiCBJfCRLV15bzd586gSXJSvFw vAenRtt/tzKvVr25PDeIbRJhMuRV/t2FV0tOEsOZdnpSyKY2UvEQJLUDI7EwMjyLDGpf lPOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FhEYg9TS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-7930b43aaf2si1135005285a.391.2024.05.20.12.29.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 12:29:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184113-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=@kernel.org header.s=k20201202 header.b=FhEYg9TS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D810D1C21389 for ; Mon, 20 May 2024 19:29:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2629F1386C9; Mon, 20 May 2024 19:29:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FhEYg9TS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EFBE138496; Mon, 20 May 2024 19:29:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716233347; cv=none; b=NzFlnp4sTbiZL1ez4fCScyulppBnudDuXYfZIB9uppmP2RUJRvqpwrDMOLUIc/SJOGkvrlDGbKxYTnOLnw+jaN8MaF5x+v+oZ1+pyDq8NkPdSsaLDNFK755Q8LWPC85Y2EwWpLtnbCmnbfxLmHmUhYDPIuLabcrHkW/6YPUJgtc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716233347; c=relaxed/simple; bh=XUJS0Nr3vYVX0F8uk+6ZJ1bmsN6ximLLLBQTiJ2ot4E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VfKUS3WVp4YhsWbWgHXL4yUj6Y6PpefL2AyqIxsD5Cgzn0Sroc0iTCALgwLCc1EJ/zdr0OZYvAX4RbDOTQdiBzPMaHAy8ucai121MaBiq9lKrfU0LWQ3fkPvGJEiDuyqJe7392GAFa+y/ZQ02QO56QRIL1GeLlTnHTbj/V/RcDI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FhEYg9TS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 910FBC2BD10; Mon, 20 May 2024 19:29:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716233346; bh=XUJS0Nr3vYVX0F8uk+6ZJ1bmsN6ximLLLBQTiJ2ot4E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FhEYg9TSNmjmqsi4z5nUbjshugz1fFBtkFH2PhPoUnp6gGAGsjyZC6Mg9+o9NMDEE Y/gcdIwhMguzNueJwnw0GgYHoBUBuvU+3CVKqGXKBdHD1mhHXwzYFmZKsN3tsaLCSU Zpom41x7pESpNRUxUfMw8FxCP4MJptcduDANtfdd1oLaaoM3pizIr6JCl5klPQq12M /++/5H7iwoD+Lp8p56BLpH0yXkecBBes0MZutT1l3o6T5blQ5B7HrYgYZnCsaNS+Kf Rv34ZUkPgBHQHEoH3U2klhWMaNUxCRFD0o5tHLonTogbTfAWy74SOq0N5IwTaYrjq4 1jFUl/FrKH+nA== Date: Mon, 20 May 2024 14:29:05 -0500 From: Rob Herring To: Elliot Berman Cc: Bjorn Andersson , Konrad Dybcio , Sebastian Reichel , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Andy Yan , Lorenzo Pieralisi , Mark Rutland , Bartosz Golaszewski , 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 Subject: Re: [PATCH v3 1/4] dt-bindings: power: reset: Convert mode-.* properties to array Message-ID: <20240520192905.GA1345016-robh@kernel.org> References: <20240515-arm-psci-system_reset2-vendor-reboots-v3-0-16dd4f9c0ab4@quicinc.com> <20240515-arm-psci-system_reset2-vendor-reboots-v3-1-16dd4f9c0ab4@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240515-arm-psci-system_reset2-vendor-reboots-v3-1-16dd4f9c0ab4@quicinc.com> On Wed, May 15, 2024 at 04:09:44PM -0700, 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 ++++ > .../devicetree/bindings/power/reset/qcom,pon.yaml | 4 ++++ > .../devicetree/bindings/power/reset/reboot-mode.yaml | 14 ++++++++++++-- > .../bindings/power/reset/syscon-reboot-mode.yaml | 4 ++++ > 4 files changed, 24 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 > > required: > - compatible > diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml > index fc8105a7b9b2..95964e04d5d6 100644 > --- a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml > +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml > @@ -68,6 +68,10 @@ allOf: > then: > allOf: > - $ref: reboot-mode.yaml# > + - patternProperties: > + "^mode-.*$": > + items: > + maxItems: 1 > > properties: > reg: > diff --git a/Documentation/devicetree/bindings/power/reset/reboot-mode.yaml b/Documentation/devicetree/bindings/power/reset/reboot-mode.yaml > index ad0a0b95cec1..feb70609bb5f 100644 > --- a/Documentation/devicetree/bindings/power/reset/reboot-mode.yaml > +++ b/Documentation/devicetree/bindings/power/reset/reboot-mode.yaml > @@ -28,13 +28,23 @@ description: | > > properties: > mode-normal: > - $ref: /schemas/types.yaml#/definitions/uint32 > + $ref: "#/patternProperties/^mode-.*$" > description: > Default value to set on a reboot if no command was provided. > > patternProperties: > "^mode-.*$": > - $ref: /schemas/types.yaml#/definitions/uint32 > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + # Limit to 1 outer cell, e.g. no mode-normal = <0>, <1>; > + maxItems: 1 So it's an array, not a matrix... > + # Note: to reference this schema, the allOf should include hint about > + # maxItems for the inner cell > + # allOf: Don't need allOf here. > + # - $ref: /schemas/power/reset/reboot-mode.yaml# > + # - patternProperties: > + # "^mode-.*$": > + # items: > + # maxItems: 1 > > additionalProperties: true > > diff --git a/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml b/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml > index b6acff199cde..bf6d68355e7f 100644 > --- a/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml > +++ b/Documentation/devicetree/bindings/power/reset/syscon-reboot-mode.yaml > @@ -31,6 +31,10 @@ properties: > > allOf: > - $ref: reboot-mode.yaml# > + - patternProperties: > + "^mode-.*$": > + items: > + maxItems: 1 > > unevaluatedProperties: false > > > -- > 2.34.1 >