Skip to content

Commit

Permalink
arm64: dts: renesas: salvator-common: Add ADV7482 support
Browse files Browse the repository at this point in the history
The Salvator boards use an ADV7482 receiver for HDMI and CVBS inputs.

Provide ADV7482 node on the i2c4 bus, along with connectors for the
hdmi and cvbs inputs, and link to the csi20 and csi40 nodes as outputs.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Kieran Bingham authored and Simon Horman committed May 18, 2018
1 parent afa6dce commit 908001d
Showing 1 changed file with 103 additions and 0 deletions.
103 changes: 103 additions & 0 deletions arch/arm64/boot/dts/renesas/salvator-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,29 @@
enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
};

cvbs-in {
compatible = "composite-video-connector";
label = "CVBS IN";

port {
cvbs_con: endpoint {
remote-endpoint = <&adv7482_ain7>;
};
};
};

hdmi-in {
compatible = "hdmi-connector";
label = "HDMI IN";
type = "a";

port {
hdmi_in_con: endpoint {
remote-endpoint = <&adv7482_hdmi>;
};
};
};

reg_1p8v: regulator0 {
compatible = "regulator-fixed";
regulator-name = "fixed-1.8V";
Expand Down Expand Up @@ -260,6 +283,37 @@
};
};

&csi20 {
status = "okay";

ports {
port@0 {
reg = <0>;
csi20_in: endpoint {
clock-lanes = <0>;
data-lanes = <1>;
remote-endpoint = <&adv7482_txb>;
};
};
};
};

&csi40 {
status = "okay";

ports {
port@0 {
reg = <0>;

csi40_in: endpoint {
clock-lanes = <0>;
data-lanes = <1 2 3 4>;
remote-endpoint = <&adv7482_txa>;
};
};
};
};

&du {
pinctrl-0 = <&du_pins>;
pinctrl-names = "default";
Expand Down Expand Up @@ -357,6 +411,55 @@

shunt-resistor-micro-ohms = <5000>;
};

video-receiver@70 {
compatible = "adi,adv7482";
reg = <0x70>;

#address-cells = <1>;
#size-cells = <0>;

interrupt-parent = <&gpio6>;
interrupt-names = "intrq1", "intrq2";
interrupts = <30 IRQ_TYPE_LEVEL_LOW>,
<31 IRQ_TYPE_LEVEL_LOW>;

port@7 {
reg = <7>;

adv7482_ain7: endpoint {
remote-endpoint = <&cvbs_con>;
};
};

port@8 {
reg = <8>;

adv7482_hdmi: endpoint {
remote-endpoint = <&hdmi_in_con>;
};
};

port@10 {
reg = <10>;

adv7482_txa: endpoint {
clock-lanes = <0>;
data-lanes = <1 2 3 4>;
remote-endpoint = <&csi40_in>;
};
};

port@11 {
reg = <11>;

adv7482_txb: endpoint {
clock-lanes = <0>;
data-lanes = <1>;
remote-endpoint = <&csi20_in>;
};
};
};
};

&i2c_dvfs {
Expand Down

0 comments on commit 908001d

Please sign in to comment.