1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only 2*c66ec88fSEmmanuel Vadot%YAML 1.2 3*c66ec88fSEmmanuel Vadot--- 4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/ilitek,ili9486.yaml# 5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel Vadottitle: Ilitek ILI9486 display panels device tree bindings 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel Vadotmaintainers: 10*c66ec88fSEmmanuel Vadot - Kamlesh Gurudasani <kamlesh.gurudasani@gmail.com> 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadotdescription: 13*c66ec88fSEmmanuel Vadot This binding is for display panels using an Ilitek ILI9486 controller in SPI 14*c66ec88fSEmmanuel Vadot mode. 15*c66ec88fSEmmanuel Vadot 16*c66ec88fSEmmanuel VadotallOf: 17*c66ec88fSEmmanuel Vadot - $ref: panel/panel-common.yaml# 18*c66ec88fSEmmanuel Vadot 19*c66ec88fSEmmanuel Vadotproperties: 20*c66ec88fSEmmanuel Vadot compatible: 21*c66ec88fSEmmanuel Vadot items: 22*c66ec88fSEmmanuel Vadot - enum: 23*c66ec88fSEmmanuel Vadot # Waveshare 3.5" 320x480 Color TFT LCD 24*c66ec88fSEmmanuel Vadot - waveshare,rpi-lcd-35 25*c66ec88fSEmmanuel Vadot # Ozzmaker 3.5" 320x480 Color TFT LCD 26*c66ec88fSEmmanuel Vadot - ozzmaker,piscreen 27*c66ec88fSEmmanuel Vadot - const: ilitek,ili9486 28*c66ec88fSEmmanuel Vadot 29*c66ec88fSEmmanuel Vadot spi-max-frequency: 30*c66ec88fSEmmanuel Vadot maximum: 32000000 31*c66ec88fSEmmanuel Vadot 32*c66ec88fSEmmanuel Vadot dc-gpios: 33*c66ec88fSEmmanuel Vadot maxItems: 1 34*c66ec88fSEmmanuel Vadot description: Display data/command selection (D/CX) 35*c66ec88fSEmmanuel Vadot 36*c66ec88fSEmmanuel Vadot backlight: true 37*c66ec88fSEmmanuel Vadot reg: true 38*c66ec88fSEmmanuel Vadot reset-gpios: true 39*c66ec88fSEmmanuel Vadot rotation: true 40*c66ec88fSEmmanuel Vadot 41*c66ec88fSEmmanuel Vadotrequired: 42*c66ec88fSEmmanuel Vadot - compatible 43*c66ec88fSEmmanuel Vadot - reg 44*c66ec88fSEmmanuel Vadot - dc-gpios 45*c66ec88fSEmmanuel Vadot - reset-gpios 46*c66ec88fSEmmanuel Vadot 47*c66ec88fSEmmanuel VadotadditionalProperties: false 48*c66ec88fSEmmanuel Vadot 49*c66ec88fSEmmanuel Vadotexamples: 50*c66ec88fSEmmanuel Vadot - | 51*c66ec88fSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 52*c66ec88fSEmmanuel Vadot 53*c66ec88fSEmmanuel Vadot backlight: backlight { 54*c66ec88fSEmmanuel Vadot compatible = "gpio-backlight"; 55*c66ec88fSEmmanuel Vadot gpios = <&gpio 22 GPIO_ACTIVE_HIGH>; 56*c66ec88fSEmmanuel Vadot }; 57*c66ec88fSEmmanuel Vadot spi { 58*c66ec88fSEmmanuel Vadot #address-cells = <1>; 59*c66ec88fSEmmanuel Vadot #size-cells = <0>; 60*c66ec88fSEmmanuel Vadot 61*c66ec88fSEmmanuel Vadot 62*c66ec88fSEmmanuel Vadot display@0{ 63*c66ec88fSEmmanuel Vadot compatible = "waveshare,rpi-lcd-35", "ilitek,ili9486"; 64*c66ec88fSEmmanuel Vadot reg = <0>; 65*c66ec88fSEmmanuel Vadot spi-max-frequency = <32000000>; 66*c66ec88fSEmmanuel Vadot dc-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; 67*c66ec88fSEmmanuel Vadot reset-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; 68*c66ec88fSEmmanuel Vadot rotation = <180>; 69*c66ec88fSEmmanuel Vadot backlight = <&backlight>; 70*c66ec88fSEmmanuel Vadot }; 71*c66ec88fSEmmanuel Vadot }; 72*c66ec88fSEmmanuel Vadot 73*c66ec88fSEmmanuel Vadot... 74