1/dts-v1/; 2 3#include <dt-bindings/input/input.h> 4#include "tegra30-apalis.dtsi" 5 6/ { 7 model = "Toradex Apalis T30 on Apalis Evaluation Board"; 8 compatible = "toradex,apalis_t30-eval", "toradex,apalis_t30", "nvidia,tegra30"; 9 10 aliases { 11 rtc0 = "/i2c@7000c000/rtc@68"; 12 rtc1 = "/i2c@7000d000/tps65911@2d"; 13 rtc2 = "/rtc@7000e000"; 14 serial0 = &uarta; 15 serial1 = &uartb; 16 serial2 = &uartc; 17 serial3 = &uartd; 18 }; 19 20 pcie-controller@00003000 { 21 status = "okay"; 22 23 pci@1,0 { 24 status = "okay"; 25 }; 26 27 pci@2,0 { 28 status = "okay"; 29 }; 30 31 pci@3,0 { 32 status = "okay"; 33 }; 34 }; 35 36 host1x@50000000 { 37 dc@54200000 { 38 rgb { 39 status = "okay"; 40 nvidia,panel = <&panel>; 41 }; 42 }; 43 hdmi@54280000 { 44 status = "okay"; 45 }; 46 }; 47 48 serial@70006000 { 49 status = "okay"; 50 }; 51 52 serial@70006040 { 53 compatible = "nvidia,tegra30-hsuart"; 54 status = "okay"; 55 }; 56 57 serial@70006200 { 58 compatible = "nvidia,tegra30-hsuart"; 59 status = "okay"; 60 }; 61 62 serial@70006300 { 63 compatible = "nvidia,tegra30-hsuart"; 64 status = "okay"; 65 }; 66 67 pwm@7000a000 { 68 status = "okay"; 69 }; 70 71 /* 72 * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier 73 * board) 74 */ 75 i2c@7000c000 { 76 status = "okay"; 77 clock-frequency = <100000>; 78 79 pcie-switch@58 { 80 compatible = "plx,pex8605"; 81 reg = <0x58>; 82 }; 83 84 /* M41T0M6 real time clock on carrier board */ 85 rtc@68 { 86 compatible = "st,m41t00"; 87 reg = <0x68>; 88 }; 89 }; 90 91 /* GEN2_I2C: unused */ 92 93 /* 94 * CAM_I2C: I2C3_SDA/SCL on MXM3 pin 201/203 (e.g. camera sensor on 95 * carrier board) 96 */ 97 cami2c: i2c@7000c500 { 98 status = "okay"; 99 clock-frequency = <400000>; 100 }; 101 102 /* DDC: I2C2_SDA/SCL on MXM3 pin 205/207 (e.g. display EDID) */ 103 hdmiddc: i2c@7000c700 { 104 status = "okay"; 105 }; 106 107 /* SPI1: Apalis SPI1 */ 108 spi@7000d400 { 109 status = "okay"; 110 spi-max-frequency = <25000000>; 111 spidev0: spidev@1 { 112 compatible = "spidev"; 113 reg = <1>; 114 spi-max-frequency = <25000000>; 115 }; 116 }; 117 118 /* SPI5: Apalis SPI2 */ 119 spi@7000dc00 { 120 status = "okay"; 121 spi-max-frequency = <25000000>; 122 spidev1: spidev@2 { 123 compatible = "spidev"; 124 reg = <2>; 125 spi-max-frequency = <25000000>; 126 }; 127 }; 128 129 sd1: sdhci@78000000 { 130 status = "okay"; 131 bus-width = <4>; 132 /* SD1_CD# */ 133 cd-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>; 134 no-1-8-v; 135 }; 136 137 mmc1: sdhci@78000400 { 138 status = "okay"; 139 bus-width = <8>; 140 /* MMC1_CD# */ 141 cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>; 142 no-1-8-v; 143 }; 144 145 /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */ 146 usb@7d000000 { 147 status = "okay"; 148 }; 149 150 usb-phy@7d000000 { 151 status = "okay"; 152 vbus-supply = <&usbo1_vbus_reg>; 153 }; 154 155 /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */ 156 usb@7d004000 { 157 status = "okay"; 158 }; 159 160 usb-phy@7d004000 { 161 status = "okay"; 162 vbus-supply = <&usbh_vbus_reg>; 163 }; 164 165 /* EHCI instance 2: USB3_DP/N -> USBH3_DP/N */ 166 usb@7d008000 { 167 status = "okay"; 168 }; 169 170 usb-phy@7d008000 { 171 status = "okay"; 172 vbus-supply = <&usbh_vbus_reg>; 173 }; 174 175 backlight: backlight { 176 compatible = "pwm-backlight"; 177 178 /* PWM0 */ 179 pwms = <&pwm 0 5000000>; 180 brightness-levels = <255 231 223 207 191 159 127 0>; 181 default-brightness-level = <6>; 182 /* BKL1_ON */ 183 enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; 184 }; 185 186 gpio-keys { 187 compatible = "gpio-keys"; 188 189 power { 190 label = "Power"; 191 gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_LOW>; 192 linux,code = <KEY_POWER>; 193 debounce-interval = <10>; 194 gpio-key,wakeup; 195 }; 196 }; 197 198 panel: panel { 199 /* 200 * edt,et057090dhu: EDT 5.7" LCD TFT 201 * edt,et070080dh6: EDT 7.0" LCD TFT 202 */ 203 compatible = "edt,et057090dhu", "simple-panel"; 204 205 backlight = <&backlight>; 206 }; 207 208 pwmleds { 209 compatible = "pwm-leds"; 210 211 pwm1 { 212 label = "PWM1"; 213 pwms = <&pwm 3 19600>; 214 max-brightness = <255>; 215 }; 216 217 pwm2 { 218 label = "PWM2"; 219 pwms = <&pwm 2 19600>; 220 max-brightness = <255>; 221 }; 222 223 pwm3 { 224 label = "PWM3"; 225 pwms = <&pwm 1 19600>; 226 max-brightness = <255>; 227 }; 228 }; 229 230 regulators { 231 sys_5v0_reg: regulator@1 { 232 compatible = "regulator-fixed"; 233 reg = <1>; 234 regulator-name = "5v0"; 235 regulator-min-microvolt = <5000000>; 236 regulator-max-microvolt = <5000000>; 237 regulator-always-on; 238 }; 239 240 /* USBO1_EN */ 241 usbo1_vbus_reg: regulator@2 { 242 compatible = "regulator-fixed"; 243 reg = <2>; 244 regulator-name = "usbo1_vbus"; 245 regulator-min-microvolt = <5000000>; 246 regulator-max-microvolt = <5000000>; 247 gpio = <&gpio TEGRA_GPIO(T, 5) GPIO_ACTIVE_HIGH>; 248 enable-active-high; 249 vin-supply = <&sys_5v0_reg>; 250 }; 251 252 /* USBH_EN */ 253 usbh_vbus_reg: regulator@3 { 254 compatible = "regulator-fixed"; 255 reg = <3>; 256 regulator-name = "usbh_vbus"; 257 regulator-min-microvolt = <5000000>; 258 regulator-max-microvolt = <5000000>; 259 gpio = <&gpio TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>; 260 enable-active-high; 261 vin-supply = <&sys_5v0_reg>; 262 }; 263 }; 264}; 265