Message ID | 20230930145951.23433-1-jacopo.mondi@ideasonboard.com |
---|---|
Headers | show |
Series | media: bindings: Fix handling of video-interface-device | expand |
On Sat, 30 Sep 2023 16:59:45 +0200, Jacopo Mondi wrote: > Allow properties from video-interface-device.yaml for the SK Hynix Hi-846 > sensor. > > All properties specified in video-interface-device.yaml schema are > valid, so make them accepted by changing "additionalProperties: false" > to "unevaluatedProperties: false" at the schema top-level. > > Add two properties from video-interface-device.yaml to the example > to validate the new schema. > > Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> > --- > .../devicetree/bindings/media/i2c/hynix,hi846.yaml | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > Reviewed-by: Rob Herring <robh@kernel.org>
On Sat, 30 Sep 2023 16:59:48 +0200, Jacopo Mondi wrote: > Fix handling of properties from video-interface-device.yaml for > Omnivision OV4689. > > All the properties described by video-interface-device.yaml are > allowed for the image sensor, make them accepted by changing > "additionalProperties: false" to "unevaluatedProperties: false" at the > schema top-level. > > Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> > --- > .../devicetree/bindings/media/i2c/ovti,ov4689.yaml | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > Reviewed-by: Rob Herring <robh@kernel.org>
On Sat, 30 Sep 2023 16:59:50 +0200, Jacopo Mondi wrote: > Fix handling of properties from video-interface-device.yaml for > Sony IMX214. > > All the properties described by video-interface-device.yaml are > allowed for the image sensor, make them accepted by changing > "additionalProperties: false" to "unevaluatedProperties: false" at the > schema top-level. > > Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> > --- > Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Rob Herring <robh@kernel.org>
Hi Jacopo, On Sat, Sep 30, 2023 at 04:59:45PM +0200, Jacopo Mondi wrote: > Allow properties from video-interface-device.yaml for the SK Hynix Hi-846 > sensor. > > All properties specified in video-interface-device.yaml schema are > valid, so make them accepted by changing "additionalProperties: false" > to "unevaluatedProperties: false" at the schema top-level. The patch seems fine to me, but I wonder if we should change the title of video-interface-devices.yaml (it's plural) to something that refers to camera sensors, and possibly split it. It's currently not relevant for other types of devices.
On Tue, Oct 03, 2023 at 08:27:30AM +0000, Sakari Ailus wrote: > Hi Jacopo, > > On Sat, Sep 30, 2023 at 04:59:45PM +0200, Jacopo Mondi wrote: > > Allow properties from video-interface-device.yaml for the SK Hynix Hi-846 > > sensor. > > > > All properties specified in video-interface-device.yaml schema are > > valid, so make them accepted by changing "additionalProperties: false" > > to "unevaluatedProperties: false" at the schema top-level. > > The patch seems fine to me, but I wonder if we should change the title of > video-interface-devices.yaml (it's plural) to something that refers to > camera sensors, and possibly split it. It's currently not relevant for > other types of devices. I was thinking exactly the same yesterday.