0001 # SPDX-License-Identifier: GPL-2.0-only
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/ilitek,ili9486.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Ilitek ILI9486 display panels device tree bindings
0008
0009 maintainers:
0010 - Kamlesh Gurudasani <kamlesh.gurudasani@gmail.com>
0011
0012 description:
0013 This binding is for display panels using an Ilitek ILI9486 controller in SPI
0014 mode.
0015
0016 allOf:
0017 - $ref: panel/panel-common.yaml#
0018
0019 properties:
0020 compatible:
0021 items:
0022 - enum:
0023 # Waveshare 3.5" 320x480 Color TFT LCD
0024 - waveshare,rpi-lcd-35
0025 # Ozzmaker 3.5" 320x480 Color TFT LCD
0026 - ozzmaker,piscreen
0027 - const: ilitek,ili9486
0028
0029 spi-max-frequency:
0030 maximum: 32000000
0031
0032 dc-gpios:
0033 maxItems: 1
0034 description: Display data/command selection (D/CX)
0035
0036 backlight: true
0037 reg: true
0038 reset-gpios: true
0039 rotation: true
0040
0041 required:
0042 - compatible
0043 - reg
0044 - dc-gpios
0045 - reset-gpios
0046
0047 additionalProperties: false
0048
0049 examples:
0050 - |
0051 #include <dt-bindings/gpio/gpio.h>
0052
0053 backlight: backlight {
0054 compatible = "gpio-backlight";
0055 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
0056 };
0057 spi {
0058 #address-cells = <1>;
0059 #size-cells = <0>;
0060
0061
0062 display@0{
0063 compatible = "waveshare,rpi-lcd-35", "ilitek,ili9486";
0064 reg = <0>;
0065 spi-max-frequency = <32000000>;
0066 dc-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
0067 reset-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
0068 rotation = <180>;
0069 backlight = <&backlight>;
0070 };
0071 };
0072
0073 ...