Commit bd58a390 authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Tomi Valkeinen

dt-bindings: simplefb: Support regulator supply properties

The physical display tied to the framebuffer may have regulators
providing power to it, such as power for LCDs or interface conversion
chips.

The number of regulators in use may vary, but the regulator supply
binding can not be a list. Instead just support any named regulator
supply properties under the device node. These should be properly
named to match the device schematics / design. The driver should
take care to go through them all.
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 2168b49a
...@@ -47,10 +47,14 @@ Required properties: ...@@ -47,10 +47,14 @@ Required properties:
- a8b8g8r8 (32-bit pixels, d[31:24]=a, d[23:16]=b, d[15:8]=g, d[7:0]=r). - a8b8g8r8 (32-bit pixels, d[31:24]=a, d[23:16]=b, d[15:8]=g, d[7:0]=r).
Optional properties: Optional properties:
- clocks : List of clocks used by the framebuffer. Clocks listed here - clocks : List of clocks used by the framebuffer.
are expected to already be configured correctly. The OS must - *-supply : Any number of regulators used by the framebuffer. These should
ensure these clocks are not modified or disabled while the be named according to the names in the device's design.
simple framebuffer remains active.
The above resources are expected to already be configured correctly.
The OS must ensure they are not modified or disabled while the simple
framebuffer remains active.
- display : phandle pointing to the primary display hardware node - display : phandle pointing to the primary display hardware node
Example: Example:
...@@ -68,6 +72,7 @@ chosen { ...@@ -68,6 +72,7 @@ chosen {
stride = <(1600 * 2)>; stride = <(1600 * 2)>;
format = "r5g6b5"; format = "r5g6b5";
clocks = <&ahb_gates 36>, <&ahb_gates 43>, <&ahb_gates 44>; clocks = <&ahb_gates 36>, <&ahb_gates 43>, <&ahb_gates 44>;
lcd-supply = <&reg_dc1sw>;
display = <&lcdc0>; display = <&lcdc0>;
}; };
stdout-path = "display0"; stdout-path = "display0";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment