2 * Copyright 2016-2018 Toradex AG
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * version 2 as published by the Free Software Foundation.
13 * This file is distributed in the hope that it will be useful
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
20 * b) Permission is hereby granted, free of charge, to any person
21 * obtaining a copy of this software and associated documentation
22 * files (the "Software"), to deal in the Software without
23 * restriction, including without limitation the rights to use
24 * copy, modify, merge, publish, distribute, sublicense, and/or
25 * sell copies of the Software, and to permit persons to whom the
26 * Software is furnished to do so, subject to the following
29 * The above copyright notice and this permission notice shall be
30 * included in all copies or substantial portions of the Software.
32 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
33 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
34 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
36 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
37 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39 * OTHER DEALINGS IN THE SOFTWARE.
44 #include <dt-bindings/input/input.h>
45 #include "tegra124-apalis.dtsi"
48 model = "Toradex Apalis TK1 on Apalis Evaluation Board";
49 compatible = "toradex,apalis-tk1-eval", "toradex,apalis-tk1",
53 rtc0 = "/i2c@7000c000/rtc@68";
54 rtc1 = "/i2c@7000d000/pmic@40";
55 rtc2 = "/rtc@7000e000";
63 stdout-path = "serial0:115200n8";
103 * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier
108 clock-frequency = <400000>;
111 compatible = "plx,pex8605";
115 /* M41T0M6 real time clock on carrier board */
117 compatible = "st,m41t0";
123 * GEN2_I2C: I2C2_SDA/SCL (DDC) on MXM3 pin 205/207 (e.g. display EDID)
125 hdmi_ddc: i2c@7000c400 {
130 * CAM_I2C: I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor
135 clock-frequency = <400000>;
138 /* I2C4 (DDC): unused */
140 /* SPI1: Apalis SPI1 */
143 spi-max-frequency = <50000000>;
146 compatible = "spidev";
148 spi-max-frequency = <50000000>;
152 /* SPI4: Apalis SPI2 */
155 spi-max-frequency = <50000000>;
158 compatible = "spidev";
160 spi-max-frequency = <50000000>;
164 /* Apalis Serial ATA */
181 cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>;
183 vqmmc-supply = <&vddio_sdmmc1>;
190 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
192 vqmmc-supply = <&vddio_sdmmc3>;
195 /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */
203 vbus-supply = <®_usbo1_vbus>;
206 /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */
213 vbus-supply = <®_usbh_vbus>;
216 /* EHCI instance 2: USB3_DP/N -> USBH4_DP/N */
223 vbus-supply = <®_usbh_vbus>;
226 backlight: backlight {
227 compatible = "pwm-backlight";
228 pwms = <&pwm 3 5000000>; /* BKL1_PWM */
229 brightness-levels = <255 231 223 207 191 159 127 0>;
230 default-brightness-level = <6>;
232 enable-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_HIGH>;
236 compatible = "gpio-keys";
239 label = "WAKE1_MICO";
240 gpios = <&gpio TEGRA_GPIO(DD, 3) GPIO_ACTIVE_LOW>;
241 linux,code = <KEY_WAKEUP>;
242 debounce-interval = <10>;
247 reg_5v0: regulator-5v0 {
248 compatible = "regulator-fixed";
249 regulator-name = "5V_SW";
250 regulator-min-microvolt = <5000000>;
251 regulator-max-microvolt = <5000000>;
255 reg_usbo1_vbus: regulator-usbo1-vbus {
256 compatible = "regulator-fixed";
257 regulator-name = "VCC_USBO1";
258 regulator-min-microvolt = <5000000>;
259 regulator-max-microvolt = <5000000>;
260 gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
262 vin-supply = <®_5v0>;
266 reg_usbh_vbus: regulator-usbh-vbus {
267 compatible = "regulator-fixed";
268 regulator-name = "VCC_USBH(2A|2C|2D|3|4)";
269 regulator-min-microvolt = <5000000>;
270 regulator-max-microvolt = <5000000>;
271 gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>;
273 vin-supply = <®_5v0>;
278 /* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */
281 gpios = <TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>;
283 line-name = "PEX_PERST_N";