0002-enable-st7789v-lcd.patch 893 B

1234567891011121314151617181920212223242526272829
  1. sun8i-v3s-licheepi-zero.dts | 18 ++++++++++++++++++
  2. 1 file changed, 18 insertions(+)
  3. diff --git a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
  4. index d63a9a3..063c6bf 100644
  5. --- a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
  6. +++ b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
  7. @@ -118,3 +118,21 @@
  8. usb0_id_det-gpio = <&pio 5 6 GPIO_ACTIVE_HIGH>;
  9. status = "okay";
  10. };
  11. +
  12. +&spi0 {
  13. + status = "okay";
  14. +
  15. + st7789v@0 {
  16. + compatible = "sitronix,st7789v";
  17. + reg = <0>;
  18. +
  19. + spi-max-frequency = <24000000>;
  20. + txbuflen = <115200>;
  21. + rotate = <0>;
  22. + fps = <25>;
  23. + buswidth = <8>;
  24. + reset-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>;
  25. + dc-gpios = <&pio 1 5 GPIO_ACTIVE_LOW>;
  26. + debug = <0>;
  27. + };
  28. +};