1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*833e5d42SEmmanuel Vadot%YAML 1.2 3*833e5d42SEmmanuel Vadot--- 4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/display/himax,hx8357.yaml# 5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*833e5d42SEmmanuel Vadot 7*833e5d42SEmmanuel Vadottitle: Himax HX8357D display panel 8*833e5d42SEmmanuel Vadot 9*833e5d42SEmmanuel Vadotdescription: 10*833e5d42SEmmanuel Vadot Display panels using a Himax HX8357D controller in SPI 11*833e5d42SEmmanuel Vadot mode, such as the Adafruit 3.5" TFT for Raspberry Pi. 12*833e5d42SEmmanuel Vadot 13*833e5d42SEmmanuel Vadotmaintainers: 14*833e5d42SEmmanuel Vadot - Frank Li <Frank.Li@nxp.com> 15*833e5d42SEmmanuel Vadot 16*833e5d42SEmmanuel Vadotproperties: 17*833e5d42SEmmanuel Vadot compatible: 18*833e5d42SEmmanuel Vadot oneOf: 19*833e5d42SEmmanuel Vadot - items: 20*833e5d42SEmmanuel Vadot - enum: 21*833e5d42SEmmanuel Vadot - adafruit,yx350hv15 22*833e5d42SEmmanuel Vadot - himax,hx8357b 23*833e5d42SEmmanuel Vadot - const: himax,hx8357 24*833e5d42SEmmanuel Vadot - items: 25*833e5d42SEmmanuel Vadot - enum: 26*833e5d42SEmmanuel Vadot - himax,hx8369a 27*833e5d42SEmmanuel Vadot - const: himax,hx8369 28*833e5d42SEmmanuel Vadot 29*833e5d42SEmmanuel Vadot reg: 30*833e5d42SEmmanuel Vadot maxItems: 1 31*833e5d42SEmmanuel Vadot 32*833e5d42SEmmanuel Vadot dc-gpios: 33*833e5d42SEmmanuel Vadot maxItems: 1 34*833e5d42SEmmanuel Vadot description: D/C pin 35*833e5d42SEmmanuel Vadot 36*833e5d42SEmmanuel Vadot rotation: 37*833e5d42SEmmanuel Vadot enum: [0, 90, 180, 270] 38*833e5d42SEmmanuel Vadot 39*833e5d42SEmmanuel Vadot backlight: 40*833e5d42SEmmanuel Vadot description: 41*833e5d42SEmmanuel Vadot phandle of the backlight device attached to the panel 42*833e5d42SEmmanuel Vadot 43*833e5d42SEmmanuel Vadot im-gpios: 44*833e5d42SEmmanuel Vadot maxItems: 3 45*833e5d42SEmmanuel Vadot 46*833e5d42SEmmanuel Vadot reset-gpios: 47*833e5d42SEmmanuel Vadot maxItems: 1 48*833e5d42SEmmanuel Vadot 49*833e5d42SEmmanuel Vadot spi-cpha: true 50*833e5d42SEmmanuel Vadot 51*833e5d42SEmmanuel Vadot spi-cpol: true 52*833e5d42SEmmanuel Vadot 53*833e5d42SEmmanuel Vadotrequired: 54*833e5d42SEmmanuel Vadot - compatible 55*833e5d42SEmmanuel Vadot - reg 56*833e5d42SEmmanuel Vadot 57*833e5d42SEmmanuel VadotallOf: 58*833e5d42SEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 59*833e5d42SEmmanuel Vadot 60*833e5d42SEmmanuel VadotunevaluatedProperties: false 61*833e5d42SEmmanuel Vadot 62*833e5d42SEmmanuel Vadotexamples: 63*833e5d42SEmmanuel Vadot - | 64*833e5d42SEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 65*833e5d42SEmmanuel Vadot 66*833e5d42SEmmanuel Vadot spi { 67*833e5d42SEmmanuel Vadot #address-cells = <1>; 68*833e5d42SEmmanuel Vadot #size-cells = <0>; 69*833e5d42SEmmanuel Vadot 70*833e5d42SEmmanuel Vadot display@0 { 71*833e5d42SEmmanuel Vadot compatible = "adafruit,yx350hv15", "himax,hx8357"; 72*833e5d42SEmmanuel Vadot reg = <0>; 73*833e5d42SEmmanuel Vadot spi-max-frequency = <32000000>; 74*833e5d42SEmmanuel Vadot dc-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; 75*833e5d42SEmmanuel Vadot rotation = <90>; 76*833e5d42SEmmanuel Vadot backlight = <&backlight>; 77*833e5d42SEmmanuel Vadot }; 78*833e5d42SEmmanuel Vadot }; 79