Skip to contentSkip to conversation

media: i2c: Add driver for Sony IMX728

PATCH In review Sebastian LaVine 10 participants 34 messages Feb 12, 2025 – Mar 11, 2025

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover media: i2c: Add driver for Sony IMX728

This series adds a V4L2 sensor driver for the Sony IMX728, and related devicetree overlays.

v4l2-compliance 1.26.1-5142, 64 bits, 64-bit time_t v4l2-compliance SHA: 4aee01a02792 2023-12-12 21:40:38

Compliance test for device /dev/v4l-subdev4:

Driver Info:

        Driver version   : 6.12.9
        Capabilities     : 0x00000000

Required ioctls:
test VIDIOC_SUDBEV_QUERYCAP: OK
test invalid ioctls: OK

Allow for multiple opens:
test second /dev/v4l-subdev4 open: OK
test VIDIOC_SUBDEV_QUERYCAP: OK
test for unlimited opens: OK

Debug ioctls:
test VIDIOC_LOG_STATUS: OK (Not Supported)

Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0

Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported)

Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 9 Private Controls: 0

Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK (Not Supported) test VIDIOC_G/S_PARM: OK (Not Supported)
test VIDIOC_G_FBUF: OK (Not Supported)
test VIDIOC_G_FMT: OK (Not Supported)
test VIDIOC_TRY_FMT: OK (Not Supported)
test VIDIOC_S_FMT: OK (Not Supported)
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK (Not Supported)
test Composing: OK (Not Supported)
test Scaling: OK (Not Supported)

Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK (Not Supported) test CREATE_BUFS maximum buffers: OK
test VIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)

Total for device /dev/v4l-subdev4: 44, Succeeded: 44, Failed: 0, Warnings: 0

This is a v3 of a series that was originally sent last summer[0].

[0]: https://lore.kernel.org/r/linux-media/[email protected]/

v2 -> v3:
- Update maintainer
- Update bindings example
- Add devicetree overlays
- The driver now supports SRGGB12_1X12, not SRGGB10_1X10
- The driver now outputs at 3856x2176, not 2840x2160
- Fixed exposure, again controls
- Removed duplicate register writes (removed repeat HDR writes, etc)
- Fixed imx728_wait_for_state use of the cci_* API
- Re-added _imx728_set_routing (necessary for imx728_init_state)

Sebastian LaVine (4):
media: dt-bindings: Add Sony IMX728
media: i2c: Add driver for Sony IMX728
arm64: dts: ti: k3-am62a7-sk: Add overlay for fusion 2 board
arm64: dts: ti: Add overlays for IMX728 RCM

 .../bindings/media/i2c/sony,imx728.yaml       |   96 +
 MAINTAINERS                                   |    9 +
 arch/arm64/boot/dts/ti/Makefile               |    4 +
 .../boot/dts/ti/k3-am62a7-sk-fusion-2.dtso    |  115 +
 .../dts/ti/k3-fpdlink-imx728-rcm-0-0.dtso     |  108 +
 arch/arm64/configs/defconfig                  |    1 +
 drivers/media/i2c/Kconfig                     |   12 +
 drivers/media/i2c/Makefile                    |    1 +
 drivers/media/i2c/imx728.c                    | 9655 +++++++++++++++++
 9 files changed, 10001 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
 create mode 100644 arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso
 create mode 100644 arch/arm64/boot/dts/ti/k3-fpdlink-imx728-rcm-0-0.dtso
 create mode 100644 drivers/media/i2c/imx728.c

--
2.34.1
Please be aware that this email includes email addresses outside of the organization.

#1 lore raw

PATCH 1/4 media: dt-bindings: Add Sony IMX728

Adds bindings for the Sony IMX728.

---
 .../bindings/media/i2c/sony,imx728.yaml       | 96 +++++++++++++++++++
 MAINTAINERS                                   |  6 ++
 2 files changed, 102 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml new file +96 -0
new file mode 100644
index 000000000000..f76000ed7bff
@@ -0,0 +1,96 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/i2c/sony,imx728.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sony IMX728 Camera Sensor
+
+maintainers:
+  - Stuart Burtner <[email protected]>
+
+description:
+  The Sony IMX728 is a 1/1.72-Inch CMOS Solid-state image sensor with a
+  color square pixel array and 8.39M active pixels. It is programmed
+  through an I2C interface.
+
+  The sensor can output up to 3840x2160 at a maximum of 45 frames/s over
+  a CSI-2 serial interface. It supports RAW24/20/16/12 and 10.
+
+properties:
+  compatible:
+    enum:
+      - sony,imx728
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    description: Clock frequency from 18 to 30MHz
+    maxItems: 1
+
+  clock-names:
+    const: inck
+
+  reset-gpios:
+    maxItems: 1
+    description:
+      Specifier for the GPIO connected to the XCLR (System Reset) pin.
+
+  error0-gpios:
+    maxItems: 1
+    description:
+      Specifier for the GPIO connected to the XWRN pin.
+
+  error1-gpios:
+    maxItems: 1
+    description:
+      Specifier for the GPIO connected to the XERR pin.
+
+  port:
+    $ref: /schemas/graph.yaml#/properties/port
+    additionalProperties: false
+
+    properties:
+      endpoint:
+        $ref: ../video-interfaces.yaml#
+        unevaluatedProperties: false
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - clock-names
+  - port
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    i2c {
+        clock-frequency = <400000>;
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        camera@1a {
+            compatible = "sony,imx728";
+            reg = <0x1a>;
+
+            clocks = <&fixed_clock>;
+            clock-names = "inck";
+
+            reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;
+            error0-gpios = <&sens_exp 1 GPIO_ACTIVE_HIGH>;
+            error1-gpios = <&sens_exp 2 GPIO_ACTIVE_HIGH>;
+
+            port {
+                camera1: endpoint {
+                    remote-endpoint = <&vin1a_ep>;
+                };
+            };
+        };
+    };
+
+...
MAINTAINERS +6 -0
index 575f0e6f0532..50bff3558d7d 100644
@@ -21885,6 +21885,12 @@ T:     git git://linuxtv.org/media.git
 F:     Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
 F:     drivers/media/i2c/imx415.c
 
+SONY IMX728 SENSOR DRIVER
+M:     Stuart Burtner <[email protected]>
+L:     [email protected]
+S:     Odd Fixes
+F:     Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
+
 SONY MEMORYSTICK SUBSYSTEM
 M:     Maxim Levitsky <[email protected]>
 M:     Alex Dubov <[email protected]>

--
2.34.1

Please be aware that this email includes email addresses outside of the organization.

#2 lore raw

Re: [PATCH 1/4] media: dt-bindings: Add Sony IMX728

Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml line 38

Quoted 5 lines · Sebastian LaVine
Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml new file +5 -0
+
+  reset-gpios:
+    maxItems: 1
+    description:
+      Specifier for the GPIO connected to the XCLR (System Reset) pin.

s/Specifier for the GPIO connected to the// But you could say that it is active low, for example.

Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml line 43

Quoted 5 lines
Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml new file +5 -0
+
+  error0-gpios:
+    maxItems: 1
+    description:
+      Specifier for the GPIO connected to the XWRN pin.

The same.

Quoted 20 lines
Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml new file +20 -0
+
+  error1-gpios:
+    maxItems: 1
+    description:
+      Specifier for the GPIO connected to the XERR pin.
+
+  port:
+    $ref: /schemas/graph.yaml#/properties/port
+    additionalProperties: false
+
+    properties:
+      endpoint:
+        $ref: ../video-interfaces.yaml#
+        unevaluatedProperties: false
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - clock-names

Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml line 73

Quoted 10 lines
Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml new file +10 -0
+  - port
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    i2c {
+        clock-frequency = <400000>;

Drop, not really relevant.

Quoted 28 lines
Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml new file +23 -0
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        camera@1a {
+            compatible = "sony,imx728";
+            reg = <0x1a>;
+
+            clocks = <&fixed_clock>;
+            clock-names = "inck";
+
+            reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;
+            error0-gpios = <&sens_exp 1 GPIO_ACTIVE_HIGH>;
+            error1-gpios = <&sens_exp 2 GPIO_ACTIVE_HIGH>;
+
+            port {
+                camera1: endpoint {
+                    remote-endpoint = <&vin1a_ep>;
+                };
+            };
+        };
+    };
+
+...
MAINTAINERS +0 -0
index 575f0e6f0532..50bff3558d7d 100644

MAINTAINERS T: git git://linuxtv.org/media.git · line 21891

Quoted 7 lines
MAINTAINERS +4 -0
@@ -21885,6 +21885,12 @@ T:     git git://linuxtv.org/media.git
 F:     Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
 F:     drivers/media/i2c/imx415.c
 
+SONY IMX728 SENSOR DRIVER
+M:     Stuart Burtner <[email protected]>
+L:     [email protected]
+S:     Odd Fixes

Hm, why only odd fixes? If you don't care about driver, we also kind of might not care and remove it soon.

Quoted 9 lines
MAINTAINERS +2 -1
+F:     Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
+
 SONY MEMORYSTICK SUBSYSTEM
 M:     Maxim Levitsky <[email protected]>
 M:     Alex Dubov <[email protected]>
--

2.34.1

Please be aware that this email includes email addresses outside of the organization.

Obviously. Please drop it. You can use b4 relay if you need to escape corporate junk.

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH 1/4] media: dt-bindings: Add Sony IMX728

Quoted 10 lines · Krzysztof Kozlowski

Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml line 38

Quoted 5 lines · Sebastian LaVine
Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml new file +5 -0
+
+  reset-gpios:
+    maxItems: 1
+    description:
+      Specifier for the GPIO connected to the XCLR (System Reset) pin.

s/Specifier for the GPIO connected to the// But you could say that it is active low, for example.

Quoted 8 lines

Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml line 43

Quoted 5 lines
Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml new file +5 -0
+
+  error0-gpios:
+    maxItems: 1
+    description:
+      Specifier for the GPIO connected to the XWRN pin.

The same.

Thanks, I'll make this change in v4.

Quoted 12 lines

Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml line 73

Quoted 10 lines

...

Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml new file +7 -0
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    i2c {
+        clock-frequency = <400000>;

Drop, not really relevant.

Ack, I'll remove in v4.

Quoted 11 lines
Quoted 11 lines

...

MAINTAINERS +0 -0
index 575f0e6f0532..50bff3558d7d 100644
@@ -21885,6 +21885,12 @@ T:     git git://linuxtv.org/media.git
 F:     Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
 F:     drivers/media/i2c/imx415.c
 
Quoted 9 lines

MAINTAINERS T: git git://linuxtv.org/media.git · line 21891

Quoted 4 lines
MAINTAINERS +4 -0
+SONY IMX728 SENSOR DRIVER
+M:     Stuart Burtner <[email protected]>
+L:     [email protected]
+S:     Odd Fixes

Hm, why only odd fixes? If you don't care about driver, we also kind of might not care and remove it soon.

Understood -- we've discussed this and Stuart will be able to commit to "Maintained" status going forward. I'll update this for v4.

Quoted 6 lines

...

Obviously. Please drop it. You can use b4 relay if you need to escape corporate junk.

Sorry about that. I can look into using b4 relay going forward to prevent that message from being added to patches. Unfortunately I'm not sure of a way to remove it from my normal mail (like this message).

Thanks,

--
Sebastian

Please be aware that this email includes email addresses outside of the organization.

#4 lore raw

Re: [PATCH 1/4] media: dt-bindings: Add Sony IMX728

In reply to Sebastian LaVine
Quoted 5 lines · Sebastian LaVine

Adds bindings for the Sony IMX728.

---

Please run scripts/checkpatch.pl and fix reported warnings. After that, run also 'scripts/checkpatch.pl --strict' and (probably) fix more warnings. Some warnings can be ignored, especially from --strict run, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear.

Best regards,
Krzysztof

#5 lore raw

Re: [PATCH 1/4] media: dt-bindings: Add Sony IMX728

Hello Krzysztof,

Quoted 7 lines · Krzysztof Kozlowski
Quoted 5 lines · Sebastian LaVine

Adds bindings for the Sony IMX728.

---

Quoted 5 lines

Please run scripts/checkpatch.pl and fix reported warnings. After that, run also 'scripts/checkpatch.pl --strict' and (probably) fix more warnings. Some warnings can be ignored, especially from --strict run, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear.

The only output I get from scripts/checkpatch.pl for this patch is the following:

Quoted 8 lines

next$ scripts/checkpatch.pl --strict patches/outgoing/0001-media-dt-bindings-Add-Sony-IMX728.patch
WARNING: Non-standard signature: Mentored-by:
#9:

total: 0 errors, 1 warnings, 0 checks, 108 lines checked

...

I can change this to a Signed-off-by from Stuart if you would like, though I feel that Mentored-by is applicable to this case.

Thanks,

--
Sebastian

Please be aware that this email includes email addresses outside of the organization.

#6 lore raw

Re: [PATCH 1/4] media: dt-bindings: Add Sony IMX728

I'll put Stuart as Acked-By in future patches.

Thanks,

--
Sebastian
Please be aware that this email includes email addresses outside of the organization.

#7 lore raw

Re: [PATCH 1/4] media: dt-bindings: Add Sony IMX728

In reply to Sebastian LaVine
Quoted 24 lines · Sebastian LaVine

Hello Krzysztof,

Quoted 7 lines · Krzysztof Kozlowski
Quoted 5 lines · Sebastian LaVine

Adds bindings for the Sony IMX728.

---

Quoted 5 lines

Please run scripts/checkpatch.pl and fix reported warnings. After that, run also 'scripts/checkpatch.pl --strict' and (probably) fix more warnings. Some warnings can be ignored, especially from --strict run, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear.

The only output I get from scripts/checkpatch.pl for this patch is the following:

Quoted 5 lines

next$ scripts/checkpatch.pl --strict patches/outgoing/0001-media-dt-bindings-Add-Sony-IMX728.patch
WARNING: Non-standard signature: Mentored-by:
#9:

Quoted 6 lines
Quoted 3 lines

total: 0 errors, 1 warnings, 0 checks, 108 lines checked

...

I can change this to a Signed-off-by from Stuart if you would like, though I feel that Mentored-by is applicable to this case.

It has been two weeks, so I don't remember what warning I saw (countless of patches in between). It's possible I had in mind the "mentored-by", because it's nowhere explained in Linux. Does it mean part of DCO chain? Does it mean reviews or suggestions? This should be one of standard tags, IMO, with all its effects (because tags have meaning, e.g. DCO or reviewer's statement of oversight).

Best regards,
Krzysztof

#8 lore raw

PATCH 2/4 media: i2c: Add driver for Sony IMX728

In reply to Sebastian LaVine

Adds a driver for the Sony IMX728 image sensor.

---
 MAINTAINERS                  |    1 +
 arch/arm64/configs/defconfig |    1 +
 drivers/media/i2c/Kconfig    |   12 +
 drivers/media/i2c/Makefile   |    1 +
 drivers/media/i2c/imx728.c   | 9655 ++++++++++++++++++++++++++++++++++
 5 files changed, 9670 insertions(+)
 create mode 100644 drivers/media/i2c/imx728.c
MAINTAINERS +1 -0
index 50bff3558d7d..27fb3c1be732 100644
@@ -21890,6 +21890,7 @@ M:      Stuart Burtner <[email protected]>
 L:     [email protected]
 S:     Odd Fixes
 F:     Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
+F:     drivers/media/i2c/imx728.c
 
 SONY MEMORYSTICK SUBSYSTEM
 M:     Maxim Levitsky <[email protected]>
arch/arm64/configs/defconfig +1 -0
index c62831e61586..0ff578bb4645 100644
@@ -852,6 +852,7 @@ CONFIG_VIDEO_TI_J721E_CSI2RX=m
 CONFIG_VIDEO_HANTRO=m
 CONFIG_VIDEO_IMX219=m
 CONFIG_VIDEO_IMX412=m
+CONFIG_VIDEO_IMX728=m
 CONFIG_VIDEO_OV5640=m
 CONFIG_VIDEO_OV5645=m
 CONFIG_DRM=m
drivers/media/i2c/Kconfig +12 -0
index 8ba096b8ebca..79129f533eaa 100644
@@ -264,6 +264,18 @@ config VIDEO_IMX415
          To compile this driver as a module, choose M here: the
          module will be called imx415.
 
+config VIDEO_IMX728
+       tristate "Sony IMX728 sensor support"
+       depends on I2C && VIDEO_DEV
+       select MEDIA_CONTROLLER
+       select VIDEO_V4L2_SUBDEV_API
+       help
+         This is a Video4Linux2 sensor driver for the Sony
+         IMX728 camera.
+
+         To compile this driver as a module, choose M here: the
+         module will be called imx728.
+
 config VIDEO_MAX9271_LIB
        tristate
 
drivers/media/i2c/Makefile +1 -0
index fbb988bd067a..d22df59f460d 100644
@@ -59,6 +59,7 @@ obj-$(CONFIG_VIDEO_IMX335) += imx335.o
 obj-$(CONFIG_VIDEO_IMX355) += imx355.o
 obj-$(CONFIG_VIDEO_IMX412) += imx412.o
 obj-$(CONFIG_VIDEO_IMX415) += imx415.o
+obj-$(CONFIG_VIDEO_IMX728) += imx728.o
 obj-$(CONFIG_VIDEO_IR_I2C) += ir-kbd-i2c.o
 obj-$(CONFIG_VIDEO_ISL7998X) += isl7998x.o
 obj-$(CONFIG_VIDEO_KS0127) += ks0127.o
drivers/media/i2c/imx728.c new file +9655 -0

2,961 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

--
2.34.1

Please be aware that this email includes email addresses outside of the organization.

Part of the diff is not shown here. View the raw message.

#9 lore raw
Quoted 17 lines · Sebastian LaVine
drivers/media/i2c/imx728.c new file +17 -0
+static int imx728_detect(struct imx728 *imx728)
+{
+       int ret = 0;
+       u64 minor, major;
+
+       cci_read(imx728->regmap, IMX728_REG_VMAJOR, &major, &ret);
+       if (ret != 0) {
+               dev_err(imx728->dev, "Could not read PARAM_MAJOR_VER!");
+               return ret;
+       }
+       cci_read(imx728->regmap, IMX728_REG_VMINOR, &minor, &ret);
+       if (ret != 0) {
+               dev_err(imx728->dev, "Could not read PARAM_MINOR_VER!");
+               return ret;
+       }
+       dev_dbg(imx728->dev, "Got version: %lld.%lld", major, minor);
+

drivers/media/i2c/imx728.c line 9086

Quoted 10 lines
drivers/media/i2c/imx728.c new file +10 -0
+       return 0;
+}
+
+static int imx728_reset(struct imx728 *imx728)
+{
+
+       int ret = 0;
+
+       // Prefer hardware reset if available.
+       if (!IS_ERR_OR_NULL(imx728->reset_gpio)) {

Here can be ERR (although why?) but...

Quoted 20 lines
drivers/media/i2c/imx728.c new file +20 -0
+               gpiod_set_value_cansleep(imx728->reset_gpio, 1);
+               usleep_range(1000, 10000);
+               gpiod_set_value_cansleep(imx728->reset_gpio, 0);
+               msleep(100);
+       } else {
+               // Software reset.
+               cci_write(imx728->regmap, IMX728_REG_RESET_0, 0xc3, &ret);
+               cci_update_bits(imx728->regmap, IMX728_REG_RESET_1, 0x1, 0x1, &ret);
+               msleep(100);
+       }
+
+       return ret;
+}
+
+static int imx728_power_on(struct imx728 *imx728)
+{
+       int ret;
+
+       ret = clk_prepare_enable(imx728->clk);
+       if (ret < 0)

drivers/media/i2c/imx728.c line 9116

Quoted 10 lines
drivers/media/i2c/imx728.c new file +10 -0
+               return ret;
+
+       imx728_reset(imx728);
+       return 0;
+}
+
+static int imx728_power_off(struct imx728 *imx728)
+{
+
+       if (imx728->reset_gpio) {

Here cannot.

Quoted 8 lines
drivers/media/i2c/imx728.c new file +8 -0
+               gpiod_set_value_cansleep(imx728->reset_gpio, 1);
+
+               usleep_range(1, 10);
+       }
+       clk_disable_unprepare(imx728->clk);
+       return 0;
+}
+

...

drivers/media/i2c/imx728.c line 9323

Quoted 7 lines
drivers/media/i2c/imx728.c new file +7 -0
+
+static int imx728_set_stream(struct v4l2_subdev *sd, int enable)
+{
+       struct imx728 *imx728 = to_imx728(sd);
+       int ret;
+
+       mutex_lock(&imx728->lock);

Just use guard. That's actually perfect candidate.

Quoted 89 lines
drivers/media/i2c/imx728.c new file +89 -0
+       if (imx728->streaming == enable) {
+               mutex_unlock(&imx728->lock);
+               return 0;
+       }
+
+       if (enable) {
+               ret = pm_runtime_get_sync(imx728->dev);
+               if (ret < 0) {
+                       pm_runtime_put_noidle(imx728->dev);
+                       goto err_unlock;
+               }
+
+               ret = imx728_start_stream(imx728);
+               if (ret < 0)
+                       goto err_runtime_put;
+       } else {
+               ret = imx728_stop_stream(imx728);
+               if (ret < 0)
+                       goto err_runtime_put;
+               pm_runtime_mark_last_busy(imx728->dev);
+               pm_runtime_put_autosuspend(imx728->dev);
+       }
+
+       imx728->streaming = enable;
+
+       __v4l2_ctrl_grab(imx728->ctrl.h_flip, enable);
+       __v4l2_ctrl_grab(imx728->ctrl.v_flip, enable);
+
+       mutex_unlock(&imx728->lock);
+
+       return 0;
+
+err_runtime_put:
+       pm_runtime_put(imx728->dev);
+
+err_unlock:
+       mutex_unlock(&imx728->lock);
+       dev_err(imx728->dev,
+               "%s: failed to setup streaming %d\n", __func__, ret);
+       return ret;
+}
+
+static const struct v4l2_subdev_core_ops imx728_core_ops = {
+       .subscribe_event = v4l2_ctrl_subdev_subscribe_event,
+       .unsubscribe_event = v4l2_event_subdev_unsubscribe,
+};
+
+static const struct v4l2_subdev_video_ops imx728_subdev_video_ops = {
+       .s_stream = imx728_set_stream,
+};
+
+static const struct v4l2_subdev_pad_ops imx728_subdev_pad_ops = {
+       .enum_frame_size = imx728_enum_frame_sizes,
+       .enum_mbus_code = imx728_enum_mbus_code,
+       .get_fmt = v4l2_subdev_get_fmt,
+       .get_frame_desc = imx728_get_frame_desc,
+       .get_frame_interval = imx728_get_frame_interval,
+       .get_selection = imx728_get_selection,
+       .set_fmt = imx728_set_fmt,
+       .set_frame_interval = imx728_set_frame_interval,
+       .set_routing = imx728_set_routing,
+};
+
+static const struct v4l2_subdev_ops imx728_subdev_ops = {
+       .core  = &imx728_core_ops,
+       .video = &imx728_subdev_video_ops,
+       .pad   = &imx728_subdev_pad_ops,
+};
+
+static const struct v4l2_subdev_internal_ops imx728_internal_ops = {
+       .init_state = imx728_init_state,
+};
+
+
+static const struct v4l2_ctrl_ops imx728_ctrl_ops = {
+       .s_ctrl = imx728_set_ctrl,
+};
+
+static int imx728_probe(struct i2c_client *client)
+{
+       struct imx728 *imx728;
+       struct v4l2_subdev *sd;
+       struct v4l2_ctrl_handler *ctrl_hdr;
+       int ret;
+
+       imx728 = devm_kzalloc(&client->dev, sizeof(*imx728), GFP_KERNEL);
+       if (!imx728)
+               return -ENOMEM;
+

drivers/media/i2c/imx728.c line 9422

Quoted 10 lines
drivers/media/i2c/imx728.c new file +10 -0
+       imx728->dev = &client->dev;
+
+       imx728->regmap = devm_cci_regmap_init_i2c(client, 16);
+       if (IS_ERR(imx728->regmap))
+               return PTR_ERR(imx728->regmap);
+
+       imx728->reset_gpio = devm_gpiod_get_optional(imx728->dev,
+                                            "reset", GPIOD_OUT_LOW);
+       if (IS_ERR(imx728->reset_gpio))
+               return PTR_ERR(imx728->reset_gpio);

So can it be ERR after that point? Looks like not.

Best regards,
Krzysztof

#10 lore raw
Quoted 51 lines · Krzysztof Kozlowski

Review

Quoted 10 lines · Sebastian LaVine

...

(quoted diff) +7 -0
+static int imx728_reset(struct imx728 *imx728)
+{
+
+       int ret = 0;
+
+       // Prefer hardware reset if available.
+       if (!IS_ERR_OR_NULL(imx728->reset_gpio)) {

Here can be ERR (although why?) but...

Review

Quoted 8 lines
(quoted diff) +5 -0
+               gpiod_set_value_cansleep(imx728->reset_gpio, 1);
 
...
 
+static int imx728_power_off(struct imx728 *imx728)
+{
+
+       if (imx728->reset_gpio) {

Here cannot.

Quoted 26 lines
(quoted diff) +23 -0
+               gpiod_set_value_cansleep(imx728->reset_gpio, 1);
+
+               usleep_range(1, 10);
+       }
+       clk_disable_unprepare(imx728->clk);
+       return 0;
+}
+
 
...
 
+static int imx728_probe(struct i2c_client *client)
+{
+       struct imx728 *imx728;
+       struct v4l2_subdev *sd;
+       struct v4l2_ctrl_handler *ctrl_hdr;
+       int ret;
+
+       imx728 = devm_kzalloc(&client->dev, sizeof(*imx728), GFP_KERNEL);
+       if (!imx728)
+               return -ENOMEM;
+
+       imx728->dev = &client->dev;
+
+       imx728->regmap = devm_cci_regmap_init_i2c(client, 16);
+       if (IS_ERR(imx728->regmap))
Quoted 9 lines

Review

Quoted 6 lines
(quoted diff) +6 -0
+               return PTR_ERR(imx728->regmap);
+
+       imx728->reset_gpio = devm_gpiod_get_optional(imx728->dev,
+                                            "reset", GPIOD_OUT_LOW);
+       if (IS_ERR(imx728->reset_gpio))
+               return PTR_ERR(imx728->reset_gpio);

So can it be ERR after that point? Looks like not.

I see what you mean -- I'll change the check in imx728_reset to a simple null check in v4. Thanks.

Quoted 4 lines

(Jumping back up to previous inline feedback)

...

Quoted 10 lines

Review

Quoted 7 lines
(quoted diff) +7 -0
+
+static int imx728_set_stream(struct v4l2_subdev *sd, int enable)
+{
+       struct imx728 *imx728 = to_imx728(sd);
+       int ret;
+
+       mutex_lock(&imx728->lock);

Just use guard. That's actually perfect candidate.

Okay -- I'll include this change in v4. I'm not so familiar with using this interface, so please let me know if this is incorrect:

drivers/media/i2c/imx728.c +5 -9
index 4a6dfa0a6c58..d7d62e9917a4 100644
@@ -9320,17 +9320,16 @@ static int imx728_set_stream(struct v4l2_subdev *sd, int enable)
        struct imx728 *imx728 = to_imx728(sd);
        int ret;
 
-       mutex_lock(&imx728->lock);
+       guard(mutex)(&imx728->lock);
+
-       if (imx728->streaming == enable) {
+       if (imx728->streaming == enable)
-               mutex_unlock(&imx728->lock);
                return 0;
-       }
 
        if (enable) {
                ret = pm_runtime_get_sync(imx728->dev);
                if (ret < 0) {
                        pm_runtime_put_noidle(imx728->dev);
-                       goto err_unlock;
+                       goto err;
                }
 
                ret = imx728_start_stream(imx728);
@@ -9349,15 +9348,12 @@ static int imx728_set_stream(struct v4l2_subdev *sd, int enable)
        __v4l2_ctrl_grab(imx728->ctrl.h_flip, enable);
        __v4l2_ctrl_grab(imx728->ctrl.v_flip, enable);
 
-       mutex_unlock(&imx728->lock);
-
        return 0;
 
 err_runtime_put:
        pm_runtime_put(imx728->dev);
 
-err_unlock:
-       mutex_unlock(&imx728->lock);
+err:
        dev_err(imx728->dev,
                "%s: failed to setup streaming %d\n", __func__, ret);
        return ret;

Thanks,

--
Sebastian

Please be aware that this email includes email addresses outside of the organization.

#11 lore raw
Quoted 13 lines · Sebastian LaVine
Quoted 12 lines

...

Review

Quoted 7 lines
(quoted diff) +7 -0
+
+static int imx728_set_stream(struct v4l2_subdev *sd, int enable)
+{
+       struct imx728 *imx728 = to_imx728(sd);
+       int ret;
+
+       mutex_lock(&imx728->lock);

Just use guard. That's actually perfect candidate.

Quoted 3 lines

Okay -- I'll include this change in v4. I'm not so familiar with using this interface, so please let me know if this is incorrect:

Yes, looks fine.

Best regards,
Krzysztof

#12 lore raw
In reply to Sebastian LaVine

Hi Sebastian,

Thank you for the patch.

I'll start with a partial review.

Quoted 12 lines · Sebastian LaVine

Adds a driver for the Sony IMX728 image sensor.

---
 MAINTAINERS                  |    1 +
 arch/arm64/configs/defconfig |    1 +
 drivers/media/i2c/Kconfig    |   12 +
 drivers/media/i2c/Makefile   |    1 +
 drivers/media/i2c/imx728.c   | 9655 ++++++++++++++++++++++++++++++++++
 5 files changed, 9670 insertions(+)
 create mode 100644 drivers/media/i2c/imx728.c

[snip]

Quoted 12 lines
drivers/media/i2c/imx728.c new file +6 -0
new file mode 100644
index 000000000000..75120ca01ce6
@@ -0,0 +1,9655 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Sony IMX728 CMOS Image Sensor Driver
+ *
+ * Copyright (c) 2024-2025 Define Design Deploy Corp
+ */

[snip]

Quoted 1 line

+static const struct cci_reg_sequence imx728_wdr_12bit_3856x2176[] = {

This table is way too big, with over 8000 entries. Some are even duplicated, with identical or different values for the same register. It will take more than a second at 400kHz to program this.

At the very least I would expect a way to compact the table and make use of I2C register address auto-increment. Default power-up values should also likely be just dropped.

I haven't checked in details, but doesn't this table also contain tuning data for your specific camera ?

[snip]

Quoted 1 line

+};

[snip]

Quoted 29 lines
drivers/media/i2c/imx728.c new file +29 -0
+static int imx728_get_frame_interval(struct v4l2_subdev *sd,
+                                    struct v4l2_subdev_state *sd_state,
+                                    struct v4l2_subdev_frame_interval *fi)
+{
+       struct imx728 *imx728 = to_imx728(sd);
+
+       fi->interval.numerator = 1;
+       fi->interval.denominator = imx728->fps;
+       return 0;
+}
+
+static int imx728_set_frame_interval(struct v4l2_subdev *sd,
+                                    struct v4l2_subdev_state *sd_state,
+                                    struct v4l2_subdev_frame_interval *fi)
+{
+       struct imx728 *imx728 = to_imx728(sd);
+       u32 req_fps;
+
+       mutex_lock(&imx728->lock);
+
+       if (fi->interval.numerator == 0 || fi->interval.denominator == 0) {
+               fi->interval.denominator = IMX728_FRAMERATE_DEFAULT;
+               fi->interval.numerator = 1;
+       }
+
+       req_fps = clamp_val(DIV_ROUND_CLOSEST(fi->interval.denominator,
+                                             fi->interval.numerator),
+                           IMX728_FRAMERATE_MIN, IMX728_FRAMERATE_MAX);
+

drivers/media/i2c/imx728.c line 9163

Quoted 10 lines
drivers/media/i2c/imx728.c new file +10 -0
+       fi->interval.numerator = 1;
+       fi->interval.denominator = req_fps;
+
+       imx728->fps = req_fps;
+
+       mutex_unlock(&imx728->lock);
+       dev_dbg(imx728->dev, "%s frame rate = %d\n", __func__, imx728->fps);
+
+       return 0;
+}

The frame rate on raw sensors is controlled through h/v blanking. You can drop thse functions, especially given that imx728->fps isn't used anywhere else.

Signature · 3 lines
Regards,

Laurent Pinchart
#13 lore raw
Quoted 9 lines · Laurent Pinchart

...

Quoted 1 line

+static const struct cci_reg_sequence imx728_wdr_12bit_3856x2176[] = {

This table is way too big, with over 8000 entries. Some are even duplicated, with identical or different values for the same register. It will take more than a second at 400kHz to program this.

Quoted 7 lines

At the very least I would expect a way to compact the table and make use of I2C register address auto-increment. Default power-up values should also likely be just dropped.

I haven't checked in details, but doesn't this table also contain tuning data for your specific camera ?

In my testing, it takes around two seconds to write this table to the sensor.

I can investigate how to condense the table further, though the registers for this sensor are more complex than just writing values to addresses. The meaning of certain address writes depend on previous writes -- thus the "duplicated" writes you mentioned.

I do not believe this table contains tuning information for our camera module in particular.

Quoted 41 lines

[snip]

Quoted 1 line

+};

[snip]

Quoted 35 lines
drivers/media/i2c/imx728.c new file +35 -0
+static int imx728_get_frame_interval(struct v4l2_subdev *sd,
+                                    struct v4l2_subdev_state *sd_state,
+                                    struct v4l2_subdev_frame_interval *fi)
+{
+       struct imx728 *imx728 = to_imx728(sd);
+
+       fi->interval.numerator = 1;
+       fi->interval.denominator = imx728->fps;
+       return 0;
+}
+
+static int imx728_set_frame_interval(struct v4l2_subdev *sd,
+                                    struct v4l2_subdev_state *sd_state,
+                                    struct v4l2_subdev_frame_interval *fi)
+{
+       struct imx728 *imx728 = to_imx728(sd);
+       u32 req_fps;
+
+       mutex_lock(&imx728->lock);
+
+       if (fi->interval.numerator == 0 || fi->interval.denominator == 0) {
+               fi->interval.denominator = IMX728_FRAMERATE_DEFAULT;
+               fi->interval.numerator = 1;
+       }
+
+       req_fps = clamp_val(DIV_ROUND_CLOSEST(fi->interval.denominator,
+                                             fi->interval.numerator),
+                           IMX728_FRAMERATE_MIN, IMX728_FRAMERATE_MAX);
+
+       fi->interval.numerator = 1;
+       fi->interval.denominator = req_fps;
+
+       imx728->fps = req_fps;
+
+       mutex_unlock(&imx728->lock);
Quoted 8 lines

drivers/media/i2c/imx728.c line 9163

Quoted 4 lines
drivers/media/i2c/imx728.c new file +4 -0
+       dev_dbg(imx728->dev, "%s frame rate = %d\n", __func__, imx728->fps);
+
+       return 0;
+}

The frame rate on raw sensors is controlled through h/v blanking. You can drop thse functions, especially given that imx728->fps isn't used anywhere else.

Okay, I will drop these functions in v4. Thanks.

--
Sebastian

Please be aware that this email includes email addresses outside of the organization.

maintainer
#14 lore raw

Hi Sebastian,

Quoted 20 lines · Sebastian LaVine
Quoted 9 lines · Laurent Pinchart

...

Quoted 1 line

+static const struct cci_reg_sequence imx728_wdr_12bit_3856x2176[] = {

This table is way too big, with over 8000 entries. Some are even duplicated, with identical or different values for the same register. It will take more than a second at 400kHz to program this.

Quoted 7 lines

At the very least I would expect a way to compact the table and make use of I2C register address auto-increment. Default power-up values should also likely be just dropped.

I haven't checked in details, but doesn't this table also contain tuning data for your specific camera ?

In my testing, it takes around two seconds to write this table to the sensor.

Quoted 7 lines

I can investigate how to condense the table further, though the registers for this sensor are more complex than just writing values to addresses. The meaning of certain address writes depend on previous writes -- thus the "duplicated" writes you mentioned.

I do not believe this table contains tuning information for our camera module in particular.

The amount of the data is significantly higher than what sensors mostly have for configuring the analogue processing and does not look like executable code either (I've seen that, too).

Any idea what that data is?

Signature · 3 lines
Kind regards,

Sakari Ailus
#15 lore raw
In reply to Sebastian LaVine
Quoted 17 lines · Sebastian LaVine
MAINTAINERS +1 -0
index 50bff3558d7d..27fb3c1be732 100644
@@ -21890,6 +21890,7 @@ M:      Stuart Burtner <[email protected]>
 L:     [email protected]
 S:     Odd Fixes
 F:     Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
+F:     drivers/media/i2c/imx728.c
 
 SONY MEMORYSTICK SUBSYSTEM
 M:     Maxim Levitsky <[email protected]>
arch/arm64/configs/defconfig +0 -0
index c62831e61586..0ff578bb4645 100644

arch/arm64/configs/defconfig CONFIG_VIDEO_TI_J721E_CSI2RX=m · line 856

Quoted 5 lines
arch/arm64/configs/defconfig +1 -0
@@ -852,6 +852,7 @@ CONFIG_VIDEO_TI_J721E_CSI2RX=m
 CONFIG_VIDEO_HANTRO=m
 CONFIG_VIDEO_IMX219=m
 CONFIG_VIDEO_IMX412=m
+CONFIG_VIDEO_IMX728=m
 CONFIG_VIDEO_OV5640=m

This is not related to this patch and should target different subsystem with its own explanation why you thing this should be in common defconfig.

Best regards,
Krzysztof

#16 lore raw
Quoted 16 lines · Krzysztof Kozlowski

...

arch/arm64/configs/defconfig CONFIG_VIDEO_TI_J721E_CSI2RX=m · line 856

Quoted 10 lines
arch/arm64/configs/defconfig +1 -0
index c62831e61586..0ff578bb4645 100644
@@ -852,6 +852,7 @@ CONFIG_VIDEO_TI_J721E_CSI2RX=m
 CONFIG_VIDEO_HANTRO=m
 CONFIG_VIDEO_IMX219=m
 CONFIG_VIDEO_IMX412=m
+CONFIG_VIDEO_IMX728=m
 CONFIG_VIDEO_OV5640=m

This is not related to this patch and should target different subsystem with its own explanation why you thing this should be in common defconfig.

Thanks, I will remove this in v4.

-Sebastian
Please be aware that this email includes email addresses outside of the organization.

#17 lore raw
In reply to Sebastian LaVine
Quoted 1 line

Adds a driver for the Sony IMX728 image sensor.

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.14-rc3#n94

…

Quoted 2 lines

+++ b/drivers/media/i2c/imx728.c

(quoted diff) +0 -0
@@ -0,0 +1,9655 @@

…

Quoted 6 lines
drivers/media/i2c/imx728.c new file +6 -0
+static int imx728_set_stream(struct v4l2_subdev *sd, int enable)
+{
+       struct imx728 *imx728 = to_imx728(sd);
+       int ret;
+
+       mutex_lock(&imx728->lock);

…

drivers/media/i2c/imx728.c line 9352

Quoted 3 lines
drivers/media/i2c/imx728.c new file +3 -0
+       __v4l2_ctrl_grab(imx728->ctrl.v_flip, enable);
+
+       mutex_unlock(&imx728->lock);

…

Under which circumstances would you become interested to apply a statement like “guard(mutex)(&imx728->lock);”?
https://elixir.bootlin.com/linux/v6.14-rc3/source/include/linux/mutex.h#L201

Regards,
Markus

#18 lore raw

Hello Markus,

Quoted 4 lines · Markus Elfring
Quoted 1 line

Adds a driver for the Sony IMX728 image sensor.

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.14-rc3#n94

Thanks, I'll modify the commit description in v4 to use the imperative mood.

Quoted 12 lines

…

Quoted 2 lines

+++ b/drivers/media/i2c/imx728.c

(quoted diff) +0 -0
@@ -0,0 +1,9655 @@

…

Quoted 6 lines
drivers/media/i2c/imx728.c new file +6 -0
+static int imx728_set_stream(struct v4l2_subdev *sd, int enable)
+{
+       struct imx728 *imx728 = to_imx728(sd);
+       int ret;
+
+       mutex_lock(&imx728->lock);

…

Quoted 8 lines

drivers/media/i2c/imx728.c line 9352

Quoted 3 lines
drivers/media/i2c/imx728.c new file +3 -0
+       __v4l2_ctrl_grab(imx728->ctrl.v_flip, enable);
+
+       mutex_unlock(&imx728->lock);

…

Under which circumstances would you become interested to apply a statement like “guard(mutex)(&imx728->lock);”?
https://elixir.bootlin.com/linux/v6.14-rc3/source/include/linux/mutex.h#L201

I will use this construct in v4.

Thanks,

--
Sebastian

Please be aware that this email includes email addresses outside of the organization.

#19 lore raw

PATCH 3/4 arm64: dts: ti: k3-am62a7-sk: Add overlay for fusion 2 board

In reply to Sebastian LaVine

Adds an overlay for the Fusion 2 (FPD-Link IV) board on SK-AM62A.

---
 MAINTAINERS                                   |   1 +
 arch/arm64/boot/dts/ti/Makefile               |   1 +
 .../boot/dts/ti/k3-am62a7-sk-fusion-2.dtso    | 115 ++++++++++++++++++
 3 files changed, 117 insertions(+)
 create mode 100644 arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso
MAINTAINERS +1 -0
index 27fb3c1be732..bf6a48da0887 100644
@@ -21890,6 +21890,7 @@ M:      Stuart Burtner <[email protected]>
 L:     [email protected]
 S:     Odd Fixes
 F:     Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
+F:     arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso
 F:     drivers/media/i2c/imx728.c
 
 SONY MEMORYSTICK SUBSYSTEM
arch/arm64/boot/dts/ti/Makefile +1 -0
index f71360f14f23..fcd8d11e5678 100644
@@ -31,6 +31,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk-nand.dtbo
 # Boards with AM62Ax SoC
 dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk.dtb
 dtb-$(CONFIG_ARCH_K3) += k3-am62a7-phyboard-lyra-rdk.dtb
+dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk-fusion-2.dtbo
 
 # Boards with AM62Px SoC
 dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb
arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso new file +115 -0

115 lines not on this page · raw message

--
2.34.1

Please be aware that this email includes email addresses outside of the organization.

#20 lore raw

Re: [PATCH 3/4] arm64: dts: ti: k3-am62a7-sk: Add overlay for fusion 2 board

Quoted 18 lines · Sebastian LaVine
MAINTAINERS +1 -0
index 27fb3c1be732..bf6a48da0887 100644
@@ -21890,6 +21890,7 @@ M:      Stuart Burtner <[email protected]>
 L:     [email protected]
 S:     Odd Fixes
 F:     Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
+F:     arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso
 F:     drivers/media/i2c/imx728.c
 
 SONY MEMORYSTICK SUBSYSTEM
arch/arm64/boot/dts/ti/Makefile +0 -0
index f71360f14f23..fcd8d11e5678 100644

arch/arm64/boot/dts/ti/Makefile dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk-nand.dtbo · line 34

Quoted 4 lines
arch/arm64/boot/dts/ti/Makefile +1 -0
@@ -31,6 +31,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk-nand.dtbo
 # Boards with AM62Ax SoC
 dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk.dtb
 dtb-$(CONFIG_ARCH_K3) += k3-am62a7-phyboard-lyra-rdk.dtb
+dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk-fusion-2.dtbo

I don't see the overlay being applied.

Quoted 48 lines
arch/arm64/boot/dts/ti/Makefile +0 -0
 # Boards with AM62Px SoC
 dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb
arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso new file +39 -0
new file mode 100644
index 000000000000..68e06d643bfd
@@ -0,0 +1,115 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * DT Overlay for Fusion 2 (FPD-Link IV) board on SK-AM62A
+ * https://www.ti.com/tool/J7EXPAXEVM/
+ *
+ * Copyright (C) 2024 D3 Embedded - https://www.d3embedded.com
+ */
+
+ /dts-v1/;
+ /plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+
+&{/} {
+       clk_fusion2_25M_fixed: fixed-clock-25M {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <25000000>;
+       };
+};
+
+&exp2 {
+       p9-hog {
+               /* P9 - CSI_RSTz */
+               gpio-hog;
+               gpios = <9 GPIO_ACTIVE_HIGH>;
+               output-high;
+               line-name = "CSI_RSTz";
+       };
+
+       p19-hog {
+               /* P19 -CSI_SEL2 */
+               gpio-hog;
+               gpios = <19 GPIO_ACTIVE_HIGH>;
+               output-low;
+               line-name = "CSI_SEL2";
+       };
+};
+

arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso line 49

Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso new file +10 -0
+&main_i2c2 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       status = "okay";
+
+       i2c-switch@71 {
+               compatible = "nxp,pca9543";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x71>;

reg is always the second property. See DTS coding style.

Best regards,
Krzysztof

#21 lore raw

Re: [PATCH 3/4] arm64: dts: ti: k3-am62a7-sk: Add overlay for fusion 2 board

Quoted 4 lines · Krzysztof Kozlowski
Quoted 3 lines · Sebastian LaVine

...

Quoted 9 lines

arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso line 49

Quoted 6 lines
arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso new file +6 -0
+
+       i2c-switch@71 {
+               compatible = "nxp,pca9543";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x71>;

reg is always the second property. See DTS coding style.

Ack, will fix in v4.

--
Sebastian

Please be aware that this email includes email addresses outside of the organization.

maintainer
#22 lore raw

Re: [PATCH 3/4] arm64: dts: ti: k3-am62a7-sk: Add overlay for fusion 2 board

In reply to Sebastian LaVine
Quoted 16 lines · Sebastian LaVine

Adds an overlay for the Fusion 2 (FPD-Link IV) board on SK-AM62A.

---
 MAINTAINERS                                   |   1 +
 arch/arm64/boot/dts/ti/Makefile               |   1 +
 .../boot/dts/ti/k3-am62a7-sk-fusion-2.dtso    | 115 ++++++++++++++++++
 3 files changed, 117 insertions(+)
 create mode 100644 arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso
MAINTAINERS +0 -0
index 27fb3c1be732..bf6a48da0887 100644

MAINTAINERS M: Stuart Burtner <[email protected]> · line 21893

Quoted 4 lines
MAINTAINERS +1 -0
@@ -21890,6 +21890,7 @@ M:      Stuart Burtner <[email protected]>
 L:     [email protected]
 S:     Odd Fixes
 F:     Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
+F:     arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso

NAK. please do not send overlays from media tree. they should go via SoC ARM tree.

Quoted 21 lines
MAINTAINERS +0 -0
 F:     drivers/media/i2c/imx728.c
 
 SONY MEMORYSTICK SUBSYSTEM
arch/arm64/boot/dts/ti/Makefile +1 -0
index f71360f14f23..fcd8d11e5678 100644
@@ -31,6 +31,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk-nand.dtbo
 # Boards with AM62Ax SoC
 dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk.dtb
 dtb-$(CONFIG_ARCH_K3) += k3-am62a7-phyboard-lyra-rdk.dtb
+dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk-fusion-2.dtbo
 
 # Boards with AM62Px SoC
 dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb
arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso new file +0 -0
new file mode 100644
index 000000000000..68e06d643bfd

arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso line 1

Quoted 1 line
arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso new file +1 -0
@@ -0,0 +1,115 @@
+// SPDX-License-Identifier: GPL-2.0

Would prefer GPL-2.0 OR MIT in line with rest of TI EVM licensing for DT.

arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso line 13

Quoted 12 lines
arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso new file +12 -0
+/*
+ * DT Overlay for Fusion 2 (FPD-Link IV) board on SK-AM62A
+ * https://www.ti.com/tool/J7EXPAXEVM/
+ *
+ * Copyright (C) 2024 D3 Embedded - https://www.d3embedded.com
+ */
+
+ /dts-v1/;
+ /plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+

That said, the fusion-2 board interfaces with a bunch of evms as well. wondering if we should re-organize to better reuse stuff.

Quoted 105 lines
arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso new file +102 -1
+&{/} {
+       clk_fusion2_25M_fixed: fixed-clock-25M {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <25000000>;
+       };
+};
+
+&exp2 {
+       p9-hog {
+               /* P9 - CSI_RSTz */
+               gpio-hog;
+               gpios = <9 GPIO_ACTIVE_HIGH>;
+               output-high;
+               line-name = "CSI_RSTz";
+       };
+
+       p19-hog {
+               /* P19 -CSI_SEL2 */
+               gpio-hog;
+               gpios = <19 GPIO_ACTIVE_HIGH>;
+               output-low;
+               line-name = "CSI_SEL2";
+       };
+};
+
+&main_i2c2 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       status = "okay";
+
+       i2c-switch@71 {
+               compatible = "nxp,pca9543";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x71>;
+
+               i2c@1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+
+                       deser@3d {
+                               compatible = "ti,ds90ub9702-q1";
+                               reg = <0x3d>;
+
+                               clock-names = "refclk";
+                               clocks = <&clk_fusion2_25M_fixed>;
+
+                               i2c-alias-pool = <0x4a 0x4b 0x4c 0x4d 0x4e 0x4f>;
+
+                               ds90ub9702_0_ports: ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       /* CSI-2 TX */
+                                       port@4 {
+                                               reg = <4>;
+                                               ds90ub9702_0_csi_out: endpoint {
+                                                       data-lanes = <1 2 3 4>;
+                                                       clock-lanes = <0>;
+                                                       link-frequencies = /bits/ 64 <800000000>;
+                                                       remote-endpoint = <&csi2_phy0>;
+                                               };
+                                       };
+                               };
+
+                               ds90ub9702_0_links: links {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                               };
+                       };
+               };
+       };
+};
+
+&cdns_csi2rx0 {
+       ports {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               csi0_port0: port@0 {
+                       reg = <0>;
+                       status = "okay";
+
+                       csi2_phy0: endpoint {
+                               remote-endpoint = <&ds90ub9702_0_csi_out>;
+                               data-lanes = <1 2 3 4>;
+                               clock-lanes = <0>;
+                               link-frequencies = /bits/ 64 <800000000>;
+                       };
+               };
+       };
+};
+
+&ti_csi2rx0 {
+       status = "okay";
+};
+
+&dphy0 {
+       status = "okay";
+};
--

2.34.1

Quoted 1 line

Please be aware that this email includes email addresses outside of the organization.

Drop this. this is already a public mailing list :)

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#23 lore raw

Re: [PATCH 3/4] arm64: dts: ti: k3-am62a7-sk: Add overlay for fusion 2 board

Hello Nishanth,

Quoted 12 lines · Nishanth Menon
Quoted 11 lines · Sebastian LaVine

Adds an overlay for the Fusion 2 (FPD-Link IV) board on SK-AM62A.

---
 MAINTAINERS                                   |   1 +
 arch/arm64/boot/dts/ti/Makefile               |   1 +
 .../boot/dts/ti/k3-am62a7-sk-fusion-2.dtso    | 115 ++++++++++++++++++
 3 files changed, 117 insertions(+)
 create mode 100644 arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso
Quoted 12 lines

MAINTAINERS M: Stuart Burtner <[email protected]> · line 21893

Quoted 9 lines
MAINTAINERS +1 -0
index 27fb3c1be732..bf6a48da0887 100644
@@ -21890,6 +21890,7 @@ M:      Stuart Burtner <[email protected]>
 L:     [email protected]
 S:     Odd Fixes
 F:     Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
+F:     arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso

NAK. please do not send overlays from media tree. they should go via SoC ARM tree.

Ack, will send as separate series in v4.

Quoted 14 lines

arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso line 1

Quoted 10 lines

...

arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso new file +1 -0
new file mode 100644
index 000000000000..68e06d643bfd
@@ -0,0 +1,115 @@
+// SPDX-License-Identifier: GPL-2.0

Would prefer GPL-2.0 OR MIT in line with rest of TI EVM licensing for DT.

Ack, will fix in v4.

Quoted 9 lines
Quoted 7 lines

...

--
2.34.1

Please be aware that this email includes email addresses outside of the organization.

Drop this. this is already a public mailing list :)

I'll look into b4 relay for future patches to get around this.

Thanks,

--
Sebastian

Please be aware that this email includes email addresses outside of the organization.

#24 lore raw

Re: [PATCH 3/4] arm64: dts: ti: k3-am62a7-sk: Add overlay for fusion 2 board

In reply to Sebastian LaVine

Hi Sebastian,

Quoted 2 lines · Sebastian LaVine

Adds an overlay for the Fusion 2 (FPD-Link IV) board on SK-AM62A.

Were you able to test and get this working without additional patches on linux-next?

The multi-steam support for J721E-CSI2RX and CDNS-CSI2RX drivers are still WIP [1] and as per my understanding you will need those to get this overlay functional.

1 - https://lore.kernel.org/all/[email protected]/

Thanks and Regards,
Vaishnav

Quoted 158 lines
---
  MAINTAINERS                                   |   1 +
  arch/arm64/boot/dts/ti/Makefile               |   1 +
  .../boot/dts/ti/k3-am62a7-sk-fusion-2.dtso    | 115 ++++++++++++++++++
  3 files changed, 117 insertions(+)

create mode 100644 arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso

MAINTAINERS +1 -0
index 27fb3c1be732..bf6a48da0887 100644
@@ -21890,6 +21890,7 @@ M:      Stuart Burtner <[email protected]>
  L:     [email protected]
  S:     Odd Fixes
  F:     Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
+F:     arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso
  F:     drivers/media/i2c/imx728.c
 
  SONY MEMORYSTICK SUBSYSTEM
arch/arm64/boot/dts/ti/Makefile +1 -0
index f71360f14f23..fcd8d11e5678 100644
@@ -31,6 +31,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk-nand.dtbo
  # Boards with AM62Ax SoC
  dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk.dtb
  dtb-$(CONFIG_ARCH_K3) += k3-am62a7-phyboard-lyra-rdk.dtb
+dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk-fusion-2.dtbo
 
  # Boards with AM62Px SoC
  dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb
arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso new file +115 -1
new file mode 100644
index 000000000000..68e06d643bfd
@@ -0,0 +1,115 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * DT Overlay for Fusion 2 (FPD-Link IV) board on SK-AM62A
+ * https://www.ti.com/tool/J7EXPAXEVM/
+ *
+ * Copyright (C) 2024 D3 Embedded - https://www.d3embedded.com
+ */
+
+ /dts-v1/;
+ /plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+
+&{/} {
+       clk_fusion2_25M_fixed: fixed-clock-25M {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <25000000>;
+       };
+};
+
+&exp2 {
+       p9-hog {
+               /* P9 - CSI_RSTz */
+               gpio-hog;
+               gpios = <9 GPIO_ACTIVE_HIGH>;
+               output-high;
+               line-name = "CSI_RSTz";
+       };
+
+       p19-hog {
+               /* P19 -CSI_SEL2 */
+               gpio-hog;
+               gpios = <19 GPIO_ACTIVE_HIGH>;
+               output-low;
+               line-name = "CSI_SEL2";
+       };
+};
+
+&main_i2c2 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       status = "okay";
+
+       i2c-switch@71 {
+               compatible = "nxp,pca9543";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               reg = <0x71>;
+
+               i2c@1 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       reg = <1>;
+
+                       deser@3d {
+                               compatible = "ti,ds90ub9702-q1";
+                               reg = <0x3d>;
+
+                               clock-names = "refclk";
+                               clocks = <&clk_fusion2_25M_fixed>;
+
+                               i2c-alias-pool = <0x4a 0x4b 0x4c 0x4d 0x4e 0x4f>;
+
+                               ds90ub9702_0_ports: ports {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       /* CSI-2 TX */
+                                       port@4 {
+                                               reg = <4>;
+                                               ds90ub9702_0_csi_out: endpoint {
+                                                       data-lanes = <1 2 3 4>;
+                                                       clock-lanes = <0>;
+                                                       link-frequencies = /bits/ 64 <800000000>;
+                                                       remote-endpoint = <&csi2_phy0>;
+                                               };
+                                       };
+                               };
+
+                               ds90ub9702_0_links: links {
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                               };
+                       };
+               };
+       };
+};
+
+&cdns_csi2rx0 {
+       ports {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               csi0_port0: port@0 {
+                       reg = <0>;
+                       status = "okay";
+
+                       csi2_phy0: endpoint {
+                               remote-endpoint = <&ds90ub9702_0_csi_out>;
+                               data-lanes = <1 2 3 4>;
+                               clock-lanes = <0>;
+                               link-frequencies = /bits/ 64 <800000000>;
+                       };
+               };
+       };
+};
+
+&ti_csi2rx0 {
+       status = "okay";
+};
+
+&dphy0 {
+       status = "okay";
+};
--

2.34.1

Please be aware that this email includes email addresses outside of the organization.

#25 lore raw

Re: [PATCH 3/4] arm64: dts: ti: k3-am62a7-sk: Add overlay for fusion 2 board

Quoted 9 lines · Vaishnav Achath

Hi Sebastian,

Quoted 2 lines · Sebastian LaVine

Adds an overlay for the Fusion 2 (FPD-Link IV) board on SK-AM62A.

Were you able to test and get this working without additional patches on linux-next?

Quoted 6 lines

The multi-steam support for J721E-CSI2RX and CDNS-CSI2RX drivers are still WIP [1] and as per my understanding you will need those to get this overlay functional.

1 -
https://lore.kernel.org/all/[email protected]/

Thanks for this -- I'll hold off on the overlays for the next series revision.

--

Sebastian

Please be aware that this email includes email addresses outside of the organization.

#27 lore raw

Re: [PATCH 3/4] arm64: dts: ti: k3-am62a7-sk: Add overlay for fusion 2 board

Hi Tomi,

Quoted 10 lines · Tomi Valkeinen

Hi,

Quoted 2 lines · Sebastian LaVine

+ * DT Overlay for Fusion 2 (FPD-Link IV) board on SK-AM62A
+ * https://www.ti.com/tool/J7EXPAXEVM/

The link doesn't work.

Tomi

Thanks, I'll use the corrected link[0] in v4.

https://www.ti.com/tool/J7EXPA01EVM

--
Sebastian

Please be aware that this email includes email addresses outside of the organization.

#28 lore raw

PATCH 4/4 arm64: dts: ti: Add overlays for IMX728 RCM

In reply to Sebastian LaVine

Adds overlays for the D3 IMX728 RCM.

Only a connection on port 0 is currently supported.

---
 MAINTAINERS                                   |   1 +
 arch/arm64/boot/dts/ti/Makefile               |   3 +
 .../dts/ti/k3-fpdlink-imx728-rcm-0-0.dtso     | 108 ++++++++++++++++++
 3 files changed, 112 insertions(+)
 create mode 100644 arch/arm64/boot/dts/ti/k3-fpdlink-imx728-rcm-0-0.dtso
MAINTAINERS +1 -0
index bf6a48da0887..f109b5dc8fa5 100644
@@ -21891,6 +21891,7 @@ L:      [email protected]
 S:     Odd Fixes
 F:     Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
 F:     arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso
+F:     arch/arm64/boot/dts/ti/k3-fpdlink-imx728-rcm-0-0.dtso
 F:     drivers/media/i2c/imx728.c
 
 SONY MEMORYSTICK SUBSYSTEM
arch/arm64/boot/dts/ti/Makefile +3 -0
index fcd8d11e5678..6c8bbea246f1 100644
@@ -240,6 +240,9 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \
        k3-j784s4-evm-quad-port-eth-exp1.dtb \
        k3-j784s4-evm-usxgmii-exp1-exp2.dtb
 
+# FPDLink Sensors
+dtb-$(CONFIG_ARCH_K3) += k3-fpdlink-imx728-rcm-0-0.dtbo
+
 # Enable support for device-tree overlays
 DTC_FLAGS_k3-am625-beagleplay += -@
 DTC_FLAGS_k3-am625-phyboard-lyra-rdk += -@
arch/arm64/boot/dts/ti/k3-fpdlink-imx728-rcm-0-0.dtso new file +108 -0

108 lines not on this page · raw message

--
2.34.1

Please be aware that this email includes email addresses outside of the organization.

maintainer
#29 lore raw

Re: [PATCH 4/4] arm64: dts: ti: Add overlays for IMX728 RCM

Quoted 18 lines · Sebastian LaVine

Adds overlays for the D3 IMX728 RCM.

Only a connection on port 0 is currently supported.

---
 MAINTAINERS                                   |   1 +
 arch/arm64/boot/dts/ti/Makefile               |   3 +
 .../dts/ti/k3-fpdlink-imx728-rcm-0-0.dtso     | 108 ++++++++++++++++++
 3 files changed, 112 insertions(+)
 create mode 100644 arch/arm64/boot/dts/ti/k3-fpdlink-imx728-rcm-0-0.dtso
MAINTAINERS +0 -0
index bf6a48da0887..f109b5dc8fa5 100644

MAINTAINERS L: [email protected] · line 21894

Quoted 4 lines
MAINTAINERS +1 -0
@@ -21891,6 +21891,7 @@ L:      [email protected]
 S:     Odd Fixes
 F:     Documentation/devicetree/bindings/media/i2c/sony,imx728.yaml
 F:     arch/arm64/boot/dts/ti/k3-am62a7-sk-fusion-2.dtso
+F:     arch/arm64/boot/dts/ti/k3-fpdlink-imx728-rcm-0-0.dtso

Please route dts via SoC tree.

Quoted 8 lines
MAINTAINERS +0 -0
 F:     drivers/media/i2c/imx728.c
 
 SONY MEMORYSTICK SUBSYSTEM
arch/arm64/boot/dts/ti/Makefile +0 -0
index fcd8d11e5678..6c8bbea246f1 100644
@@ -240,6 +240,9 @@ dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \

[...]

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#30 lore raw
In reply to Sebastian LaVine
Quoted 5 lines · Sebastian LaVine

This series adds a V4L2 sensor driver for the Sony IMX728, and related devicetree overlays.

v4l2-compliance 1.26.1-5142, 64 bits, 64-bit time_t v4l2-compliance SHA: 4aee01a02792 2023-12-12 21:40:38

Your Cc list is neither correct (incorrect my email) nor reasonable size. You cc-ed several maintainers which are not responsible for these files.

For next version or any resend:

Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument, so you will not CC people just because they made one commit years ago). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Tools like b4 or scripts/get_maintainer.pl provide you proper list of people, so fix your workflow. Tools might also fail if you work on some ancient tree (don't, instead use mainline) or work on fork of kernel (don't, instead use mainline). Just use b4 and everything should be fine, although remember about b4 prep --auto-to-cc if you added new patches to the patchset.

Best regards,
Krzysztof

#31 lore raw

Hello Krzysztof,

Quoted 11 lines · Krzysztof Kozlowski
Quoted 5 lines · Sebastian LaVine

This series adds a V4L2 sensor driver for the Sony IMX728, and related devicetree overlays.

v4l2-compliance 1.26.1-5142, 64 bits, 64-bit time_t v4l2-compliance SHA: 4aee01a02792 2023-12-12 21:40:38

Your Cc list is neither correct (incorrect my email) nor reasonable size. You cc-ed several maintainers which are not responsible for these files.

Quoted 8 lines

For next version or any resend:

Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument, so you will not CC people just because they made one commit years ago). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Apologies for the extra noise -- the list of folks I CC'd was obtained using scripts/get_maintainers.pl, and the impression I got from the documentation was that all of the people that are listed from that command should be CC'd. I will be sure to prune the list more strictly next time.

Thanks,
Sebastian
Please be aware that this email includes email addresses outside of the organization.

#32 lore raw
In reply to Sebastian LaVine

Hi Sebastian,

Quoting Sebastian LaVine (2025-02-12 19:56:52)
<snip>

Quoted 7 lines

Total for device /dev/v4l-subdev4: 44, Succeeded: 44, Failed: 0, Warnings: 0

This is a v3 of a series that was originally sent last summer[0].

[0]: https://lore.kernel.org/r/linux-media/[email protected]/

This version of the driver was authored by "Spencer Hill <[email protected]>" who seems to no longer be credited. Is this intentional?

Does his original Signed-off-by: tag need to be kept at least ? Or perhaps Co-Authored-by: ?

--
Kieran

Quoted 17 lines

v2 -> v3:
- Update maintainer
- Update bindings example
- Add devicetree overlays
- The driver now supports SRGGB12_1X12, not SRGGB10_1X10
- The driver now outputs at 3856x2176, not 2840x2160
- Fixed exposure, again controls
- Removed duplicate register writes (removed repeat HDR writes, etc)
- Fixed imx728_wait_for_state use of the cci_* API
- Re-added _imx728_set_routing (necessary for imx728_init_state)

Sebastian LaVine (4):
media: dt-bindings: Add Sony IMX728
media: i2c: Add driver for Sony IMX728
arm64: dts: ti: k3-am62a7-sk: Add overlay for fusion 2 board
arm64: dts: ti: Add overlays for IMX728 RCM

#33 lore raw

Hello Kieran,

Quoted 10 lines · Kieran Bingham

Hi Sebastian,

Quoting Sebastian LaVine (2025-02-12 19:56:52)
<snip>

Quoted 6 lines

Total for device /dev/v4l-subdev4: 44, Succeeded: 44, Failed: 0, Warnings: 0

This is a v3 of a series that was originally sent last summer[0].

Quoted 9 lines
Quoted 1 line

[0]: https://lore.kernel.org/r/linux-media/[email protected]/

This version of the driver was authored by "Spencer Hill <[email protected]>" who seems to no longer be credited. Is this intentional?

Does his original Signed-off-by: tag need to be kept at least ? Or perhaps Co-Authored-by: ?

Yes, the original patch series was authored by Spencer -- I removed his name as he is no longer with our company and therefore his email address is no longer a valid way to contact him. I am not sure what the convention is for this. I would be happy to re-add his name and former email address to the Git trailers if this is desired.

Thank you,

--
Sebastian

Please be aware that this email includes email addresses outside of the organization.