.. | .. |
---|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
---|
2 | 2 | /dts-v1/; |
---|
3 | 3 | |
---|
| 4 | +#include <dt-bindings/input/input.h> |
---|
4 | 5 | #include "tegra20-colibri.dtsi" |
---|
5 | 6 | |
---|
6 | 7 | / { |
---|
7 | | - model = "Toradex Colibri T20 256/512 MB on Iris"; |
---|
8 | | - compatible = "toradex,iris", "toradex,colibri_t20-512", "nvidia,tegra20"; |
---|
| 8 | + model = "Toradex Colibri T20 on Iris"; |
---|
| 9 | + compatible = "toradex,colibri_t20-iris", "toradex,colibri_t20", |
---|
| 10 | + "nvidia,tegra20"; |
---|
9 | 11 | |
---|
10 | 12 | aliases { |
---|
| 13 | + rtc0 = "/i2c@7000c000/rtc@68"; |
---|
| 14 | + rtc1 = "/i2c@7000d000/pmic@34"; |
---|
| 15 | + rtc2 = "/rtc@7000e000"; |
---|
11 | 16 | serial0 = &uarta; |
---|
12 | 17 | serial1 = &uartd; |
---|
| 18 | + serial2 = &uartb; |
---|
13 | 19 | }; |
---|
14 | 20 | |
---|
15 | 21 | chosen { |
---|
.. | .. |
---|
17 | 23 | }; |
---|
18 | 24 | |
---|
19 | 25 | host1x@50000000 { |
---|
| 26 | + dc@54200000 { |
---|
| 27 | + rgb { |
---|
| 28 | + status = "okay"; |
---|
| 29 | + nvidia,panel = <&panel>; |
---|
| 30 | + }; |
---|
| 31 | + }; |
---|
| 32 | + |
---|
20 | 33 | hdmi@54280000 { |
---|
21 | 34 | status = "okay"; |
---|
| 35 | + hdmi-supply = <®_5v0>; |
---|
22 | 36 | }; |
---|
23 | 37 | }; |
---|
24 | 38 | |
---|
25 | 39 | pinmux@70000014 { |
---|
26 | 40 | state_default: pinmux { |
---|
27 | | - hdint { |
---|
| 41 | + bl-on { |
---|
28 | 42 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
29 | 43 | }; |
---|
30 | 44 | |
---|
31 | | - i2cddc { |
---|
| 45 | + ddc { |
---|
32 | 46 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
33 | 47 | }; |
---|
34 | 48 | |
---|
35 | | - sdio4 { |
---|
| 49 | + hotplug-detect { |
---|
36 | 50 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
37 | 51 | }; |
---|
38 | 52 | |
---|
39 | | - uarta { |
---|
| 53 | + i2c { |
---|
40 | 54 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
41 | 55 | }; |
---|
42 | 56 | |
---|
43 | | - uartd { |
---|
| 57 | + lcd { |
---|
| 58 | + nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
| 59 | + }; |
---|
| 60 | + |
---|
| 61 | + lm1 { |
---|
| 62 | + nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
| 63 | + }; |
---|
| 64 | + |
---|
| 65 | + mmc { |
---|
| 66 | + nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
| 67 | + }; |
---|
| 68 | + |
---|
| 69 | + mmccd { |
---|
| 70 | + nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
| 71 | + }; |
---|
| 72 | + |
---|
| 73 | + pwm-a-b { |
---|
| 74 | + nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
| 75 | + }; |
---|
| 76 | + |
---|
| 77 | + pwm-c-d { |
---|
| 78 | + nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
| 79 | + }; |
---|
| 80 | + |
---|
| 81 | + ssp { |
---|
| 82 | + nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
| 83 | + }; |
---|
| 84 | + |
---|
| 85 | + uart-a { |
---|
| 86 | + nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
| 87 | + }; |
---|
| 88 | + |
---|
| 89 | + uart-b { |
---|
| 90 | + nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
| 91 | + }; |
---|
| 92 | + |
---|
| 93 | + uart-c { |
---|
| 94 | + nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
| 95 | + }; |
---|
| 96 | + |
---|
| 97 | + usbh-pen { |
---|
44 | 98 | nvidia,tristate = <TEGRA_PIN_DISABLE>; |
---|
45 | 99 | }; |
---|
46 | 100 | }; |
---|
47 | 101 | }; |
---|
48 | 102 | |
---|
| 103 | + /* Colibri UART-A */ |
---|
49 | 104 | serial@70006000 { |
---|
50 | 105 | status = "okay"; |
---|
51 | 106 | }; |
---|
52 | 107 | |
---|
| 108 | + /* Colibri UART-C */ |
---|
| 109 | + serial@70006040 { |
---|
| 110 | + status = "okay"; |
---|
| 111 | + }; |
---|
| 112 | + |
---|
| 113 | + /* Colibri UART-B */ |
---|
53 | 114 | serial@70006300 { |
---|
54 | 115 | status = "okay"; |
---|
55 | 116 | }; |
---|
56 | 117 | |
---|
57 | | - i2c_ddc: i2c@7000c400 { |
---|
| 118 | + pwm@7000a000 { |
---|
58 | 119 | status = "okay"; |
---|
59 | 120 | }; |
---|
60 | 121 | |
---|
| 122 | + /* |
---|
| 123 | + * GEN1_I2C: I2C_SDA/SCL on SODIMM pin 194/196 (e.g. RTC on carrier |
---|
| 124 | + * board) |
---|
| 125 | + */ |
---|
| 126 | + i2c@7000c000 { |
---|
| 127 | + status = "okay"; |
---|
| 128 | + clock-frequency = <400000>; |
---|
| 129 | + |
---|
| 130 | + /* M41T0M6 real time clock on carrier board */ |
---|
| 131 | + rtc@68 { |
---|
| 132 | + compatible = "st,m41t0"; |
---|
| 133 | + reg = <0x68>; |
---|
| 134 | + }; |
---|
| 135 | + }; |
---|
| 136 | + |
---|
| 137 | + /* GEN2_I2C: unused */ |
---|
| 138 | + |
---|
| 139 | + /* CAM_I2C (I2C3): unused */ |
---|
| 140 | + |
---|
| 141 | + /* DDC_CLOCK/DATA on X3 pin 15/16 (e.g. display EDID) */ |
---|
| 142 | + i2c@7000c400 { |
---|
| 143 | + status = "okay"; |
---|
| 144 | + }; |
---|
| 145 | + |
---|
| 146 | + /* EHCI instance 0: USB1_DP/N -> USBC_P/N */ |
---|
61 | 147 | usb@c5000000 { |
---|
62 | 148 | status = "okay"; |
---|
| 149 | + dr_mode = "otg"; |
---|
63 | 150 | }; |
---|
64 | 151 | |
---|
65 | 152 | usb-phy@c5000000 { |
---|
66 | 153 | status = "okay"; |
---|
| 154 | + vbus-supply = <®_usbc_vbus>; |
---|
67 | 155 | }; |
---|
68 | 156 | |
---|
| 157 | + /* EHCI instance 2: USB3_DP/N -> USBH_P/N */ |
---|
69 | 158 | usb@c5008000 { |
---|
70 | 159 | status = "okay"; |
---|
71 | 160 | }; |
---|
72 | 161 | |
---|
73 | 162 | usb-phy@c5008000 { |
---|
74 | 163 | status = "okay"; |
---|
| 164 | + vbus-supply = <®_usbh_vbus>; |
---|
75 | 165 | }; |
---|
76 | 166 | |
---|
77 | | - sdhci@c8000600 { |
---|
| 167 | + /* SPI4: Colibri SSP */ |
---|
| 168 | + spi@7000da00 { |
---|
| 169 | + status = "okay"; |
---|
| 170 | + spi-max-frequency = <25000000>; |
---|
| 171 | + }; |
---|
| 172 | + |
---|
| 173 | + /* SD/MMC */ |
---|
| 174 | + mmc@c8000600 { |
---|
78 | 175 | status = "okay"; |
---|
79 | 176 | bus-width = <4>; |
---|
80 | | - vmmc-supply = <&vcc_sd_reg>; |
---|
81 | | - vqmmc-supply = <&vcc_sd_reg>; |
---|
| 177 | + cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>; /* MMCD */ |
---|
| 178 | + no-1-8-v; |
---|
82 | 179 | }; |
---|
83 | 180 | |
---|
84 | | - regulators { |
---|
85 | | - regulator@0 { |
---|
86 | | - compatible = "regulator-fixed"; |
---|
87 | | - reg = <0>; |
---|
88 | | - regulator-name = "usb_host_vbus"; |
---|
89 | | - regulator-min-microvolt = <5000000>; |
---|
90 | | - regulator-max-microvolt = <5000000>; |
---|
91 | | - regulator-boot-on; |
---|
92 | | - regulator-always-on; |
---|
93 | | - gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>; |
---|
94 | | - }; |
---|
| 181 | + backlight: backlight { |
---|
| 182 | + compatible = "pwm-backlight"; |
---|
| 183 | + brightness-levels = <255 128 64 32 16 8 4 0>; |
---|
| 184 | + default-brightness-level = <6>; |
---|
| 185 | + /* BL_ON */ |
---|
| 186 | + enable-gpios = <&gpio TEGRA_GPIO(T, 4) GPIO_ACTIVE_HIGH>; |
---|
| 187 | + power-supply = <®_3v3>; |
---|
| 188 | + pwms = <&pwm 0 5000000>; /* PWM<A> */ |
---|
| 189 | + }; |
---|
95 | 190 | |
---|
96 | | - vcc_sd_reg: regulator@1 { |
---|
97 | | - compatible = "regulator-fixed"; |
---|
98 | | - reg = <1>; |
---|
99 | | - regulator-name = "vcc_sd"; |
---|
100 | | - regulator-min-microvolt = <3300000>; |
---|
101 | | - regulator-max-microvolt = <3300000>; |
---|
102 | | - regulator-boot-on; |
---|
103 | | - regulator-always-on; |
---|
| 191 | + gpio-keys { |
---|
| 192 | + compatible = "gpio-keys"; |
---|
| 193 | + |
---|
| 194 | + wakeup { |
---|
| 195 | + label = "SODIMM pin 45 wakeup"; |
---|
| 196 | + gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>; |
---|
| 197 | + linux,code = <KEY_WAKEUP>; |
---|
| 198 | + debounce-interval = <10>; |
---|
| 199 | + wakeup-source; |
---|
104 | 200 | }; |
---|
105 | 201 | }; |
---|
| 202 | + |
---|
| 203 | + panel: panel { |
---|
| 204 | + /* |
---|
| 205 | + * edt,et057090dhu: EDT 5.7" LCD TFT |
---|
| 206 | + * edt,et070080dh6: EDT 7.0" LCD TFT |
---|
| 207 | + */ |
---|
| 208 | + compatible = "edt,et057090dhu"; |
---|
| 209 | + backlight = <&backlight>; |
---|
| 210 | + power-supply = <®_3v3>; |
---|
| 211 | + }; |
---|
| 212 | + |
---|
| 213 | + reg_3v3: regulator-3v3 { |
---|
| 214 | + compatible = "regulator-fixed"; |
---|
| 215 | + regulator-name = "3.3V"; |
---|
| 216 | + regulator-min-microvolt = <3300000>; |
---|
| 217 | + regulator-max-microvolt = <3300000>; |
---|
| 218 | + }; |
---|
| 219 | + |
---|
| 220 | + reg_5v0: regulator-5v0 { |
---|
| 221 | + compatible = "regulator-fixed"; |
---|
| 222 | + regulator-name = "5V"; |
---|
| 223 | + regulator-min-microvolt = <5000000>; |
---|
| 224 | + regulator-max-microvolt = <5000000>; |
---|
| 225 | + }; |
---|
| 226 | + |
---|
| 227 | + reg_usbc_vbus: regulator-usbc-vbus { |
---|
| 228 | + compatible = "regulator-fixed"; |
---|
| 229 | + regulator-name = "VCC_USB2"; |
---|
| 230 | + regulator-min-microvolt = <5000000>; |
---|
| 231 | + regulator-max-microvolt = <5000000>; |
---|
| 232 | + vin-supply = <®_5v0>; |
---|
| 233 | + }; |
---|
| 234 | + |
---|
| 235 | + /* USBH_PEN resp. USB_P_EN */ |
---|
| 236 | + reg_usbh_vbus: regulator-usbh-vbus { |
---|
| 237 | + compatible = "regulator-fixed"; |
---|
| 238 | + regulator-name = "VCC_USB1"; |
---|
| 239 | + regulator-min-microvolt = <5000000>; |
---|
| 240 | + regulator-max-microvolt = <5000000>; |
---|
| 241 | + gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>; |
---|
| 242 | + vin-supply = <®_5v0>; |
---|
| 243 | + }; |
---|
106 | 244 | }; |
---|