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