xref: /linux/Documentation/devicetree/bindings/media/i2c/chrontel,ch7322.yaml (revision 7f52faabd2e533dd3f59d2d69093756fa25a1b2e)
1*7f52faabSJeff Chase# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*7f52faabSJeff Chase%YAML 1.2
3*7f52faabSJeff Chase---
4*7f52faabSJeff Chase$id: "http://devicetree.org/schemas/media/i2c/chrontel,ch7322.yaml#"
5*7f52faabSJeff Chase$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6*7f52faabSJeff Chase
7*7f52faabSJeff Chasetitle: Chrontel HDMI-CEC Controller
8*7f52faabSJeff Chase
9*7f52faabSJeff Chasemaintainers:
10*7f52faabSJeff Chase  - Jeff Chase <jnchase@google.com>
11*7f52faabSJeff Chase
12*7f52faabSJeff Chasedescription:
13*7f52faabSJeff Chase  The Chrontel CH7322 is a discrete HDMI-CEC controller. It is
14*7f52faabSJeff Chase  programmable through I2C and drives a single CEC line.
15*7f52faabSJeff Chase
16*7f52faabSJeff Chaseproperties:
17*7f52faabSJeff Chase  compatible:
18*7f52faabSJeff Chase    const: chrontel,ch7322
19*7f52faabSJeff Chase
20*7f52faabSJeff Chase  reg:
21*7f52faabSJeff Chase    description: I2C device address
22*7f52faabSJeff Chase    maxItems: 1
23*7f52faabSJeff Chase
24*7f52faabSJeff Chase  clocks:
25*7f52faabSJeff Chase    maxItems: 1
26*7f52faabSJeff Chase
27*7f52faabSJeff Chase  interrupts:
28*7f52faabSJeff Chase    maxItems: 1
29*7f52faabSJeff Chase
30*7f52faabSJeff Chase  reset-gpios:
31*7f52faabSJeff Chase    description:
32*7f52faabSJeff Chase      Reference to the GPIO connected to the RESET pin, if any. This
33*7f52faabSJeff Chase      pin is active-low.
34*7f52faabSJeff Chase    maxItems: 1
35*7f52faabSJeff Chase
36*7f52faabSJeff Chase  standby-gpios:
37*7f52faabSJeff Chase    description:
38*7f52faabSJeff Chase      Reference to the GPIO connected to the OE pin, if any. When low
39*7f52faabSJeff Chase      the device will respond to power status requests with "standby"
40*7f52faabSJeff Chase      if in auto mode.
41*7f52faabSJeff Chase    maxItems: 1
42*7f52faabSJeff Chase
43*7f52faabSJeff Chase  # see ../cec.txt
44*7f52faabSJeff Chase  hdmi-phandle:
45*7f52faabSJeff Chase    description: phandle to the HDMI controller
46*7f52faabSJeff Chase
47*7f52faabSJeff Chaserequired:
48*7f52faabSJeff Chase  - compatible
49*7f52faabSJeff Chase  - reg
50*7f52faabSJeff Chase  - interrupts
51*7f52faabSJeff Chase
52*7f52faabSJeff Chaseexamples:
53*7f52faabSJeff Chase  - |
54*7f52faabSJeff Chase    #include <dt-bindings/gpio/gpio.h>
55*7f52faabSJeff Chase    #include <dt-bindings/interrupt-controller/irq.h>
56*7f52faabSJeff Chase    i2c {
57*7f52faabSJeff Chase      #address-cells = <1>;
58*7f52faabSJeff Chase      #size-cells = <0>;
59*7f52faabSJeff Chase      ch7322@75 {
60*7f52faabSJeff Chase        compatible = "chrontel,ch7322";
61*7f52faabSJeff Chase        reg = <0x75>;
62*7f52faabSJeff Chase        interrupts = <47 IRQ_TYPE_EDGE_RISING>;
63*7f52faabSJeff Chase        standby-gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
64*7f52faabSJeff Chase        reset-gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
65*7f52faabSJeff Chase        hdmi-phandle = <&hdmi>;
66*7f52faabSJeff Chase      };
67*7f52faabSJeff Chase    };
68