Skip to content

Commit

Permalink
Merge pull request #381 from Logan147/main
Browse files Browse the repository at this point in the history
feat: 微雪电子1.9inch 的st7789LCD meson-g12a-spi-st7789v
  • Loading branch information
RadxaYuntian authored Nov 25, 2024
2 parents 1d41355 + ceff177 commit dc8195a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/amlogic/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ dtb-$(CONFIG_ARCH_MESON) += \
radxa-zero-enable-vddio_c.dtbo \
radxa-zero-led-8-off.dtbo \
radxa-zero-led-10-off.dtbo \
radxa-zero-spi-b-waveshare13.dtbo \
radxa-zero-spi-b-waveshare35b.dtbo \
radxa-zero-uart-ao-b-89.dtbo \
radxa-zero2-enable-vddio_c.dtbo \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/gpio/meson-g12a-gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

/ {
metadata {
title = "Enable Waveshare General 1.3inch LCD display Module on SPI-B";
compatible = "radxa,zero";
category = "misc";
exclusive = "spicc1", "GPIOH_4", "GPIOH_5", "GPIOH_6", "GPIOH_7", "GPIOAO_3", "GPIOX_8";
description = "Enable Waveshare General 1.3inch LCD display Module on SPI-B.";
};
};

&spicc1 {
pinctrl-0 = <&spicc1_pins>;
pinctrl-names = "default";
cs-gpios = <&gpio GPIOH_6 GPIO_ACTIVE_LOW>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
st7789v: st7789v@0 {
compatible = "sitronix,st7789v";
reg = <0>;
spi-max-frequency = <12000000>;
rotate = <90>;
fps = <50>;
buswidth = <8>;
regwidth = <8>;
width = <170>;
height = <320>;
reset-gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
dc-gpios = <&gpio GPIOX_8 GPIO_ACTIVE_HIGH>;
debug = <0>;
};
};

0 comments on commit dc8195a

Please sign in to comment.