From: Dave Stevenson Date: Thu, 11 May 2023 14:44:21 +0000 (+0100) Subject: dt-bindings: media: imx258: Add alternate compatible strings X-Git-Tag: accepted/tizen/unified/20240422.153132~519 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae9d58181247e4dd9e70ac2fb80248b0d9775adc;p=platform%2Fkernel%2Flinux-rpi.git dt-bindings: media: imx258: Add alternate compatible strings There are a number of variants of the imx258 modules that can not be differentiated at runtime, so add compatible strings for them. Signed-off-by: Dave Stevenson --- diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml index bee61a4..3415b26 100644 --- a/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml @@ -14,10 +14,15 @@ description: |- type stacked image sensor with a square pixel array of size 4208 x 3120. It is programmable through I2C interface. Image data is sent through MIPI CSI-2. + There are a number of variants of the sensor which cannot be detected at + runtime, so multiple compatible strings are required to differentiate these. properties: compatible: - const: sony,imx258 + oneOf: + - enum: + - sony,imx258 + - sony,imx258-pdaf assigned-clocks: true assigned-clock-parents: true