devicetree: fogor: tp tm-icnl9916c tp bringup<1>

tp function:
    tm-icnl9916c bringup in devicetree

Change-Id: I4d965e325f0c94df8a3c3969cd8cf8ea72a2597d
Signed-off-by: chenshitao <ontim51@motorola.com>
Reviewed-on: https://gerrit.mot.com/2645705
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
chenshitao 2023-06-16 11:56:52 +08:00 • committed by panyq6
commit ac9b90fff5

View file

@ -10,12 +10,95 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
&tlmm {
touch_int_mux {
touch_int_active: active {
mux {
pins = "gpio22";
function = "gpio";
};
config {
pins = "gpio22";
drive-strength = <8>;
bias-pull-up;
};
};
touch_int_suspend: default {
mux {
pins = "gpio22";
function = "gpio";
};
config {
pins = "gpio22";
drive-strength = <2>;
bias-disable;
};
};
};
pmx_ts_int_suspend_high {
ts_int_suspend_high: ts_int_suspend_high {
mux {
pins = "gpio22";
function = "gpio";
};
config {
pins = "gpio22";
drive-strength = <2>;
bias-pull-up;
};
};
};
touch_reset_mux {
touch_reset_active: active {
mux {
pins = "gpio21";
function = "gpio";
};
config {
pins = "gpio21";
drive-strength = <8>;
bias-disable;
};
};
touch_reset_suspend: default {
mux {
pins = "gpio21";
function = "gpio";
};
config {
pins = "gpio21";
drive-strength = <2>;
bias-pull-down;
output-low;
};
};
};
ts_release_mux {
ts_release: ts_release {
mux {
pins = "gpio21", "gpio22";
function = "gpio";
};
config {
pins = "gpio21", "gpio22";
drive-strength = <2>;
bias-disable;
};
};
};
};
&qupv3_se0_i2c {
status = "disabled";
};
&L13A {
&L9A {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
qcom,init-voltage = <1800000>;
@ -82,65 +165,24 @@
pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>;
pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>;
goodix-berlin@0 {
compatible = "goodix,gt9916S";
chipone_tddi@0 {
compatible = "chipone-tddi";
reg = <0x0>;
spi-max-frequency = <9600000>;
mmi,status = "/chosen","mmi,panel_name","contains","nt37703"
//goodix,avdd-name = "avdd";
goodix,iovdd-name = "iovdd";
goodix,avdd-gpio = <&tlmm 11 0x0>;
iovdd-supply = <&L13A>;
spi-max-frequency = <8000000>;
interrupt-parent = <&tlmm>;
interrupts = <22 0x2001>;
spi-cpha;
spi-cpol;
chipone,rst-gpio = <&tlmm 21 0x00>;
chipone,irq-gpio = <&tlmm 22 0x2001>;
chipone,x-res = <720>;
chipone,y-res = <1600>;
chipone,def-build-id = <0x0101>;
chipone,def-config-id = <0x0001>;
pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high";
pinctrl-3 = <&ts_active>;
pinctrl-4 = <&ts_int_suspend_high>;
panel = <&dsi_icnl9916c_hd_plus_120_video>;
goodix,reset-gpio = <&tlmm 21 0x0>;
goodix,irq-gpio = <&tlmm 22 0x0>;
goodix,irq-flags = <2>;
goodix,panel-max-x = <17280>;
goodix,panel-max-y = <38400>;
goodix,panel-max-w = <255>;
goodix,panel-max-p = <4096>;
goodix,firmware-name = "goodix_firmware.bin";
goodix,config-name = "goodix_cfg_group.bin";
goodix,edge-ctrl;
goodix,interpolation-ctrl;
mmi,power-off-suspend;
mmi,usb-charger-detection;
mmi,enable-gestures;
mmi,supported_gesture_type = <0x07>;
status = "ok"
};
focaltech@1{
compatible = "focaltech,fts";
reg = <0x1>;
//mmi,status = "/chosen","vtdr6115"
mmi,status = "/chosen","mmi,panel_name","contains","vtdr6115"
spi-max-frequency = <9600000>;
interrupt-parent = <&tlmm>;
interrupts = <22 0x2008>;
focaltech,vdd-gpio = <&tlmm 11 0x00>;
focaltech,reset-gpio = <&tlmm 21 0x00>;
focaltech,irq-gpio = <&tlmm 22 0x02008>;
vcc_i2c-supply = <&L13A>;
focaltech,max-touch-number = <10>;
focaltech,display-coords = <0 0 17280 38400>;
focaltech,edge-ctrl;
focaltech,interpolation-ctrl;
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 = <&pmx_ts_release>;
panel = <&dsi_icnl9916c_hd_plus_120_video>;
mmi,usb-charger-detection;
mmi,enable-gestures;
mmi,supported_gesture_type = <0x07>;
status = "ok"
};
};