Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: gpu: Convert aspeed,ast2400-gfx to DT schema

Convert the ASpeed GFX Display Controller binding to DT schema format.
There was a duplicate, incomplete binding in mfd which can be dropped.

Add the missing 'aspeed,ast2600-gfx' compatible and 'syscon' property.

Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Link: https://lore.kernel.org/r/20250829230442.1495926-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

+64 -59
+63
Documentation/devicetree/bindings/gpu/aspeed,ast2400-gfx.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/gpu/aspeed,ast2400-gfx.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ASPEED GFX Display Controller 8 + 9 + maintainers: 10 + - Joel Stanley <joel@jms.id.au> 11 + 12 + properties: 13 + compatible: 14 + items: 15 + - enum: 16 + - aspeed,ast2400-gfx 17 + - aspeed,ast2500-gfx 18 + - aspeed,ast2600-gfx 19 + - const: syscon 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + clocks: 25 + maxItems: 1 26 + 27 + resets: 28 + maxItems: 1 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + memory-region: 34 + maxItems: 1 35 + description: 36 + a reserved-memory region to use for the framebuffer. 37 + 38 + syscon: 39 + $ref: /schemas/types.yaml#/definitions/phandle 40 + description: Phandle to SCU 41 + 42 + required: 43 + - compatible 44 + - reg 45 + - interrupts 46 + - clocks 47 + - resets 48 + - memory-region 49 + 50 + additionalProperties: false 51 + 52 + examples: 53 + - | 54 + #include <dt-bindings/clock/aspeed-clock.h> 55 + 56 + display@1e6e6000 { 57 + compatible = "aspeed,ast2500-gfx", "syscon"; 58 + reg = <0x1e6e6000 0x1000>; 59 + clocks = <&syscon ASPEED_CLK_GATE_D1CLK>; 60 + resets = <&syscon ASPEED_RESET_CRT1>; 61 + interrupts = <0x19>; 62 + memory-region = <&gfx_memory>; 63 + };
-41
Documentation/devicetree/bindings/gpu/aspeed-gfx.txt
··· 1 - Device tree configuration for the GFX display device on the ASPEED SoCs 2 - 3 - Required properties: 4 - - compatible 5 - * Must be one of the following: 6 - + aspeed,ast2500-gfx 7 - + aspeed,ast2400-gfx 8 - * In addition, the ASPEED pinctrl bindings require the 'syscon' property to 9 - be present 10 - 11 - - reg: Physical base address and length of the GFX registers 12 - 13 - - interrupts: interrupt number for the GFX device 14 - 15 - - clocks: clock number used to generate the pixel clock 16 - 17 - - resets: reset line that must be released to use the GFX device 18 - 19 - - memory-region: 20 - Phandle to a memory region to allocate from, as defined in 21 - Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt 22 - 23 - 24 - Example: 25 - 26 - gfx: display@1e6e6000 { 27 - compatible = "aspeed,ast2500-gfx", "syscon"; 28 - reg = <0x1e6e6000 0x1000>; 29 - reg-io-width = <4>; 30 - clocks = <&syscon ASPEED_CLK_GATE_D1CLK>; 31 - resets = <&syscon ASPEED_RESET_CRT1>; 32 - interrupts = <0x19>; 33 - memory-region = <&gfx_memory>; 34 - }; 35 - 36 - gfx_memory: framebuffer { 37 - size = <0x01000000>; 38 - alignment = <0x01000000>; 39 - compatible = "shared-dma-pool"; 40 - reusable; 41 - };
-17
Documentation/devicetree/bindings/mfd/aspeed-gfx.txt
··· 1 - * Device tree bindings for Aspeed SoC Display Controller (GFX) 2 - 3 - The Aspeed SoC Display Controller primarily does as its name suggests, but also 4 - participates in pinmux requests on the g5 SoCs. It is therefore considered a 5 - syscon device. 6 - 7 - Required properties: 8 - - compatible: "aspeed,ast2500-gfx", "syscon" 9 - - reg: contains offset/length value of the GFX memory 10 - region. 11 - 12 - Example: 13 - 14 - gfx: display@1e6e6000 { 15 - compatible = "aspeed,ast2500-gfx", "syscon"; 16 - reg = <0x1e6e6000 0x1000>; 17 - };
+1 -1
MAINTAINERS
··· 7543 7543 L: linux-aspeed@lists.ozlabs.org (moderated for non-subscribers) 7544 7544 S: Supported 7545 7545 T: git https://gitlab.freedesktop.org/drm/misc/kernel.git 7546 - F: Documentation/devicetree/bindings/gpu/aspeed-gfx.txt 7546 + F: Documentation/devicetree/bindings/gpu/aspeed,ast2400-gfx.yaml 7547 7547 F: drivers/gpu/drm/aspeed/ 7548 7548 7549 7549 DRM DRIVER FOR AST SERVER GRAPHICS CHIPS