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