Commit d358c05b authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mauro Carvalho Chehab

media: dt-bindings: chrontel,ch7322: reference common CEC properties

Reference common HDMI CEC adapter properties to simplify the binding and
have only one place of definition for common properties.  The common CEC
binding expects also node name to be 'cec'.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 4498e7ba
...@@ -13,6 +13,9 @@ description: ...@@ -13,6 +13,9 @@ description:
The Chrontel CH7322 is a discrete HDMI-CEC controller. It is The Chrontel CH7322 is a discrete HDMI-CEC controller. It is
programmable through I2C and drives a single CEC line. programmable through I2C and drives a single CEC line.
allOf:
- $ref: /schemas/media/cec/cec-common.yaml#
properties: properties:
compatible: compatible:
const: chrontel,ch7322 const: chrontel,ch7322
...@@ -40,16 +43,12 @@ properties: ...@@ -40,16 +43,12 @@ properties:
if in auto mode. if in auto mode.
maxItems: 1 maxItems: 1
# see ../cec.txt
hdmi-phandle:
description: phandle to the HDMI controller
required: required:
- compatible - compatible
- reg - reg
- interrupts - interrupts
additionalProperties: false unevaluatedProperties: false
examples: examples:
- | - |
...@@ -58,7 +57,7 @@ examples: ...@@ -58,7 +57,7 @@ examples:
i2c { i2c {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
ch7322@75 { cec@75 {
compatible = "chrontel,ch7322"; compatible = "chrontel,ch7322";
reg = <0x75>; reg = <0x75>;
interrupts = <47 IRQ_TYPE_EDGE_RISING>; interrupts = <47 IRQ_TYPE_EDGE_RISING>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment