From: Rob Herring <robh@kernel.org>
To: Erling Ljunggren <hljunggr@cisco.com>
Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v4 3/5] dt-bindings: media: add cat24c208 bindings
Date: Wed, 16 Nov 2022 14:07:29 -0600 [thread overview]
Message-ID: <20221116200729.GA761467-robh@kernel.org> (raw)
In-Reply-To: <20221111132906.2212662-4-hljunggr@cisco.com>
On Fri, Nov 11, 2022 at 02:29:04PM +0100, Erling Ljunggren wrote:
> Add devicetree bindings for new cat24c208 EDID EEPROM driver.
>
> Signed-off-by: Erling Ljunggren <hljunggr@cisco.com>
> ---
> .../bindings/media/i2c/onnn,cat24c208.yaml | 46 +++++++++++++++++++
> 1 file changed, 46 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/media/i2c/onnn,cat24c208.yaml
>
> diff --git a/Documentation/devicetree/bindings/media/i2c/onnn,cat24c208.yaml b/Documentation/devicetree/bindings/media/i2c/onnn,cat24c208.yaml
> new file mode 100644
> index 000000000000..492eecb3ab7c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/onnn,cat24c208.yaml
> @@ -0,0 +1,46 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/media/i2c/onnn,cat24c208.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ON Semiconductor CAT24C208 EDID EEPROM driver
> +
> +maintainers:
> + - Hans Verkuil <hverkuil-cisco@xs4all.nl>
> +
> +description: |
> + CAT24C208 is a dual port i2c EEPROM designed for EDID storage.
> +
> +properties:
> + compatible:
> + const: onnn,cat24c208
> +
> + reg:
> + maxItems: 1
> +
> + input-connector:
> + description: |
> + Phandle to the video input connector, used to find
> + the HPD gpio and the connector label, both optional.
> + $ref: /schemas/types.yaml#/definitions/phandle
The binding and driver feel the wrong way around to me. It seems
like you should have a driver for the connector and it needs HPD GPIO,
label, and EEPROM. The driver instead looks mostly like an EEPROM driver
that hooks into a few connector properties.
Reading the datasheet, I don't see anything special about accessing the
EEPROM from the host (DSP) side. Wouldn't the default at24 driver work?
It exposes regmap and nvmem.
Rob
next prev parent reply other threads:[~2022-11-16 20:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-11 13:29 [PATCH v4 0/5] Add the cat24c208 EDID EEPROM driver + new EDID capability Erling Ljunggren
2022-11-11 13:29 ` [PATCH v4 1/5] media: videodev2.h: add V4L2_CAP_EDID Erling Ljunggren
2022-11-11 13:29 ` [PATCH v4 2/5] media: docs: Add V4L2_CAP_EDID Erling Ljunggren
2022-11-11 13:29 ` [PATCH v4 3/5] dt-bindings: media: add cat24c208 bindings Erling Ljunggren
2022-11-16 20:07 ` Rob Herring [this message]
2022-11-18 10:34 ` Hans Verkuil
2022-11-18 15:20 ` Rob Herring
2022-11-18 15:46 ` Hans Verkuil
2022-11-18 17:12 ` Rob Herring
2022-11-11 13:29 ` [PATCH v4 4/5] media: i2c: cat24c208: driver for the cat24c208 EDID EEPROM Erling Ljunggren
2022-11-11 13:29 ` [PATCH v4 5/5] media: v4l2-dev: handle V4L2_CAP_EDID Erling Ljunggren
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=20221116200729.GA761467-robh@kernel.org \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hljunggr@cisco.com \
--cc=linux-media@vger.kernel.org \
/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.