Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: display: convert himax,hx8357d.txt to yaml format

Convert himax,hx8357d.txt to yaml format.

Additional changes:
- add spi parent node in examples.
- ref to spi-peripheral-props.yaml.
- change himax,hx8357a to himax,hx8357 to align driver and existed dts.
- add himax,hx8369a and fallback to himax,hx8369.
- allow spi-cpha and spi-cpol to align existed dts.
- add im-gpios for interface selections.
- add reset-gpios.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250602152814.949671-1-Frank.Li@nxp.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Frank Li and committed by
Rob Herring (Arm)
d205b07e f2d26960

+79 -27
+78
Documentation/devicetree/bindings/display/himax,hx8357.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/display/himax,hx8357.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Himax HX8357D display panel 8 + 9 + description: 10 + Display panels using a Himax HX8357D controller in SPI 11 + mode, such as the Adafruit 3.5" TFT for Raspberry Pi. 12 + 13 + maintainers: 14 + - Frank Li <Frank.Li@nxp.com> 15 + 16 + properties: 17 + compatible: 18 + oneOf: 19 + - items: 20 + - enum: 21 + - adafruit,yx350hv15 22 + - himax,hx8357b 23 + - const: himax,hx8357 24 + - items: 25 + - enum: 26 + - himax,hx8369a 27 + - const: himax,hx8369 28 + 29 + reg: 30 + maxItems: 1 31 + 32 + dc-gpios: 33 + maxItems: 1 34 + description: D/C pin 35 + 36 + rotation: 37 + enum: [0, 90, 180, 270] 38 + 39 + backlight: 40 + description: 41 + phandle of the backlight device attached to the panel 42 + 43 + im-gpios: 44 + maxItems: 3 45 + 46 + reset-gpios: 47 + maxItems: 1 48 + 49 + spi-cpha: true 50 + 51 + spi-cpol: true 52 + 53 + required: 54 + - compatible 55 + - reg 56 + 57 + allOf: 58 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 59 + 60 + unevaluatedProperties: false 61 + 62 + examples: 63 + - | 64 + #include <dt-bindings/gpio/gpio.h> 65 + 66 + spi { 67 + #address-cells = <1>; 68 + #size-cells = <0>; 69 + 70 + display@0 { 71 + compatible = "adafruit,yx350hv15", "himax,hx8357"; 72 + reg = <0>; 73 + spi-max-frequency = <32000000>; 74 + dc-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; 75 + rotation = <90>; 76 + backlight = <&backlight>; 77 + }; 78 + };
-26
Documentation/devicetree/bindings/display/himax,hx8357d.txt
··· 1 - Himax HX8357D display panels 2 - 3 - This binding is for display panels using a Himax HX8357D controller in SPI 4 - mode, such as the Adafruit 3.5" TFT for Raspberry Pi. 5 - 6 - Required properties: 7 - - compatible: "adafruit,yx350hv15", "himax,hx8357d" 8 - - dc-gpios: D/C pin 9 - - reg: address of the panel on the SPI bus 10 - 11 - The node for this driver must be a child node of a SPI controller, hence 12 - all mandatory properties described in ../spi/spi-bus.txt must be specified. 13 - 14 - Optional properties: 15 - - rotation: panel rotation in degrees counter clockwise (0,90,180,270) 16 - - backlight: phandle of the backlight device attached to the panel 17 - 18 - Example: 19 - display@0{ 20 - compatible = "adafruit,yx350hv15", "himax,hx8357d"; 21 - reg = <0>; 22 - spi-max-frequency = <32000000>; 23 - dc-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; 24 - rotation = <90>; 25 - backlight = <&backlight>; 26 - };
+1 -1
MAINTAINERS
··· 7532 7532 DRM DRIVER FOR HX8357D PANELS 7533 7533 S: Orphan 7534 7534 T: git https://gitlab.freedesktop.org/drm/misc/kernel.git 7535 - F: Documentation/devicetree/bindings/display/himax,hx8357d.txt 7535 + F: Documentation/devicetree/bindings/display/himax,hx8357.yaml 7536 7536 F: drivers/gpu/drm/tiny/hx8357d.c 7537 7537 7538 7538 DRM DRIVER FOR HYPERV SYNTHETIC VIDEO DEVICE