1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2f126890aSEmmanuel Vadot/dts-v1/; 3f126890aSEmmanuel Vadot 4f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 5f126890aSEmmanuel Vadot#include "tegra30-colibri.dtsi" 6f126890aSEmmanuel Vadot 7f126890aSEmmanuel Vadot/ { 8f126890aSEmmanuel Vadot model = "Toradex Colibri T30 on Colibri Evaluation Board"; 9f126890aSEmmanuel Vadot compatible = "toradex,colibri_t30-eval-v3", "toradex,colibri_t30", 10f126890aSEmmanuel Vadot "nvidia,tegra30"; 11f126890aSEmmanuel Vadot 12f126890aSEmmanuel Vadot aliases { 13f126890aSEmmanuel Vadot rtc0 = "/i2c@7000c000/rtc@68"; 14f126890aSEmmanuel Vadot rtc1 = "/i2c@7000d000/pmic@2d"; 15f126890aSEmmanuel Vadot rtc2 = "/rtc@7000e000"; 16f126890aSEmmanuel Vadot serial0 = &uarta; 17f126890aSEmmanuel Vadot serial1 = &uartb; 18f126890aSEmmanuel Vadot serial2 = &uartd; 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 /* Colibri UART-A */ 40f126890aSEmmanuel Vadot serial@70006000 { 41*aa1a8ff2SEmmanuel Vadot /delete-property/ dmas; 42*aa1a8ff2SEmmanuel Vadot /delete-property/ dma-names; 43f126890aSEmmanuel Vadot status = "okay"; 44f126890aSEmmanuel Vadot }; 45f126890aSEmmanuel Vadot 46f126890aSEmmanuel Vadot /* Colibri UART-C */ 47f126890aSEmmanuel Vadot serial@70006040 { 48f126890aSEmmanuel Vadot status = "okay"; 49f126890aSEmmanuel Vadot }; 50f126890aSEmmanuel Vadot 51f126890aSEmmanuel Vadot /* Colibri UART-B */ 52f126890aSEmmanuel Vadot serial@70006300 { 53f126890aSEmmanuel Vadot status = "okay"; 54f126890aSEmmanuel Vadot }; 55f126890aSEmmanuel Vadot 56f126890aSEmmanuel Vadot pwm@7000a000 { 57f126890aSEmmanuel Vadot status = "okay"; 58f126890aSEmmanuel Vadot }; 59f126890aSEmmanuel Vadot 60f126890aSEmmanuel Vadot /* 61f126890aSEmmanuel Vadot * GEN1_I2C: I2C_SDA/SCL on SODIMM pin 194/196 (e.g. RTC on carrier 62f126890aSEmmanuel Vadot * board) 63f126890aSEmmanuel Vadot */ 64f126890aSEmmanuel Vadot i2c@7000c000 { 65f126890aSEmmanuel Vadot status = "okay"; 66f126890aSEmmanuel Vadot clock-frequency = <400000>; 67f126890aSEmmanuel Vadot 68f126890aSEmmanuel Vadot /* M41T0M6 real time clock on carrier board */ 69f126890aSEmmanuel Vadot rtc@68 { 70f126890aSEmmanuel Vadot compatible = "st,m41t0"; 71f126890aSEmmanuel Vadot reg = <0x68>; 72f126890aSEmmanuel Vadot }; 73f126890aSEmmanuel Vadot }; 74f126890aSEmmanuel Vadot 75f126890aSEmmanuel Vadot /* GEN2_I2C: unused */ 76f126890aSEmmanuel Vadot 77f126890aSEmmanuel Vadot /* CAM_I2C (I2C3): unused */ 78f126890aSEmmanuel Vadot 79f126890aSEmmanuel Vadot /* DDC_CLOCK/DATA on X3 pin 15/16 (e.g. display EDID) */ 80f126890aSEmmanuel Vadot i2c@7000c700 { 81f126890aSEmmanuel Vadot status = "okay"; 82f126890aSEmmanuel Vadot }; 83f126890aSEmmanuel Vadot 84f126890aSEmmanuel Vadot /* SPI1: Colibri SSP */ 85f126890aSEmmanuel Vadot spi@7000d400 { 86f126890aSEmmanuel Vadot status = "okay"; 87f126890aSEmmanuel Vadot spi-max-frequency = <25000000>; 88f126890aSEmmanuel Vadot 89f126890aSEmmanuel Vadot can@0 { 90f126890aSEmmanuel Vadot compatible = "microchip,mcp2515"; 91f126890aSEmmanuel Vadot reg = <0>; 92f126890aSEmmanuel Vadot clocks = <&clk16m>; 93f126890aSEmmanuel Vadot interrupt-parent = <&gpio>; 94f126890aSEmmanuel Vadot /* CAN_INT */ 95f126890aSEmmanuel Vadot interrupts = <TEGRA_GPIO(S, 0) IRQ_TYPE_EDGE_FALLING>; 96f126890aSEmmanuel Vadot spi-max-frequency = <10000000>; 97f126890aSEmmanuel Vadot vdd-supply = <®_3v3>; 98f126890aSEmmanuel Vadot xceiver-supply = <®_5v0>; 99f126890aSEmmanuel Vadot }; 100f126890aSEmmanuel Vadot }; 101f126890aSEmmanuel Vadot 102f126890aSEmmanuel Vadot /* SD/MMC */ 103f126890aSEmmanuel Vadot mmc@78000200 { 104f126890aSEmmanuel Vadot status = "okay"; 105f126890aSEmmanuel Vadot bus-width = <4>; 106f126890aSEmmanuel Vadot cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>; /* MMCD */ 107f126890aSEmmanuel Vadot no-1-8-v; 108f126890aSEmmanuel Vadot }; 109f126890aSEmmanuel Vadot 110f126890aSEmmanuel Vadot /* EHCI instance 0: USB1_DP/N -> USBC_P/N */ 111f126890aSEmmanuel Vadot usb@7d000000 { 112f126890aSEmmanuel Vadot status = "okay"; 113f126890aSEmmanuel Vadot dr_mode = "otg"; 114f126890aSEmmanuel Vadot }; 115f126890aSEmmanuel Vadot 116f126890aSEmmanuel Vadot usb-phy@7d000000 { 117f126890aSEmmanuel Vadot status = "okay"; 118f126890aSEmmanuel Vadot vbus-supply = <®_usbc_vbus>; 119f126890aSEmmanuel Vadot }; 120f126890aSEmmanuel Vadot 121f126890aSEmmanuel Vadot /* EHCI instance 2: USB3_DP/N -> USBH_P/N */ 122f126890aSEmmanuel Vadot usb@7d008000 { 123f126890aSEmmanuel Vadot status = "okay"; 124f126890aSEmmanuel Vadot }; 125f126890aSEmmanuel Vadot 126f126890aSEmmanuel Vadot usb-phy@7d008000 { 127f126890aSEmmanuel Vadot status = "okay"; 128f126890aSEmmanuel Vadot vbus-supply = <®_usbh_vbus>; 129f126890aSEmmanuel Vadot }; 130f126890aSEmmanuel Vadot 131f126890aSEmmanuel Vadot backlight: backlight { 132f126890aSEmmanuel Vadot compatible = "pwm-backlight"; 133f126890aSEmmanuel Vadot brightness-levels = <255 128 64 32 16 8 4 0>; 134f126890aSEmmanuel Vadot default-brightness-level = <6>; 135f126890aSEmmanuel Vadot /* BL_ON */ 136f126890aSEmmanuel Vadot enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; 137f126890aSEmmanuel Vadot power-supply = <®_3v3>; 138f126890aSEmmanuel Vadot pwms = <&pwm 0 5000000>; /* PWM<A> */ 139f126890aSEmmanuel Vadot }; 140f126890aSEmmanuel Vadot 141f126890aSEmmanuel Vadot clk16m: clock-osc3 { 142f126890aSEmmanuel Vadot compatible = "fixed-clock"; 143f126890aSEmmanuel Vadot #clock-cells = <0>; 144f126890aSEmmanuel Vadot clock-frequency = <16000000>; 145f126890aSEmmanuel Vadot }; 146f126890aSEmmanuel Vadot 147f126890aSEmmanuel Vadot gpio-keys { 148f126890aSEmmanuel Vadot compatible = "gpio-keys"; 149f126890aSEmmanuel Vadot 150f126890aSEmmanuel Vadot key-wakeup { 151f126890aSEmmanuel Vadot label = "SODIMM pin 45 wakeup"; 152f126890aSEmmanuel Vadot gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_HIGH>; 153f126890aSEmmanuel Vadot linux,code = <KEY_WAKEUP>; 154f126890aSEmmanuel Vadot debounce-interval = <10>; 155f126890aSEmmanuel Vadot wakeup-source; 156f126890aSEmmanuel Vadot }; 157f126890aSEmmanuel Vadot }; 158f126890aSEmmanuel Vadot 159f126890aSEmmanuel Vadot panel: panel { 160f126890aSEmmanuel Vadot /* 161f126890aSEmmanuel Vadot * edt,et057090dhu: EDT 5.7" LCD TFT 162f126890aSEmmanuel Vadot * edt,et070080dh6: EDT 7.0" LCD TFT 163f126890aSEmmanuel Vadot */ 164f126890aSEmmanuel Vadot compatible = "edt,et057090dhu"; 165f126890aSEmmanuel Vadot backlight = <&backlight>; 166f126890aSEmmanuel Vadot power-supply = <®_3v3>; 167f126890aSEmmanuel Vadot }; 168f126890aSEmmanuel Vadot 169f126890aSEmmanuel Vadot reg_3v3: regulator-3v3 { 170f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 171f126890aSEmmanuel Vadot regulator-name = "3.3V_SW"; 172f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 173f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 174f126890aSEmmanuel Vadot }; 175f126890aSEmmanuel Vadot 176f126890aSEmmanuel Vadot reg_5v0: regulator-5v0 { 177f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 178f126890aSEmmanuel Vadot regulator-name = "5V_SW"; 179f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 180f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 181f126890aSEmmanuel Vadot }; 182f126890aSEmmanuel Vadot 183f126890aSEmmanuel Vadot reg_usbc_vbus: regulator-usbc-vbus { 184f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 185f126890aSEmmanuel Vadot regulator-name = "VCC_USB5"; 186f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 187f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 188f126890aSEmmanuel Vadot vin-supply = <®_5v0>; 189f126890aSEmmanuel Vadot }; 190f126890aSEmmanuel Vadot 191f126890aSEmmanuel Vadot /* USBH_PEN resp. USB_P_EN */ 192f126890aSEmmanuel Vadot reg_usbh_vbus: regulator-usbh-vbus { 193f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 194f126890aSEmmanuel Vadot regulator-name = "VCC_USB[1-4]"; 195f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 196f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 197f126890aSEmmanuel Vadot gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>; 198f126890aSEmmanuel Vadot vin-supply = <®_5v0>; 199f126890aSEmmanuel Vadot }; 200f126890aSEmmanuel Vadot}; 201