-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from 0101wu/develop
rock 3c: add waveshare35 support
- Loading branch information
Showing
2 changed files
with
64 additions
and
1 deletion.
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
62 changes: 62 additions & 0 deletions
62
arch/arm64/boot/dts/rockchip/overlays/rk3568-spi3-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,62 @@ | ||
/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.5inch RPi LCD (C) on SPI3-M1"; | ||
compatible = "radxa,rock-3c", "radxa,zero3"; | ||
category = "display"; | ||
exclusive = "GPIO4_A6", "GPIO4_C6", "GPIO3_C1", "GPIO3_B2", "GPIO3_A1", "GPIO4_D1", "GPIO4_B2", "GPIO4_B3"; | ||
description = "Enable Waveshare 3.5inch RPi LCD (C) on SPI3-M1.\nHDMI CEC function will be turned off when this overlay is enabled."; | ||
}; | ||
}; | ||
|
||
&spi3 { | ||
status = "okay"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
pinctrl-names = "default", "high_speed"; | ||
pinctrl-0 = <&spi3m1_cs0 &spi3m1_pins>; | ||
pinctrl-1 = <&spi3m1_cs1 &spi3m1_pins_hs>; | ||
max-freq = <16000000>; | ||
|
||
ili9486@0 { | ||
compatible = "waveshare,rpi-lcd-35", "ilitek,ili9486"; | ||
reg = <0>; | ||
spi-max-frequency = <16000000>; | ||
txbuflen = <32768>; | ||
rotate = <90>; | ||
bgr = <0>; | ||
fps = <30>; | ||
buswidth = <8>; | ||
regwidth = <16>; | ||
reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>; | ||
dc-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>; | ||
debug = <0>; | ||
}; | ||
|
||
ads7846@1 { | ||
compatible = "ti,ads7846"; | ||
status = "okay"; | ||
reg = <1>; | ||
id = <1>; | ||
spi-max-frequency = <2000000>; | ||
interrupts = <RK_PA1 IRQ_TYPE_EDGE_FALLING>; | ||
interrupt-parent = <&gpio3>; | ||
pendown-gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>; | ||
ti,x-plate-ohms = /bits/ 16 <60>; | ||
ti,pressure-max = /bits/ 16 <255>; | ||
ti,swap-xy = <0>; | ||
ti,invert-y = <1>; | ||
vcc-supply = <&vcc5v0_sys>; | ||
}; | ||
}; | ||
|
||
&hdmi { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&hdmitx_scl &hdmitx_sda>; | ||
}; |