Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For screen calibration, it also need to modify 40-libinput.conf in /usr/share/X11/xorg.conf.d/ Change-Id: I03274dc76764aa635d862b8c7e8a61f5f4a372b3 Reviewed-on: https://tp-biosrd-v02/gerrit/80156 Reviewed-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com> Tested-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com>
- Loading branch information
1 parent
26a39a0
commit ea22619
Showing
3 changed files
with
71 additions
and
26 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
70 changes: 70 additions & 0 deletions
70
arch/arm/boot/dts/overlays/waveshare32b-tinker-overlay.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,70 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "rockchip,rk3288-miniarm", "rockchip,rk3288"; | ||
|
||
fragment@0 { | ||
target = <&spi2>; | ||
|
||
__overlay__ { | ||
status = "okay"; | ||
|
||
spidev@0 { | ||
status = "disabled"; | ||
}; | ||
|
||
spidev@1 { | ||
status = "disabled"; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&gpio5>; | ||
|
||
__overlay__ { | ||
waveshare32b_pins: waveshare32b_pins { | ||
rockchip,pins = <5 12 0 &pcfg_pull_none>, | ||
<5 14 0 &pcfg_pull_none>, | ||
<5 15 0 &pcfg_pull_none>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&spi2>; | ||
|
||
__overlay__ { | ||
#address-cells = <0x1>; | ||
#size-cells = <0x0>; | ||
|
||
waveshare32b@0 { | ||
compatible = "ilitek,ili9340"; | ||
reg = <0>; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&waveshare32b_pins>; | ||
spi-max-frequency = <16000000>; | ||
txbuflen = <32768>; | ||
rotate = <270>; | ||
bgr = <0>; | ||
fps = <25>; | ||
buswidth = <8>; | ||
reset-gpios = <&gpio5 14 0>; | ||
dc-gpios = <&gpio5 15 0>; | ||
debug = <0>; | ||
}; | ||
|
||
waveshare32b-ts@1 { | ||
compatible = "ti,ads7846"; | ||
reg = <1>; | ||
spi-max-frequency = <2000000>; | ||
interrupts = <12 2>; | ||
interrupt-parent = <&gpio5>; | ||
pendown-gpio = <&gpio5 12 0>; | ||
ti,x-plate-ohms = /bits/ 16 <60>;/*[00 3c];*/ | ||
ti,pressure-max = /bits/ 16 <255>;/*[00 ff];*/ | ||
}; | ||
}; | ||
}; | ||
}; |
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