ARM: dts: sun8i: add simplefb node for H3
Subsystems (2)
RFC PATCH 1/1 ARM: dts: sun8i: add simplefb node for H3
As there's currently a fork of U-Boot which provides simplefb support for H3, a simplefb node can be added to the device tree.
---
I'm still not sure which pipeline should I use.
And, it seems that HDMI Slow Clock is not needed?
(seems that it's only for EDID, but simplefb won't use EDID)
arch/arm/boot/dts/sun8i-h3.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm/boot/dts/sun8i-h3.dtsi +16 -0
@@ -50,6 +50,22 @@ / { interrupt-parent = <&gic>; + chosen { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + simplefb_hdmi: framebuffer at 0 { + compatible = "allwinner,simple-framebuffer", + "simple-framebuffer"; + allwinner,pipeline = "de0-lcd0-hdmi"; + clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_BUS_DE>, + <&ccu CLK_BUS_HDMI>, <&ccu CLK_DE>, + <&ccu CLK_TCON0>, <&ccu CLK_HDMI>; + status = "disabled"; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.10.2
Quoted 1 line · Icenowy Zheng
As there's currently a fork of U-Boot which provides simplefb support
Please add it when its finalized...
Quoted 6 lines
for H3, a simplefb node can be added to the device tree.
Signed-off-by Icenowy Zheng <[email protected]>---
I'm still not sure which pipeline should I use.
You are supposed to add _all_ the pipelines that are available and supported by U-boot. U-boot is then supposed to enable and update the one it set up.
ChenYu
Quoted 38 lines
And, it seems that HDMI Slow Clock is not needed?
(seems that it's only for EDID, but simplefb won't use EDID)
arch/arm/boot/dts/sun8i-h3.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm/boot/dts/sun8i-h3.dtsi +16
-1@@ -50,6 +50,22 @@ / { interrupt-parent = <&gic>; + chosen { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + simplefb_hdmi: framebuffer at 0 { + compatible = "allwinner,simple-framebuffer", + "simple-framebuffer"; + allwinner,pipeline = "de0-lcd0-hdmi"; + clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_BUS_DE>, + <&ccu CLK_BUS_HDMI>, <&ccu CLK_DE>, + <&ccu CLK_TCON0>, <&ccu CLK_HDMI>; + status = "disabled"; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; --2.10.2
RFC PATCH 1/1 ARM: dts: sun8i: add simplefb node for H3
28.11.2016, 18:07, "Chen-Yu Tsai" <[email protected]>:
Quoted 7 lines · Icenowy Zheng
Quoted 1 line
?As there's currently a fork of U-Boot which provides simplefb support
Please add it when its finalized...
Quoted 2 lines
?for H3, a simplefb node can be added to the device tree.
Quoted 8 lines
Quoted 4 lines
?Signed-off-by: Icenowy Zheng <[email protected]>
?---?I'm still not sure which pipeline should I use.
You are supposed to add _all_ the pipelines that are available and supported by U-boot. U-boot is then supposed to enable and update the one it set up.
I mean the pipeline string ;-)
Quoted 39 lines
ChenYu
Quoted 36 lines
?And, it seems that HDMI Slow Clock is not needed?
?(seems that it's only for EDID, but simplefb won't use EDID)
??arch/arm/boot/dts/sun8i-h3.dtsi | 16 ++++++++++++++++ ??1 file changed, 16 insertions(+)
?diff --git
a/arch/arm/boot/dts/sun8i-h3.dtsib/arch/arm/boot/dts/sun8i-h3.dtsi?index 75a8654..cacc8dd 100644
?---a/arch/arm/boot/dts/sun8i-h3.dtsi
?+++b/arch/arm/boot/dts/sun8i-h3.dtsi
?@@ -50,6 +50,22 @@
??/ {
?????????interrupt-parent = <&gic>;?+ chosen {
?+ #address-cells = <1>;
?+ #size-cells = <1>;
?+ ranges;
?+
?+simplefb_hdmi: framebuffer at 0 {
?+ compatible = "allwinner,simple-framebuffer", ?+ "simple-framebuffer";
?+ allwinner,pipeline = "de0-lcd0-hdmi";
?+ clocks = <&ccuCLK_BUS_TCON0>, <&ccuCLK_BUS_DE>, ?+ <&ccuCLK_BUS_HDMI>, <&ccuCLK_DE>,
?+ <&ccuCLK_TCON0>, <&ccuCLK_HDMI>;
?+ status = "disabled";
?+ };
?+ };
?+
?????????cpus { ?????????????????#address-cells = <1>; ?????????????????#size-cells = <0>;
?--
?2.10.2
Quoted 13 lines · Icenowy Zheng
28.11.2016, 18:07, "Chen-Yu Tsai" <[email protected]>:
Quoted 10 lines · Icenowy Zheng
Quoted 1 line
As there's currently a fork of U-Boot which provides simplefb support
Please add it when its finalized...
Quoted 5 lines
for H3, a simplefb node can be added to the device tree.
Signed-off-by Icenowy Zheng <[email protected]>---
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
I'm still not sure which pipeline should I use.
You are supposed to add _all_ the pipelines that are available and supported by U-boot. U-boot is then supposed to enable and update the one it set up.
I mean the pipeline string ;-)
Looks good to me. There's no separate frontend/backend in DE 2.0.
ChenYu
Quoted 45 lines
Quoted 40 lines
ChenYu
Quoted 36 lines
And, it seems that HDMI Slow Clock is not needed?
(seems that it's only for EDID, but simplefb won't use EDID)
arch/arm/boot/dts/sun8i-h3.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)diff --git
a/arch/arm/boot/dts/sun8i-h3.dtsib/arch/arm/boot/dts/sun8i-h3.dtsiindex 75a8654..cacc8dd 100644
---a/arch/arm/boot/dts/sun8i-h3.dtsi
+++b/arch/arm/boot/dts/sun8i-h3.dtsi
@@ -50,6 +50,22 @@/ { interrupt-parent = <&gic>;+ chosen {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+simplefb_hdmi: framebuffer at 0 {
+ compatible = "allwinner,simple-framebuffer",
+ "simple-framebuffer";
+ allwinner,pipeline = "de0-lcd0-hdmi";
+ clocks = <&ccuCLK_BUS_TCON0>, <&ccuCLK_BUS_DE>,
+ <&ccuCLK_BUS_HDMI>, <&ccuCLK_DE>,
+ <&ccuCLK_TCON0>, <&ccuCLK_HDMI>;
+ status = "disabled";
+ };
+ };
+cpus { #address-cells = <1>; #size-cells = <0>;--
2.10.2--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe at googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Quoted 16 lines · Chen-Yu Tsai
Quoted 15 lines · Icenowy Zheng
28.11.2016, 18:07, "Chen-Yu Tsai" <[email protected]>:
Quoted 12 lines · Icenowy Zheng
Quoted 1 line
As there's currently a fork of U-Boot which provides simplefb support
Please add it when its finalized...
Quoted 6 lines
for H3, a simplefb node can be added to the device tree.
Signed-off-by Icenowy Zheng <[email protected]>---
I'm still not sure which pipeline should I use.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
You are supposed to add _all_ the pipelines that are available and supported by U-boot. U-boot is then supposed to enable and update the one it set up.
I mean the pipeline string ;-)
Looks good to me. There's no separate frontend/backend in DE 2.0.
It looks good to me too.
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20161129/5cd26f51/attachment.sig>
Quoted 11 lines · On Mon, 28 Nov 2016 17:59:00 +0800 Icenowy Zheng <[email protected]> wrote:
As there's currently a fork of U-Boot which provides simplefb support for H3, a simplefb node can be added to the device tree.
Signed-off-by Icenowy Zheng <[email protected]>---
I'm still not sure which pipeline should I use.
And, it seems that HDMI Slow Clock is not needed?
(seems that it's only for EDID, but simplefb won't use EDID)
So, I don't see how this may work.
How can the u-boot know the resolutions of the HDMI display device?
In other words: I have a new H3 board with the last u-boot and kernel. I plug my (rather old or brand new) HDMI display device. After powering on the system, I hope to get something on the screen. How?
Signature · 2 lines
Ken ar c'henta? | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/
Quoted 15 lines · Jean-Francois Moine
Quoted 11 lines · On Mon, 28 Nov 2016 17:59:00 +0800 Icenowy Zheng <[email protected]> wrote:
As there's currently a fork of U-Boot which provides simplefb support for H3, a simplefb node can be added to the device tree.
Signed-off-by Icenowy Zheng <[email protected]>---
I'm still not sure which pipeline should I use.
And, it seems that HDMI Slow Clock is not needed?
(seems that it's only for EDID, but simplefb won't use EDID)
Quoted 7 lines
So, I don't see how this may work.
How can the u-boot know the resolutions of the HDMI display device?In other words: I have a new H3 board with the last u-boot and kernel. I plug my (rather old or brand new) HDMI display device. After powering on the system, I hope to get something on the screen. How?
If it works like the driver for the first display engine in U-Boot, it will use the preferred mode reported by the EDID, and will fallback to 1024x768 if it cannot access it.
Maybe it would be worth exchanging on the EDID code that has been done for the u-boot driver too, so that it can be fixed in your driver.
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20161129/94d75cc0/attachment-0001.sig>
Quoted 9 lines · On Tue, 29 Nov 2016 22:59:32 +0100 Maxime Ripard…
Quoted 9 lines
Quoted 5 lines
I'm still not sure which pipeline should I use.
And, it seems that HDMI Slow Clock is not needed?
(seems that it's only for EDID, but simplefb won't use EDID)
So, I don't see how this may work.
How can the u-boot know the resolutions of the HDMI display device?
Quoted 8 lines
Quoted 4 lines
In other words: I have a new H3 board with the last u-boot and kernel. I plug my (rather old or brand new) HDMI display device. After powering on the system, I hope to get something on the screen. How?
If it works like the driver for the first display engine in U-Boot, it will use the preferred mode reported by the EDID, and will fallback to 1024x768 if it cannot access it.
Icenowy wrote: "simplefb won't use EDID"
Then, if it is like in the kernel, the 1024x768 mode is VGA. It does not work with HDMI (different timings).
Quoted 2 lines
Maybe it would be worth exchanging on the EDID code that has been done for the u-boot driver too, so that it can be fixed in your driver.
The u-boot got my code, and, up to now, I could not fix the random or permanent failures of EDID reading in some boards.
Signature · 2 lines
Ken ar c'henta? | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/
A message that is not in the archive (sent off-list or not yet received): 20161130103503.01061303ace71c74e1cac66f-GANU6spQydw@public.gmane.org
Hi Jean-François,
Dne sreda, 30. november 2016 10.35.08 UTC+1 je oseba Jean-François Moine napisala:
Quoted 18 lines
Quoted 14 lines · On Tue, 29 Nov 2016 22:59:32 +0100 Maxime Ripard…
Quoted 13 lines
Quoted 5 lines
I'm still not sure which pipeline should I use.
And, it seems that HDMI Slow Clock is not needed?
(seems that it's only for EDID, but simplefb won't use EDID)
So, I don't see how this may work.
How can the u-boot know the resolutions of the HDMI display device?In other words: I have a new H3 board with the last u-boot and kernel. I plug my (rather old or brand new) HDMI display device. After powering on the system, I hope to get something on the screen. How?
Quoted 9 lines
Quoted 3 lines
If it works like the driver for the first display engine in U-Boot, it will use the preferred mode reported by the EDID, and will fallback to 1024x768 if it cannot access it.
Icenowy wrote: "simplefb won't use EDID"
Then, if it is like in the kernel, the 1024x768 mode is VGA. It does not work with HDMI (different timings).
U-Boot driver now accept any timings recommended by EDID. So far it was tested with at least following resolutions:
- 1920x1080 @ 60 Hz
- 1280x1024 @ 60 Hz
- 1280x800 @ 60 Hz (slight clock difference)
- 800x480 (not sure about frame rate)
- 3840x2160 @ 30 Hz (4K)
and nobody complained so far. I'm pretty sure 1024x768 would work.
Quoted 7 lines
Quoted 2 lines
Maybe it would be worth exchanging on the EDID code that has been done for the u-boot driver too, so that it can be fixed in your driver.
The u-boot got my code, and, up to now, I could not fix the random or permanent failures of EDID reading in some boards.
I only have one OPi2, but as I said, EDID always worked for me. The only code left from you is for DE2. HDMI stuff is basically copied from Rockhip driver (including EDID reading), TCON code is now reverted to the same as it is in sunxi_display.c. I think it is worth to take a look at EDID code and
compare it.
Quoted 3 lines
Signature · 2 lines
Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/
Best regards,
Jernej Škrabec
Signature · 3 lines
You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] For more options, visit https://groups.google.com/d/optout.