From e579c19bb1d6696fc1f81837eef82aa0369dd0c0 Mon Sep 17 00:00:00 2001 From: TOKITA Hiroshi Date: Wed, 13 Apr 2022 12:27:08 +0900 Subject: [PATCH] dts: bindings: display: st7735r: add rgb-is-inverted option Add rgb-is-inverted option to indicate module's pixel-format is inverting from MADCTL settings of ST7735R controller. This option intends to implement a workaround for LCD modules that is the actual screen color was different (inverted) from the RGB setting in MADCTL property. Signed-off-by: TOKITA Hiroshi --- dts/bindings/display/sitronix,st7735r.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dts/bindings/display/sitronix,st7735r.yaml b/dts/bindings/display/sitronix,st7735r.yaml index 96cf4f2c67f..e614915ffdf 100644 --- a/dts/bindings/display/sitronix,st7735r.yaml +++ b/dts/bindings/display/sitronix,st7735r.yaml @@ -123,3 +123,12 @@ properties: description: | Enable Display Inversion Make a drawing with the inverted color of the frame memory. + + rgb-is-inverted: + type: boolean + description: | + Inverting color format order (RGB->BGR or BGR->RGB) + In the case of enabling this option, API reports pixel-format in capabilities + as the inverted value of the RGB pixel-format specified in MADCTL. + This option is convenient for supporting displays with bugs + where the actual color is different from the pixel format of MADCTL.