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