From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5ED48CEFCE2 for ; Tue, 6 Jan 2026 18:23:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yu/uvWSA3PgaEJr+bQJcFW0WQM2xhvvhzmjBRjEFcaE=; b=PvtybHvyN5q82L 1gY/3Js2OCajNpnd41QmW9mguRpLntxRg2tb4C3o0dqZfLzi9vSJhfFzrzOBP0NVxkSU/IB4twEPY AbIjxz+7qRvBUD7hfdtrCFYbJEmBBEudlsQ/tm8JGI1zxWm20jP/CmIpTeG84WWBPZzQMME0Zjvml lMoYYGDF9durgrzp/BE8GRQNWkAkDf4IuA1n6y7NLIxg1msgHLffSRX0RZYk3niNSlu2UNFXvSK0b 6OeUc4AZWDKzP4PxCUvoZSxZWpueCS37FTCr1CJd8Fl0Pp27Y6MQv8A9QJ/+OJXmwAXKeIQ1HCCQy QqSEGpDOTYMr4iQfmmkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vdBhu-0000000DfKs-3TQK; Tue, 06 Jan 2026 18:23:02 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vdBhs-0000000DfKJ-3uKB; Tue, 06 Jan 2026 18:23:00 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 6A4F960008; Tue, 6 Jan 2026 18:22:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1B6BC116C6; Tue, 6 Jan 2026 18:22:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767723779; bh=ZMHIVMxJvP0SqJXp+jI2tHR/1Nef4l7GGKt6yBgh3HY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ga0uyPT6NQN7Ta4jenmNcBrxk43grsKtrsOVSkQZFE46z5RgZcMT110WPd78kSA2s 3UTnNsUnsk02AGOrUzaBDvqzb/gYzXCQZ3JmQ0v8pXnRFKQm+tHT+RSkchrCvHsW1U KfIUuCFkRnm9izYSbiWxdMnKWKPBROEWdqWgJtjN1P3ChIZQhlI79qgJg6CGrddt5Y Ntdi3+K2/axG8qaHcnbhfQ64TNPxivq5Lu8X+TzmfrcML0O8zcYeUDRCPny7nkmBLH stb+oz6/4/o8M94sZiL7w7gfy4wPVYT0cXlYSmGIi1GHl1oPUx3EVDhS2SxLcdN7b3 3YO9gdj3v/Slg== Date: Tue, 6 Jan 2026 12:22:58 -0600 From: "Rob Herring (Arm)" To: Vladimir Oltean Cc: Conor Dooley , Eric Dumazet , Russell King , netdev@vger.kernel.org, linux-phy@lists.infradead.org, linux-mediatek@lists.infradead.org, AngeloGioacchino Del Regno , "David S. Miller" , linux-kernel@vger.kernel.org, Eric Woudstra , devicetree@vger.kernel.org, Neil Armstrong , Lee Jones , Vinod Koul , Daniel Golle , Jakub Kicinski , =?iso-8859-1?Q?Bj=F8rn?= Mork , linux-arm-kernel@lists.infradead.org, Patrice Chotard , Marek =?iso-8859-1?Q?Beh=FAn?= , Matthias Brugger , Paolo Abeni , Krzysztof Kozlowski , Horatiu Vultur , Heiner Kallweit , Andrew Lunn Subject: Re: [PATCH v2 net-next 03/10] dt-bindings: phy-common-props: ensure protocol-names are unique Message-ID: <176772377743.2503618.2171230504388641306.robh@kernel.org> References: <20260103210403.438687-1-vladimir.oltean@nxp.com> <20260103210403.438687-4-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20260103210403.438687-4-vladimir.oltean@nxp.com> X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org On Sat, 03 Jan 2026 23:03:56 +0200, Vladimir Oltean wrote: > Rob Herring points out that "The default for .*-names is the entries > don't have to be unique.": > https://lore.kernel.org/linux-phy/20251204155219.GA1533839-robh@kernel.org/ > > Let's use uniqueItems: true to make sure the schema enforces this. It > doesn't make sense in this case to have duplicate properties for the > same SerDes protocol. > > Note that this can only be done with the $defs + $ref pattern as > established by the previous commit. When the tx-p2p-microvolt-names > constraints were expressed directly under "properties", it would have > been validated by the string-array meta-schema, which does not support > the 'uniqueItems' keyword as can be seen below. > > properties:tx-p2p-microvolt-names: Additional properties are not allowed ('uniqueItems' was unexpected) > from schema $id: http://devicetree.org/meta-schemas/string-array.yaml > > Suggested-by: Rob Herring > Signed-off-by: Vladimir Oltean > --- > v1->v2: patch is new > > Documentation/devicetree/bindings/phy/phy-common-props.yaml | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Rob Herring (Arm) -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy