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

dt-bindings: Add binding for Sitronix ST7735R display panels

This adds a new device tree binding for Sitronix ST7735R display panels,
such as the Adafruit 1.8" TFT.

Signed-off-by: David Lechner <david@lechnology.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1514833336-22564-3-git-send-email-david@lechnology.com

authored by

David Lechner and committed by
Noralf Trønnes
634ab311 95e2ce7b

+35
+35
Documentation/devicetree/bindings/display/sitronix,st7735r.txt
··· 1 + Sitronix ST7735R display panels 2 + 3 + This binding is for display panels using a Sitronix ST7735R controller in SPI 4 + mode. 5 + 6 + Required properties: 7 + - compatible: "jianda,jd-t18003-t01", "sitronix,st7735r" 8 + - dc-gpios: Display data/command selection (D/CX) 9 + - reset-gpios: Reset signal (RSTX) 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 + 20 + backlight: backlight { 21 + compatible = "gpio-backlight"; 22 + gpios = <&gpio 44 GPIO_ACTIVE_HIGH>; 23 + } 24 + 25 + ... 26 + 27 + display@0{ 28 + compatible = "jianda,jd-t18003-t01", "sitronix,st7735r"; 29 + reg = <0>; 30 + spi-max-frequency = <32000000>; 31 + dc-gpios = <&gpio 43 GPIO_ACTIVE_HIGH>; 32 + reset-gpios = <&gpio 80 GPIO_ACTIVE_HIGH>; 33 + rotation = <270>; 34 + backlight = &backlight; 35 + };