0001 // SPDX-License-Identifier: GPL-2.0 OR MIT
0002 /dts-v1/;
0003
0004 #include <dt-bindings/input/input.h>
0005 #include "tegra30-apalis-v1.1.dtsi"
0006
0007 / {
0008 model = "Toradex Apalis T30 on Apalis Evaluation Board";
0009 compatible = "toradex,apalis_t30-v1.1-eval", "toradex,apalis_t30-eval",
0010 "toradex,apalis_t30-v1.1", "toradex,apalis_t30",
0011 "nvidia,tegra30";
0012
0013 aliases {
0014 rtc0 = "/i2c@7000c000/rtc@68";
0015 rtc1 = "/i2c@7000d000/pmic@2d";
0016 rtc2 = "/rtc@7000e000";
0017 serial0 = &uarta;
0018 serial1 = &uartb;
0019 serial2 = &uartc;
0020 serial3 = &uartd;
0021 };
0022
0023 chosen {
0024 stdout-path = "serial0:115200n8";
0025 };
0026
0027 pcie@3000 {
0028 pci@1,0 {
0029 status = "okay";
0030 };
0031
0032 pci@2,0 {
0033 status = "okay";
0034 };
0035 };
0036
0037 host1x@50000000 {
0038 dc@54200000 {
0039 rgb {
0040 status = "okay";
0041 nvidia,panel = <&panel>;
0042 };
0043 };
0044
0045 hdmi@54280000 {
0046 status = "okay";
0047 hdmi-supply = <®_5v0>;
0048 };
0049 };
0050
0051 /* Apalis UART1 */
0052 serial@70006000 {
0053 status = "okay";
0054 };
0055
0056 /* Apalis UART2 */
0057 serial@70006040 {
0058 status = "okay";
0059 };
0060
0061 /* Apalis UART3 */
0062 serial@70006200 {
0063 status = "okay";
0064 };
0065
0066 /* Apalis UART4 */
0067 serial@70006300 {
0068 status = "okay";
0069 };
0070
0071 pwm@7000a000 {
0072 status = "okay";
0073 };
0074
0075 /*
0076 * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier
0077 * board)
0078 */
0079 i2c@7000c000 {
0080 status = "okay";
0081 clock-frequency = <400000>;
0082
0083 pcie-switch@58 {
0084 compatible = "plx,pex8605";
0085 reg = <0x58>;
0086 };
0087
0088 /* M41T0M6 real time clock on carrier board */
0089 rtc@68 {
0090 compatible = "st,m41t0";
0091 reg = <0x68>;
0092 };
0093 };
0094
0095 /* GEN2_I2C: unused */
0096
0097 /*
0098 * CAM_I2C: I2C3_SDA/SCL on MXM3 pin 201/203 (e.g. camera sensor on
0099 * carrier board)
0100 */
0101 i2c@7000c500 {
0102 status = "okay";
0103 clock-frequency = <400000>;
0104 };
0105
0106 /* DDC: I2C2_SDA/SCL on MXM3 pin 205/207 (e.g. display EDID) */
0107 i2c@7000c700 {
0108 status = "okay";
0109 };
0110
0111 /* SPI1: Apalis SPI1 */
0112 spi@7000d400 {
0113 status = "okay";
0114 spi-max-frequency = <25000000>;
0115 };
0116
0117 /* SPI5: Apalis SPI2 */
0118 spi@7000dc00 {
0119 status = "okay";
0120 spi-max-frequency = <25000000>;
0121 };
0122
0123 /* Apalis SD1 */
0124 mmc@78000000 {
0125 status = "okay";
0126 bus-width = <4>;
0127 /* SD1_CD# */
0128 cd-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>;
0129 no-1-8-v;
0130 };
0131
0132 /* Apalis MMC1 */
0133 mmc@78000400 {
0134 status = "okay";
0135 bus-width = <8>;
0136 /* MMC1_CD# */
0137 cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>;
0138 vqmmc-supply = <®_vddio_sdmmc3>;
0139 };
0140
0141 /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */
0142 usb@7d000000 {
0143 status = "okay";
0144 dr_mode = "otg";
0145 };
0146
0147 usb-phy@7d000000 {
0148 status = "okay";
0149 vbus-supply = <®_usbo1_vbus>;
0150 };
0151
0152 /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */
0153 usb@7d004000 {
0154 status = "okay";
0155 };
0156
0157 usb-phy@7d004000 {
0158 status = "okay";
0159 vbus-supply = <®_usbh_vbus>;
0160 };
0161
0162 /* EHCI instance 2: USB3_DP/N -> USBH3_DP/N */
0163 usb@7d008000 {
0164 status = "okay";
0165 };
0166
0167 usb-phy@7d008000 {
0168 status = "okay";
0169 vbus-supply = <®_usbh_vbus>;
0170 };
0171
0172 backlight: backlight {
0173 compatible = "pwm-backlight";
0174 brightness-levels = <255 231 223 207 191 159 127 0>;
0175 default-brightness-level = <6>;
0176 /* BKL1_ON */
0177 enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
0178 power-supply = <®_3v3>;
0179 pwms = <&pwm 0 5000000>; /* BKL1_PWM */
0180 };
0181
0182 gpio-keys {
0183 compatible = "gpio-keys";
0184
0185 key-wakeup {
0186 label = "WAKE1_MICO";
0187 gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_LOW>;
0188 linux,code = <KEY_WAKEUP>;
0189 debounce-interval = <10>;
0190 wakeup-source;
0191 };
0192 };
0193
0194 panel: panel {
0195 /*
0196 * edt,et057090dhu: EDT 5.7" LCD TFT
0197 * edt,et070080dh6: EDT 7.0" LCD TFT
0198 */
0199 compatible = "edt,et057090dhu";
0200 backlight = <&backlight>;
0201 power-supply = <®_3v3>;
0202 };
0203
0204 reg_3v3: regulator-3v3 {
0205 compatible = "regulator-fixed";
0206 regulator-name = "3.3V_SW";
0207 regulator-min-microvolt = <3300000>;
0208 regulator-max-microvolt = <3300000>;
0209 };
0210
0211 reg_5v0: regulator-5v0 {
0212 compatible = "regulator-fixed";
0213 regulator-name = "5V_SW";
0214 regulator-min-microvolt = <5000000>;
0215 regulator-max-microvolt = <5000000>;
0216 };
0217
0218 /* USBO1_EN */
0219 reg_usbo1_vbus: regulator-usbo1-vbus {
0220 compatible = "regulator-fixed";
0221 regulator-name = "VCC_USBO1";
0222 regulator-min-microvolt = <5000000>;
0223 regulator-max-microvolt = <5000000>;
0224 gpio = <&gpio TEGRA_GPIO(T, 5) GPIO_ACTIVE_HIGH>;
0225 enable-active-high;
0226 vin-supply = <®_5v0>;
0227 };
0228
0229 /* USBH_EN */
0230 reg_usbh_vbus: regulator-usbh-vbus {
0231 compatible = "regulator-fixed";
0232 regulator-name = "VCC_USBH(2A|2C|2D|3|4)";
0233 regulator-min-microvolt = <5000000>;
0234 regulator-max-microvolt = <5000000>;
0235 gpio = <&gpio TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>;
0236 enable-active-high;
0237 vin-supply = <®_5v0>;
0238 };
0239
0240 /*
0241 * 1.8 volt resp. 3.3 volt VDDIO_SDMMC3 depending on
0242 * EN_+3.3_SDMMC3 GPIO
0243 */
0244 reg_vddio_sdmmc3: regulator-vddio-sdmmc3 {
0245 compatible = "regulator-gpio";
0246 regulator-name = "VDDIO_SDMMC3";
0247 regulator-min-microvolt = <1800000>;
0248 regulator-max-microvolt = <3300000>;
0249 regulator-type = "voltage";
0250 gpios = <&gpio TEGRA_GPIO(J, 5) GPIO_ACTIVE_HIGH>;
0251 states = <1800000 0x0>,
0252 <3300000 0x1>;
0253 startup-delay-us = <100000>;
0254 vin-supply = <&vddio_sdmmc_1v8_reg>;
0255 };
0256 };
0257
0258 &gpio {
0259 /* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */
0260 pex-perst-n-hog {
0261 gpio-hog;
0262 gpios = <TEGRA_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
0263 output-high;
0264 line-name = "PEX_PERST_N";
0265 };
0266 };