Path: blob/master/Documentation/devicetree/bindings/display/atmel,lcdc-display.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/display/atmel,lcdc-display.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Microchip's LCDC Display78maintainers:9- Nicolas Ferre <nicolas.ferre@microchip.com>10- Dharma Balasubiramani <dharma.b@microchip.com>1112description:13The LCD Controller (LCDC) consists of logic for transferring LCD image data14from an external display buffer to a TFT LCD panel. The LCDC has one display15input buffer per layer that fetches pixels through the single bus host16interface and a look-up table to allow palletized display configurations. The17LCDC is programmable on a per layer basis, and supports different LCD18resolutions, window sizes, image formats and pixel depths.1920# We need a select here since this schema is applicable only for nodes with the21# following properties2223select:24anyOf:25- required: [ 'atmel,dmacon' ]26- required: [ 'atmel,lcdcon2' ]27- required: [ 'atmel,guard-time' ]2829properties:30atmel,dmacon:31$ref: /schemas/types.yaml#/definitions/uint3232description: dma controller configuration3334atmel,lcdcon2:35$ref: /schemas/types.yaml#/definitions/uint3236description: lcd controller configuration3738atmel,guard-time:39$ref: /schemas/types.yaml#/definitions/uint3240description: lcd guard time (Delay in frame periods)41maximum: 1274243bits-per-pixel:44$ref: /schemas/types.yaml#/definitions/uint3245description: lcd panel bit-depth.46enum: [1, 2, 4, 8, 16, 24, 32]4748atmel,lcdcon-backlight:49$ref: /schemas/types.yaml#/definitions/flag50description: enable backlight5152atmel,lcdcon-backlight-inverted:53$ref: /schemas/types.yaml#/definitions/flag54description: invert backlight PWM polarity5556atmel,lcd-wiring-mode:57$ref: /schemas/types.yaml#/definitions/string58description: lcd wiring mode "RGB" or "BRG"59enum:60- RGB61- BRG6263atmel,power-control-gpio:64description: gpio to power on or off the LCD (as many as needed)65maxItems: 16667display-timings:68$ref: panel/display-timings.yaml#6970required:71- atmel,dmacon72- atmel,lcdcon273- atmel,guard-time74- bits-per-pixel7576additionalProperties: false7778examples:79- |80display: panel {81bits-per-pixel = <32>;82atmel,lcdcon-backlight;83atmel,dmacon = <0x1>;84atmel,lcdcon2 = <0x80008002>;85atmel,guard-time = <9>;86atmel,lcd-wiring-mode = "RGB";8788display-timings {89native-mode = <&timing0>;90timing0: timing0 {91clock-frequency = <9000000>;92hactive = <480>;93vactive = <272>;94hback-porch = <1>;95hfront-porch = <1>;96vback-porch = <40>;97vfront-porch = <1>;98hsync-len = <45>;99vsync-len = <1>;100};101};102};103104105