]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dt-bindings: i2c: mux: i2c-demux-pinctrl: Define "i2c-parent" constraints
authorRob Herring <robh@kernel.org>
Wed, 24 Jan 2024 19:05:51 +0000 (13:05 -0600)
committerRob Herring <robh@kernel.org>
Mon, 12 Feb 2024 22:42:04 +0000 (16:42 -0600)
The 'phandle-array' type is a bit ambiguous. It can be either just an
array of phandles or an array of phandles plus args. "i2c-parent" is
the former and needs to constrain each entry to a single phandle value.

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20240124190552.1551929-2-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/i2c/i2c-demux-pinctrl.yaml

index dd3d242125519d26fc745bd7036f34295dd6999a..b813f6d4810c9add9cb711614b9825f914892a0a 100644 (file)
@@ -40,6 +40,8 @@ properties:
 
   i2c-parent:
     $ref: /schemas/types.yaml#/definitions/phandle-array
+    items:
+      maxItems: 1
     description:
       List of phandles of I2C masters available for selection.  The first one
       will be used as default.