All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] dt-bindings: Add a clocks property to the simple-framebuffer binding
@ 2014-09-28 12:43 ` Hans de Goede
  0 siblings, 0 replies; 32+ messages in thread
From: Hans de Goede @ 2014-09-28 12:43 UTC (permalink / raw)
  To: Jean-Christophe Plagniol-Villard, Tomi Valkeinen, Grant Likely,
	Rob Herring
  Cc: Luc Verhaegen, Maxime Ripard, Mike Turquette,
	linux-fbdev-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Hans de Goede

A simple-framebuffer node represents a framebuffer setup by the firmware /
bootloader. Such a framebuffer may have a number of clocks in use, add a
property to communicate this to the OS.

Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 Documentation/devicetree/bindings/video/simple-framebuffer.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/video/simple-framebuffer.txt b/Documentation/devicetree/bindings/video/simple-framebuffer.txt
index 70c26f3..e75478e 100644
--- a/Documentation/devicetree/bindings/video/simple-framebuffer.txt
+++ b/Documentation/devicetree/bindings/video/simple-framebuffer.txt
@@ -14,6 +14,9 @@ Required properties:
   - r5g6b5 (16-bit pixels, d[15:11]=r, d[10:5]=g, d[4:0]=b).
   - a8b8g8r8 (32-bit pixels, d[31:24]=a, d[23:16]=b, d[15:8]=g, d[7:0]=r).
 
+Optional properties:
+- clocks : List of clocks used by the framebuffer
+
 Example:
 
 	framebuffer {
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 32+ messages in thread
* simplefb: add clock handling
@ 2014-08-13  7:17 Luc Verhaegen
  2014-08-13  7:17   ` Luc Verhaegen
  0 siblings, 1 reply; 32+ messages in thread
From: Luc Verhaegen @ 2014-08-13  7:17 UTC (permalink / raw)
  To: linux-arm-kernel

This is needed for the sunxi platform, where the u-boot initialized display 
engine gets disabled by the clocks framework if certain clocks are not 
claimed. Once these clocks are disabled, register content is lost, and there
is no turning back unless a full display driver is loaded, which kind of
beats the purpose of having simplefb running.

The lack of clock handling should plague more hardware, but so far rpi is the 
best known user of simplefb, and its stepmotherly handling of the arm core
has kept these sort of issues from the kernel.

The sunxi u-boot side code can be found here:
https://groups.google.com/forum/#!topic/linux-sunxi/dPs958sIXvY

Patch 3 might be controversial, as this does not achieve anything real today,
since the status property in dt is only really evaluated when dealing with a
nodes memory. It still seems like a good idea to at least flag this memory or
node as disabled, as we really have no way back when the clocks get disabled.

Luc Verhaegen.


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

end of thread, other threads:[~2014-09-28 18:41 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-28 12:43 [PATCH 1/4] dt-bindings: Add a clocks property to the simple-framebuffer binding Hans de Goede
2014-09-28 12:43 ` Hans de Goede
2014-09-28 12:43 ` Hans de Goede
     [not found] ` <1411908218-20947-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-09-28 12:43   ` [PATCH 2/4] simplefb: formalize pseudo palette handling Hans de Goede
2014-09-28 12:43     ` Hans de Goede
2014-09-28 12:43     ` Hans de Goede
2014-09-28 12:43   ` [PATCH 3/4] simplefb: add goto error path to probe Hans de Goede
2014-09-28 12:43     ` Hans de Goede
2014-09-28 12:43     ` Hans de Goede
2014-09-28 12:43   ` [PATCH 4/4] simplefb: add clock handling code Hans de Goede
2014-09-28 12:43     ` Hans de Goede
2014-09-28 12:43     ` Hans de Goede
2014-09-28 18:37   ` [PATCH 1/4] dt-bindings: Add a clocks property to the simple-framebuffer binding Mike Turquette
2014-09-28 18:37     ` Mike Turquette
2014-09-28 18:37     ` Mike Turquette
     [not found]     ` <CAPtuhThAgUThzdHAnWydDeM8unV=fjT88PH3Ww6h5_ezeGEOYg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-09-28 18:41       ` Hans de Goede
2014-09-28 18:41         ` Hans de Goede
2014-09-28 18:41         ` Hans de Goede
  -- strict thread matches above, loose matches on Subject: below --
2014-08-13  7:17 simplefb: add clock handling Luc Verhaegen
2014-08-13  7:17 ` [PATCH 4/4] simplefb: add clock handling code Luc Verhaegen
2014-08-13  7:17   ` Luc Verhaegen
2014-08-13 16:38   ` Stephen Warren
2014-08-13 16:38     ` Stephen Warren
2014-08-13 16:47     ` Luc Verhaegen
2014-08-13 16:47       ` Luc Verhaegen
2014-08-13 17:01     ` Maxime Ripard
2014-08-13 17:01       ` Maxime Ripard
2014-08-25 12:12       ` Thierry Reding
2014-08-25 12:12         ` Thierry Reding
2014-08-25 12:44         ` Maxime Ripard
2014-08-25 12:44           ` Maxime Ripard
2014-08-25 13:39           ` Thierry Reding
2014-08-25 13:39             ` Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.