xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/imx8mp-skov-revb-lt6.dts (revision 95eb4b873b6a8b527c5bd78d7191975dfca38998)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2
3/dts-v1/;
4
5#include "imx8mp-skov-reva.dtsi"
6
7/ {
8	model = "SKOV IMX8MP CPU revB - LT6";
9	compatible = "skov,imx8mp-skov-revb-lt6", "fsl,imx8mp";
10
11	touchscreen {
12		compatible = "resistive-adc-touch";
13		io-channels = <&adc_ts 1>, <&adc_ts 3>, <&adc_ts 4>, <&adc_ts 5>;
14		io-channel-names = "y", "z1", "z2", "x";
15		touchscreen-min-pressure = <65000>;
16		touchscreen-inverted-y;
17		touchscreen-swapped-x-y;
18		touchscreen-x-plate-ohms = <300>;
19	};
20};
21
22&reg_tft_vcom {
23	regulator-min-microvolt = <3600000>;
24	regulator-max-microvolt = <3600000>;
25	voltage-table = <3600000 26>;
26	status = "okay";
27};
28
29&pwm4 {
30	status = "okay";
31};
32
33&backlight {
34	status = "okay";
35};
36
37&ecspi1 {
38	pinctrl-names = "default";
39	pinctrl-0 = <&pinctrl_ecspi1>;
40	cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
41	status = "okay";
42
43	adc_ts: adc@0 {
44		compatible = "ti,tsc2046e-adc";
45		reg = <0>;
46		pinctrl-0 = <&pinctrl_touch>;
47		pinctrl-names ="default";
48		spi-max-frequency = <1000000>;
49		interrupts-extended = <&gpio4 25 IRQ_TYPE_LEVEL_LOW>;
50		#io-channel-cells = <1>;
51
52		#address-cells = <1>;
53		#size-cells = <0>;
54
55		channel@1 {
56			reg = <1>;
57			settling-time-us = <700>;
58			oversampling-ratio = <5>;
59		};
60
61		channel@3 {
62			reg = <3>;
63			settling-time-us = <700>;
64			oversampling-ratio = <5>;
65		};
66
67		channel@4 {
68			reg = <4>;
69			settling-time-us = <700>;
70			oversampling-ratio = <5>;
71		};
72
73		channel@5 {
74			reg = <5>;
75			settling-time-us = <700>;
76			oversampling-ratio = <5>;
77		};
78	};
79};
80
81&pwm1 {
82	status = "okay";
83};
84
85&iomuxc {
86	pinctrl_ecspi1: ecspi1grp {
87		fsl,pins = <
88			MX8MP_IOMUXC_ECSPI1_SCLK__ECSPI1_SCLK			0x44
89			MX8MP_IOMUXC_ECSPI1_MOSI__ECSPI1_MOSI			0x44
90			MX8MP_IOMUXC_ECSPI1_MISO__ECSPI1_MISO			0x44
91			MX8MP_IOMUXC_ECSPI1_SS0__GPIO5_IO09			0x40
92		>;
93	};
94
95	pinctrl_touch: touchgrp {
96		fsl,pins = <
97			/* external pull up */
98			MX8MP_IOMUXC_SAI2_TXC__GPIO4_IO25			0x40
99		>;
100	};
101};
102