ARM: dts: imx7s-warp: Pass OV2680 link-frequencies
Subsystems (3)
Fabio Estevam
reviewerPATCH 1/1 ARM: dts: imx7s-warp: Pass OV2680 link-frequencies
From: Fabio Estevam <[email protected]>
Since commit 63b0cd30b78e ("media: ov2680: Add bus-cfg / endpoint property verification") the ov2680 no longer probes on a imx7s-warp7:
ov2680 1-0036: error -EINVAL: supported link freq 330000000 not found ov2680 1-0036: probe with driver ov2680 failed with error -22
Fix it by passing the required 'link-frequencies' property as recommended by:
https://www.kernel.org/doc/html/v6.9-rc1/driver-api/media/camera-sensor.html#handling-clocks
--- arch/arm/boot/dts/nxp/imx/imx7s-warp.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/nxp/imx/imx7s-warp.dts +1 -0
@@ -210,6 +210,7 @@ ov2680_to_mipi: endpoint { remote-endpoint = <&mipi_from_sensor>; clock-lanes = <0>; data-lanes = <1>; + link-frequencies = /bits/ 64 <330000000>; }; }; };
Signature · 1 line
2.34.1
Rob Herring
maintainerQuoted 11 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
63b0cd30b78e("media: ov2680: Add bus-cfg / endpoint property verification") the ov2680 no longer probes on a imx7s-warp7:ov2680 1-0036: error
-EINVAL: supported link freq 330000000 not found ov2680 1-0036: probe with driver ov2680 failed with error -22Fix it by passing the required 'link-frequencies' property as recommended by:
Quoted 9 lines
https://www.kernel.org/doc/html/v6.9-rc1/driver-api/media/camera-sensor.html#handling-clocks
Fixes 63b0cd30b78e ("media: ov2680: Add bus-cfg / endpoint property verification")Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/boot/dts/nxp/imx/imx7s-warp.dts | 1 + 1 file changed, 1 insertion(+)
My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y nxp/imx/imx7s-warp.dtb' for [email protected]:
arch/arm/boot/dts/nxp/imx/imx7s-warp.dtb: camera@36: port:endpoint: Unevaluated properties are not allowed ('clock-lanes', 'data-lanes', 'link-frequencies' were unexpected)
from schema $id: http://devicetree.org/schemas/media/i2c/ovti,ov2680.yaml#
Quoted 35 lines · Rob Herring
Quoted 11 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
63b0cd30b78e("media: ov2680: Add bus-cfg / endpoint property verification") the ov2680 no longer probes on a imx7s-warp7:ov2680 1-0036: error
-EINVAL: supported link freq 330000000 not found ov2680 1-0036: probe with driver ov2680 failed with error -22Fix it by passing the required 'link-frequencies' property as recommended by:
Quoted 9 lines
https://www.kernel.org/doc/html/v6.9-rc1/driver-api/media/camera-sensor.html#handling-clocks
Fixes 63b0cd30b78e ("media: ov2680: Add bus-cfg / endpoint property verification")Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/boot/dts/nxp/imx/imx7s-warp.dts | 1 + 1 file changed, 1 insertion(+)My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
Quoted 7 lines
pip3 install dtschema --upgradeNew warnings running 'make CHECK_DTBS=y nxp/imx/imx7s-warp.dtb' for [email protected]:
arch/arm/boot/dts/nxp/imx/imx7s-warp.dtb: camera@36: port:endpoint: Unevaluated properties are not allowed ('clock-lanes', 'data-lanes', 'link-frequencies' were unexpected)
from schema $id: http://devicetree.org/schemas/media/i2c/ovti,ov2680.yaml#
So it sounds like that the bindings doc needs an update to include 'link-frequencies'?
Shawn
Fabio Estevam
reviewerHi Shawn,
Quoted 2 lines · Shawn Guo
So it sounds like that the bindings doc needs an update to include 'link-frequencies'?
Correct. I have already submitted the binding patch:
https://lore.kernel.org/linux-devicetree/[email protected]/
Shawn Guo
AppliedQuoted 8 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit
63b0cd30b78e("media: ov2680: Add bus-cfg / endpoint property verification") the ov2680 no longer probes on a imx7s-warp7:ov2680 1-0036: error
-EINVAL: supported link freq 330000000 not found ov2680 1-0036: probe with driver ov2680 failed with error -22
Quoted 8 lines
Fix it by passing the required 'link-frequencies' property as recommended by:
https://www.kernel.org/doc/html/v6.9-rc1/driver-api/media/camera-sensor.html#handling-clocks
Fixes 63b0cd30b78e ("media: ov2680: Add bus-cfg / endpoint property verification")Signed-off-by Fabio Estevam <[email protected]>
Applied, thanks!