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 "tegra20-colibri.dtsi" 6*724ba675SRob Herring 7*724ba675SRob Herring/ { 8*724ba675SRob Herring model = "Toradex Colibri T20 on Colibri Evaluation Board"; 9*724ba675SRob Herring compatible = "toradex,colibri_t20-eval-v3", "toradex,colibri_t20", 10*724ba675SRob Herring "nvidia,tegra20"; 11*724ba675SRob Herring 12*724ba675SRob Herring aliases { 13*724ba675SRob Herring rtc0 = "/i2c@7000c000/rtc@68"; 14*724ba675SRob Herring rtc1 = "/i2c@7000d000/pmic@34"; 15*724ba675SRob Herring rtc2 = "/rtc@7000e000"; 16*724ba675SRob Herring serial0 = &uarta; 17*724ba675SRob Herring serial1 = &uartd; 18*724ba675SRob Herring serial2 = &uartb; 19*724ba675SRob Herring }; 20*724ba675SRob Herring 21*724ba675SRob Herring chosen { 22*724ba675SRob Herring stdout-path = "serial0:115200n8"; 23*724ba675SRob Herring }; 24*724ba675SRob Herring 25*724ba675SRob Herring host1x@50000000 { 26*724ba675SRob Herring dc@54200000 { 27*724ba675SRob Herring rgb { 28*724ba675SRob Herring status = "okay"; 29*724ba675SRob Herring nvidia,panel = <&panel>; 30*724ba675SRob Herring }; 31*724ba675SRob Herring }; 32*724ba675SRob Herring 33*724ba675SRob Herring hdmi@54280000 { 34*724ba675SRob Herring status = "okay"; 35*724ba675SRob Herring hdmi-supply = <®_5v0>; 36*724ba675SRob Herring }; 37*724ba675SRob Herring }; 38*724ba675SRob Herring 39*724ba675SRob Herring pinmux@70000014 { 40*724ba675SRob Herring state_default: pinmux { 41*724ba675SRob Herring bl-on { 42*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 43*724ba675SRob Herring }; 44*724ba675SRob Herring 45*724ba675SRob Herring ddc { 46*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 47*724ba675SRob Herring }; 48*724ba675SRob Herring 49*724ba675SRob Herring hotplug-detect { 50*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 51*724ba675SRob Herring }; 52*724ba675SRob Herring 53*724ba675SRob Herring i2c { 54*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 55*724ba675SRob Herring }; 56*724ba675SRob Herring 57*724ba675SRob Herring lcd { 58*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 59*724ba675SRob Herring }; 60*724ba675SRob Herring 61*724ba675SRob Herring lm1 { 62*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 63*724ba675SRob Herring }; 64*724ba675SRob Herring 65*724ba675SRob Herring mmc { 66*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 67*724ba675SRob Herring }; 68*724ba675SRob Herring 69*724ba675SRob Herring mmccd { 70*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 71*724ba675SRob Herring }; 72*724ba675SRob Herring 73*724ba675SRob Herring sdc { 74*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 75*724ba675SRob Herring }; 76*724ba675SRob Herring 77*724ba675SRob Herring sdb_sdd { 78*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 79*724ba675SRob Herring }; 80*724ba675SRob Herring 81*724ba675SRob Herring ssp { 82*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 83*724ba675SRob Herring }; 84*724ba675SRob Herring 85*724ba675SRob Herring uart-a { 86*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 87*724ba675SRob Herring }; 88*724ba675SRob Herring 89*724ba675SRob Herring uart-b { 90*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 91*724ba675SRob Herring }; 92*724ba675SRob Herring 93*724ba675SRob Herring uart-c { 94*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 95*724ba675SRob Herring }; 96*724ba675SRob Herring 97*724ba675SRob Herring usbh-pen { 98*724ba675SRob Herring nvidia,tristate = <TEGRA_PIN_DISABLE>; 99*724ba675SRob Herring }; 100*724ba675SRob Herring }; 101*724ba675SRob Herring }; 102*724ba675SRob Herring 103*724ba675SRob Herring /* Colibri UART-A */ 104*724ba675SRob Herring serial@70006000 { 105*724ba675SRob Herring status = "okay"; 106*724ba675SRob Herring }; 107*724ba675SRob Herring 108*724ba675SRob Herring /* Colibri UART-C */ 109*724ba675SRob Herring serial@70006040 { 110*724ba675SRob Herring status = "okay"; 111*724ba675SRob Herring }; 112*724ba675SRob Herring 113*724ba675SRob Herring /* Colibri UART-B */ 114*724ba675SRob Herring serial@70006300 { 115*724ba675SRob Herring status = "okay"; 116*724ba675SRob Herring }; 117*724ba675SRob Herring 118*724ba675SRob Herring pwm@7000a000 { 119*724ba675SRob Herring status = "okay"; 120*724ba675SRob Herring }; 121*724ba675SRob Herring 122*724ba675SRob Herring /* 123*724ba675SRob Herring * GEN1_I2C: I2C_SDA/SCL on SODIMM pin 194/196 (e.g. RTC on carrier 124*724ba675SRob Herring * board) 125*724ba675SRob Herring */ 126*724ba675SRob Herring i2c@7000c000 { 127*724ba675SRob Herring status = "okay"; 128*724ba675SRob Herring clock-frequency = <400000>; 129*724ba675SRob Herring 130*724ba675SRob Herring /* M41T0M6 real time clock on carrier board */ 131*724ba675SRob Herring rtc@68 { 132*724ba675SRob Herring compatible = "st,m41t0"; 133*724ba675SRob Herring reg = <0x68>; 134*724ba675SRob Herring }; 135*724ba675SRob Herring }; 136*724ba675SRob Herring 137*724ba675SRob Herring /* GEN2_I2C: unused */ 138*724ba675SRob Herring 139*724ba675SRob Herring /* CAM_I2C (I2C3): unused */ 140*724ba675SRob Herring 141*724ba675SRob Herring /* DDC_CLOCK/DATA on X3 pin 15/16 (e.g. display EDID) */ 142*724ba675SRob Herring i2c@7000c400 { 143*724ba675SRob Herring status = "okay"; 144*724ba675SRob Herring }; 145*724ba675SRob Herring 146*724ba675SRob Herring /* SPI4: Colibri SSP */ 147*724ba675SRob Herring spi@7000da00 { 148*724ba675SRob Herring status = "okay"; 149*724ba675SRob Herring spi-max-frequency = <25000000>; 150*724ba675SRob Herring 151*724ba675SRob Herring can@0 { 152*724ba675SRob Herring compatible = "microchip,mcp2515"; 153*724ba675SRob Herring reg = <0>; 154*724ba675SRob Herring clocks = <&clk16m>; 155*724ba675SRob Herring interrupt-parent = <&gpio>; 156*724ba675SRob Herring /* CAN_INT */ 157*724ba675SRob Herring interrupts = <TEGRA_GPIO(A, 0) IRQ_TYPE_EDGE_FALLING>; 158*724ba675SRob Herring spi-max-frequency = <10000000>; 159*724ba675SRob Herring vdd-supply = <®_3v3>; 160*724ba675SRob Herring xceiver-supply = <®_5v0>; 161*724ba675SRob Herring }; 162*724ba675SRob Herring }; 163*724ba675SRob Herring 164*724ba675SRob Herring /* EHCI instance 0: USB1_DP/N -> USBC_P/N */ 165*724ba675SRob Herring usb@c5000000 { 166*724ba675SRob Herring status = "okay"; 167*724ba675SRob Herring dr_mode = "otg"; 168*724ba675SRob Herring }; 169*724ba675SRob Herring 170*724ba675SRob Herring usb-phy@c5000000 { 171*724ba675SRob Herring status = "okay"; 172*724ba675SRob Herring vbus-supply = <®_usbc_vbus>; 173*724ba675SRob Herring }; 174*724ba675SRob Herring 175*724ba675SRob Herring /* EHCI instance 2: USB3_DP/N -> USBH_P/N */ 176*724ba675SRob Herring usb@c5008000 { 177*724ba675SRob Herring status = "okay"; 178*724ba675SRob Herring }; 179*724ba675SRob Herring 180*724ba675SRob Herring usb-phy@c5008000 { 181*724ba675SRob Herring status = "okay"; 182*724ba675SRob Herring vbus-supply = <®_usbh_vbus>; 183*724ba675SRob Herring }; 184*724ba675SRob Herring 185*724ba675SRob Herring /* SD/MMC */ 186*724ba675SRob Herring mmc@c8000600 { 187*724ba675SRob Herring status = "okay"; 188*724ba675SRob Herring bus-width = <4>; 189*724ba675SRob Herring cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>; /* MMCD */ 190*724ba675SRob Herring no-1-8-v; 191*724ba675SRob Herring }; 192*724ba675SRob Herring 193*724ba675SRob Herring backlight: backlight { 194*724ba675SRob Herring compatible = "pwm-backlight"; 195*724ba675SRob Herring brightness-levels = <255 128 64 32 16 8 4 0>; 196*724ba675SRob Herring default-brightness-level = <6>; 197*724ba675SRob Herring /* BL_ON */ 198*724ba675SRob Herring enable-gpios = <&gpio TEGRA_GPIO(T, 4) GPIO_ACTIVE_HIGH>; 199*724ba675SRob Herring power-supply = <®_3v3>; 200*724ba675SRob Herring pwms = <&pwm 0 5000000>; /* PWM<A> */ 201*724ba675SRob Herring }; 202*724ba675SRob Herring 203*724ba675SRob Herring clk16m: clock-osc3 { 204*724ba675SRob Herring compatible = "fixed-clock"; 205*724ba675SRob Herring #clock-cells = <0>; 206*724ba675SRob Herring clock-frequency = <16000000>; 207*724ba675SRob Herring }; 208*724ba675SRob Herring 209*724ba675SRob Herring gpio-keys { 210*724ba675SRob Herring compatible = "gpio-keys"; 211*724ba675SRob Herring 212*724ba675SRob Herring key-wakeup { 213*724ba675SRob Herring label = "SODIMM pin 45 wakeup"; 214*724ba675SRob Herring gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; 215*724ba675SRob Herring linux,code = <KEY_WAKEUP>; 216*724ba675SRob Herring debounce-interval = <10>; 217*724ba675SRob Herring wakeup-source; 218*724ba675SRob Herring }; 219*724ba675SRob Herring }; 220*724ba675SRob Herring 221*724ba675SRob Herring panel: panel { 222*724ba675SRob Herring /* 223*724ba675SRob Herring * edt,et057090dhu: EDT 5.7" LCD TFT 224*724ba675SRob Herring * edt,et070080dh6: EDT 7.0" LCD TFT 225*724ba675SRob Herring */ 226*724ba675SRob Herring compatible = "edt,et057090dhu"; 227*724ba675SRob Herring backlight = <&backlight>; 228*724ba675SRob Herring power-supply = <®_3v3>; 229*724ba675SRob Herring }; 230*724ba675SRob Herring 231*724ba675SRob Herring reg_3v3: regulator-3v3 { 232*724ba675SRob Herring compatible = "regulator-fixed"; 233*724ba675SRob Herring regulator-name = "3.3V_SW"; 234*724ba675SRob Herring regulator-min-microvolt = <3300000>; 235*724ba675SRob Herring regulator-max-microvolt = <3300000>; 236*724ba675SRob Herring }; 237*724ba675SRob Herring 238*724ba675SRob Herring reg_5v0: regulator-5v0 { 239*724ba675SRob Herring compatible = "regulator-fixed"; 240*724ba675SRob Herring regulator-name = "5V_SW"; 241*724ba675SRob Herring regulator-min-microvolt = <5000000>; 242*724ba675SRob Herring regulator-max-microvolt = <5000000>; 243*724ba675SRob Herring }; 244*724ba675SRob Herring 245*724ba675SRob Herring reg_usbc_vbus: regulator-usbc-vbus { 246*724ba675SRob Herring compatible = "regulator-fixed"; 247*724ba675SRob Herring regulator-name = "VCC_USB5"; 248*724ba675SRob Herring regulator-min-microvolt = <5000000>; 249*724ba675SRob Herring regulator-max-microvolt = <5000000>; 250*724ba675SRob Herring vin-supply = <®_5v0>; 251*724ba675SRob Herring }; 252*724ba675SRob Herring 253*724ba675SRob Herring /* USBH_PEN resp. USB_P_EN */ 254*724ba675SRob Herring reg_usbh_vbus: regulator-usbh-vbus { 255*724ba675SRob Herring compatible = "regulator-fixed"; 256*724ba675SRob Herring regulator-name = "VCC_USB[1-4]"; 257*724ba675SRob Herring regulator-min-microvolt = <5000000>; 258*724ba675SRob Herring regulator-max-microvolt = <5000000>; 259*724ba675SRob Herring gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>; 260*724ba675SRob Herring vin-supply = <®_5v0>; 261*724ba675SRob Herring }; 262*724ba675SRob Herring}; 263