MLK-15348-02 arm: dts: imx7ulp: add focaltech touch panel ft5246 support
Add focaltech new touch panel ft5246 support. Set the ft5426 as default panel for dts. If want to use the old panel, then it needs to boot with imx7ulp-evk-ft5416.dtb file. Signed-off-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit:963fea909ef5e42294cb2e656e5e3870a2171c01)pull/10/head
parent
32ac7e6673
commit
69bffaed6f
|
@ -641,6 +641,7 @@ dtb-$(CONFIG_SOC_IMX7ULP) += \
|
|||
imx7ulp-evk.dtb \
|
||||
imx7ulp-evk-emmc.dtb \
|
||||
imx7ulp-evk-emmc-qspi.dtb \
|
||||
imx7ulp-evk-ft5416.dtb \
|
||||
imx7ulp-evk-sd1.dtb \
|
||||
imx7ulp-evk-lpuart.dtb \
|
||||
imx7ulp-evk-qspi.dtb \
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright (C) 2017 Freescale Semiconductor, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#include "imx7ulp-evk.dts"
|
||||
|
||||
&lpi2c7 {
|
||||
focaltech@38 {
|
||||
focaltech,panel-type = <FT5416>;
|
||||
focaltech,swap-xy;
|
||||
/delete-property/focaltech,scaling-down-half;
|
||||
};
|
||||
};
|
|
@ -388,6 +388,7 @@
|
|||
reg = <0x38>;
|
||||
interrupt-parent = <&gpio3>;
|
||||
interrupts = <0 0x02>;
|
||||
focaltech,panel-type = <FT5426>;
|
||||
focaltech,reset-gpio = <&gpio3 1 0x01>;
|
||||
focaltech,irq-gpio = <&gpio3 0 0x02>;
|
||||
focaltech,max-touch-number = <5>;
|
||||
|
@ -398,7 +399,7 @@
|
|||
focaltech,keys = <139 102 158>;
|
||||
focaltech,key-y-coord = <2000>;
|
||||
focaltech,key-x-coords = <200 600 800>;
|
||||
focaltech,swap-xy;
|
||||
focaltech,scaling-down-half;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -15,4 +15,7 @@
|
|||
#define MATRIX_KEY(row, col, code) \
|
||||
((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
|
||||
|
||||
#define FT5416 0x54160002
|
||||
#define FT5426 0x54260002
|
||||
|
||||
#endif /* _DT_BINDINGS_INPUT_INPUT_H */
|
||||
|
|
Loading…
Reference in New Issue