public inbox for linux-fbdev@vger.kernel.org
 help / color / mirror / Atom feed
* simple-framebuffer enquire
@ 2018-06-25 13:29 Michael Nazzareno Trimarchi
  2018-06-26 10:01 ` Hans de Goede
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Nazzareno Trimarchi @ 2018-06-25 13:29 UTC (permalink / raw)
  To: Hans de Goede; +Cc: Bartlomiej Zolnierkiewicz, linux-fbdev, LKML

Hi Hans

In order to let it even registered the simplefb I have added this
change. According on what I understand
from the code seems that this is the way to acquire memory with the
correct attribute

diff --git a/drivers/video/fbdev/simplefb.c b/drivers/video/fbdev/simplefb.c
index a3c44ec..7e61ce3 100644
--- a/drivers/video/fbdev/simplefb.c
+++ b/drivers/video/fbdev/simplefb.c
@@ -466,8 +466,8 @@ static int simplefb_probe(struct platform_device *pdev)

        info->fbops = &simplefb_ops;
        info->flags = FBINFO_DEFAULT | FBINFO_MISC_FIRMWARE;
-       info->screen_base = ioremap_wc(info->fix.smem_start,
-                                      info->fix.smem_len);
+       info->screen_base = arch_memremap_wb(info->fix.smem_start,
+                                            info->fix.smem_len);
        if (!info->screen_base) {
                ret = -ENOMEM;
                goto error_fb_release;

Another question is

        aliases {
                display0 = &lcdif;
        };

        chosen {
                #address-cells = <1>;
                #size-cells = <1>;
                ranges;

                stdout-path = &uart1;
                framebuffer0: framebuffer@86fd6080 {
                        compatible = "simple-framebuffer";
                        reg = <0x86fd6080 (480 * 272 * 4)>;
                        width = <480>;
                        height = <272>;
                        stride = <(480 * 4)>;
                        format = "a8r8g8b8";
                        clocks = <&clks IMX6UL_CLK_LCDIF_PIX>,
                                 <&clks IMX6UL_CLK_LCDIF_APB>,
                                 <&clks IMX6UL_CLK_DUMMY>,
                                 <&clks IMX6UL_CLK_GPIO3>,
                                 <&clks IMX6UL_CLK_GPIO4>;
                        nshut-supply = <&reg_lcd_nshut>;
                        nreset-supply = <&reg_lcd_nreset>;
                        display = <&lcdif>;
                };
        };
};

How do you ensure that regulators that are bind to gpios can be
maintain during boot?
A small minor comment is how to automatic switch then to normal
framebuffer. Anyway seems
that
                #address-cells = <1>;
                #size-cells = <1>;
                ranges;

are mandatory and they are in the dts documentation.

Best regards
Michael

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-06-26 18:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-25 13:29 simple-framebuffer enquire Michael Nazzareno Trimarchi
2018-06-26 10:01 ` Hans de Goede
     [not found]   ` <CAOf5uwk2cf_+27nk9i9MQmbfJ8LCfPYopkcX__9M64jMYmhu1A@mail.gmail.com>
2018-06-26 13:29     ` Michael Nazzareno Trimarchi
2018-06-26 13:36       ` Hans de Goede
2018-06-26 13:38         ` Michael Nazzareno Trimarchi
2018-06-26 14:42           ` Michael Nazzareno Trimarchi
2018-06-26 14:47             ` Hans de Goede
2018-06-26 16:35               ` Michael Nazzareno Trimarchi
2018-06-26 18:44                 ` Hans de Goede
2018-06-26 18:59                   ` Julia Cartwright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox