xref: /freebsd/sys/contrib/device-tree/Bindings/reserved-memory/framebuffer.yaml (revision 2008043f386721d58158e37e0d7e50df8095942d)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/reserved-memory/framebuffer.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: /reserved-memory framebuffer node bindings
8
9maintainers:
10  - devicetree-spec@vger.kernel.org
11
12allOf:
13  - $ref: reserved-memory.yaml
14
15properties:
16  compatible:
17    const: framebuffer
18    description: >
19      This indicates a region of memory meant to be used as a framebuffer for
20      a set of display devices. It can be used by an operating system to keep
21      the framebuffer from being overwritten and use it as the backing memory
22      for a display device (such as simple-framebuffer).
23
24unevaluatedProperties: false
25
26examples:
27  - |
28    / {
29        compatible = "foo";
30        model = "foo";
31        #address-cells = <1>;
32        #size-cells = <1>;
33
34        chosen {
35            framebuffer {
36                compatible = "simple-framebuffer";
37                memory-region = <&fb>;
38            };
39        };
40
41        reserved-memory {
42            #address-cells = <1>;
43            #size-cells = <1>;
44            ranges;
45
46            fb: framebuffer@80000000 {
47                compatible = "framebuffer";
48                reg = <0x80000000 0x007e9000>;
49            };
50        };
51    };
52...
53