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