Home | History | Annotate | Line # | Download | only in dts
      1  1.1  jmcneill // SPDX-License-Identifier: (GPL-2.0 OR MIT)
      2  1.1  jmcneill //
      3  1.1  jmcneill // Copyright (C) 2020 Pengutronix, Ulrich Oelmann <kernel (a] pengutronix.de>
      4  1.1  jmcneill 
      5  1.1  jmcneill &ecspi4 {
      6  1.1  jmcneill 	pinctrl-names = "default";
      7  1.1  jmcneill 	pinctrl-0 = <&pinctrl_ecspi4>;
      8  1.1  jmcneill 	cs-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
      9  1.1  jmcneill 	status = "okay";
     10  1.1  jmcneill 
     11  1.1  jmcneill 	touchscreen@0 {
     12  1.1  jmcneill 		pinctrl-names = "default";
     13  1.1  jmcneill 		pinctrl-0 = <&pinctrl_touch>;
     14  1.1  jmcneill 		compatible = "ti,tsc2046";
     15  1.1  jmcneill 		reg = <0>;
     16  1.1  jmcneill 		spi-max-frequency = <1000000>;
     17  1.1  jmcneill 		interrupts-extended = <&gpio3 19 IRQ_TYPE_LEVEL_LOW>;
     18  1.1  jmcneill 		vcc-supply  = <&reg_3v3>;
     19  1.1  jmcneill 		pendown-gpio = <&gpio3 19 GPIO_ACTIVE_LOW>;
     20  1.1  jmcneill 		ti,x-plate-ohms = /bits/ 16 <850>;
     21  1.1  jmcneill 		ti,y-plate-ohms = /bits/ 16 <295>;
     22  1.1  jmcneill 		ti,pressure-min = /bits/ 16 <2>;
     23  1.1  jmcneill 		ti,pressure-max = /bits/ 16 <1500>;
     24  1.1  jmcneill 		ti,vref-mv	= /bits/ 16 <3300>;
     25  1.1  jmcneill 		ti,settle-delay-usec = /bits/ 16 <15>;
     26  1.1  jmcneill 		ti,vref-delay-usecs = /bits/ 16 <0>;
     27  1.1  jmcneill 		ti,penirq-recheck-delay-usecs = /bits/ 16 <100>;
     28  1.1  jmcneill 		ti,debounce-max = /bits/ 16 <100>;
     29  1.1  jmcneill 		ti,debounce-tol = /bits/ 16 <(~0)>;
     30  1.1  jmcneill 		ti,debounce-rep = /bits/ 16 <4>;
     31  1.1  jmcneill 		touchscreen-swapped-x-y;
     32  1.1  jmcneill 		touchscreen-inverted-y;
     33  1.1  jmcneill 		wakeup-source;
     34  1.1  jmcneill 	};
     35  1.1  jmcneill };
     36  1.1  jmcneill 
     37  1.1  jmcneill &iomuxc {
     38  1.1  jmcneill 	pinctrl_ecspi4: ecspi4grp {
     39  1.1  jmcneill 		fsl,pins = <
     40  1.1  jmcneill 			MX6QDL_PAD_EIM_D28__ECSPI4_MOSI			0x100b1
     41  1.1  jmcneill 			MX6QDL_PAD_EIM_D22__ECSPI4_MISO			0x000b1
     42  1.1  jmcneill 			MX6QDL_PAD_EIM_D21__ECSPI4_SCLK			0x000b1
     43  1.1  jmcneill 			/* *no* external pull up */
     44  1.1  jmcneill 			MX6QDL_PAD_EIM_D20__GPIO3_IO20		0x40000058
     45  1.1  jmcneill 		>;
     46  1.1  jmcneill 	};
     47  1.1  jmcneill 
     48  1.1  jmcneill 	pinctrl_touch: touchgrp {
     49  1.1  jmcneill 		fsl,pins = <
     50  1.1  jmcneill 			/* external pull up */
     51  1.1  jmcneill 			MX6QDL_PAD_EIM_D19__GPIO3_IO19			0x10040
     52  1.1  jmcneill 		>;
     53  1.1  jmcneill 	};
     54  1.1  jmcneill };
     55