1// SPDX-License-Identifier: GPL-2.0 OR MIT 2/* 3 * Copyright 2016-2018 Toradex AG 4 */ 5 6/dts-v1/; 7 8#include <dt-bindings/input/input.h> 9#include "tegra124-apalis-v1.2.dtsi" 10 11/ { 12 model = "Toradex Apalis TK1 on Apalis Evaluation Board"; 13 compatible = "toradex,apalis-tk1-v1.2-eval", "toradex,apalis-tk1-eval", 14 "toradex,apalis-tk1-v1.2", "toradex,apalis-tk1", 15 "nvidia,tegra124"; 16 17 aliases { 18 rtc0 = "/i2c@7000c000/rtc@68"; 19 rtc1 = "/i2c@7000d000/pmic@40"; 20 rtc2 = "/rtc@7000e000"; 21 serial0 = &uarta; 22 serial1 = &uartb; 23 serial2 = &uartc; 24 serial3 = &uartd; 25 }; 26 27 chosen { 28 stdout-path = "serial0:115200n8"; 29 }; 30 31 pcie@1003000 { 32 pci@1,0 { 33 status = "okay"; 34 }; 35 }; 36 37 host1x@50000000 { 38 hdmi@54280000 { 39 status = "okay"; 40 hdmi-supply = <®_5v0>; 41 }; 42 }; 43 44 gpio@6000d000 { 45 /* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */ 46 pex-perst-n-hog { 47 gpio-hog; 48 gpios = <TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>; 49 output-high; 50 line-name = "PEX_PERST_N"; 51 }; 52 }; 53 54 /* Apalis UART1 */ 55 serial@70006000 { 56 /delete-property/ dmas; 57 /delete-property/ dma-names; 58 status = "okay"; 59 }; 60 61 /* Apalis UART2 */ 62 serial@70006040 { 63 status = "okay"; 64 }; 65 66 /* Apalis UART3 */ 67 serial@70006200 { 68 status = "okay"; 69 }; 70 71 /* Apalis UART4 */ 72 serial@70006300 { 73 status = "okay"; 74 }; 75 76 pwm@7000a000 { 77 status = "okay"; 78 }; 79 80 /* 81 * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier 82 * board) 83 */ 84 i2c@7000c000 { 85 status = "okay"; 86 clock-frequency = <400000>; 87 88 /* M41T0M6 real time clock on carrier board */ 89 rtc@68 { 90 compatible = "st,m41t0"; 91 reg = <0x68>; 92 }; 93 }; 94 95 /* GEN2_I2C: unused */ 96 97 /* 98 * CAM_I2C: I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor 99 * on carrier board) 100 */ 101 i2c@7000c500 { 102 status = "okay"; 103 clock-frequency = <400000>; 104 }; 105 106 /* 107 * I2C4 (DDC): I2C4_SDA/SCL (DDC) on MXM3 pin 205/207 108 * (e.g. display EDID) 109 */ 110 i2c@7000c700 { 111 status = "okay"; 112 }; 113 114 /* SPI1: Apalis SPI1 */ 115 spi@7000d400 { 116 status = "okay"; 117 spi-max-frequency = <50000000>; 118 }; 119 120 /* SPI4: Apalis SPI2 */ 121 spi@7000da00 { 122 status = "okay"; 123 spi-max-frequency = <50000000>; 124 }; 125 126 /* Apalis Serial ATA */ 127 sata@70020000 { 128 status = "okay"; 129 target-5v-supply = <®_5v0>; 130 target-12v-supply = <®_12v0>; 131 }; 132 133 hda@70030000 { 134 status = "okay"; 135 }; 136 137 usb@70090000 { 138 status = "okay"; 139 }; 140 141 /* Apalis MMC1 */ 142 mmc@700b0000 { 143 status = "okay"; 144 bus-width = <4>; 145 /* MMC1_CD# */ 146 cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>; 147 vqmmc-supply = <&vddio_sdmmc1>; 148 }; 149 150 /* Apalis SD1 */ 151 mmc@700b0400 { 152 status = "okay"; 153 bus-width = <4>; 154 /* SD1_CD# */ 155 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>; 156 vqmmc-supply = <&vddio_sdmmc3>; 157 }; 158 159 /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */ 160 usb@7d000000 { 161 status = "okay"; 162 dr_mode = "otg"; 163 }; 164 165 usb-phy@7d000000 { 166 status = "okay"; 167 vbus-supply = <®_usbo1_vbus>; 168 }; 169 170 /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */ 171 usb@7d004000 { 172 status = "okay"; 173 }; 174 175 usb-phy@7d004000 { 176 status = "okay"; 177 vbus-supply = <®_usbh_vbus>; 178 }; 179 180 /* EHCI instance 2: USB3_DP/N -> USBH4_DP/N */ 181 usb@7d008000 { 182 status = "okay"; 183 }; 184 185 usb-phy@7d008000 { 186 status = "okay"; 187 vbus-supply = <®_usbh_vbus>; 188 }; 189 190 backlight: backlight { 191 compatible = "pwm-backlight"; 192 brightness-levels = <255 231 223 207 191 159 127 0>; 193 default-brightness-level = <6>; 194 /* BKL1_ON */ 195 enable-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_HIGH>; 196 power-supply = <®_3v3>; 197 pwms = <&pwm 3 5000000>; /* BKL1_PWM */ 198 }; 199 200 gpio-keys { 201 compatible = "gpio-keys"; 202 203 key-wakeup { 204 label = "WAKE1_MICO"; 205 gpios = <&gpio TEGRA_GPIO(DD, 3) GPIO_ACTIVE_LOW>; 206 linux,code = <KEY_WAKEUP>; 207 debounce-interval = <10>; 208 wakeup-source; 209 }; 210 }; 211 212 reg_3v3: regulator-3v3 { 213 compatible = "regulator-fixed"; 214 regulator-name = "3.3V_SW"; 215 regulator-min-microvolt = <3300000>; 216 regulator-max-microvolt = <3300000>; 217 }; 218 219 reg_5v0: regulator-5v0 { 220 compatible = "regulator-fixed"; 221 regulator-name = "5V_SW"; 222 regulator-min-microvolt = <5000000>; 223 regulator-max-microvolt = <5000000>; 224 }; 225 226 reg_12v0: regulator-12v0 { 227 compatible = "regulator-fixed"; 228 regulator-name = "12V_SW"; 229 regulator-min-microvolt = <12000000>; 230 regulator-max-microvolt = <12000000>; 231 }; 232 233 /* USBO1_EN */ 234 reg_usbo1_vbus: regulator-usbo1-vbus { 235 compatible = "regulator-fixed"; 236 regulator-name = "VCC_USBO1"; 237 regulator-min-microvolt = <5000000>; 238 regulator-max-microvolt = <5000000>; 239 gpio = <&gpio TEGRA_GPIO(T, 5) GPIO_ACTIVE_HIGH>; 240 enable-active-high; 241 vin-supply = <®_5v0>; 242 }; 243 244 /* USBH_EN */ 245 reg_usbh_vbus: regulator-usbh-vbus { 246 compatible = "regulator-fixed"; 247 regulator-name = "VCC_USBH(2A|2C|2D|3|4)"; 248 regulator-min-microvolt = <5000000>; 249 regulator-max-microvolt = <5000000>; 250 gpio = <&gpio TEGRA_GPIO(T, 6) GPIO_ACTIVE_HIGH>; 251 enable-active-high; 252 vin-supply = <®_5v0>; 253 }; 254}; 255