/
spi-cc-2cs-mhs3528.dts
62 lines (53 loc) · 1.43 KB
/
spi-cc-2cs-mhs3528.dts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2022 Da Xue
* Author: Da Xue <da@libre.computer>
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/gpio/meson-gxl-gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/amlogic,meson-gxl-gpio-intc.h>
/ {
compatible = "libretech,aml-s905x-cc", "amlogic,s905x", "amlogic,meson-gxl";
fragment@0 {
target = <&cec_AO>;
__overlay__ {
status = "disabled";
};
};
fragment@1 {
target = <&spicc>;
__overlay__ {
display@0 {
compatible = "waveshare,rpi-lcd-35", "ilitek,ili9486";
reg = <0>;
spi-max-frequency = <41666667>;
reset-gpios = <&gpio GPIOX_0 GPIO_ACTIVE_HIGH>;
dc-gpios = <&gpio GPIOX_15 GPIO_ACTIVE_HIGH>;
status = "okay";
};
touchscreen@1 {
compatible = "ti,ads7846";
pinctrl-names = "default";
pinctrl-0 = <&ao_cec_pins>;
reg = <1>;
spi-max-frequency = <2000000>;
interrupt-parent = <&gpio_intc>;
interrupts = <IRQID_GPIOAO_8 IRQ_TYPE_EDGE_FALLING>;
pendown-gpio = <&gpio_ao GPIOAO_8 GPIO_ACTIVE_LOW>;
ti,x-plate-ohms = /bits/ 16 <60>;
ti,pressure-max = /bits/ 16 <255>;
touchscreen-swapped-x-y;
touchscreen-inverted-x;
touchscreen-min-x = <180>;
touchscreen-size-x = <3880>;
touchscreen-min-y = <240>;
touchscreen-size-y = <3940>;
wakeup-source;
status = "okay";
};
};
};
};