From: Conor Dooley <conor@kernel.org>
To: Rob Herring <robh@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Daniel Scally <djrscally@gmail.com>,
Dafna Hirschfeld <dafna@fastmail.com>,
Heiko Stuebner <heiko@sntech.de>,
Tommaso Merciai <tommaso.merciai@amarulasolutions.com>,
Helen Koike <helen.koike@collabora.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] media: dt-bindings: Merge OV5695 into OV5693 binding
Date: Mon, 10 Jul 2023 18:45:00 +0100 [thread overview]
Message-ID: <20230710-unsold-simplify-5a339036ff38@spud> (raw)
In-Reply-To: <20230707210604.868002-1-robh@kernel.org>
[-- Attachment #1.1: Type: text/plain, Size: 5580 bytes --]
On Fri, Jul 07, 2023 at 03:06:04PM -0600, Rob Herring wrote:
> The OV5695 binding is almost the same as the OV5693 binding. The only
> difference is 'clock-names' is defined for OV5695. However, the lack of
> clock-names is an omission as the Linux OV5693 driver expects the same
> 'xvclk' clock name.
>
> 'link-frequencies' is required by OV5693, but not OV5695. Just drop it
> from being required. Expressing it conditionally would be ugly. It
> shouldn't really be required either as the driver only supports 1
> frequency anyways.
I suppose the intent here is something like "the driver only supports 1
frequency and never bothers to read the property"?
Either way,
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Cheers,
Conor.
>
> The rockchip-isp1 binding example is missing required properties, so it
> has to be updated as well.
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
> .../devicetree/bindings/media/i2c/ov5695.txt | 41 -------------------
> .../bindings/media/i2c/ovti,ov5693.yaml | 19 +++++----
> .../bindings/media/rockchip-isp1.yaml | 1 +
> 3 files changed, 13 insertions(+), 48 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/media/i2c/ov5695.txt
>
> diff --git a/Documentation/devicetree/bindings/media/i2c/ov5695.txt b/Documentation/devicetree/bindings/media/i2c/ov5695.txt
> deleted file mode 100644
> index 640a63717d96..000000000000
> --- a/Documentation/devicetree/bindings/media/i2c/ov5695.txt
> +++ /dev/null
> @@ -1,41 +0,0 @@
> -* Omnivision OV5695 MIPI CSI-2 sensor
> -
> -Required Properties:
> -- compatible: shall be "ovti,ov5695"
> -- clocks: reference to the xvclk input clock
> -- clock-names: shall be "xvclk"
> -- avdd-supply: Analog voltage supply, 2.8 volts
> -- dovdd-supply: Digital I/O voltage supply, 1.8 volts
> -- dvdd-supply: Digital core voltage supply, 1.2 volts
> -- reset-gpios: Low active reset gpio
> -
> -The device node shall contain one 'port' child node with an
> -'endpoint' subnode for its digital output video port,
> -in accordance with the video interface bindings defined in
> -Documentation/devicetree/bindings/media/video-interfaces.txt.
> -The endpoint optional property 'data-lanes' shall be "<1 2>".
> -
> -Example:
> -&i2c7 {
> - ov5695: camera-sensor@36 {
> - compatible = "ovti,ov5695";
> - reg = <0x36>;
> - pinctrl-names = "default";
> - pinctrl-0 = <&clk_24m_cam>;
> -
> - clocks = <&cru SCLK_TESTCLKOUT1>;
> - clock-names = "xvclk";
> -
> - avdd-supply = <&pp2800_cam>;
> - dovdd-supply = <&pp1800>;
> - dvdd-supply = <&pp1250_cam>;
> - reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
> -
> - port {
> - wcam_out: endpoint {
> - remote-endpoint = <&mipi_in_wcam>;
> - data-lanes = <1 2>;
> - };
> - };
> - };
> -};
> diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml
> index 359dc08440a8..a3d73a87d797 100644
> --- a/Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml
> +++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov5693.yaml
> @@ -5,26 +5,29 @@
> $id: http://devicetree.org/schemas/media/i2c/ovti,ov5693.yaml#
> $schema: http://devicetree.org/meta-schemas/core.yaml#
>
> -title: Omnivision OV5693 CMOS Sensor
> +title: Omnivision OV5693/OV5695 CMOS Sensors
>
> maintainers:
> - Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
>
> description: |
> - The Omnivision OV5693 is a high performance, 1/4-inch, 5 megapixel, CMOS
> - image sensor that delivers 2592x1944 at 30fps. It provides full-frame,
> + The Omnivision OV5693/OV5695 are high performance, 1/4-inch, 5 megapixel, CMOS
> + image sensors that deliver 2592x1944 at 30fps. It provides full-frame,
> sub-sampled, and windowed 10-bit MIPI images in various formats via the
> Serial Camera Control Bus (SCCB) interface.
>
> - OV5693 is controlled via I2C and two-wire Serial Camera Control Bus (SCCB).
> - The sensor output is available via CSI-2 serial data output (up to 2-lane).
> + OV5693/OV5695 are controlled via I2C and two-wire Serial Camera Control Bus
> + (SCCB). The sensor output is available via CSI-2 serial data output (up to
> + 2-lane).
>
> allOf:
> - $ref: /schemas/media/video-interface-devices.yaml#
>
> properties:
> compatible:
> - const: ovti,ov5693
> + enum:
> + - ovti,ov5693
> + - ovti,ov5695
>
> reg:
> maxItems: 1
> @@ -34,6 +37,9 @@ properties:
> System input clock (aka XVCLK). From 6 to 27 MHz.
> maxItems: 1
>
> + clock-names:
> + const: xvclk
> +
> dovdd-supply:
> description:
> Digital I/O voltage supply, 1.8V.
> @@ -72,7 +78,6 @@ properties:
>
> required:
> - data-lanes
> - - link-frequencies
>
> required:
> - compatible
> diff --git a/Documentation/devicetree/bindings/media/rockchip-isp1.yaml b/Documentation/devicetree/bindings/media/rockchip-isp1.yaml
> index 0bad7e640148..e466dff8286d 100644
> --- a/Documentation/devicetree/bindings/media/rockchip-isp1.yaml
> +++ b/Documentation/devicetree/bindings/media/rockchip-isp1.yaml
> @@ -199,6 +199,7 @@ examples:
> wcam: camera@36 {
> compatible = "ovti,ov5695";
> reg = <0x36>;
> + clocks = <&cru SCLK_TESTCLKOUT1>;
>
> port {
> wcam_out: endpoint {
> --
> 2.40.1
>
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2023-07-10 17:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-07 21:06 [PATCH] media: dt-bindings: Merge OV5695 into OV5693 binding Rob Herring
2023-07-10 17:45 ` Conor Dooley [this message]
2023-07-10 17:57 ` Rob Herring
2023-07-10 20:07 ` Dan Scally
2023-07-31 11:21 ` Sakari Ailus
2023-08-01 13:45 ` Rob Herring
2023-08-01 14:06 ` Sakari Ailus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230710-unsold-simplify-5a339036ff38@spud \
--to=conor@kernel.org \
--cc=conor+dt@kernel.org \
--cc=dafna@fastmail.com \
--cc=devicetree@vger.kernel.org \
--cc=djrscally@gmail.com \
--cc=heiko@sntech.de \
--cc=helen.koike@collabora.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=tommaso.merciai@amarulasolutions.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox