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