xref: /linux/Documentation/devicetree/bindings/media/i2c/chrontel,ch7322.yaml (revision d358c05bf33e39e392ba1aefce749d565a3fdd2a)
17f52faabSJeff Chase# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
27f52faabSJeff Chase%YAML 1.2
37f52faabSJeff Chase---
47f52faabSJeff Chase$id: "http://devicetree.org/schemas/media/i2c/chrontel,ch7322.yaml#"
57f52faabSJeff Chase$schema: "http://devicetree.org/meta-schemas/core.yaml#"
67f52faabSJeff Chase
77f52faabSJeff Chasetitle: Chrontel HDMI-CEC Controller
87f52faabSJeff Chase
97f52faabSJeff Chasemaintainers:
107f52faabSJeff Chase  - Jeff Chase <jnchase@google.com>
117f52faabSJeff Chase
127f52faabSJeff Chasedescription:
137f52faabSJeff Chase  The Chrontel CH7322 is a discrete HDMI-CEC controller. It is
147f52faabSJeff Chase  programmable through I2C and drives a single CEC line.
157f52faabSJeff Chase
16*d358c05bSKrzysztof KozlowskiallOf:
17*d358c05bSKrzysztof Kozlowski  - $ref: /schemas/media/cec/cec-common.yaml#
18*d358c05bSKrzysztof Kozlowski
197f52faabSJeff Chaseproperties:
207f52faabSJeff Chase  compatible:
217f52faabSJeff Chase    const: chrontel,ch7322
227f52faabSJeff Chase
237f52faabSJeff Chase  reg:
247f52faabSJeff Chase    description: I2C device address
257f52faabSJeff Chase    maxItems: 1
267f52faabSJeff Chase
277f52faabSJeff Chase  clocks:
287f52faabSJeff Chase    maxItems: 1
297f52faabSJeff Chase
307f52faabSJeff Chase  interrupts:
317f52faabSJeff Chase    maxItems: 1
327f52faabSJeff Chase
337f52faabSJeff Chase  reset-gpios:
347f52faabSJeff Chase    description:
357f52faabSJeff Chase      Reference to the GPIO connected to the RESET pin, if any. This
367f52faabSJeff Chase      pin is active-low.
377f52faabSJeff Chase    maxItems: 1
387f52faabSJeff Chase
397f52faabSJeff Chase  standby-gpios:
407f52faabSJeff Chase    description:
417f52faabSJeff Chase      Reference to the GPIO connected to the OE pin, if any. When low
427f52faabSJeff Chase      the device will respond to power status requests with "standby"
437f52faabSJeff Chase      if in auto mode.
447f52faabSJeff Chase    maxItems: 1
457f52faabSJeff Chase
467f52faabSJeff Chaserequired:
477f52faabSJeff Chase  - compatible
487f52faabSJeff Chase  - reg
497f52faabSJeff Chase  - interrupts
507f52faabSJeff Chase
51*d358c05bSKrzysztof KozlowskiunevaluatedProperties: false
525be478f9SRob Herring
537f52faabSJeff Chaseexamples:
547f52faabSJeff Chase  - |
557f52faabSJeff Chase    #include <dt-bindings/gpio/gpio.h>
567f52faabSJeff Chase    #include <dt-bindings/interrupt-controller/irq.h>
577f52faabSJeff Chase    i2c {
587f52faabSJeff Chase      #address-cells = <1>;
597f52faabSJeff Chase      #size-cells = <0>;
60*d358c05bSKrzysztof Kozlowski      cec@75 {
617f52faabSJeff Chase        compatible = "chrontel,ch7322";
627f52faabSJeff Chase        reg = <0x75>;
637f52faabSJeff Chase        interrupts = <47 IRQ_TYPE_EDGE_RISING>;
647f52faabSJeff Chase        standby-gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
657f52faabSJeff Chase        reset-gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
667f52faabSJeff Chase        hdmi-phandle = <&hdmi>;
677f52faabSJeff Chase      };
687f52faabSJeff Chase    };
69