From mboxrd@z Thu Jan 1 00:00:00 1970 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 5BB06339AD; Mon, 16 Oct 2023 18:03:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jcY1Mg2a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CE11C433C9; Mon, 16 Oct 2023 18:03:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697479405; bh=cDqOHBDA5sbY8y5If7BevRuuz2CJcTopzlG8CQRr2AE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jcY1Mg2aUxBHZjp+t2axFYVkPigBmbnkMqlmGGzpE7BagcZmgjaVOPsQdyXhSLPgj 8MJOGK07bmGeYKXvVWGxW9sPe7m1H1cyZHKRE50A+5DhQxCyhi5SJIf0LdSpbqXaCZ xJH5Qhom2DGL9r8fJX0YeNJSoe1IPqGacKpdTG+0= Date: Mon, 16 Oct 2023 20:03:23 +0200 From: Greg Kroah-Hartman To: Rob Herring Cc: Krzysztof Kozlowski , Conor Dooley , Bryan O'Donoghue , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: usb: ti,tps6598x: Disallow undefined properties Message-ID: <2023101616-fantastic-spearman-b1e4@gregkh> References: <20231016155527.2973385-1-robh@kernel.org> Precedence: bulk X-Mailing-List: devicetree@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: <20231016155527.2973385-1-robh@kernel.org> On Mon, Oct 16, 2023 at 10:55:27AM -0500, Rob Herring wrote: > Device specific bindings should not allow undefined properties. This is > accomplished in json-schema with 'additionalProperties: false'. With this, > the 'connector' child node needs to be defined to prevent warnings. > > Signed-off-by: Rob Herring > --- > Documentation/devicetree/bindings/usb/ti,tps6598x.yaml | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml b/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml > index 5497a60cddbc..6ab674dea4c6 100644 > --- a/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml > +++ b/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml > @@ -32,11 +32,14 @@ properties: > items: > - const: irq > > + connector: > + $ref: /schemas/connector/usb-connector.yaml# > + > required: > - compatible > - reg > > -additionalProperties: true > +additionalProperties: false > > examples: > - | > -- > 2.42.0 > > Acked-by: Greg Kroah-Hartman