All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Hikmah Gumelar" <hikmahgumelar@gmail.com>
Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org
Subject: Re: [PATCH v2 4/7] media: dt-bindings: media: i2c: add OmniVision OV12A10
Date: Mon, 23 Nov 2026 12:45:30 +0000	[thread overview]
Message-ID: <sashiko-outbox-229245@kernel.org> (raw)
In-Reply-To: <20261123123546.152162-5-hikmahgumelar@gmail.com>

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] media: dt-bindings: ovti,ov12a10: invalid $id and $schema
  URIs break validation
- [Medium] media: dt-bindings: ovti,ov12a10: 0-based MIPI CSI-2 D-PHY
  data-lanes indices
- [Low] media: dt-bindings: ovti,ov12a10: deprecated pwdn-gpios and
  custom vana-gpios
--

commit 2adecf2c1e39908b70d5c8d587dc348d341ebb34
Author: Hikmah Gumelar <hikmahgumelar@gmail.com>

media: dt-bindings: media: i2c: add OmniVision OV12A10

This commit adds a Devicetree binding schema for the OmniVision OV12A10
12-megapixel MIPI CSI-2 CMOS image sensor.

> diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov12a10.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov12a10.yaml
> new file mode 100644
> index 0000000000000..6919277c2b3f2
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov12a10.yaml
> @@ -0,0 +1,115 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org
> +$schema: http://devicetree.org

[Severity: Medium]
Should $id be http://devicetree.org/schemas/media/i2c/ovti,ov12a10.yaml#
and $schema be http://devicetree.org/meta-schemas/core.yaml#?  The bare
http://devicetree.org URIs cause make dt_binding_check to fail validation.

[ ... ]

> +  reset-gpios:
> +    description: Active-low reset GPIO.
> +    maxItems: 1
> +
> +  pwdn-gpios:
> +    description: Active-low power-down GPIO.
> +    maxItems: 1
> +
> +  vana-gpios:
> +    description: Active-high analog power enable GPIO.
> +    maxItems: 1
> +
> +  avdd-supply:
> +    description: Analog power supply (2.8V).

[Severity: Low]
pwdn-gpios is marked deprecated in
Documentation/devicetree/bindings/gpio/gpio-consumer-common.yaml in favor
of powerdown-gpios.  Also, since avdd-supply is already required for the
analog supply, a board-level GPIO enabling an external analog regulator
or load switch should be modeled as a regulator-fixed node supplying
avdd-supply rather than a custom vana-gpios property on the sensor node.

[ ... ]

> +      endpoint:
> +        $ref: /schemas/media/video-interfaces.yaml#
> +        unevaluatedProperties: false
> +
> +        properties:
> +          data-lanes:
> +            items:
> +              - const: 0
> +              - const: 1
> +              - const: 2
> +              - const: 3
> +
> +          link-frequencies: true

[ ... ]

> +            port {
> +                endpoint {
> +                    data-lanes = <0 1 2 3>;
> +                    remote-endpoint = <&csiphy0_ep>;
> +                    link-frequencies = /bits/ 64 <216000000>;
> +                };
> +            };

[Severity: Medium]
Should data-lanes be 1-based (<1 2 3 4>) instead of 0-based (<0 1 2 3>)?
Per Documentation/devicetree/bindings/media/video-interfaces.yaml and
v4l2_fwnode_endpoint_parse_csi2_bus(), physical lane 0 on a MIPI CSI-2
D-PHY bus is the clock lane and data lane indices are 1..4, so constraining
data-lanes to 0..3 collides with the default clock lane and rejects valid
1-based sensor endpoints.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123123546.152162-1-hikmahgumelar@gmail.com?part=4

  reply	other threads:[~2026-11-23 12:45 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 11:07 [PATCH 0/6] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 1/6] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 2/6] media: dt-bindings: media: i2c: add Samsung S5K5E8 Hikmah Gumelar
2026-11-23 15:11   ` Rob Herring (Arm)
2026-11-23 11:08 ` [PATCH 3/6] media: i2c: add s5k5e8 image sensor driver Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 4/6] media: dt-bindings: media: i2c: add OmniVision OV12A10 Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 5/6] media: i2c: add ov12a10 image sensor driver Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 6/6] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 12:35 ` [PATCH v2 0/7] " Hikmah Gumelar
2026-11-23 12:35   ` [PATCH v2 1/7] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
2026-11-23 12:42     ` sashiko-bot
2026-11-23 12:35   ` [PATCH v2 2/7] media: dt-bindings: media: i2c: add Samsung S5K5E8 Hikmah Gumelar
2026-11-23 12:43     ` sashiko-bot
2026-11-23 15:11     ` Rob Herring (Arm)
2026-11-23 12:35   ` [PATCH v2 3/7] media: i2c: add s5k5e8 image sensor driver Hikmah Gumelar
2026-11-23 12:52     ` sashiko-bot
2026-11-23 13:56     ` Uwe Kleine-König
2026-11-23 14:14       ` Hikmah Gumelar
2026-11-23 12:35   ` [PATCH v2 4/7] media: dt-bindings: media: i2c: add OmniVision OV12A10 Hikmah Gumelar
2026-11-23 12:45     ` sashiko-bot [this message]
2026-11-23 15:11     ` Rob Herring (Arm)
2026-11-23 12:35   ` [PATCH v2 5/7] media: i2c: add ov12a10 image sensor driver Hikmah Gumelar
2026-11-23 12:57     ` sashiko-bot
2026-11-23 12:35   ` [PATCH v2 6/7] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar
2026-11-23 12:49     ` sashiko-bot
2026-11-23 12:35   ` [PATCH v2 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 12:52     ` sashiko-bot
2026-11-23 15:27   ` [PATCH v3 0/7] " Hikmah Gumelar
2026-11-23 15:27     ` [PATCH v3 1/7] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
2026-11-23 19:18       ` Abel Vesa
2026-11-23 15:27     ` [PATCH v3 2/7] media: dt-bindings: media: i2c: add Samsung S5K5E8 Hikmah Gumelar
2026-11-23 17:25       ` Konrad Dybcio
2026-11-23 15:27     ` [PATCH v3 3/7] media: i2c: add s5k5e8 image sensor driver Hikmah Gumelar
2026-11-23 15:53       ` sashiko-bot
2026-11-23 15:27     ` [PATCH v3 4/7] media: dt-bindings: media: i2c: add OmniVision OV12A10 Hikmah Gumelar
2026-11-23 15:27     ` [PATCH v3 5/7] media: i2c: add ov12a10 image sensor driver Hikmah Gumelar
2026-11-23 15:50       ` sashiko-bot
2026-11-23 15:27     ` [PATCH v3 6/7] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar
2026-11-23 15:27     ` [PATCH v3 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 15:46       ` sashiko-bot

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=sashiko-outbox-229245@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hikmahgumelar@gmail.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=media-ci@linuxtv.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.