1dfa10dfcSJagan Teki# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2dfa10dfcSJagan Teki%YAML 1.2 3dfa10dfcSJagan Teki--- 4dfa10dfcSJagan Teki$id: http://devicetree.org/schemas/display/panel/sitronix,st7701.yaml# 5dfa10dfcSJagan Teki$schema: http://devicetree.org/meta-schemas/core.yaml# 6dfa10dfcSJagan Teki 7dfa10dfcSJagan Tekititle: Sitronix ST7701 based LCD panels 8dfa10dfcSJagan Teki 9dfa10dfcSJagan Tekimaintainers: 10dfa10dfcSJagan Teki - Jagan Teki <jagan@amarulasolutions.com> 11dfa10dfcSJagan Teki 12dfa10dfcSJagan Tekidescription: | 13dfa10dfcSJagan Teki ST7701 designed for small and medium sizes of TFT LCD display, is 14dfa10dfcSJagan Teki capable of supporting up to 480RGBX864 in resolution. It provides 15dfa10dfcSJagan Teki several system interfaces like MIPI/RGB/SPI. 16dfa10dfcSJagan Teki 17dfa10dfcSJagan Teki Techstar TS8550B is 480x854, 2-lane MIPI DSI LCD panel which has 18dfa10dfcSJagan Teki inbuilt ST7701 chip. 19dfa10dfcSJagan Teki 20e6e62748SMarek Vasut Densitron DMT028VGHMCMI-1A is 480x640, 2-lane MIPI DSI LCD panel 21e6e62748SMarek Vasut which has built-in ST7701 chip. 22e6e62748SMarek Vasut 23dfa10dfcSJagan Tekiproperties: 24dfa10dfcSJagan Teki compatible: 25dfa10dfcSJagan Teki items: 26dfa10dfcSJagan Teki - enum: 27acbf9184SChris Morgan - anbernic,rg-arc-panel 28*9a01fb40SHironori KIKUCHI - anbernic,rg28xx-panel 29e6e62748SMarek Vasut - densitron,dmt028vghmcmi-1a 30441e129cSMaya Matuszczyk - elida,kd50t048a 31dfa10dfcSJagan Teki - techstar,ts8550b 32dfa10dfcSJagan Teki - const: sitronix,st7701 33dfa10dfcSJagan Teki 34dfa10dfcSJagan Teki reg: 35*9a01fb40SHironori KIKUCHI description: DSI / SPI channel used by that screen 36dfa10dfcSJagan Teki maxItems: 1 37dfa10dfcSJagan Teki 38dfa10dfcSJagan Teki VCC-supply: 39dfa10dfcSJagan Teki description: analog regulator for MIPI circuit 40dfa10dfcSJagan Teki 41dfa10dfcSJagan Teki IOVCC-supply: 42dfa10dfcSJagan Teki description: I/O system regulator 43dfa10dfcSJagan Teki 44*9a01fb40SHironori KIKUCHI dc-gpios: 45*9a01fb40SHironori KIKUCHI maxItems: 1 46*9a01fb40SHironori KIKUCHI description: 47*9a01fb40SHironori KIKUCHI Controller data/command selection (D/CX) in 4-line SPI mode. 48*9a01fb40SHironori KIKUCHI If not set, the controller is in 3-line SPI mode. 49*9a01fb40SHironori KIKUCHI Disallowed for DSI. 50*9a01fb40SHironori KIKUCHI 51175caafaSKrzysztof Kozlowski port: true 52dfa10dfcSJagan Teki reset-gpios: true 53175caafaSKrzysztof Kozlowski rotation: true 54dfa10dfcSJagan Teki 55dfa10dfcSJagan Teki backlight: true 56dfa10dfcSJagan Teki 57dfa10dfcSJagan Tekirequired: 58dfa10dfcSJagan Teki - compatible 59dfa10dfcSJagan Teki - reg 60dfa10dfcSJagan Teki - VCC-supply 61dfa10dfcSJagan Teki - IOVCC-supply 62175caafaSKrzysztof Kozlowski - port 63dfa10dfcSJagan Teki - reset-gpios 64dfa10dfcSJagan Teki 65*9a01fb40SHironori KIKUCHIallOf: 66*9a01fb40SHironori KIKUCHI - $ref: panel-common.yaml# 67*9a01fb40SHironori KIKUCHI - if: 68*9a01fb40SHironori KIKUCHI properties: 69*9a01fb40SHironori KIKUCHI compatible: 70*9a01fb40SHironori KIKUCHI contains: 71*9a01fb40SHironori KIKUCHI # SPI connected panels 72*9a01fb40SHironori KIKUCHI enum: 73*9a01fb40SHironori KIKUCHI - anbernic,rg28xx-panel 74*9a01fb40SHironori KIKUCHI then: 75*9a01fb40SHironori KIKUCHI $ref: /schemas/spi/spi-peripheral-props.yaml# 76*9a01fb40SHironori KIKUCHI 77*9a01fb40SHironori KIKUCHI - if: 78*9a01fb40SHironori KIKUCHI properties: 79*9a01fb40SHironori KIKUCHI compatible: 80*9a01fb40SHironori KIKUCHI not: 81*9a01fb40SHironori KIKUCHI contains: 82*9a01fb40SHironori KIKUCHI # DSI or SPI without D/CX pin 83*9a01fb40SHironori KIKUCHI enum: 84*9a01fb40SHironori KIKUCHI - anbernic,rg-arc-panel 85*9a01fb40SHironori KIKUCHI - anbernic,rg28xx-panel 86*9a01fb40SHironori KIKUCHI - densitron,dmt028vghmcmi-1a 87*9a01fb40SHironori KIKUCHI - elida,kd50t048a 88*9a01fb40SHironori KIKUCHI - techstar,ts8550b 89*9a01fb40SHironori KIKUCHI then: 90*9a01fb40SHironori KIKUCHI required: 91*9a01fb40SHironori KIKUCHI - dc-gpios 92*9a01fb40SHironori KIKUCHI else: 93*9a01fb40SHironori KIKUCHI properties: 94*9a01fb40SHironori KIKUCHI dc-gpios: false 95*9a01fb40SHironori KIKUCHI 96*9a01fb40SHironori KIKUCHIunevaluatedProperties: false 97dfa10dfcSJagan Teki 98dfa10dfcSJagan Tekiexamples: 99dfa10dfcSJagan Teki - | 100dfa10dfcSJagan Teki #include <dt-bindings/gpio/gpio.h> 101dfa10dfcSJagan Teki 102dfa10dfcSJagan Teki dsi { 103dfa10dfcSJagan Teki #address-cells = <1>; 104dfa10dfcSJagan Teki #size-cells = <0>; 105dfa10dfcSJagan Teki 106dfa10dfcSJagan Teki panel@0 { 107dfa10dfcSJagan Teki compatible = "techstar,ts8550b", "sitronix,st7701"; 108dfa10dfcSJagan Teki reg = <0>; 109dfa10dfcSJagan Teki VCC-supply = <®_dldo2>; 110dfa10dfcSJagan Teki IOVCC-supply = <®_dldo2>; 111dfa10dfcSJagan Teki reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ 112dfa10dfcSJagan Teki backlight = <&backlight>; 113175caafaSKrzysztof Kozlowski 114175caafaSKrzysztof Kozlowski port { 115175caafaSKrzysztof Kozlowski mipi_in_panel: endpoint { 116175caafaSKrzysztof Kozlowski remote-endpoint = <&mipi_out_panel>; 117175caafaSKrzysztof Kozlowski }; 118175caafaSKrzysztof Kozlowski }; 119dfa10dfcSJagan Teki }; 120dfa10dfcSJagan Teki }; 121*9a01fb40SHironori KIKUCHI - | 122*9a01fb40SHironori KIKUCHI #include <dt-bindings/gpio/gpio.h> 123*9a01fb40SHironori KIKUCHI 124*9a01fb40SHironori KIKUCHI spi { 125*9a01fb40SHironori KIKUCHI #address-cells = <1>; 126*9a01fb40SHironori KIKUCHI #size-cells = <0>; 127*9a01fb40SHironori KIKUCHI 128*9a01fb40SHironori KIKUCHI panel@0 { 129*9a01fb40SHironori KIKUCHI compatible = "anbernic,rg28xx-panel", "sitronix,st7701"; 130*9a01fb40SHironori KIKUCHI reg = <0>; 131*9a01fb40SHironori KIKUCHI spi-max-frequency = <3125000>; 132*9a01fb40SHironori KIKUCHI VCC-supply = <®_lcd>; 133*9a01fb40SHironori KIKUCHI IOVCC-supply = <®_lcd>; 134*9a01fb40SHironori KIKUCHI reset-gpios = <&pio 8 14 GPIO_ACTIVE_HIGH>; /* LCD-RST: PI14 */ 135*9a01fb40SHironori KIKUCHI backlight = <&backlight>; 136*9a01fb40SHironori KIKUCHI 137*9a01fb40SHironori KIKUCHI port { 138*9a01fb40SHironori KIKUCHI panel_in_rgb: endpoint { 139*9a01fb40SHironori KIKUCHI remote-endpoint = <&tcon_lcd0_out_lcd>; 140*9a01fb40SHironori KIKUCHI }; 141*9a01fb40SHironori KIKUCHI }; 142*9a01fb40SHironori KIKUCHI }; 143*9a01fb40SHironori KIKUCHI }; 144