Message ID | 20201128142839.517949-1-paul.kocialkowski@bootlin.com |
---|---|
Headers | show |
Series | Allwinner MIPI CSI-2 support for A31/V3s/A83T | expand |
On Sat, Nov 28, 2020 at 03:28:24PM +0100, Paul Kocialkowski wrote: > V4L2 has a common helper which can be used for calculating the number > of stored bits per pixels of a given (stored) image format. > > Use the helper-returned structure instead of our own switch/case list. > Note that a few formats are not in that list so we keep them as > special cases. > > The custom switch/case was also wrong concerning 10/12-bit Bayer > formats, which are aligned to 16 bits in memory. Using the common > helper fixes it. > > Fixes: 5cc7522d8965 ("media: sun6i: Add support for Allwinner CSI V3s") > Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Acked-by: Maxime Ripard <mripard@kernel.org> Maxime
On Sat, Nov 28, 2020 at 03:28:29PM +0100, Paul Kocialkowski wrote: > Since the CSI controller binding is getting a bit more complex due > to the addition of MIPI CSI-2 bridge support, make the ports node > explicit with the parallel port. > > This way, it's clear that the controller only supports parallel > interface input and there's no confusion about the port number. > > Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> > --- > arch/arm/boot/dts/sunxi-h3-h5.dtsi | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi > index 9be13378d4df..02b698cace6a 100644 > --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi > +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi > @@ -803,6 +803,15 @@ csi: camera@1cb0000 { > pinctrl-names = "default"; > pinctrl-0 = <&csi_pins>; > status = "disabled"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + csi_in_parallel: port@0 { > + reg = <0>; > + }; > + }; > }; This will create a DTC warning, since port@0 is the only node, and is equivalent to port Maxime