ODROID-M1S: dtb/dtbo: add 1.44" 128x128 TFT LCD with 'st7735' controller

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I46ae1370749feeb2da330ef951172bc3c9b6e510
This commit is contained in:
Dongjin Kim
2024-01-07 22:53:38 +09:00
committed by xiane
parent 9555ebe207
commit dc709c42af
2 changed files with 51 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP_ODROIDM1) += \
circuitpython.dtbo \
dht11.dtbo \
display_3_5.dtbo \
display_st7735_128x128.dtbo \
display_waveshare_1inch47.dtbo \
display_waveshare_1inch69.dtbo \
display_vu5s.dtbo \

View File

@@ -0,0 +1,50 @@
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
/ {
fragment@0 {
target = <&spi1>;
__overlay__ {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
lcd@0 {
status = "okay";
compatible = "jianda,jd-t18003-t01";
reg = <0>;
spi-max-frequency = <100000000>;
backlight = <&backlight_gpio>;
dc-gpios = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&display_pins>;
display_pins: display-pins {
rockchip,pins = <2 RK_PB0 0 &pcfg_pull_none>,
<0 RK_PC1 0 &pcfg_pull_none>;
};
};
};
};
fragment@1 {
target-path = "/";
__overlay__ {
backlight_gpio: backlight-gpio {
status = "okay";
compatible = "gpio-backlight";
gpios = <&gpio2 RK_PA7 GPIO_ACTIVE_HIGH>;
};
};
};
};