mirror of
https://github.com/Evolution-X-Devices/kernel_xiaomi_sm8450-devicetrees
synced 2026-02-01 08:51:30 +00:00
Merge "ARM: dts: msm: add touchscreen support for Cape"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
622c0325b1
@@ -1 +1,28 @@
|
||||
&soc { };
|
||||
|
||||
&qupv3_se4_i2c {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
status = "ok";
|
||||
qcom,i2c-touch-active = "focaltech,fts_ts";
|
||||
|
||||
focaltech@38 {
|
||||
compatible = "focaltech,fts_ts";
|
||||
reg = <0x38>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <21 0x2008>;
|
||||
focaltech,reset-gpio = <&tlmm 20 0x00>;
|
||||
focaltech,irq-gpio = <&tlmm 21 0x2008>;
|
||||
focaltech,max-touch-number = <5>;
|
||||
focaltech,display-coords = <0 0 1080 2340>;
|
||||
focaltech,touch-type = "primary";
|
||||
|
||||
vdd-supply = <&L3C>;
|
||||
|
||||
pinctrl-names = "pmx_ts_active", "pmx_ts_suspend","pmx_ts_release";
|
||||
pinctrl-0 = <&ts_active>;
|
||||
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
|
||||
pinctrl-2 = <&ts_release>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -41,3 +41,49 @@
|
||||
&pm8350c_flash {
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&qupv3_se4_i2c {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
status = "ok";
|
||||
qcom,i2c-touch-active = "focaltech,fts_ts";
|
||||
|
||||
focaltech@38 {
|
||||
compatible = "focaltech,fts_ts";
|
||||
reg = <0x38>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <21 0x2008>;
|
||||
focaltech,reset-gpio = <&tlmm 20 0x00>;
|
||||
focaltech,irq-gpio = <&tlmm 21 0x2008>;
|
||||
focaltech,max-touch-number = <5>;
|
||||
focaltech,display-coords = <0 0 1080 2340>;
|
||||
focaltech,touch-type = "primary";
|
||||
|
||||
vdd-supply = <&L3C>;
|
||||
|
||||
pinctrl-names = "pmx_ts_active", "pmx_ts_suspend","pmx_ts_release";
|
||||
pinctrl-0 = <&ts_active>;
|
||||
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
|
||||
pinctrl-2 = <&ts_release>;
|
||||
};
|
||||
|
||||
atmel_mxt_ts@4a {
|
||||
compatible = "atmel,maxtouch";
|
||||
reg = <0x4a>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <21 0x2008>;
|
||||
avdd-supply = <&L3C>;
|
||||
pinctrl-names = "pmx_ts_active", "pmx_ts_suspend";
|
||||
pinctrl-0 = <&ts_active>;
|
||||
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
|
||||
|
||||
atmel,xy_switch;
|
||||
atmel,inverty;
|
||||
atmel,invertx;
|
||||
reset-gpios = <&tlmm 20 0x00>;
|
||||
irq-gpios = <&tlmm 21 0x2008>;
|
||||
atmel,panel-coords = <0 0 479 799>;
|
||||
atmel,display-coords = <0 0 339 729>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -47,3 +47,32 @@
|
||||
qcom,wireless-fw-name = "idt9415.bin";
|
||||
qcom,shutdown-voltage = <3100>;
|
||||
};
|
||||
|
||||
&qupv3_se4_spi {
|
||||
status = "ok";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
qcom,spi-touch-active = "focaltech,fts_ts";
|
||||
|
||||
focaltech@0 {
|
||||
compatible = "focaltech,fts_ts";
|
||||
reg = <0x0>;
|
||||
spi-max-frequency = <6000000>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <21 0x2008>;
|
||||
focaltech,reset-gpio = <&tlmm 20 0x00>;
|
||||
focaltech,irq-gpio = <&tlmm 21 0x2008>;
|
||||
focaltech,display-coords = <0 0 1080 2340>;
|
||||
focaltech,max-touch-number = <5>;
|
||||
focaltech,ic-type = <0x3658D488>;
|
||||
focaltech,touch-type = "primary";
|
||||
|
||||
vdd-supply = <&L3C>;
|
||||
|
||||
pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release";
|
||||
pinctrl-0 = <&ts_active>;
|
||||
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
|
||||
pinctrl-2 = <&ts_release>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -2378,4 +2378,65 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/* touchscreen pins */
|
||||
pmx_ts_active {
|
||||
ts_active: ts_active {
|
||||
mux {
|
||||
pins = "gpio20", "gpio21";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio20", "gpio21";
|
||||
drive-strength = <8>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmx_ts_reset_suspend {
|
||||
ts_reset_suspend: ts_reset_suspend {
|
||||
mux {
|
||||
pins = "gpio20";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio20";
|
||||
drive-strength = <2>;
|
||||
bias-pull-down;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmx_ts_int_suspend {
|
||||
ts_int_suspend: ts_int_suspend {
|
||||
mux {
|
||||
pins = "gpio21";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio21";
|
||||
drive-strength = <2>;
|
||||
bias-pull-down;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmx_ts_release {
|
||||
ts_release: ts_release {
|
||||
mux {
|
||||
pins = "gpio20", "gpio21";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio20", "gpio21";
|
||||
drive-strength = <2>;
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user