* [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3
@ 2016-11-28 9:59 Icenowy Zheng
2016-11-28 10:06 ` Chen-Yu Tsai
2016-11-28 10:42 ` Jean-Francois Moine
0 siblings, 2 replies; 8+ messages in thread
From: Icenowy Zheng @ 2016-11-28 9:59 UTC (permalink / raw)
To: linux-arm-kernel
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 <icenowy@aosc.xyz>
---
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(+)
diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/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 = <&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
^ permalink raw reply related [flat|nested] 8+ messages in thread* [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3
2016-11-28 9:59 [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3 Icenowy Zheng
@ 2016-11-28 10:06 ` Chen-Yu Tsai
2016-11-28 10:19 ` Icenowy Zheng
2016-11-28 10:42 ` Jean-Francois Moine
1 sibling, 1 reply; 8+ messages in thread
From: Chen-Yu Tsai @ 2016-11-28 10:06 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Nov 28, 2016 at 5:59 PM, Icenowy Zheng <icenowy@aosc.xyz> wrote:
> As there's currently a fork of U-Boot which provides simplefb support
Please add it when its finalized...
> for H3, a simplefb node can be added to the device tree.
>
> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
> ---
>
> 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
>
> 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.dtsi b/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 = <&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
>
^ permalink raw reply [flat|nested] 8+ messages in thread* [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3
2016-11-28 10:06 ` Chen-Yu Tsai
@ 2016-11-28 10:19 ` Icenowy Zheng
2016-11-28 10:24 ` [linux-sunxi] " Chen-Yu Tsai
0 siblings, 1 reply; 8+ messages in thread
From: Icenowy Zheng @ 2016-11-28 10:19 UTC (permalink / raw)
To: linux-arm-kernel
28.11.2016, 18:07, "Chen-Yu Tsai" <wens@csie.org>:
> On Mon, Nov 28, 2016 at 5:59 PM, Icenowy Zheng <icenowy@aosc.xyz> wrote:
>> ?As there's currently a fork of U-Boot which provides simplefb support
>
> Please add it when its finalized...
>
>> ?for H3, a simplefb node can be added to the device tree.
>>
>> ?Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
>> ?---
>>
>> ?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 ;-)
>
> ChenYu
>
>> ?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.dtsi b/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 = <&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
^ permalink raw reply [flat|nested] 8+ messages in thread* [linux-sunxi] Re: [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3
2016-11-28 10:19 ` Icenowy Zheng
@ 2016-11-28 10:24 ` Chen-Yu Tsai
2016-11-29 21:43 ` Maxime Ripard
0 siblings, 1 reply; 8+ messages in thread
From: Chen-Yu Tsai @ 2016-11-28 10:24 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Nov 28, 2016 at 6:19 PM, Icenowy Zheng <icenowy@aosc.xyz> wrote:
>
>
> 28.11.2016, 18:07, "Chen-Yu Tsai" <wens@csie.org>:
>> On Mon, Nov 28, 2016 at 5:59 PM, Icenowy Zheng <icenowy@aosc.xyz> wrote:
>>> As there's currently a fork of U-Boot which provides simplefb support
>>
>> Please add it when its finalized...
>>
>>> for H3, a simplefb node can be added to the device tree.
>>>
>>> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
>>> ---
>>>
>>> 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
>
>>
>> ChenYu
>>
>>> 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.dtsi b/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 = <&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
>
> --
> 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.
^ permalink raw reply [flat|nested] 8+ messages in thread* [linux-sunxi] Re: [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3
2016-11-28 10:24 ` [linux-sunxi] " Chen-Yu Tsai
@ 2016-11-29 21:43 ` Maxime Ripard
0 siblings, 0 replies; 8+ messages in thread
From: Maxime Ripard @ 2016-11-29 21:43 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Nov 28, 2016 at 06:24:24PM +0800, Chen-Yu Tsai wrote:
> On Mon, Nov 28, 2016 at 6:19 PM, Icenowy Zheng <icenowy@aosc.xyz> wrote:
> >
> >
> > 28.11.2016, 18:07, "Chen-Yu Tsai" <wens@csie.org>:
> >> On Mon, Nov 28, 2016 at 5:59 PM, Icenowy Zheng <icenowy@aosc.xyz> wrote:
> >>> As there's currently a fork of U-Boot which provides simplefb support
> >>
> >> Please add it when its finalized...
> >>
> >>> for H3, a simplefb node can be added to the device tree.
> >>>
> >>> Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
> >>> ---
> >>>
> >>> 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.
It looks good to me too.
Maxime
--
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>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3
2016-11-28 9:59 [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3 Icenowy Zheng
2016-11-28 10:06 ` Chen-Yu Tsai
@ 2016-11-28 10:42 ` Jean-Francois Moine
2016-11-29 21:59 ` Maxime Ripard
1 sibling, 1 reply; 8+ messages in thread
From: Jean-Francois Moine @ 2016-11-28 10:42 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, 28 Nov 2016 17:59:00 +0800
Icenowy Zheng <icenowy@aosc.xyz> 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 <icenowy@aosc.xyz>
> ---
>
> 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?
--
Ken ar c'henta? | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3
2016-11-28 10:42 ` Jean-Francois Moine
@ 2016-11-29 21:59 ` Maxime Ripard
2016-11-30 9:35 ` Jean-Francois Moine
0 siblings, 1 reply; 8+ messages in thread
From: Maxime Ripard @ 2016-11-29 21:59 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Nov 28, 2016 at 11:42:18AM +0100, Jean-Francois Moine wrote:
> On Mon, 28 Nov 2016 17:59:00 +0800
> Icenowy Zheng <icenowy@aosc.xyz> 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 <icenowy@aosc.xyz>
> > ---
> >
> > 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?
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
--
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>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3
2016-11-29 21:59 ` Maxime Ripard
@ 2016-11-30 9:35 ` Jean-Francois Moine
0 siblings, 0 replies; 8+ messages in thread
From: Jean-Francois Moine @ 2016-11-30 9:35 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, 29 Nov 2016 22:59:32 +0100
Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
> > > 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?
>
> 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).
> 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.
--
Ken ar c'henta? | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-11-30 9:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-28 9:59 [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3 Icenowy Zheng
2016-11-28 10:06 ` Chen-Yu Tsai
2016-11-28 10:19 ` Icenowy Zheng
2016-11-28 10:24 ` [linux-sunxi] " Chen-Yu Tsai
2016-11-29 21:43 ` Maxime Ripard
2016-11-28 10:42 ` Jean-Francois Moine
2016-11-29 21:59 ` Maxime Ripard
2016-11-30 9:35 ` Jean-Francois Moine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox