arm64: dts: renesas: salvator-x: Add ADV7482 support
Subsystems (2)
PATCH v6 1/1 arm64: dts: renesas: salvator-x: Add ADV7482 support
From: Kieran Bingham <[email protected]>
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.
---
Submitting this directly to Niklas, as these changes depend on his VIN DT patches, and has agreed to 'take' this patch on to that series.
v4:
- dt: Rebase to dts/renesas/salvator-x.dtsi
- dt: Use AIN0-7 rather than AIN1-8
v5:
- dt: Move to salvator-common.dtsi
v6:
- remove unnecessary address-cells and size-cells configuration
- merge connectors into their respective nodes.
--- arch/arm64/boot/dts/renesas/salvator-common.dtsi | 103 +++++++++++++++++++++++ 1 file changed, 103 insertions(+)
arch/arm64/boot/dts/renesas/salvator-common.dtsi +103 -0
@@ -65,6 +65,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";
@@ -257,6 +280,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";
@@ -343,6 +397,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 {
Signature · 1 line
2.7.4
Quoted 7 lines · Kieran Bingham
From: Kieran Bingham <[email protected]>
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.
Quoted 7 lines
Signed-off-by Kieran Bingham <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>---
Submitting this directly to Niklas, as these changes depend on his VIN DT patches, and has agreed to 'take' this patch on to that series.
Yeah, haven't seen any patches yet adding "csi20" and "csi40" nodes ;-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines · Kieran Bingham
From: Kieran Bingham <[email protected]>
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 <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>
Quoted 6 lines
Quoted 4 lines
---
Submitting this directly to Niklas, as these changes depend on his VIN DT patches, and has agreed to 'take' this patch on to that series.
Yeah, haven't seen any patches yet adding "csi20" and "csi40" nodes ;-)
I defer this comment to Niklas :-)
--
Kieran
Quoted 11 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 12 lines · Kieran Bingham
Quoted 11 lines · Geert Uytterhoeven
Quoted 10 lines · Kieran Bingham
From: Kieran Bingham <[email protected]>
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 <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
---
Submitting this directly to Niklas, as these changes depend on his VIN DT patches, and has agreed to 'take' this patch on to that series.
Yeah, haven't seen any patches yet adding "csi20" and "csi40" nodes ;-)
I defer this comment to Niklas :-)
Yes :-)
My plan is to include this in my vin-dt branch which I also would like to include in my submission to renesas-drivers. But given the fact that I up until now have not included any DT changes for VIN in my renesas-drivers pull requests and that the DT file structure is recently changed I have yet to do so.
My plan was to wait for -rc1 and rebase the DT patches on top of that and then ask Geert and/or Simon to have a quick look at it so that I don't create problems for the next renesas-drivers release. But if you wish I can expedite this and rebase it on-top of the latest renesas-drivers release and pester someone to look at it so that it's ready for the next renesas-drivers release :-)
Quoted 16 lines
--
KieranQuoted 11 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Signature · 2 lines
Regards, Niklas S�derlund
Hi Niklas,
Quoted 29 lines · Niklas Söderlund
Quoted 13 lines · Kieran Bingham
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Kieran Bingham
From: Kieran Bingham <[email protected]>
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 <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>---
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Submitting this directly to Niklas, as these changes depend on his VIN DT patches, and has agreed to 'take' this patch on to that series.
Yeah, haven't seen any patches yet adding "csi20" and "csi40" nodes ;-)
I defer this comment to Niklas :-)
Yes :-)
My plan is to include this in my vin-dt branch which I also would like to include in my submission to renesas-drivers. But given the fact that I up until now have not included any DT changes for VIN in my renesas-drivers pull requests and that the DT file structure is recently changed I have yet to do so.
Quoted 6 lines
My plan was to wait for -rc1 and rebase the DT patches on top of that and then ask Geert and/or Simon to have a quick look at it so that I don't create problems for the next renesas-drivers release. But if you wish I can expedite this and rebase it on-top of the latest renesas-drivers release and pester someone to look at it so that it's ready for the next renesas-drivers release :-)
I was referring to actual patches posted to this mailing list, not to DT commits (hidden) in a git repo.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Hi Geert,
Quoted 40 lines · Geert Uytterhoeven
Hi Niklas,
Quoted 29 lines · Niklas S�derlund
Quoted 13 lines · Kieran Bingham
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Kieran Bingham
From: Kieran Bingham <[email protected]>
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 <[email protected]>Reviewed-by Laurent Pinchart <[email protected]>---
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Submitting this directly to Niklas, as these changes depend on his VIN DT patches, and has agreed to 'take' this patch on to that series.
Yeah, haven't seen any patches yet adding "csi20" and "csi40" nodes ;-)
I defer this comment to Niklas :-)
Yes :-)
My plan is to include this in my vin-dt branch which I also would like to include in my submission to renesas-drivers. But given the fact that I up until now have not included any DT changes for VIN in my renesas-drivers pull requests and that the DT file structure is recently changed I have yet to do so.
Quoted 6 lines
My plan was to wait for -rc1 and rebase the DT patches on top of that and then ask Geert and/or Simon to have a quick look at it so that I don't create problems for the next renesas-drivers release. But if you wish I can expedite this and rebase it on-top of the latest renesas-drivers release and pester someone to look at it so that it's ready for the next renesas-drivers release :-)
Quoted 2 lines
I was referring to actual patches posted to this mailing list, not to DT commits (hidden) in a git repo.
Ahh I see.
Yes I have not posted the DT patches to ML since the bindings for the VIN Gen3 and CSI-2 drivers are not yet accepted upstream.
Quoted 11 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Signature · 2 lines
Regards, Niklas S�derlund