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