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