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