Stephen Warren | 26549c8 | 2013-05-24 15:55:13 -0700 | [diff] [blame] | 1 | Simple Framebuffer |
| 2 | |
| 3 | A simple frame-buffer describes a raw memory region that may be rendered to, |
| 4 | with the assumption that the display hardware has already been set up to scan |
| 5 | out from that buffer. |
| 6 | |
| 7 | Required properties: |
| 8 | - compatible: "simple-framebuffer" |
| 9 | - reg: Should contain the location and size of the framebuffer memory. |
| 10 | - width: The width of the framebuffer in pixels. |
| 11 | - height: The height of the framebuffer in pixels. |
| 12 | - stride: The number of bytes in each line of the framebuffer. |
| 13 | - format: The format of the framebuffer surface. Valid values are: |
| 14 | - r5g6b5 (16-bit pixels, d[15:11]=r, d[10:5]=g, d[4:0]=b). |
Alexandre Courbot | dbb5ff4 | 2013-06-07 16:31:30 +0900 | [diff] [blame] | 15 | - a8b8g8r8 (32-bit pixels, d[31:24]=a, d[23:16]=b, d[15:8]=g, d[7:0]=r). |
Stephen Warren | 26549c8 | 2013-05-24 15:55:13 -0700 | [diff] [blame] | 16 | |
| 17 | Example: |
| 18 | |
| 19 | framebuffer { |
| 20 | compatible = "simple-framebuffer"; |
| 21 | reg = <0x1d385000 (1600 * 1200 * 2)>; |
| 22 | width = <1600>; |
| 23 | height = <1200>; |
| 24 | stride = <(1600 * 2)>; |
| 25 | format = "r5g6b5"; |
| 26 | }; |