1# Copyright (c) 2020, Kim Bøndergaard <kim@fam-boendergaard.dk> 2# SPDX-License-Identifier: Apache-2.0 3 4description: ST7735R/ST7735S 160x128 (max) display controller 5 6compatible: "sitronix,st7735r" 7 8include: [mipi-dbi-spi-device.yaml, display-controller.yaml] 9 10properties: 11 x-offset: 12 type: int 13 required: true 14 description: The column offset in pixels of the LCD to the controller memory 15 16 y-offset: 17 type: int 18 required: true 19 description: The row offset in pixels of the LCD to the controller memory 20 21 madctl: 22 type: int 23 default: 0x00 24 description: Memory Data Access Control 25 26 colmod: 27 type: int 28 default: 0x06 29 description: Interface Pixel Format 30 31 pwctr1: 32 type: uint8-array 33 default: [0xb4, 0x14, 0x04] 34 description: Power Control 1 Parameter 35 36 pwctr2: 37 type: uint8-array 38 default: [0xc0] 39 description: Power Control 2 Parameter 40 41 pwctr3: 42 type: uint8-array 43 default: [0x0a, 0x00] 44 description: Power Control 3 Parameter 45 46 pwctr4: 47 type: uint8-array 48 default: [0x8a, 0x26] 49 description: Power Control 4 Parameter 50 51 pwctr5: 52 type: uint8-array 53 default: [0x8a, 0xee] 54 description: Power Control 5 Parameter 55 56 gamctrp1: 57 type: uint8-array 58 required: true 59 description: Positive Voltage Gamma Control Parameter 60 61 gamctrn1: 62 type: uint8-array 63 required: true 64 description: Negative Voltage Gamma Control Parameter 65 66 frmctr1: 67 type: uint8-array 68 default: [0x05, 0x3a, 0x3a] 69 description: Frame rate control (normal mode / full colors) 70 71 frmctr2: 72 type: uint8-array 73 default: [0x05, 0x3a, 0x3a] 74 description: Frame rate control (idle mode / 8 colors) 75 76 frmctr3: 77 type: uint8-array 78 default: [0x05, 0x3a, 0x3a, 0x05, 0x3a, 0x3a] 79 description: Frame rate control (partial mode / full colors) 80 81 caset: 82 type: uint8-array 83 default: [0x00, 0x00, 0x00, 0x7f] 84 description: Column Address Set 85 86 raset: 87 type: uint8-array 88 default: [0x00, 0x00, 0x00, 0x9f] 89 description: Row Address Set 90 91 vmctr1: 92 type: int 93 default: 0x0a 94 description: VCOM Control 1 95 96 invctr: 97 type: int 98 default: 0x07 99 description: | 100 Display Inversion Control 101 Set dot inversion or line inversion for each normal/idle/partial mode. 102 103 inversion-on: 104 type: boolean 105 description: | 106 Enable Display Inversion 107 Make a drawing with the inverted color of the frame memory. 108 109 rgb-is-inverted: 110 type: boolean 111 description: | 112 Inverting color format order (RGB->BGR or BGR->RGB) 113 In the case of enabling this option, API reports pixel-format in capabilities 114 as the inverted value of the RGB pixel-format specified in MADCTL. 115 This option is convenient for supporting displays with bugs 116 where the actual color is different from the pixel format of MADCTL. 117