linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/7] media: sun4i-csi: A10/A20 CSI1 and R40 CSI0 support
@ 2020-01-06  8:42 Chen-Yu Tsai
  2020-01-06  8:42 ` [PATCH v2 1/7] ARM: dts: sun4i: Add CSI1 controller and pinmux options Chen-Yu Tsai
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Chen-Yu Tsai @ 2020-01-06  8:42 UTC (permalink / raw)
  To: Maxime Ripard, Rob Herring, Mark Rutland
  Cc: devicetree, Chen-Yu Tsai, linux-kernel, linux-arm-kernel

From: Chen-Yu Tsai <wens@csie.org>

Hi everyone,

This is v2 of my A10/A20 CSI1 and R40 CSI0 series. v2 is simply the
remaining patches rebased on top of linux-next 20200106, with the
MBUS device tree binding changes converted to YAML format.

This series adds basic support for CSI1 on Allwinner A10/A20 and CSI0 on
Allwinner R40. The CSI1 block has the same structure and layout as the
CSI0 block. Differences include:

  - Only one channel in BT.656 instead of four in CSI0
  - 10-bit raw data input vs 8-bit in CSI0
  - 24-bit RGB888/YUV444 input vs 16-bit RGB565/YUV422 in CSI0
  - No ISP hardware (CSI SCLK not needed)

The CSI0 block in the Allwinner R40 SoC looks to be the same as the one
in the A20. The register maps line up, and they support the same
features. The R40 appears to support BT.1120 based on the feature
overview, but it is not mentioned anywhere else. Also like the A20, the
ISP is not mentioned, but the CSI special clock needs to be enabled for
the hardware to function. The manual does state that the CSI special
clock is the TOP clock for all CSI hardware, but currently no hardware
exists for us to test if CSI1 also depends on it or not.

Included are a couple of fixes for signal polarity and DRAM offset
handling.

Patches 1 and 2 add CSI1 to A10 (sun4i) and A20 (sun7i) dtsi files.

Patch 3 adds a compatible string for the R40's MBUS (memory bus).
This patch needs to go through Rob's tree as it now depends on
the patch "dt-bindings: interconnect: Convert Allwinner MBUS
controller to a schema" that was already merged.

Patch 4 adds CSI0 to the R40 dtsi file

Patches 5 through 7 are examples of cameras hooked up to boards.


Regards
ChenYu


Chen-Yu Tsai (7):
  ARM: dts: sun4i: Add CSI1 controller and pinmux options
  ARM: dts: sun7i: Add CSI1 controller and pinmux options
  dt-bindings: bus: sunxi: Add R40 MBUS compatible
  ARM: dts: sun8i: r40: Add device node for CSI0
  [DO NOT MERGE] ARM: dts: sun4i: cubieboard: Enable OV7670 camera on
    CSI1
  [DO NOT MERGE] ARM: dts: sun7i: cubieboard2: Enable OV7670 camera on
    CSI1
  [DO NOT MERGE] ARM: dts: sun8i-r40: bananapi-m2-ultra: Enable OV5640
    camera

 .../arm/sunxi/allwinner,sun4i-a10-mbus.yaml   |  1 +
 arch/arm/boot/dts/sun4i-a10-cubieboard.dts    | 42 ++++++++++++
 arch/arm/boot/dts/sun4i-a10.dtsi              | 35 ++++++++++
 arch/arm/boot/dts/sun7i-a20-cubieboard2.dts   | 42 ++++++++++++
 arch/arm/boot/dts/sun7i-a20.dtsi              | 36 ++++++++++
 .../boot/dts/sun8i-r40-bananapi-m2-ultra.dts  | 67 +++++++++++++++++++
 arch/arm/boot/dts/sun8i-r40.dtsi              | 36 ++++++++++
 7 files changed, 259 insertions(+)

-- 
2.24.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-03-12  5:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-06  8:42 [PATCH v2 0/7] media: sun4i-csi: A10/A20 CSI1 and R40 CSI0 support Chen-Yu Tsai
2020-01-06  8:42 ` [PATCH v2 1/7] ARM: dts: sun4i: Add CSI1 controller and pinmux options Chen-Yu Tsai
2020-01-06  8:42 ` [PATCH v2 2/7] ARM: dts: sun7i: " Chen-Yu Tsai
2020-01-06  8:42 ` [PATCH v2 3/7] dt-bindings: bus: sunxi: Add R40 MBUS compatible Chen-Yu Tsai
2020-01-06  8:51   ` Maxime Ripard
2020-03-12  5:36     ` Chen-Yu Tsai
2020-01-06  8:42 ` [PATCH v2 4/7] ARM: dts: sun8i: r40: Add device node for CSI0 Chen-Yu Tsai
2020-01-06  8:42 ` [PATCH v2 5/7] [DO NOT MERGE] ARM: dts: sun4i: cubieboard: Enable OV7670 camera on CSI1 Chen-Yu Tsai
2020-01-06  8:42 ` [PATCH v2 6/7] [DO NOT MERGE] ARM: dts: sun7i: cubieboard2: " Chen-Yu Tsai
2020-01-06  8:42 ` [PATCH v2 7/7] [DO NOT MERGE] ARM: dts: sun8i-r40: bananapi-m2-ultra: Enable OV5640 camera Chen-Yu Tsai
2020-01-06  8:52 ` [PATCH v2 0/7] media: sun4i-csi: A10/A20 CSI1 and R40 CSI0 support Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).