-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cm5 io: add waveshare spi lcd support
Signed-off-by: Nascs Fang <[email protected]>
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
arch/arm64/boot/dts/rockchip/overlays/rk3588-spi0-m1-cs0-waveshare35.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/pinctrl/rockchip.h> | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
|
||
/ { | ||
metadata { | ||
title = "Enable Waveshare 3.5 inch Display on SPI0"; | ||
compatible = "radxa,cm5-io"; | ||
category = "misc"; | ||
exclusive = "GPIO1_B1", "GPIO1_D5", "GPIO4_A0", "GPIO4_A1", "GPIO4_A2", "GPIO4_B2" ; | ||
description = "Enable Waveshare 3.5 inch Display on SPI0."; | ||
}; | ||
|
||
fragment@0 { | ||
target = <&spi0>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&spi0m1_cs0 &spi0m1_pins>; | ||
max-freq = <16000000>; | ||
|
||
ili9486@0 { | ||
compatible = "ilitek,ili9486"; | ||
reg = <0>; | ||
spi-max-frequency = <16000000>; | ||
txbuflen = <32768>; | ||
rotate = <90>; | ||
bgr = <0>; | ||
fps = <30>; | ||
buswidth = <8>; | ||
regwidth = <16>; | ||
reset-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; // GPIO1_B1 | ||
dc-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; // GPIO1_D5 | ||
debug = <0>; | ||
}; | ||
}; | ||
}; | ||
}; |