-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: dt-bindings: Add ch7322 media i2c device
The ch7322 is a Chrontel CEC controller. Signed-off-by: Jeff Chase <jnchase@google.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
- Loading branch information
Jeff Chase
authored and
Mauro Carvalho Chehab
committed
Jul 4, 2020
1 parent
c92d30e
commit 7f52faa
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
67 changes: 67 additions & 0 deletions
67
Documentation/devicetree/bindings/media/i2c/chrontel,ch7322.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: "http://devicetree.org/schemas/media/i2c/chrontel,ch7322.yaml#" | ||
$schema: "http://devicetree.org/meta-schemas/core.yaml#" | ||
|
||
title: Chrontel HDMI-CEC Controller | ||
|
||
maintainers: | ||
- Jeff Chase <jnchase@google.com> | ||
|
||
description: | ||
The Chrontel CH7322 is a discrete HDMI-CEC controller. It is | ||
programmable through I2C and drives a single CEC line. | ||
|
||
properties: | ||
compatible: | ||
const: chrontel,ch7322 | ||
|
||
reg: | ||
description: I2C device address | ||
maxItems: 1 | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
reset-gpios: | ||
description: | ||
Reference to the GPIO connected to the RESET pin, if any. This | ||
pin is active-low. | ||
maxItems: 1 | ||
|
||
standby-gpios: | ||
description: | ||
Reference to the GPIO connected to the OE pin, if any. When low | ||
the device will respond to power status requests with "standby" | ||
if in auto mode. | ||
maxItems: 1 | ||
|
||
# see ../cec.txt | ||
hdmi-phandle: | ||
description: phandle to the HDMI controller | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
i2c { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
ch7322@75 { | ||
compatible = "chrontel,ch7322"; | ||
reg = <0x75>; | ||
interrupts = <47 IRQ_TYPE_EDGE_RISING>; | ||
standby-gpios = <&gpio 16 GPIO_ACTIVE_LOW>; | ||
reset-gpios = <&gpio 15 GPIO_ACTIVE_LOW>; | ||
hdmi-phandle = <&hdmi>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters