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