* [PATCH v3 3/5] dt-bindings: media: add cat24c208 bindings
[not found] <20220928112147.358745-1-hljunggr@cisco.com>
@ 2022-09-28 11:21 ` Erling Ljunggren
2022-09-28 22:37 ` Rob Herring
2022-09-29 13:26 ` Rob Herring
0 siblings, 2 replies; 4+ messages in thread
From: Erling Ljunggren @ 2022-09-28 11:21 UTC (permalink / raw)
To: linux-media; +Cc: Erling Ljunggren, devicetree
Add devicetree bindings for new cat24c208 EDID EEPROM driver.
Signed-off-by: Erling Ljunggren <hljunggr@cisco.com>
---
.../bindings/media/i2c/onnn,cat24c208.yaml | 48 +++++++++++++++++++
1 file changed, 48 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..fcfaccb5e39f
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/i2c/onnn,cat24c208.yaml
@@ -0,0 +1,48 @@
+# 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
+
+ hpd-gpios:
+ maxItems: 1
+ description:
+ References to the GPIO that controls the HDMI hot-plug detection pin.
+ The active flag indicates the GPIO level that enables hot-plug detection.
+
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cat24c208@31 {
+ compatible = "onnn,cat24c208";
+ reg = <0x31>;
+ hpd-gpios = <&ioexp 0 GPIO_ACTIVE_HIGH>;
+ };
+ };
+...
--
2.37.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3 3/5] dt-bindings: media: add cat24c208 bindings
2022-09-28 11:21 ` [PATCH v3 3/5] dt-bindings: media: add cat24c208 bindings Erling Ljunggren
@ 2022-09-28 22:37 ` Rob Herring
2022-09-29 13:26 ` Rob Herring
1 sibling, 0 replies; 4+ messages in thread
From: Rob Herring @ 2022-09-28 22:37 UTC (permalink / raw)
To: Erling Ljunggren; +Cc: devicetree, linux-media
On Wed, 28 Sep 2022 13:21:45 +0200, 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 | 48 +++++++++++++++++++
> 1 file changed, 48 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/media/i2c/onnn,cat24c208.yaml
>
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
Error: Documentation/devicetree/bindings/media/i2c/onnn,cat24c208.example.dts:25.39-40 syntax error
FATAL ERROR: Unable to parse input tree
make[1]: *** [scripts/Makefile.lib:384: Documentation/devicetree/bindings/media/i2c/onnn,cat24c208.example.dtb] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1420: dt_binding_check] Error 2
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/
This check can fail if there are any dependencies. The base for a patch
series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3 3/5] dt-bindings: media: add cat24c208 bindings
2022-09-28 11:21 ` [PATCH v3 3/5] dt-bindings: media: add cat24c208 bindings Erling Ljunggren
2022-09-28 22:37 ` Rob Herring
@ 2022-09-29 13:26 ` Rob Herring
2022-10-04 8:02 ` Erling Ljunggren (hljunggr)
1 sibling, 1 reply; 4+ messages in thread
From: Rob Herring @ 2022-09-29 13:26 UTC (permalink / raw)
To: Erling Ljunggren; +Cc: linux-media, devicetree
On Wed, Sep 28, 2022 at 01:21:45PM +0200, 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 | 48 +++++++++++++++++++
> 1 file changed, 48 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..fcfaccb5e39f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/onnn,cat24c208.yaml
> @@ -0,0 +1,48 @@
> +# 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
> +
> + hpd-gpios:
> + maxItems: 1
> + description:
> + References to the GPIO that controls the HDMI hot-plug detection pin.
> + The active flag indicates the GPIO level that enables hot-plug detection.
This node is supposed to represent a device, cat24c208, but that device
I'm guessing knows nothing about HPD. That's a property of the connector
and belongs in a connector node much like we have for the other side of
display connections. It may seem like overkill, but it frequently
evolves such that not having a connector node becomes a problem. See
'hdmi-connector' binding for example.
Rob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3 3/5] dt-bindings: media: add cat24c208 bindings
2022-09-29 13:26 ` Rob Herring
@ 2022-10-04 8:02 ` Erling Ljunggren (hljunggr)
0 siblings, 0 replies; 4+ messages in thread
From: Erling Ljunggren (hljunggr) @ 2022-10-04 8:02 UTC (permalink / raw)
To: robh@kernel.org; +Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org
On Thu, 2022-09-29 at 08:26 -0500, Rob Herring wrote:
> On Wed, Sep 28, 2022 at 01:21:45PM +0200, 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 | 48
> > +++++++++++++++++++
> > 1 file changed, 48 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..fcfaccb5e39f
> > --- /dev/null
> > +++
> > b/Documentation/devicetree/bindings/media/i2c/onnn,cat24c208.yaml
> > @@ -0,0 +1,48 @@
> > +# 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
> > +
> > + hpd-gpios:
> > + maxItems: 1
> > + description:
> > + References to the GPIO that controls the HDMI hot-plug
> > detection pin.
> > + The active flag indicates the GPIO level that enables hot-
> > plug detection.
>
> This node is supposed to represent a device, cat24c208, but that
> device
> I'm guessing knows nothing about HPD. That's a property of the
> connector
> and belongs in a connector node much like we have for the other side
> of
> display connections. It may seem like overkill, but it frequently
> evolves such that not having a connector node becomes a problem. See
> 'hdmi-connector' binding for example.
>
> Rob
Is this what you had in mind?
cat24c208: cat24c208@31 {
compatible = "onnn,cat24c208";
reg = <0x31>;
status = "okay";
connector-phandle = <&hdmi_in_node>;
};
hdmi_in_node: hdmi-in {
compatible = "hdmi-connector";
label = "HDMI IN";
type = "a";
hpd-gpios = <&pca9554 4 GPIO_ACTIVE_HIGH>;
port {
hdmi_in: endpoint {
remote-endpoint = <&hdmi_out>;
};
};
};
- Erling
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-04 8:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20220928112147.358745-1-hljunggr@cisco.com>
2022-09-28 11:21 ` [PATCH v3 3/5] dt-bindings: media: add cat24c208 bindings Erling Ljunggren
2022-09-28 22:37 ` Rob Herring
2022-09-29 13:26 ` Rob Herring
2022-10-04 8:02 ` Erling Ljunggren (hljunggr)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).