Add R8A77970/V3MSK LVDS/HDMI support
Subsystems (2)
v2 cover Add R8A77970/V3MSK LVDS/HDMI support
Hello!
Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/ DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS output (we're omitting the LVDS decoder for now). These patches depend on the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...
[1/5] arm64: dts: renesas: r8a77970: add FCPVD support [2/5] arm64: dts: renesas: r8a77970: add VSPD support [3/5] arm64: dts: renesas: r8a77970: add DU support [4/5] arm64: dts: renesas: r8a77970: add LVDS support [5/5] arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support
WBR, Sergei
PATCH v2 1/5 arm64: dts: renesas: r8a77970: add FCPVD support
Describe FCPVD0 in the R8A77970 device tree; it will be used by VSPD0 in the next patch...
Based on the original (and large) patch by Daisuke Matsushita <[email protected]>.
--- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +8 -0
@@ -612,6 +612,14 @@ #size-cells = <0>; status = "disabled"; }; + + fcpvd0: fcp at fea27000 { + compatible = "renesas,fcpv"; + reg = <0 0xfea27000 0 0x200>; + clocks = <&cpg CPG_MOD 603>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 603>; + }; }; timer {
PATCH v2 2/5 arm64: dts: renesas: r8a77970: add VSPD support
In reply to Sergei ShtylyovDescribe VSPD0 in the R8A77970 device tree; it will be used by DU in the next patch...
Based on the original (and large) patch by Daisuke Matsushita <[email protected]>.
--- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +10 -0
@@ -620,6 +620,16 @@ power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; resets = <&cpg 603>; }; + + vspd0: vsp at fea20000 { + compatible = "renesas,vsp2"; + reg = <0 0xfea20000 0 0x4000>; + interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 623>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 623>; + renesas,fcp = <&fcpvd0>; + }; }; timer {
PATCH v2 3/5 arm64: dts: renesas: r8a77970: add DU support
In reply to Sergei ShtylyovDefine the generic R8A77970 part of the DU device node.
Based on the original (and large) patch by Daisuke Matsushita <[email protected]>.
---
Changes in version 2:
- added the "resets" property;
- renamed the output endpoint's label.
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +29 -0
@@ -630,6 +630,35 @@ resets = <&cpg 623>; renesas,fcp = <&fcpvd0>; }; + + du: display at feb00000 { + compatible = "renesas,du-r8a77970"; + reg = <0 0xfeb00000 0 0x80000>; + interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 724>; + clock-names = "du.0"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 724>; + vsps = <&vspd0>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + du_out_rgb: endpoint { + }; + }; + + port at 1 { + reg = <1>; + du_out_lvds0: endpoint { + }; + }; + }; + }; }; timer {
PATCH v2 4/5 arm64: dts: renesas: r8a77970: add LVDS support
In reply to Sergei ShtylyovDefine the generic R8A77970 part of the LVDS device node.
---
Changes in version 2:
- resolved rejects and updated atop of the DU support patch;
- changed the LVDS node's label/name;
- renamed the input/output endpoints' labels;
- added the "power-domains" and "resets" properties.
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +28 -0
@@ -655,6 +655,34 @@ port at 1 { reg = <1>; du_out_lvds0: endpoint { + remote-endpoint = <&lvds0_in>; + }; + }; + }; + }; + + lvds0: lvds-encoder at feb90000 { + compatible = "renesas,r8a77970-lvds"; + reg = <0 0xfeb90000 0 0x14>; + clocks = <&cpg CPG_MOD 727>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 727>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + lvds0_in: endpoint { + remote-endpoint = + <&du_out_lvds0>; + }; + }; + port at 1 { + reg = <1>; + lvds0_out: endpoint { }; }; };
PATCH v2 5/5 arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support
In reply to Sergei ShtylyovDefine the V3M Starter Kit board dependent part of the DU and LVDS device nodes. Also add the device nodes for the Analog Devices ADV7511W HDMI transmitter -- it's actually connected to the LVDS output via an LVDS decoder (deliberately omitted here since there's no driver yet anyway).
Based on the original (and large) patch by Vladimir Barinov.
--- arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts | 106 +++++++++++++++++++++++++ 1 file changed, 106 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts +106 -0
@@ -29,6 +29,41 @@ /* first 128MB is reserved for secure area. */ reg = <0x0 0x48000000 0x0 0x38000000>; }; + + osc5_clk: osc5-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; + + vcc_d1p8v: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "VCC_D1.8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + vcc_d3p3v: regulator-1 { + compatible = "regulator-fixed"; + regulator-name = "VCC_D3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&adv7511_out>; + }; + }; + }; }; &avb {
@@ -42,6 +77,13 @@ }; }; +&du { + clocks = <&cpg CPG_MOD 724>, + <&osc5_clk>; + clock-names = "du.0", "dclkin.0"; + status = "okay"; +}; + &extal_clk { clock-frequency = <16666666>; };
@@ -50,6 +92,70 @@ clock-frequency = <32768>; }; +&i2c0 { + pinctrl-0 = <&i2c0_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; + + hdmi at 39{ + compatible = "adi,adv7511w"; + #sound-dai-cells = <0>; + reg = <0x39>; + interrupt-parent = <&gpio1>; + interrupts = <20 IRQ_TYPE_LEVEL_LOW>; + avdd-supply = <&vcc_d1p8v>; + dvdd-supply = <&vcc_d1p8v>; + pvdd-supply = <&vcc_d1p8v>; + bgvdd-supply = <&vcc_d1p8v>; + dvdd-3v-supply = <&vcc_d3p3v>; + + adi,input-depth = <8>; + adi,input-colorspace = "rgb"; + adi,input-clock = "1x"; + adi,input-style = <1>; + adi,input-justification = "evenly"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + adv7511_in: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + port at 1 { + reg = <1>; + adv7511_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; +}; + +&lvds0 { + status = "okay"; + + ports { + port at 1 { + endpoint { + remote-endpoint = <&adv7511_in>; + }; + }; + }; +}; + +&pfc { + i2c0_pins: i2c0 { + groups = "i2c0"; + function = "i2c0"; + }; +}; + &scif0 { status = "okay"; };
v2 cover Add R8A77970/V3MSK LVDS/HDMI support
In reply to Sergei ShtylyovQuoted 5 lines · Sergei Shtylyov
Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/ DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS output (we're omitting the LVDS decoder for now). These patches depend on the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...
Need to mention that the DU driver silently fails to probe now. I do hope that
this is not due to my updates. :-)
MBR, Sergei
v2 cover Add R8A77970/V3MSK LVDS/HDMI support
Quoted 10 lines · Sergei Shtylyov
Quoted 5 lines · Sergei Shtylyov
Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/ DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS output (we're omitting the LVDS decoder for now). These patches depend on the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...
Need to mention that the DU driver silently fails to probe now. I do hope that this is not due to my updates. :-)
Please test that theory.
v2 cover Add R8A77970/V3MSK LVDS/HDMI support
Quoted 10 lines · Simon Horman
Quoted 8 lines
Quoted 5 lines
Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/ DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS output (we're omitting the LVDS decoder for now). These patches depend on the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...
Need to mention that the DU driver silently fails to probe now. I do hope that this is not due to my updates. :-)
Please test that theory.
Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
and fixing rejects in a couple patches here, the graphical console works again. :-)
MBR, Sergei
v2 cover Add R8A77970/V3MSK LVDS/HDMI support
Quoted 8 lines · Sergei Shtylyov
Quoted 6 lines · Simon Horman
Quoted 6 lines
Quoted 5 lines
Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/ DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS output (we're omitting the LVDS decoder for now). These patches depend on the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Need to mention that the DU driver silently fails to probe now. I do hope that this is not due to my updates. :-)
Please test that theory.
Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
and fixing rejects in a couple patches here, the graphical console works again. :-)
Ok, but does this patchset cause a regression? If so it seems that we should wait for driver updates before applying it.
v2 cover Add R8A77970/V3MSK LVDS/HDMI support
Hello!
Quoted 9 lines · Simon Horman
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 5 lines
Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/ DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS output (we're omitting the LVDS decoder for now). These patches depend on the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...
Need to mention that the DU driver silently fails to probe now. I do hope that this is not due to my updates. :-)
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Please test that theory.
Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
and fixing rejects in a couple patches here, the graphical console works again. :-)Ok, but does this patchset cause a regression? If so it seems that we should wait for driver updates before applying it.
Yes, we'll have to wait at this point...
MBR, Sergei
v2 cover Add R8A77970/V3MSK LVDS/HDMI support
In reply to Simon HormanQuoted 9 lines · Simon Horman
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
Quoted 5 lines
Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/ DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS output (we're omitting the LVDS decoder for now). These patches depend on the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...
Need to mention that the DU driver silently fails to probe now. I do hope that this is not due to my updates. :-)
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Please test that theory.
Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
and fixing rejects in a couple patches here, the graphical console works again. :-)Ok, but does this patchset cause a regression? If so it seems
Sorry, somehow missed that question. No regression is possible as the display just
doesn't work before these patches are applied. It's just that it doesn't start to work until the recent DU/LVDS driver updates are applied.
Quoted 1 line
that we should wait for driver updates before applying it.
MBR, Sergei
v2 cover Add R8A77970/V3MSK LVDS/HDMI support
Quoted 13 lines · Sergei Shtylyov
Quoted 11 lines · Simon Horman
Quoted 11 lines
Quoted 10 lines
Quoted 8 lines
Quoted 5 lines
Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/ DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS output (we're omitting the LVDS decoder for now). These patches depend on the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...
Need to mention that the DU driver silently fails to probe now. I do hope that this is not due to my updates. :-)
Please test that theory.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
and fixing rejects in a couple patches here, the graphical console works again. :-)Ok, but does this patchset cause a regression? If so it seems
Sorry, somehow missed that question. No regression is possible as the display just
doesn't work before these patches are applied. It's just that it doesn't start to work until the recent DU/LVDS driver updates are applied.
Ok, but my question remains: does the display work before these patches?
v2 cover Add R8A77970/V3MSK LVDS/HDMI support
Quoted 14 lines · Simon Horman
Quoted 14 lines
Quoted 14 lines
Quoted 13 lines
Quoted 10 lines
Quoted 8 lines
Quoted 5 lines
Here's the set of 5 patches against Simon Horman's 'renesas.git' repo's 'renesas-devel-20180227-v4.16-rc3' tag. We're adding the R8A77970 FCPVD/VSPD/ DU/LVDS device nodes and then describing the HDMI encoder connected to the LVDS output (we're omitting the LVDS decoder for now). These patches depend on the recent R8A77970 DU/LVDS rework patches by Laurent in order to work...
Need to mention that the DU driver silently fails to probe now. I do hope that this is not due to my updates. :-)
Please test that theory.
Yeah, after sucking in the recent versions of the DU/LVDS patches and uncommenting
and fixing rejects in a couple patches here, the graphical console works again. :-)
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Ok, but does this patchset cause a regression? If so it seems
Sorry, somehow missed that question. No regression is possible as the display just
doesn't work before these patches are applied. It's just that it doesn't start to work until the recent DU/LVDS driver updates are applied.Ok, but my question remains: does the display work before these patches?
No, there are no FCPVD/VSPD/DU/LVDS device nodes in R8A77970 TDs.
MBR, Sergei
PATCH v3 1/1 arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support
In reply to Sergei ShtylyovDefine the V3M Starter Kit board dependent part of the DU and LVDS device nodes. Also add the device nodes for Thine THC63LVD1024 LVDS decoder and Analog Devices ADV7511W HDMI transmitter...
Based on the original (and large) patch by Vladimir Barinov.
---
This patch is against the 'renesas-devel-20180423-v4.17-rc2' tag of Simon Horman's 'renesas.git' repo. It requires the Thine THC63LVD1024 driver in order to work (the same as the Eagle HDMI patch by Jacopo/Niklas).
Changes in version 3:
- added Thine THC63LVD1024 device node, updating the respected endpoints;
- merged the I2C pins subnode to the main PFC device node;
- renamed the regulators;
arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts | 129 +++++++++++++++++++++++++ 1 file changed, 129 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts +129 -0
@@ -29,6 +29,65 @@ /* first 128MB is reserved for secure area. */ reg = <0x0 0x48000000 0x0 0x38000000>; }; + + osc5_clk: osc5-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <148500000>; + }; + + vcc_d1_8v: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "VCC_D1.8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + vcc_d3_3v: regulator-1 { + compatible = "regulator-fixed"; + regulator-name = "VCC_D3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + lvds-decoder { + compatible = "thine,thc63lvd1024"; + vcc-supply = <&vcc_d3_3v>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + thc63lvd1024_in: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + + port at 2 { + reg = <2>; + thc63lvd1024_out: endpoint { + remote-endpoint = <&adv7511_in>; + }; + }; + }; + }; + + hdmi-out { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&adv7511_out>; + }; + }; + }; }; &avb {
@@ -46,6 +105,13 @@ }; }; +&du { + clocks = <&cpg CPG_MOD 724>, + <&osc5_clk>; + clock-names = "du.0", "dclkin.0"; + status = "okay"; +}; + &extal_clk { clock-frequency = <16666666>; };
@@ -60,12 +126,75 @@ function = "avb0"; }; + i2c0_pins: i2c0 { + groups = "i2c0"; + function = "i2c0"; + }; + scif0_pins: scif0 { groups = "scif0_data"; function = "scif0"; }; }; +&i2c0 { + pinctrl-0 = <&i2c0_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; + + hdmi at 39{ + compatible = "adi,adv7511w"; + #sound-dai-cells = <0>; + reg = <0x39>; + interrupt-parent = <&gpio1>; + interrupts = <20 IRQ_TYPE_LEVEL_LOW>; + avdd-supply = <&vcc_d1_8v>; + dvdd-supply = <&vcc_d1_8v>; + pvdd-supply = <&vcc_d1_8v>; + bgvdd-supply = <&vcc_d1_8v>; + dvdd-3v-supply = <&vcc_d3_3v>; + + adi,input-depth = <8>; + adi,input-colorspace = "rgb"; + adi,input-clock = "1x"; + adi,input-style = <1>; + adi,input-justification = "evenly"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port at 0 { + reg = <0>; + adv7511_in: endpoint { + remote-endpoint = <&thc63lvd1024_out>; + }; + }; + + port at 1 { + reg = <1>; + adv7511_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; +}; + +&lvds0 { + status = "okay"; + + ports { + port at 1 { + lvds0_out: endpoint { + remote-endpoint = <&thc63lvd1024_in>; + }; + }; + }; +}; + &scif0 { pinctrl-0 = <&scif0_pins>; pinctrl-names = "default";
Simon Horman
AppliedPATCH v3 1/1 arm64: dts: renesas: v3msk: add DU/LVDS/HDMI support
Quoted 14 lines · Sergei Shtylyov
Define the V3M Starter Kit board dependent part of the DU and LVDS device nodes. Also add the device nodes for Thine THC63LVD1024 LVDS decoder and Analog Devices ADV7511W HDMI transmitter...
Based on the original (and large) patch by Vladimir Barinov.
Signed-off-by Vladimir Barinov <[email protected]>Signed-off-by Sergei Shtylyov <[email protected]>---
This patch is against the 'renesas-devel-20180423-v4.17-rc2' tag of Simon Horman's 'renesas.git' repo. It requires the Thine THC63LVD1024 driver in order to work (the same as the Eagle HDMI patch by Jacopo/Niklas).
Quoted 4 lines
Changes in version 3:
- added Thine THC63LVD1024 device node, updating the respected endpoints;
- merged the I2C pins subnode to the main PFC device node;
- renamed the regulators;
Thanks, applied.