1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2724ba675SRob Herring/dts-v1/; 3724ba675SRob Herring 4724ba675SRob Herring#include <dt-bindings/input/input.h> 5724ba675SRob Herring#include "tegra30-apalis.dtsi" 6724ba675SRob Herring 7724ba675SRob Herring/ { 8724ba675SRob Herring model = "Toradex Apalis T30 on Apalis Evaluation Board"; 9724ba675SRob Herring compatible = "toradex,apalis_t30-eval", "toradex,apalis_t30", 10724ba675SRob Herring "nvidia,tegra30"; 11724ba675SRob Herring 12724ba675SRob Herring aliases { 13724ba675SRob Herring rtc0 = "/i2c@7000c000/rtc@68"; 14724ba675SRob Herring rtc1 = "/i2c@7000d000/pmic@2d"; 15724ba675SRob Herring rtc2 = "/rtc@7000e000"; 16724ba675SRob Herring serial0 = &uarta; 17724ba675SRob Herring serial1 = &uartb; 18724ba675SRob Herring serial2 = &uartc; 19724ba675SRob Herring serial3 = &uartd; 20724ba675SRob Herring }; 21724ba675SRob Herring 22724ba675SRob Herring chosen { 23724ba675SRob Herring stdout-path = "serial0:115200n8"; 24724ba675SRob Herring }; 25724ba675SRob Herring 26724ba675SRob Herring pcie@3000 { 27724ba675SRob Herring pci@1,0 { 28724ba675SRob Herring status = "okay"; 29724ba675SRob Herring }; 30724ba675SRob Herring 31724ba675SRob Herring pci@2,0 { 32724ba675SRob Herring status = "okay"; 33724ba675SRob Herring }; 34724ba675SRob Herring }; 35724ba675SRob Herring 36724ba675SRob Herring host1x@50000000 { 37724ba675SRob Herring dc@54200000 { 38724ba675SRob Herring rgb { 39724ba675SRob Herring status = "okay"; 40724ba675SRob Herring nvidia,panel = <&panel>; 41724ba675SRob Herring }; 42724ba675SRob Herring }; 43724ba675SRob Herring 44724ba675SRob Herring hdmi@54280000 { 45724ba675SRob Herring status = "okay"; 46724ba675SRob Herring hdmi-supply = <®_5v0>; 47724ba675SRob Herring }; 48724ba675SRob Herring }; 49724ba675SRob Herring 50724ba675SRob Herring gpio@6000d000 { 51724ba675SRob Herring /* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */ 52724ba675SRob Herring pex-perst-n-hog { 53724ba675SRob Herring gpio-hog; 54724ba675SRob Herring gpios = <TEGRA_GPIO(S, 7) GPIO_ACTIVE_HIGH>; 55724ba675SRob Herring output-high; 56724ba675SRob Herring line-name = "PEX_PERST_N"; 57724ba675SRob Herring }; 58724ba675SRob Herring }; 59724ba675SRob Herring 60724ba675SRob Herring /* Apalis UART1 */ 61724ba675SRob Herring serial@70006000 { 62*9766116aSThierry Reding /delete-property/ dmas; 63*9766116aSThierry Reding /delete-property/ dma-names; 64724ba675SRob Herring status = "okay"; 65724ba675SRob Herring }; 66724ba675SRob Herring 67724ba675SRob Herring /* Apalis UART2 */ 68724ba675SRob Herring serial@70006040 { 69724ba675SRob Herring status = "okay"; 70724ba675SRob Herring }; 71724ba675SRob Herring 72724ba675SRob Herring /* Apalis UART3 */ 73724ba675SRob Herring serial@70006200 { 74724ba675SRob Herring status = "okay"; 75724ba675SRob Herring }; 76724ba675SRob Herring 77724ba675SRob Herring /* Apalis UART4 */ 78724ba675SRob Herring serial@70006300 { 79724ba675SRob Herring status = "okay"; 80724ba675SRob Herring }; 81724ba675SRob Herring 82724ba675SRob Herring pwm@7000a000 { 83724ba675SRob Herring status = "okay"; 84724ba675SRob Herring }; 85724ba675SRob Herring 86724ba675SRob Herring /* 87724ba675SRob Herring * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier 88724ba675SRob Herring * board) 89724ba675SRob Herring */ 90724ba675SRob Herring i2c@7000c000 { 91724ba675SRob Herring status = "okay"; 92724ba675SRob Herring clock-frequency = <400000>; 93724ba675SRob Herring 94724ba675SRob Herring pcie-switch@58 { 95724ba675SRob Herring compatible = "plx,pex8605"; 96724ba675SRob Herring reg = <0x58>; 97724ba675SRob Herring }; 98724ba675SRob Herring 99724ba675SRob Herring /* M41T0M6 real time clock on carrier board */ 100724ba675SRob Herring rtc@68 { 101724ba675SRob Herring compatible = "st,m41t0"; 102724ba675SRob Herring reg = <0x68>; 103724ba675SRob Herring }; 104724ba675SRob Herring }; 105724ba675SRob Herring 106724ba675SRob Herring /* GEN2_I2C: unused */ 107724ba675SRob Herring 108724ba675SRob Herring /* 109724ba675SRob Herring * CAM_I2C: I2C3_SDA/SCL on MXM3 pin 201/203 (e.g. camera sensor on 110724ba675SRob Herring * carrier board) 111724ba675SRob Herring */ 112724ba675SRob Herring i2c@7000c500 { 113724ba675SRob Herring status = "okay"; 114724ba675SRob Herring clock-frequency = <400000>; 115724ba675SRob Herring }; 116724ba675SRob Herring 117724ba675SRob Herring /* DDC: I2C2_SDA/SCL on MXM3 pin 205/207 (e.g. display EDID) */ 118724ba675SRob Herring i2c@7000c700 { 119724ba675SRob Herring status = "okay"; 120724ba675SRob Herring }; 121724ba675SRob Herring 122724ba675SRob Herring /* SPI1: Apalis SPI1 */ 123724ba675SRob Herring spi@7000d400 { 124724ba675SRob Herring status = "okay"; 125724ba675SRob Herring spi-max-frequency = <25000000>; 126724ba675SRob Herring }; 127724ba675SRob Herring 128724ba675SRob Herring /* SPI5: Apalis SPI2 */ 129724ba675SRob Herring spi@7000dc00 { 130724ba675SRob Herring status = "okay"; 131724ba675SRob Herring spi-max-frequency = <25000000>; 132724ba675SRob Herring }; 133724ba675SRob Herring 134724ba675SRob Herring /* Apalis SD1 */ 135724ba675SRob Herring mmc@78000000 { 136724ba675SRob Herring status = "okay"; 137724ba675SRob Herring bus-width = <4>; 138724ba675SRob Herring /* SD1_CD# */ 139724ba675SRob Herring cd-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>; 140724ba675SRob Herring no-1-8-v; 141724ba675SRob Herring }; 142724ba675SRob Herring 143724ba675SRob Herring /* Apalis MMC1 */ 144724ba675SRob Herring mmc@78000400 { 145724ba675SRob Herring status = "okay"; 146724ba675SRob Herring bus-width = <8>; 147724ba675SRob Herring /* MMC1_CD# */ 148724ba675SRob Herring cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>; 149724ba675SRob Herring no-1-8-v; 150724ba675SRob Herring }; 151724ba675SRob Herring 152724ba675SRob Herring /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */ 153724ba675SRob Herring usb@7d000000 { 154724ba675SRob Herring status = "okay"; 155724ba675SRob Herring dr_mode = "otg"; 156724ba675SRob Herring }; 157724ba675SRob Herring 158724ba675SRob Herring usb-phy@7d000000 { 159724ba675SRob Herring status = "okay"; 160724ba675SRob Herring vbus-supply = <®_usbo1_vbus>; 161724ba675SRob Herring }; 162724ba675SRob Herring 163724ba675SRob Herring /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */ 164724ba675SRob Herring usb@7d004000 { 165724ba675SRob Herring status = "okay"; 166724ba675SRob Herring }; 167724ba675SRob Herring 168724ba675SRob Herring usb-phy@7d004000 { 169724ba675SRob Herring status = "okay"; 170724ba675SRob Herring vbus-supply = <®_usbh_vbus>; 171724ba675SRob Herring }; 172724ba675SRob Herring 173724ba675SRob Herring /* EHCI instance 2: USB3_DP/N -> USBH3_DP/N */ 174724ba675SRob Herring usb@7d008000 { 175724ba675SRob Herring status = "okay"; 176724ba675SRob Herring }; 177724ba675SRob Herring 178724ba675SRob Herring usb-phy@7d008000 { 179724ba675SRob Herring status = "okay"; 180724ba675SRob Herring vbus-supply = <®_usbh_vbus>; 181724ba675SRob Herring }; 182724ba675SRob Herring 183724ba675SRob Herring backlight: backlight { 184724ba675SRob Herring compatible = "pwm-backlight"; 185724ba675SRob Herring brightness-levels = <255 231 223 207 191 159 127 0>; 186724ba675SRob Herring default-brightness-level = <6>; 187724ba675SRob Herring /* BKL1_ON */ 188724ba675SRob Herring enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; 189724ba675SRob Herring power-supply = <®_3v3>; 190724ba675SRob Herring pwms = <&pwm 0 5000000>; /* BKL1_PWM */ 191724ba675SRob Herring }; 192724ba675SRob Herring 193724ba675SRob Herring gpio-keys { 194724ba675SRob Herring compatible = "gpio-keys"; 195724ba675SRob Herring 196724ba675SRob Herring key-wakeup { 197724ba675SRob Herring label = "WAKE1_MICO"; 198724ba675SRob Herring gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_LOW>; 199724ba675SRob Herring linux,code = <KEY_WAKEUP>; 200724ba675SRob Herring debounce-interval = <10>; 201724ba675SRob Herring wakeup-source; 202724ba675SRob Herring }; 203724ba675SRob Herring }; 204724ba675SRob Herring 205724ba675SRob Herring panel: panel { 206724ba675SRob Herring /* 207724ba675SRob Herring * edt,et057090dhu: EDT 5.7" LCD TFT 208724ba675SRob Herring * edt,et070080dh6: EDT 7.0" LCD TFT 209724ba675SRob Herring */ 210724ba675SRob Herring compatible = "edt,et057090dhu"; 211724ba675SRob Herring backlight = <&backlight>; 212724ba675SRob Herring power-supply = <®_3v3>; 213724ba675SRob Herring }; 214724ba675SRob Herring 215724ba675SRob Herring reg_3v3: regulator-3v3 { 216724ba675SRob Herring compatible = "regulator-fixed"; 217724ba675SRob Herring regulator-name = "3.3V_SW"; 218724ba675SRob Herring regulator-min-microvolt = <3300000>; 219724ba675SRob Herring regulator-max-microvolt = <3300000>; 220724ba675SRob Herring }; 221724ba675SRob Herring 222724ba675SRob Herring reg_5v0: regulator-5v0 { 223724ba675SRob Herring compatible = "regulator-fixed"; 224724ba675SRob Herring regulator-name = "5V_SW"; 225724ba675SRob Herring regulator-min-microvolt = <5000000>; 226724ba675SRob Herring regulator-max-microvolt = <5000000>; 227724ba675SRob Herring }; 228724ba675SRob Herring 229724ba675SRob Herring /* USBO1_EN */ 230724ba675SRob Herring reg_usbo1_vbus: regulator-usbo1-vbus { 231724ba675SRob Herring compatible = "regulator-fixed"; 232724ba675SRob Herring regulator-name = "VCC_USBO1"; 233724ba675SRob Herring regulator-min-microvolt = <5000000>; 234724ba675SRob Herring regulator-max-microvolt = <5000000>; 235724ba675SRob Herring gpio = <&gpio TEGRA_GPIO(T, 5) GPIO_ACTIVE_HIGH>; 236724ba675SRob Herring enable-active-high; 237724ba675SRob Herring vin-supply = <®_5v0>; 238724ba675SRob Herring }; 239724ba675SRob Herring 240724ba675SRob Herring /* USBH_EN */ 241724ba675SRob Herring reg_usbh_vbus: regulator-usbh-vbus { 242724ba675SRob Herring compatible = "regulator-fixed"; 243724ba675SRob Herring regulator-name = "VCC_USBH(2A|2C|2D|3|4)"; 244724ba675SRob Herring regulator-min-microvolt = <5000000>; 245724ba675SRob Herring regulator-max-microvolt = <5000000>; 246724ba675SRob Herring gpio = <&gpio TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>; 247724ba675SRob Herring enable-active-high; 248724ba675SRob Herring vin-supply = <®_5v0>; 249724ba675SRob Herring }; 250724ba675SRob Herring}; 251