2019-11-12 14:56:46

by Benoit Parrot

[permalink] [raw]
Subject: [RESEND Patch v3 00/20] media: ti-vpe: cal: maintenance

Note: I had missed Rob and linux-media mailing list on the original
post, so resending.


This a collection of backlog patches I have been carrying for the CAL
driver.

- Add support for SoC variants.

- Switches to syscon/regmap to access a system controller register for
the DPHY configuration. This register has different bit layout depending
on the SoC version.

- It adds supports for pre ES2.0 silicon errata.

- Reworked the DPHY initialization sequence to match the technical
reference manual and provide a more robust restartability.

- Adds the missing ability to power subdevice.

- Update the devicetree binding and then converts it to dt-schema

Changes since v2:
- Added a patch which converts all BIT_MASK() into BIT().
- Constify stuct cal_data.
- Remove blank line.
- Fix to use BIT() instead of BIT_MASK() in "add CSI2 PHY LDO errata
support" patch
- Fix commit description related to v4l2 power management:
- Add missing binding update from v2
- Merge dt-binding and maintainer patch

Changes since v1:
- Removed unneeded "items/max/min".
- Add a ref for ti,camerrx-control type
- Move compatible description as comment in the schemas
- Simplify 'endpoint' syntax
- Removed clocks description
- Added ti,cal.yaml to MAINTAINERS as a separate patch.
- Added Rob's ack
- Remove 'inline' from cal_runtime_get()
- Switch to use of_device_get_match_data
- Reworked the syscon_regmap_lookup_by_phandle() section
- Updated the binding to use ti,camerrx-control instead of sycon_camerrx
- Updated the binding to use ti,camerrx-control instead of sycon_camerrx

Benoit Parrot (19):
dt-bindings: media: cal: update binding to use syscon
dt-bindings: media: cal: update binding example
media: ti-vpe: cal: switch BIT_MASK to BIT
media: ti-vpe: cal: Add per platform data support
media: ti-vpe: cal: Enable DMABUF export
dt-bindings: media: cal: update binding to add PHY LDO errata support
media: ti-vpe: cal: add CSI2 PHY LDO errata support
media: ti-vpe: cal: Fix ths_term/ths_settle parameters
media: ti-vpe: cal: Fix pixel processing parameters
media: ti-vpe: cal: Align DPHY init sequence with docs
dt-bindings: media: cal: update binding to add DRA76x support
media: ti-vpe: cal: Add DRA76x support
dt-bindings: media: cal: update binding to add AM654 support
media: ti-vpe: cal: Add AM654 support
media: ti-vpe: cal: Add subdev s_power hooks
media: ti-vpe: cal: Properly calculate max resolution boundary
media: ti-vpe: cal: Fix a WARN issued when start streaming fails
media: ti-vpe: cal: fix enum_mbus_code/frame_size subdev arguments
dt-bindings: media: cal: convert binding to yaml

Nikhil Devshatwar (1):
media: ti-vpe: cal: Restrict DMA to avoid memory corruption

.../devicetree/bindings/media/ti,cal.yaml | 202 +++++
.../devicetree/bindings/media/ti-cal.txt | 72 --
MAINTAINERS | 1 +
drivers/media/platform/Kconfig | 2 +-
drivers/media/platform/ti-vpe/cal.c | 773 ++++++++++++++----
drivers/media/platform/ti-vpe/cal_regs.h | 221 ++---
6 files changed, 937 insertions(+), 334 deletions(-)
create mode 100644 Documentation/devicetree/bindings/media/ti,cal.yaml
delete mode 100644 Documentation/devicetree/bindings/media/ti-cal.txt

--
2.17.1


2019-11-12 14:56:48

by Benoit Parrot

[permalink] [raw]
Subject: [RESEND Patch v3 02/20] dt-bindings: media: cal: update binding example

Update binding example to show proper endpoint properties and linkage.

Signed-off-by: Benoit Parrot <[email protected]>
---
.../devicetree/bindings/media/ti-cal.txt | 31 ++++++++++---------
1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/ti-cal.txt b/Documentation/devicetree/bindings/media/ti-cal.txt
index 93096d924786..7e960cf26e23 100644
--- a/Documentation/devicetree/bindings/media/ti-cal.txt
+++ b/Documentation/devicetree/bindings/media/ti-cal.txt
@@ -27,7 +27,6 @@ Documentation/devicetree/bindings/media/video-interfaces.txt.
Example:
cal: cal@4845b000 {
compatible = "ti,dra72-cal";
- ti,hwmods = "cal";
reg = <0x4845B000 0x400>,
<0x4845B800 0x40>,
<0x4845B900 0x40>;
@@ -45,9 +44,10 @@ Example:

csi2_0: port@0 {
reg = <0>;
- endpoint {
- slave-mode;
- remote-endpoint = <&ar0330_1>;
+ csi2_phy0: endpoint {
+ remote-endpoint = <&csi2_cam0>;
+ clock-lanes = <0>;
+ data-lanes = <1 2>;
};
};
csi2_1: port@1 {
@@ -57,19 +57,20 @@ Example:
};

i2c5: i2c@4807c000 {
- ar0330@10 {
- compatible = "ti,ar0330";
- reg = <0x10>;
+ clock-frequency = <400000>;

- port {
- #address-cells = <1>;
- #size-cells = <0>;
+ camera-sensor@3c {
+ compatible = "ovti,ov5640";
+ reg = <0x3c>;
+
+ clocks = <&clk_fixed>;
+ clock-names = "xclk";

- ar0330_1: endpoint {
- reg = <0>;
- clock-lanes = <1>;
- data-lanes = <0 2 3 4>;
- remote-endpoint = <&csi2_0>;
+ port {
+ csi2_cam0: endpoint {
+ remote-endpoint = <&csi2_phy0>;
+ clock-lanes = <0>;
+ data-lanes = <1 2>;
};
};
};
--
2.17.1

2019-11-18 17:41:44

by Rob Herring

[permalink] [raw]
Subject: Re: [RESEND Patch v3 02/20] dt-bindings: media: cal: update binding example

On Tue, 12 Nov 2019 08:53:29 -0600, Benoit Parrot wrote:
> Update binding example to show proper endpoint properties and linkage.
>
> Signed-off-by: Benoit Parrot <[email protected]>
> ---
> .../devicetree/bindings/media/ti-cal.txt | 31 ++++++++++---------
> 1 file changed, 16 insertions(+), 15 deletions(-)
>

Reviewed-by: Rob Herring <[email protected]>