xref: /freebsd/sys/contrib/device-tree/Bindings/gpu/aspeed-gfx.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotDevice tree configuration for the GFX display device on the ASPEED SoCs
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot  - compatible
5*c66ec88fSEmmanuel Vadot    * Must be one of the following:
6*c66ec88fSEmmanuel Vadot      + aspeed,ast2500-gfx
7*c66ec88fSEmmanuel Vadot      + aspeed,ast2400-gfx
8*c66ec88fSEmmanuel Vadot    * In addition, the ASPEED pinctrl bindings require the 'syscon' property to
9*c66ec88fSEmmanuel Vadot      be present
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel Vadot  - reg: Physical base address and length of the GFX registers
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadot  - interrupts: interrupt number for the GFX device
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadot  - clocks: clock number used to generate the pixel clock
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadot  - resets: reset line that must be released to use the GFX device
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot  - memory-region:
20*c66ec88fSEmmanuel Vadot    Phandle to a memory region to allocate from, as defined in
21*c66ec88fSEmmanuel Vadot    Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot
24*c66ec88fSEmmanuel VadotExample:
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel Vadotgfx: display@1e6e6000 {
27*c66ec88fSEmmanuel Vadot	compatible = "aspeed,ast2500-gfx", "syscon";
28*c66ec88fSEmmanuel Vadot	reg = <0x1e6e6000 0x1000>;
29*c66ec88fSEmmanuel Vadot	reg-io-width = <4>;
30*c66ec88fSEmmanuel Vadot	clocks = <&syscon ASPEED_CLK_GATE_D1CLK>;
31*c66ec88fSEmmanuel Vadot	resets = <&syscon ASPEED_RESET_CRT1>;
32*c66ec88fSEmmanuel Vadot	interrupts = <0x19>;
33*c66ec88fSEmmanuel Vadot	memory-region = <&gfx_memory>;
34*c66ec88fSEmmanuel Vadot};
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadotgfx_memory: framebuffer {
37*c66ec88fSEmmanuel Vadot	size = <0x01000000>;
38*c66ec88fSEmmanuel Vadot	alignment = <0x01000000>;
39*c66ec88fSEmmanuel Vadot	compatible = "shared-dma-pool";
40*c66ec88fSEmmanuel Vadot	reusable;
41*c66ec88fSEmmanuel Vadot};
42