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 pcie-switch@58 { 88 compatible = "plx,pex8605"; 89 reg = <0x58>; 90 }; 91 92 /* M41T0M6 real time clock on carrier board */ 93 rtc@68 { 94 compatible = "st,m41t0"; 95 reg = <0x68>; 96 }; 97 }; 98 99 /* 100 * GEN2_I2C: I2C2_SDA/SCL (DDC) on MXM3 pin 205/207 (e.g. display EDID) 101 */ 102 i2c@7000c400 { 103 status = "okay"; 104 }; 105 106 /* 107 * CAM_I2C: I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor 108 * on carrier board) 109 */ 110 i2c@7000c500 { 111 status = "okay"; 112 clock-frequency = <400000>; 113 }; 114 115 /* I2C4 (DDC): unused */ 116 117 /* SPI1: Apalis SPI1 */ 118 spi@7000d400 { 119 status = "okay"; 120 spi-max-frequency = <50000000>; 121 }; 122 123 /* SPI4: Apalis SPI2 */ 124 spi@7000da00 { 125 status = "okay"; 126 spi-max-frequency = <50000000>; 127 }; 128 129 /* Apalis Serial ATA */ 130 sata@70020000 { 131 status = "okay"; 132 target-5v-supply = <®_5v0>; 133 target-12v-supply = <®_12v0>; 134 }; 135 136 hda@70030000 { 137 status = "okay"; 138 }; 139 140 usb@70090000 { 141 status = "okay"; 142 }; 143 144 /* Apalis MMC1 */ 145 mmc@700b0000 { 146 status = "okay"; 147 bus-width = <4>; 148 /* MMC1_CD# */ 149 cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>; 150 vqmmc-supply = <&vddio_sdmmc1>; 151 }; 152 153 /* Apalis SD1 */ 154 mmc@700b0400 { 155 status = "okay"; 156 bus-width = <4>; 157 /* SD1_CD# */ 158 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>; 159 vqmmc-supply = <&vddio_sdmmc3>; 160 }; 161 162 /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */ 163 usb@7d000000 { 164 status = "okay"; 165 dr_mode = "otg"; 166 }; 167 168 usb-phy@7d000000 { 169 status = "okay"; 170 vbus-supply = <®_usbo1_vbus>; 171 }; 172 173 /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */ 174 usb@7d004000 { 175 status = "okay"; 176 }; 177 178 usb-phy@7d004000 { 179 status = "okay"; 180 vbus-supply = <®_usbh_vbus>; 181 }; 182 183 /* EHCI instance 2: USB3_DP/N -> USBH4_DP/N */ 184 usb@7d008000 { 185 status = "okay"; 186 }; 187 188 usb-phy@7d008000 { 189 status = "okay"; 190 vbus-supply = <®_usbh_vbus>; 191 }; 192 193 backlight: backlight { 194 compatible = "pwm-backlight"; 195 brightness-levels = <255 231 223 207 191 159 127 0>; 196 default-brightness-level = <6>; 197 /* BKL1_ON */ 198 enable-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_HIGH>; 199 power-supply = <®_3v3>; 200 pwms = <&pwm 3 5000000>; /* BKL1_PWM */ 201 }; 202 203 gpio-keys { 204 compatible = "gpio-keys"; 205 206 key-wakeup { 207 label = "WAKE1_MICO"; 208 gpios = <&gpio TEGRA_GPIO(DD, 3) GPIO_ACTIVE_LOW>; 209 linux,code = <KEY_WAKEUP>; 210 debounce-interval = <10>; 211 wakeup-source; 212 }; 213 }; 214 215 reg_3v3: regulator-3v3 { 216 compatible = "regulator-fixed"; 217 regulator-name = "3.3V_SW"; 218 regulator-min-microvolt = <3300000>; 219 regulator-max-microvolt = <3300000>; 220 }; 221 222 reg_5v0: regulator-5v0 { 223 compatible = "regulator-fixed"; 224 regulator-name = "5V_SW"; 225 regulator-min-microvolt = <5000000>; 226 regulator-max-microvolt = <5000000>; 227 }; 228 229 reg_12v0: regulator-12v0 { 230 compatible = "regulator-fixed"; 231 regulator-name = "12V_SW"; 232 regulator-min-microvolt = <12000000>; 233 regulator-max-microvolt = <12000000>; 234 }; 235 236 /* USBO1_EN */ 237 reg_usbo1_vbus: regulator-usbo1-vbus { 238 compatible = "regulator-fixed"; 239 regulator-name = "VCC_USBO1"; 240 regulator-min-microvolt = <5000000>; 241 regulator-max-microvolt = <5000000>; 242 gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>; 243 enable-active-high; 244 vin-supply = <®_5v0>; 245 }; 246 247 /* USBH_EN */ 248 reg_usbh_vbus: regulator-usbh-vbus { 249 compatible = "regulator-fixed"; 250 regulator-name = "VCC_USBH(2A|2C|2D|3|4)"; 251 regulator-min-microvolt = <5000000>; 252 regulator-max-microvolt = <5000000>; 253 gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>; 254 enable-active-high; 255 vin-supply = <®_5v0>; 256 }; 257 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.