ARM: dts: imx6q-apalis: Move Atmel MXT touch ctrl to SoM dtsi
[platform/kernel/linux-starfive.git] / arch / arm / boot / dts / imx6q-apalis-eval.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3  * Copyright 2014-2022 Toradex
4  * Copyright 2012 Freescale Semiconductor, Inc.
5  * Copyright 2011 Linaro Ltd.
6  */
7
8 /dts-v1/;
9
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
13 #include "imx6q.dtsi"
14 #include "imx6qdl-apalis.dtsi"
15
16 / {
17         model = "Toradex Apalis iMX6Q/D Module on Apalis Evaluation Board";
18         compatible = "toradex,apalis_imx6q-eval", "toradex,apalis_imx6q",
19                      "fsl,imx6q";
20
21         aliases {
22                 i2c0 = &i2c1;
23                 i2c1 = &i2c3;
24                 i2c2 = &i2c2;
25                 rtc0 = &rtc_i2c;
26                 rtc1 = &snvs_rtc;
27         };
28
29         chosen {
30                 stdout-path = "serial0:115200n8";
31         };
32
33         gpio-keys {
34                 compatible = "gpio-keys";
35                 pinctrl-names = "default";
36                 pinctrl-0 = <&pinctrl_gpio_keys>;
37
38                 wakeup {
39                         label = "Wake-Up";
40                         gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
41                         linux,code = <KEY_WAKEUP>;
42                         debounce-interval = <10>;
43                         wakeup-source;
44                 };
45         };
46
47         reg_pcie_switch: regulator-pcie-switch {
48                 compatible = "regulator-fixed";
49                 regulator-name = "pcie_switch";
50                 regulator-min-microvolt = <1800000>;
51                 regulator-max-microvolt = <1800000>;
52                 gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
53                 startup-delay-us = <100000>;
54                 enable-active-high;
55                 status = "okay";
56         };
57
58         reg_3v3_sw: regulator-3v3-sw {
59                 compatible = "regulator-fixed";
60                 regulator-name = "3.3V_SW";
61                 regulator-min-microvolt = <3300000>;
62                 regulator-max-microvolt = <3300000>;
63                 regulator-always-on;
64         };
65 };
66
67 &can1 {
68         xceiver-supply = <&reg_3v3_sw>;
69         status = "okay";
70 };
71
72 &can2 {
73         xceiver-supply = <&reg_3v3_sw>;
74         status = "okay";
75 };
76
77 &hdmi {
78         status = "okay";
79 };
80
81 /* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
82 &i2c1 {
83         status = "okay";
84
85         pcie-switch@58 {
86                 compatible = "plx,pex8605";
87                 reg = <0x58>;
88         };
89
90         /* M41T0M6 real time clock on carrier board */
91         rtc_i2c: rtc@68 {
92                 compatible = "st,m41t0";
93                 reg = <0x68>;
94         };
95 };
96
97 /*
98  * I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor on carrier
99  * board)
100  */
101 &i2c3 {
102         status = "okay";
103 };
104
105 &ldb {
106         status = "okay";
107 };
108
109 &pcie {
110         pinctrl-names = "default";
111         pinctrl-0 = <&pinctrl_reset_moci>;
112         /* active-high meaning opposite of regular PERST# active-low polarity */
113         reset-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
114         reset-gpio-active-high;
115         vpcie-supply = <&reg_pcie_switch>;
116         status = "okay";
117 };
118
119 &pwm1 {
120         status = "okay";
121 };
122
123 &pwm2 {
124         status = "okay";
125 };
126
127 &pwm3 {
128         status = "okay";
129 };
130
131 &pwm4 {
132         status = "okay";
133 };
134
135 &reg_usb_otg_vbus {
136         status = "okay";
137 };
138
139 &reg_usb_host_vbus {
140         status = "okay";
141 };
142
143 &sata {
144         status = "okay";
145 };
146
147 &sound_spdif {
148         status = "okay";
149 };
150
151 &spdif {
152         status = "okay";
153 };
154
155 &uart1 {
156         status = "okay";
157 };
158
159 &uart2 {
160         status = "okay";
161 };
162
163 &uart4 {
164         status = "okay";
165 };
166
167 &uart5 {
168         status = "okay";
169 };
170
171 &usbh1 {
172         vbus-supply = <&reg_usb_host_vbus>;
173         status = "okay";
174 };
175
176 &usbotg {
177         vbus-supply = <&reg_usb_otg_vbus>;
178         status = "okay";
179 };
180
181 /* MMC1 */
182 &usdhc1 {
183         pinctrl-names = "default";
184         pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_usdhc1_8bit &pinctrl_mmc_cd>;
185         cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
186         status = "okay";
187 };
188
189 /* SD1 */
190 &usdhc2 {
191         pinctrl-names = "default";
192         pinctrl-0 = <&pinctrl_usdhc2 &pinctrl_sd_cd>;
193         cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
194         status = "okay";
195 };