Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
0002 //
0003 // Copyright (C) 2020 Pengutronix, Ulrich Oelmann <kernel@pengutronix.de>
0004 
0005 &ecspi4 {
0006         pinctrl-names = "default";
0007         pinctrl-0 = <&pinctrl_ecspi4>;
0008         cs-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
0009         status = "okay";
0010 
0011         touchscreen@0 {
0012                 pinctrl-names = "default";
0013                 pinctrl-0 = <&pinctrl_touch>;
0014                 compatible = "ti,tsc2046";
0015                 reg = <0>;
0016                 spi-max-frequency = <1000000>;
0017                 interrupts-extended = <&gpio3 19 IRQ_TYPE_LEVEL_LOW>;
0018                 vcc-supply = <&reg_3v3>;
0019                 pendown-gpio = <&gpio3 19 GPIO_ACTIVE_LOW>;
0020                 ti,x-plate-ohms = /bits/ 16 <850>;
0021                 ti,y-plate-ohms = /bits/ 16 <295>;
0022                 ti,pressure-min = /bits/ 16 <2>;
0023                 ti,pressure-max = /bits/ 16 <1500>;
0024                 ti,vref-mv = /bits/ 16 <3300>;
0025                 ti,settle-delay-usec = /bits/ 16 <15>;
0026                 ti,vref-delay-usecs = /bits/ 16 <0>;
0027                 ti,penirq-recheck-delay-usecs = /bits/ 16 <100>;
0028                 ti,debounce-max = /bits/ 16 <100>;
0029                 ti,debounce-tol = /bits/ 16 <(~0)>;
0030                 ti,debounce-rep = /bits/ 16 <4>;
0031                 touchscreen-swapped-x-y;
0032                 touchscreen-inverted-y;
0033                 wakeup-source;
0034         };
0035 };
0036 
0037 &iomuxc {
0038         pinctrl_ecspi4: ecspi4grp {
0039                 fsl,pins = <
0040                         MX6QDL_PAD_EIM_D28__ECSPI4_MOSI                 0x100b1
0041                         MX6QDL_PAD_EIM_D22__ECSPI4_MISO                 0x000b1
0042                         MX6QDL_PAD_EIM_D21__ECSPI4_SCLK                 0x000b1
0043                         /* *no* external pull up */
0044                         MX6QDL_PAD_EIM_D20__GPIO3_IO20          0x40000058
0045                 >;
0046         };
0047 
0048         pinctrl_touch: touchgrp {
0049                 fsl,pins = <
0050                         /* external pull up */
0051                         MX6QDL_PAD_EIM_D19__GPIO3_IO19                  0x10040
0052                 >;
0053         };
0054 };