2020-07-04 18:06:43 +02:00
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id : http://devicetree.org/schemas/media/i2c/adv7180.yaml#
$schema : http://devicetree.org/meta-schemas/core.yaml#
title : Analog Devices ADV7180 analog video decoder family
maintainers :
- Lars-Peter Clausen <lars@metafoo.de>
description :
The adv7180 family devices are used to capture analog video to different
digital interfaces like MIPI CSI-2 or parallel video.
properties :
compatible :
items :
- enum :
2020-04-20 21:24:47 -05:00
- adi,adv7180
- adi,adv7180cp
- adi,adv7180st
- adi,adv7182
- adi,adv7280
- adi,adv7280-m
- adi,adv7281
- adi,adv7281-m
- adi,adv7281-ma
- adi,adv7282
- adi,adv7282-m
2020-07-04 18:06:43 +02:00
reg :
maxItems : 1
powerdown-gpios :
maxItems : 1
2021-05-31 13:22:35 +02:00
reset-gpios :
maxItems : 1
2021-06-04 23:22:16 +02:00
adv,force-bt656-4 :
description :
Indicates that the output is a BT.656-4 compatible stream.
type : boolean
2020-07-04 18:06:43 +02:00
port :
2021-06-23 10:42:56 -06:00
$ref : /schemas/graph.yaml#/$defs/port-base
unevaluatedProperties : false
properties :
endpoint :
$ref : /schemas/media/video-interfaces.yaml#
unevaluatedProperties : false
2021-01-04 17:58:08 +01:00
ports : true
2020-07-04 18:06:43 +02:00
additionalProperties : false
required :
- compatible
- reg
allOf :
- if :
properties :
compatible :
2020-04-20 21:24:47 -05:00
enum :
- adi,adv7180
- adi,adv7182
- adi,adv7280
- adi,adv7280-m
- adi,adv7281
- adi,adv7281-m
- adi,adv7281-ma
- adi,adv7282
- adi,adv7282-m
2020-07-04 18:06:43 +02:00
then :
required :
- port
- if :
properties :
compatible :
contains :
const : adi,adv7180cp
then :
properties :
ports :
2021-01-04 17:58:08 +01:00
$ref : /schemas/graph.yaml#/properties/ports
2020-07-04 18:06:43 +02:00
properties :
port@3 :
2021-01-04 17:58:08 +01:00
$ref : /schemas/graph.yaml#/properties/port
2020-07-04 18:06:43 +02:00
description : Output port
patternProperties :
"^port@[0-2]$" :
2021-01-04 17:58:08 +01:00
$ref : /schemas/graph.yaml#/properties/port
2020-07-04 18:06:43 +02:00
description : Input port
required :
- port@3
required :
- ports
- if :
properties :
compatible :
contains :
const : adi,adv7180st
then :
properties :
ports :
2021-01-04 17:58:08 +01:00
$ref : /schemas/graph.yaml#/properties/ports
2020-07-04 18:06:43 +02:00
properties :
port@6 :
2021-01-04 17:58:08 +01:00
$ref : /schemas/graph.yaml#/properties/port
2020-07-04 18:06:43 +02:00
description : Output port
patternProperties :
"^port@[0-5]$" :
2021-01-04 17:58:08 +01:00
$ref : /schemas/graph.yaml#/properties/port
2020-07-04 18:06:43 +02:00
description : Input port
required :
- port@6
required :
- ports
examples :
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;
composite-in@20 {
compatible = "adi,adv7180";
reg = <0x20>;
port {
adv7180 : endpoint {
bus-width = <8>;
remote-endpoint = <&vin1ep>;
};
};
};
};
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;
composite-in@20 {
compatible = "adi,adv7180cp";
reg = <0x20>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
adv7180_in : endpoint {
remote-endpoint = <&composite_con_in>;
};
};
port@3 {
reg = <3>;
adv7180_out : endpoint {
remote-endpoint = <&vin4_in>;
};
};
};
};
};