RK3568-spi-适配1.8寸TFT彩屏驱动芯片st7735s

RK3568-spi-适配1.8寸TFT彩屏

驱动芯片st7735s
显示分辨率128x160

RK3568-spi-适配1.8寸TFT彩屏驱动芯片st7735s_第1张图片

硬件连接

VCC -- 3.3V
GND -- GND
BL -- 背光控制
CS -- 片选引脚
DC -- 数据/命令控制
RES -- 屏幕复位
SCL -- i2c时钟引脚
SDA -- i2c数据引脚

设备树编写

&spi0 {
	pinctrl-names = "default", "high_speed";
	pinctrl-0 = <&spi0m1_cs0 &spi0m1_pins>;
	pinctrl-1 = <&spi0m1_cs0 &spi0m1_pins_hs>;
	status = "okay";

	spi@0 {
		compatible = "jianda,jd-t18003-t01", "sitronix,st7735r";
		reg = <0>;
		//cs-gpio =  <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
		dc-gpios =  <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
		reset-gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_HIGH>;
		led-gpio = <&gpio3 RK_PB4 GPI

你可能感兴趣的:(RK3568,linux)