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