dt-bindings: trivial-devices: Remove the OV5642 entry
PATCH 1/1 dt-bindings: trivial-devices: Remove the OV5642 entry
As explained in the description text:
"This is a list of trivial I2C and SPI devices that have simple device tree bindings, consisting only of a compatible field, an address and possibly an interrupt line."
A camera device does not fall into this category as it needs other properties such as regulators, reset and powerdown GPIOs, clocks, media endpoint.
Remove the OV5642 entry.
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 -- 1 file changed, 2 deletions(-)
Documentation/devicetree/bindings/trivial-devices.yaml +0 -2
@@ -313,8 +313,6 @@ properties: - nuvoton,w83773g # OKI ML86V7667 video decoder - oki,ml86v7667 - # OV5642: Color CMOS QSXGA (5-megapixel) Image Sensor with OmniBSI and Embedded TrueFocus - - ovti,ov5642 # 48-Lane, 12-Port PCI Express Gen 2 (5.0 GT/s) Switch - plx,pex8648 # Pulsedlight LIDAR range-finding sensor
Signature · 1 line
2.34.1
Quoted 6 lines · Fabio Estevam
As explained in the description text:
"This is a list of trivial I2C and SPI devices that have simple device tree bindings, consisting only of a compatible field, an address and possibly an interrupt line."
Quoted 7 lines
A camera device does not fall into this category as it needs other properties such as regulators, reset and powerdown GPIOs, clocks, media endpoint.
Remove the OV5642 entry.
Signed-off-by Fabio Estevam <[email protected]>
Removing it without re-adding it elsewhere does not seem right, since there'll now be some undocumented compatibles in the tree, no?
Quoted 20 lines
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 -- 1 file changed, 2 deletions(-)Documentation/devicetree/bindings/trivial-devices.yaml +0
-2@@ -313,8 +313,6 @@ properties: - nuvoton,w83773g # OKI ML86V7667 video decoder - oki,ml86v7667 - # OV5642: Color CMOS QSXGA (5-megapixel) Image Sensor with OmniBSI and Embedded TrueFocus - - ovti,ov5642 # 48-Lane, 12-Port PCI Express Gen 2 (5.0 GT/s) Switch - plx,pex8648 # Pulsedlight LIDAR range-finding sensorSignature · 1 line
2.34.1
Quoted 2 lines · Conor Dooley
Removing it without re-adding it elsewhere does not seem right, since there'll now be some undocumented compatibles in the tree, no?
Currently, there is no ov5642 support in the kernel.
If someone adds the support for the ov5642 camera, then a specific binding will have to be created.
I prefer to remove it from trivial-devices to avoid confusion.
As is, it gives a false impression that ov5642 is supported and that it is a trivial device.
Quoted 6 lines · Fabio Estevam
Quoted 2 lines · Conor Dooley
Removing it without re-adding it elsewhere does not seem right, since there'll now be some undocumented compatibles in the tree, no?
Currently, there is no ov5642 support in the kernel.
It is present in devicetrees.
Quoted 7 lines
If someone adds the support for the ov5642 camera, then a specific binding will have to be created.
I prefer to remove it from trivial-devices to avoid confusion.
As is, it gives a false impression that ov5642 is supported and that it is a trivial device.
The latter only do I agree with.
Quoted 9 lines · Conor Dooley
Quoted 6 lines · Fabio Estevam
Quoted 2 lines · Conor Dooley
Removing it without re-adding it elsewhere does not seem right, since there'll now be some undocumented compatibles in the tree, no?
Currently, there is no ov5642 support in the kernel.
It is present in devicetrees.
Yes, and none of them have the ov5642 camera functional:
arch/arm/boot/dts/nxp/imx/imx53-smd.dtsarch/arm/boot/dts/nxp/imx/imx6qdl-sabrelite.dtsiarch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi
Quoted 9 lines
Quoted 7 lines
If someone adds the support for the ov5642 camera, then a specific binding will have to be created.
I prefer to remove it from trivial-devices to avoid confusion.
As is, it gives a false impression that ov5642 is supported and that it is a trivial device.
The latter only do I agree with.
Care to explain how ov5642 is supported by the current mainline kernel?
Quoted 23 lines · Fabio Estevam
Quoted 9 lines · Conor Dooley
Quoted 6 lines · Fabio Estevam
Quoted 2 lines · Conor Dooley
Removing it without re-adding it elsewhere does not seem right, since there'll now be some undocumented compatibles in the tree, no?
Currently, there is no ov5642 support in the kernel.
It is present in devicetrees.
Yes, and none of them have the ov5642 camera functional:
arch/arm/boot/dts/nxp/imx/imx53-smd.dtsarch/arm/boot/dts/nxp/imx/imx6qdl-sabrelite.dtsiarch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsiQuoted 6 lines
Quoted 6 lines
If someone adds the support for the ov5642 camera, then a specific binding
will have to be created.I prefer to remove it from trivial-devices to avoid confusion.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
As is, it gives a false impression that ov5642 is supported and that it
is a trivial device.The latter only do I agree with.
Care to explain how ov5642 is supported by the current mainline kernel?
I never said it was chief. Please re-read the quoted text.
Hi Conor,
Quoted 1 line · Conor Dooley
I never said it was chief. Please re-read the quoted text.
trivial-devices.yaml throws the following warning:
imx6q-sabrelite.dtb: camera@42: 'clock-names', 'clocks', 'gp-gpios', 'port', 'powerdown-gpios', 'reset-gpios' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/trivial-devices.yaml#
Would it make sense to remove ovti,ov5642 from the trivial-devices bindings as well as from the following devicetrees?
arch/arm/boot/dts/nxp/imx/imx53-smd.dtsarch/arm/boot/dts/nxp/imx/imx6qdl-sabrelite.dtsiarch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi
Please advise.
Quoted 8 lines · Fabio Estevam
Hi Conor,
Quoted 1 line · Conor Dooley
I never said it was chief. Please re-read the quoted text.
trivial-devices.yamlthrows the following warning:
Quoted 8 lines
imx6q-sabrelite.dtb: camera@42: 'clock-names', 'clocks', 'gp-gpios', 'port', 'powerdown-gpios', 'reset-gpios' do not match any of the regexes:
'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/trivial-devices.yaml#Would it make sense to remove ovti,ov5642 from the trivial-devices bindings as well as from the
following devicetrees?
I would rather that you documented it, rather than removed it, please.
Quoted 14 lines · Conor Dooley
Quoted 13 lines · Fabio Estevam
Hi Conor,
Quoted 1 line · Conor Dooley
I never said it was chief. Please re-read the quoted text.
trivial-devices.yamlthrows the following warning:imx6q-sabrelite.dtb: camera@42: 'clock-names', 'clocks', 'gp-gpios', 'port', 'powerdown-gpios', 'reset-gpios' do not match any of the regexes:
'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/trivial-devices.yaml#
Quoted 5 lines
Quoted 3 lines
Would it make sense to remove ovti,ov5642 from the trivial-devices bindings as well as from the
following devicetrees?I would rather that you documented it, rather than removed it, please.
Removal from DTS is rather discouraged, because DTS and these nodes could be used in other systems. The best is to fully document the device, regardless whether Linux supports it or not.
Dropping from trivial-devices could work, because it does not change much for our schema - one warning goes to other warning...
Best regards,
Krzysztof
Quoted 3 lines · Krzysztof Kozlowski
Removal from DTS is rather discouraged, because DTS and these nodes could be used in other systems. The best is to fully document the device, regardless whether Linux supports it or not.
Right, this was the same recommendation I got from Conor.
Here is v3 that addresses it: