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