Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 2 | /dts-v1/; |
| 3 | |
| 4 | #include <dt-bindings/input/input.h> |
| 5 | #include "tegra30-apalis.dtsi" |
| 6 | |
| 7 | / { |
| 8 | model = "Toradex Apalis T30 on Apalis Evaluation Board"; |
Marcel Ziswiler | 70451b5 | 2018-08-31 18:38:07 +0200 | [diff] [blame] | 9 | compatible = "toradex,apalis_t30-eval", "toradex,apalis_t30", |
| 10 | "nvidia,tegra30"; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 11 | |
| 12 | aliases { |
| 13 | rtc0 = "/i2c@7000c000/rtc@68"; |
Marcel Ziswiler | b4cfc77 | 2018-08-31 18:38:13 +0200 | [diff] [blame] | 14 | rtc1 = "/i2c@7000d000/pmic@2d"; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 15 | rtc2 = "/rtc@7000e000"; |
Olof Johansson | c4574aa | 2014-11-11 12:49:30 -0800 | [diff] [blame] | 16 | serial0 = &uarta; |
| 17 | serial1 = &uartb; |
| 18 | serial2 = &uartc; |
| 19 | serial3 = &uartd; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 20 | }; |
| 21 | |
Jon Hunter | f5bbb32 | 2016-02-09 13:51:59 +0000 | [diff] [blame] | 22 | chosen { |
| 23 | stdout-path = "serial0:115200n8"; |
| 24 | }; |
| 25 | |
Rob Herring | 508d690 | 2017-03-21 21:03:06 -0500 | [diff] [blame] | 26 | pcie@3000 { |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 27 | pci@1,0 { |
| 28 | status = "okay"; |
| 29 | }; |
| 30 | |
| 31 | pci@2,0 { |
| 32 | status = "okay"; |
| 33 | }; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | host1x@50000000 { |
| 37 | dc@54200000 { |
| 38 | rgb { |
| 39 | status = "okay"; |
| 40 | nvidia,panel = <&panel>; |
| 41 | }; |
| 42 | }; |
Marcel Ziswiler | 4eb7e5e | 2018-08-31 18:37:53 +0200 | [diff] [blame] | 43 | |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 44 | hdmi@54280000 { |
| 45 | status = "okay"; |
Marcel Ziswiler | 32980cb | 2018-08-31 18:37:50 +0200 | [diff] [blame] | 46 | hdmi-supply = <®_5v0>; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 47 | }; |
| 48 | }; |
| 49 | |
Marcel Ziswiler | e073452 | 2018-08-31 18:37:51 +0200 | [diff] [blame] | 50 | /* Apalis UART1 */ |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 51 | serial@70006000 { |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | |
Marcel Ziswiler | e073452 | 2018-08-31 18:37:51 +0200 | [diff] [blame] | 55 | /* Apalis UART2 */ |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 56 | serial@70006040 { |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 57 | status = "okay"; |
| 58 | }; |
| 59 | |
Marcel Ziswiler | e073452 | 2018-08-31 18:37:51 +0200 | [diff] [blame] | 60 | /* Apalis UART3 */ |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 61 | serial@70006200 { |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 62 | status = "okay"; |
| 63 | }; |
| 64 | |
Marcel Ziswiler | e073452 | 2018-08-31 18:37:51 +0200 | [diff] [blame] | 65 | /* Apalis UART4 */ |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 66 | serial@70006300 { |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 67 | status = "okay"; |
| 68 | }; |
| 69 | |
| 70 | pwm@7000a000 { |
| 71 | status = "okay"; |
| 72 | }; |
| 73 | |
| 74 | /* |
| 75 | * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier |
| 76 | * board) |
| 77 | */ |
| 78 | i2c@7000c000 { |
| 79 | status = "okay"; |
Marcel Ziswiler | 1c3389e | 2018-02-10 02:36:36 +0100 | [diff] [blame] | 80 | clock-frequency = <400000>; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 81 | |
| 82 | pcie-switch@58 { |
| 83 | compatible = "plx,pex8605"; |
| 84 | reg = <0x58>; |
| 85 | }; |
| 86 | |
| 87 | /* M41T0M6 real time clock on carrier board */ |
| 88 | rtc@68 { |
Marcel Ziswiler | 29a6275 | 2018-02-10 02:36:37 +0100 | [diff] [blame] | 89 | compatible = "st,m41t0"; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 90 | reg = <0x68>; |
| 91 | }; |
| 92 | }; |
| 93 | |
| 94 | /* GEN2_I2C: unused */ |
| 95 | |
| 96 | /* |
| 97 | * CAM_I2C: I2C3_SDA/SCL on MXM3 pin 201/203 (e.g. camera sensor on |
| 98 | * carrier board) |
| 99 | */ |
Marcel Ziswiler | 95bcc02 | 2018-08-31 18:37:52 +0200 | [diff] [blame] | 100 | i2c@7000c500 { |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 101 | status = "okay"; |
| 102 | clock-frequency = <400000>; |
| 103 | }; |
| 104 | |
| 105 | /* DDC: I2C2_SDA/SCL on MXM3 pin 205/207 (e.g. display EDID) */ |
Marcel Ziswiler | 4671760 | 2018-08-31 18:38:12 +0200 | [diff] [blame] | 106 | i2c@7000c700 { |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 107 | status = "okay"; |
| 108 | }; |
| 109 | |
| 110 | /* SPI1: Apalis SPI1 */ |
| 111 | spi@7000d400 { |
| 112 | status = "okay"; |
| 113 | spi-max-frequency = <25000000>; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | /* SPI5: Apalis SPI2 */ |
| 117 | spi@7000dc00 { |
| 118 | status = "okay"; |
| 119 | spi-max-frequency = <25000000>; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 120 | }; |
| 121 | |
Marcel Ziswiler | 005a00d | 2018-08-31 18:37:55 +0200 | [diff] [blame] | 122 | /* Apalis SD1 */ |
Thierry Reding | 32c096c | 2020-06-11 19:21:17 +0200 | [diff] [blame] | 123 | mmc@78000000 { |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 124 | status = "okay"; |
| 125 | bus-width = <4>; |
| 126 | /* SD1_CD# */ |
| 127 | cd-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>; |
| 128 | no-1-8-v; |
| 129 | }; |
| 130 | |
Marcel Ziswiler | 005a00d | 2018-08-31 18:37:55 +0200 | [diff] [blame] | 131 | /* Apalis MMC1 */ |
Thierry Reding | 32c096c | 2020-06-11 19:21:17 +0200 | [diff] [blame] | 132 | mmc@78000400 { |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 133 | status = "okay"; |
| 134 | bus-width = <8>; |
| 135 | /* MMC1_CD# */ |
| 136 | cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>; |
| 137 | no-1-8-v; |
| 138 | }; |
| 139 | |
| 140 | /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */ |
| 141 | usb@7d000000 { |
| 142 | status = "okay"; |
Marcel Ziswiler | 8bf0d6b | 2018-08-31 18:37:56 +0200 | [diff] [blame] | 143 | dr_mode = "otg"; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 144 | }; |
| 145 | |
| 146 | usb-phy@7d000000 { |
| 147 | status = "okay"; |
Marcel Ziswiler | f98439c | 2018-08-31 18:37:49 +0200 | [diff] [blame] | 148 | vbus-supply = <®_usbo1_vbus>; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 149 | }; |
| 150 | |
| 151 | /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */ |
| 152 | usb@7d004000 { |
| 153 | status = "okay"; |
| 154 | }; |
| 155 | |
| 156 | usb-phy@7d004000 { |
| 157 | status = "okay"; |
Marcel Ziswiler | f98439c | 2018-08-31 18:37:49 +0200 | [diff] [blame] | 158 | vbus-supply = <®_usbh_vbus>; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 159 | }; |
| 160 | |
| 161 | /* EHCI instance 2: USB3_DP/N -> USBH3_DP/N */ |
| 162 | usb@7d008000 { |
| 163 | status = "okay"; |
| 164 | }; |
| 165 | |
| 166 | usb-phy@7d008000 { |
| 167 | status = "okay"; |
Marcel Ziswiler | f98439c | 2018-08-31 18:37:49 +0200 | [diff] [blame] | 168 | vbus-supply = <®_usbh_vbus>; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 169 | }; |
| 170 | |
| 171 | backlight: backlight { |
| 172 | compatible = "pwm-backlight"; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 173 | brightness-levels = <255 231 223 207 191 159 127 0>; |
| 174 | default-brightness-level = <6>; |
| 175 | /* BKL1_ON */ |
| 176 | enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; |
Marcel Ziswiler | 32980cb | 2018-08-31 18:37:50 +0200 | [diff] [blame] | 177 | power-supply = <®_3v3>; |
Marcel Ziswiler | 654b713 | 2018-08-31 18:37:57 +0200 | [diff] [blame] | 178 | pwms = <&pwm 0 5000000>; /* BKL1_PWM */ |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 179 | }; |
| 180 | |
| 181 | gpio-keys { |
| 182 | compatible = "gpio-keys"; |
| 183 | |
Marcel Ziswiler | 21db15d | 2015-08-28 14:42:36 +0200 | [diff] [blame] | 184 | wakeup { |
| 185 | label = "WAKE1_MICO"; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 186 | gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_LOW>; |
Marcel Ziswiler | 21db15d | 2015-08-28 14:42:36 +0200 | [diff] [blame] | 187 | linux,code = <KEY_WAKEUP>; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 188 | debounce-interval = <10>; |
Sudeep Holla | d1c04d3 | 2016-02-08 21:55:43 +0000 | [diff] [blame] | 189 | wakeup-source; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 190 | }; |
| 191 | }; |
| 192 | |
| 193 | panel: panel { |
| 194 | /* |
| 195 | * edt,et057090dhu: EDT 5.7" LCD TFT |
| 196 | * edt,et070080dh6: EDT 7.0" LCD TFT |
| 197 | */ |
Rob Herring | 7860c87 | 2020-01-17 17:08:55 -0600 | [diff] [blame] | 198 | compatible = "edt,et057090dhu"; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 199 | backlight = <&backlight>; |
Marcel Ziswiler | 32980cb | 2018-08-31 18:37:50 +0200 | [diff] [blame] | 200 | power-supply = <®_3v3>; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 201 | }; |
| 202 | |
Marcel Ziswiler | 32980cb | 2018-08-31 18:37:50 +0200 | [diff] [blame] | 203 | reg_3v3: regulator-3v3 { |
| 204 | compatible = "regulator-fixed"; |
| 205 | regulator-name = "3.3V_SW"; |
| 206 | regulator-min-microvolt = <3300000>; |
| 207 | regulator-max-microvolt = <3300000>; |
| 208 | }; |
| 209 | |
Marcel Ziswiler | f98439c | 2018-08-31 18:37:49 +0200 | [diff] [blame] | 210 | reg_5v0: regulator-5v0 { |
| 211 | compatible = "regulator-fixed"; |
| 212 | regulator-name = "5V_SW"; |
| 213 | regulator-min-microvolt = <5000000>; |
| 214 | regulator-max-microvolt = <5000000>; |
| 215 | }; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 216 | |
Marcel Ziswiler | f98439c | 2018-08-31 18:37:49 +0200 | [diff] [blame] | 217 | /* USBO1_EN */ |
| 218 | reg_usbo1_vbus: regulator-usbo1-vbus { |
| 219 | compatible = "regulator-fixed"; |
| 220 | regulator-name = "VCC_USBO1"; |
| 221 | regulator-min-microvolt = <5000000>; |
| 222 | regulator-max-microvolt = <5000000>; |
| 223 | gpio = <&gpio TEGRA_GPIO(T, 5) GPIO_ACTIVE_HIGH>; |
| 224 | enable-active-high; |
| 225 | vin-supply = <®_5v0>; |
| 226 | }; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 227 | |
Marcel Ziswiler | f98439c | 2018-08-31 18:37:49 +0200 | [diff] [blame] | 228 | /* USBH_EN */ |
| 229 | reg_usbh_vbus: regulator-usbh-vbus { |
| 230 | compatible = "regulator-fixed"; |
| 231 | regulator-name = "VCC_USBH(2A|2C|2D|3|4)"; |
| 232 | regulator-min-microvolt = <5000000>; |
| 233 | regulator-max-microvolt = <5000000>; |
| 234 | gpio = <&gpio TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>; |
| 235 | enable-active-high; |
| 236 | vin-supply = <®_5v0>; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 237 | }; |
| 238 | }; |
Marcel Ziswiler | da25001 | 2018-08-31 18:38:11 +0200 | [diff] [blame] | 239 | |
| 240 | &gpio { |
| 241 | /* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */ |
| 242 | pex-perst-n { |
| 243 | gpio-hog; |
| 244 | gpios = <TEGRA_GPIO(S, 7) GPIO_ACTIVE_HIGH>; |
| 245 | output-high; |
| 246 | line-name = "PEX_PERST_N"; |
| 247 | }; |
| 248 | }; |