Skip to content

Allwinner A31/A83T MIPI CSI-2 and A31 ISP / ISP Driver

Paul Kocialkowski linux-arm-kernel linux-devicetree linux-media linux-staging linux-sunxi lkml llvm 20 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest6 patches 6 repliesIn review
  2. v7 posting 2/228 patches 3 repliesSuperseded
  3. v7 posting 1/26 patches 2 repliesSuperseded
Earlier versions · 17
VersionPostedPatchesRepliesStatus
v6 posting 3/37 patches0 repliesSuperseded
v6 posting 2/36 patches12 repliesSuperseded
v6 posting 1/343 patches8 repliesSuperseded
v5 posting 4/46 patches11 repliesSuperseded
v5 posting 3/46 patches4 repliesSuperseded
v4 posting 4/46 patches2 repliesSuperseded
v5 posting 2/444 patches0 repliesSuperseded
v5 posting 1/46 patches0 repliesSuperseded
v4 posting 3/47 patches4 repliesSuperseded
v3 posting 4/44 patches18 repliesSuperseded
v4 posting 2/445 patches38 repliesSuperseded
v4 posting 1/48 patches3 repliesApplied
v3 posting 3/446 patches8 repliesSuperseded
v3 posting 2/49 patches6 repliesSuperseded
v3 posting 1/48 patches10 repliesSuperseded
v266 patches74 repliesApplied
v122 patches25 repliesSuperseded

Changes in v8 from the cover letter

- Rebased on the latest media tree;
- Followed media/video pipeline helpers changes.

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6dt-bindings: media: Add Allwinner A31 ISP bindings documentationDocumentation/devicetree/bindings/media/allwinner,sun6i-a31-isp.yaml+101 -00 replies
2/6dt-bindings: media: sun6i-a31-csi: Add internal output port to the ISPDocumentation/devicetree/bindings/media/allwinner,sun6i-a31-csi.yaml+4 -00 replies
3/6staging: media: Add support for the Allwinner A31 ISPdrivers/staging/media/sunxi/Kconfig drivers/staging/media/sunxi/Makefile drivers/staging/media/sunxi/sun6i-isp/Kconfig +12 more+3071 -04 replies
4/6MAINTAINERS: Add entry for the Allwinner A31 ISP driverMAINTAINERS+9 -00 replies
5/6media: sun6i-csi: Detect the availability of the ISPdrivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h+37 -01 reply
6/6media: sun6i-csi: Add support for hooking to the isp devicesdrivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.h drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c +2 more+89 -151 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchLaurent PinchartRob HerringJernej Skrabec
1/6R-b
2/6R-b A-b
3/6A-b
4/6R-b
5/6A-b
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v8 thread

Cover letter [PATCH v8 0/6] Allwinner A31/A83T MIPI CSI-2 and A31 ISP / ISP Driver

This part only concerns the introduction of the new ISP driver and related adaptation of the CSI driver.

Most non-dt patches still need reviewing but should be pretty straightforward. The ISP driver itself was thoroughly discussed and the concerns that were raised about it have been resolved. Since this multi-part series has been going on for a while, it would be great to see it merged soon!

Changes since v7:
- Rebased on the latest media tree;
- Followed media/video pipeline helpers changes.

Changes since v6:
- Added a per-compatible check for the required port in dt binding;
- Reworded ISP output port description in dt binding;
- Reversed ISP detection order to have fwnode first;
- Removed info print when ISP link is detected;
- Added warn print when ISP is linked but not enabled in config;
- Fixed sun6i_csi_isp_detect return type;
- Removed useless initialization in sun6i_csi_isp_detect;
- Fixed typo in sun6i_csi_isp_detect;
- Added collected tags;

Changes since v5:
- Rebased on latest media tree;
- Added collected tag;
- Switched to using media_pad_remote_pad_first;
- Switched to using media_pad_remote_pad_unique.

Changes since v4:
- Fixed device-tree binding indent-align;
- Added collected tag;
- Rebased on latest media tree;

Changes since v3:
- Removed the v4l2 controls handler from the driver;
- Added variant structure for table sizes;
- Removed the info message about video device registration;
- Removed comments in uAPI header;
- Used '/schemas/graph.yaml#/properties/port' whenever possible in bindings;
- Added CSI patches dependent on the ISP driver;
- Rebased on the latest media tree;

Changes since all-in-one v2:
- Updated Kconfig to follow the latest media-wide changes;
- Reworked async subdev handling with a dedicated structure holding the corresponding source to avoid matching in the driver;
- Switched to clock-managed regmap mmio;
- Used helper to get a single enabled link for an entity's pad, to replace source selection at link_validate time and select the remote source at stream on time instead;
- Added mutex for mbus format serialization;
- Used endpoint-base instead of video-interface for "internal" endpoints in device-tree schema;
- Added TODO with unstaging requirements;
- Various cosmetic cleanups;
- Updated copyright years;

Paul Kocialkowski (6):
dt-bindings: media: Add Allwinner A31 ISP bindings documentation
dt-bindings: media: sun6i-a31-csi: Add internal output port to the ISP
staging: media: Add support for the Allwinner A31 ISP
MAINTAINERS: Add entry for the Allwinner A31 ISP driver
media: sun6i-csi: Detect the availability of the ISP
media: sun6i-csi: Add support for hooking to the isp devices

 .../media/allwinner,sun6i-a31-csi.yaml        |   4 +
 .../media/allwinner,sun6i-a31-isp.yaml        | 101 +++
 MAINTAINERS                                   |   9 +
 .../platform/sunxi/sun6i-csi/sun6i_csi.c      |  75 +-
 .../platform/sunxi/sun6i-csi/sun6i_csi.h      |  10 +
 .../sunxi/sun6i-csi/sun6i_csi_bridge.c        |  32 +-
 .../sunxi/sun6i-csi/sun6i_csi_capture.c       |  19 +-
 .../sunxi/sun6i-csi/sun6i_csi_capture.h       |   1 +
 drivers/staging/media/sunxi/Kconfig           |   1 +
 drivers/staging/media/sunxi/Makefile          |   1 +
 drivers/staging/media/sunxi/sun6i-isp/Kconfig |  15 +
 .../staging/media/sunxi/sun6i-isp/Makefile    |   4 +
 .../staging/media/sunxi/sun6i-isp/TODO.txt    |   6 +
 .../staging/media/sunxi/sun6i-isp/sun6i_isp.c | 555 +++++++++++++
 .../staging/media/sunxi/sun6i-isp/sun6i_isp.h |  90 +++
 .../media/sunxi/sun6i-isp/sun6i_isp_capture.c | 742 ++++++++++++++++++
 .../media/sunxi/sun6i-isp/sun6i_isp_capture.h |  78 ++
 .../media/sunxi/sun6i-isp/sun6i_isp_params.c  | 566 +++++++++++++
 .../media/sunxi/sun6i-isp/sun6i_isp_params.h  |  52 ++
 .../media/sunxi/sun6i-isp/sun6i_isp_proc.c    | 577 ++++++++++++++
 .../media/sunxi/sun6i-isp/sun6i_isp_proc.h    |  66 ++
 .../media/sunxi/sun6i-isp/sun6i_isp_reg.h     | 275 +++++++
 .../sunxi/sun6i-isp/uapi/sun6i-isp-config.h   |  43 +
 23 files changed, 3309 insertions(+), 13 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/media/allwinner,sun6i-a31-isp.yaml
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/Kconfig
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/Makefile
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/TODO.txt
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.h
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.h
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.h
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.h
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_reg.h
 create mode 100644 drivers/staging/media/sunxi/sun6i-isp/uapi/sun6i-isp-config.h
Signature · 1 line
2.38.1