| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 OR X11 |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * Copyright 2016-2018 Toradex AG |
|---|
| 3 | | - * |
|---|
| 4 | | - * This file is dual-licensed: you can use it either under the terms |
|---|
| 5 | | - * of the GPL or the X11 license, at your option. Note that this dual |
|---|
| 6 | | - * licensing only applies to this file, and not this project as a |
|---|
| 7 | | - * whole. |
|---|
| 8 | | - * |
|---|
| 9 | | - * a) This file is free software; you can redistribute it and/or |
|---|
| 10 | | - * modify it under the terms of the GNU General Public License |
|---|
| 11 | | - * version 2 as published by the Free Software Foundation. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This file is distributed in the hope that it will be useful |
|---|
| 14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | - * GNU General Public License for more details. |
|---|
| 17 | | - * |
|---|
| 18 | | - * Or, alternatively |
|---|
| 19 | | - * |
|---|
| 20 | | - * b) Permission is hereby granted, free of charge, to any person |
|---|
| 21 | | - * obtaining a copy of this software and associated documentation |
|---|
| 22 | | - * files (the "Software"), to deal in the Software without |
|---|
| 23 | | - * restriction, including without limitation the rights to use |
|---|
| 24 | | - * copy, modify, merge, publish, distribute, sublicense, and/or |
|---|
| 25 | | - * sell copies of the Software, and to permit persons to whom the |
|---|
| 26 | | - * Software is furnished to do so, subject to the following |
|---|
| 27 | | - * conditions: |
|---|
| 28 | | - * |
|---|
| 29 | | - * The above copyright notice and this permission notice shall be |
|---|
| 30 | | - * included in all copies or substantial portions of the Software. |
|---|
| 31 | | - * |
|---|
| 32 | | - * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND |
|---|
| 33 | | - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|---|
| 34 | | - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|---|
| 35 | | - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|---|
| 36 | | - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY |
|---|
| 37 | | - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|---|
| 38 | | - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|---|
| 39 | | - * OTHER DEALINGS IN THE SOFTWARE. |
|---|
| 3 | + * Copyright 2016-2019 Toradex AG |
|---|
| 40 | 4 | */ |
|---|
| 41 | 5 | |
|---|
| 42 | 6 | /dts-v1/; |
|---|
| .. | .. |
|---|
| 72 | 36 | host1x@50000000 { |
|---|
| 73 | 37 | hdmi@54280000 { |
|---|
| 74 | 38 | status = "okay"; |
|---|
| 39 | + hdmi-supply = <®_5v0>; |
|---|
| 75 | 40 | }; |
|---|
| 76 | 41 | }; |
|---|
| 77 | 42 | |
|---|
| .. | .. |
|---|
| 122 | 87 | /* |
|---|
| 123 | 88 | * GEN2_I2C: I2C2_SDA/SCL (DDC) on MXM3 pin 205/207 (e.g. display EDID) |
|---|
| 124 | 89 | */ |
|---|
| 125 | | - hdmi_ddc: i2c@7000c400 { |
|---|
| 90 | + i2c@7000c400 { |
|---|
| 126 | 91 | status = "okay"; |
|---|
| 127 | 92 | }; |
|---|
| 128 | 93 | |
|---|
| .. | .. |
|---|
| 141 | 106 | spi@7000d400 { |
|---|
| 142 | 107 | status = "okay"; |
|---|
| 143 | 108 | spi-max-frequency = <50000000>; |
|---|
| 144 | | - |
|---|
| 145 | | - spidev0: spidev@0 { |
|---|
| 146 | | - compatible = "spidev"; |
|---|
| 147 | | - reg = <0>; |
|---|
| 148 | | - spi-max-frequency = <50000000>; |
|---|
| 149 | | - }; |
|---|
| 150 | 109 | }; |
|---|
| 151 | 110 | |
|---|
| 152 | 111 | /* SPI4: Apalis SPI2 */ |
|---|
| 153 | 112 | spi@7000da00 { |
|---|
| 154 | 113 | status = "okay"; |
|---|
| 155 | 114 | spi-max-frequency = <50000000>; |
|---|
| 156 | | - |
|---|
| 157 | | - spidev1: spidev@0 { |
|---|
| 158 | | - compatible = "spidev"; |
|---|
| 159 | | - reg = <0>; |
|---|
| 160 | | - spi-max-frequency = <50000000>; |
|---|
| 161 | | - }; |
|---|
| 162 | 115 | }; |
|---|
| 163 | 116 | |
|---|
| 164 | 117 | /* Apalis Serial ATA */ |
|---|
| 165 | 118 | sata@70020000 { |
|---|
| 166 | 119 | status = "okay"; |
|---|
| 120 | + target-5v-supply = <®_5v0>; |
|---|
| 121 | + target-12v-supply = <®_12v0>; |
|---|
| 167 | 122 | }; |
|---|
| 168 | 123 | |
|---|
| 169 | 124 | hda@70030000 { |
|---|
| .. | .. |
|---|
| 175 | 130 | }; |
|---|
| 176 | 131 | |
|---|
| 177 | 132 | /* Apalis MMC1 */ |
|---|
| 178 | | - sdhci@700b0000 { |
|---|
| 133 | + mmc@700b0000 { |
|---|
| 179 | 134 | status = "okay"; |
|---|
| 135 | + bus-width = <4>; |
|---|
| 180 | 136 | /* MMC1_CD# */ |
|---|
| 181 | 137 | cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>; |
|---|
| 182 | | - bus-width = <4>; |
|---|
| 183 | 138 | vqmmc-supply = <&vddio_sdmmc1>; |
|---|
| 184 | 139 | }; |
|---|
| 185 | 140 | |
|---|
| 186 | 141 | /* Apalis SD1 */ |
|---|
| 187 | | - sdhci@700b0400 { |
|---|
| 142 | + mmc@700b0400 { |
|---|
| 188 | 143 | status = "okay"; |
|---|
| 144 | + bus-width = <4>; |
|---|
| 189 | 145 | /* SD1_CD# */ |
|---|
| 190 | 146 | cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>; |
|---|
| 191 | | - bus-width = <4>; |
|---|
| 192 | 147 | vqmmc-supply = <&vddio_sdmmc3>; |
|---|
| 193 | 148 | }; |
|---|
| 194 | 149 | |
|---|
| .. | .. |
|---|
| 225 | 180 | |
|---|
| 226 | 181 | backlight: backlight { |
|---|
| 227 | 182 | compatible = "pwm-backlight"; |
|---|
| 228 | | - pwms = <&pwm 3 5000000>; /* BKL1_PWM */ |
|---|
| 229 | 183 | brightness-levels = <255 231 223 207 191 159 127 0>; |
|---|
| 230 | 184 | default-brightness-level = <6>; |
|---|
| 231 | 185 | /* BKL1_ON */ |
|---|
| 232 | 186 | enable-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_HIGH>; |
|---|
| 187 | + power-supply = <®_3v3>; |
|---|
| 188 | + pwms = <&pwm 3 5000000>; /* BKL1_PWM */ |
|---|
| 233 | 189 | }; |
|---|
| 234 | 190 | |
|---|
| 235 | 191 | gpio-keys { |
|---|
| .. | .. |
|---|
| 244 | 200 | }; |
|---|
| 245 | 201 | }; |
|---|
| 246 | 202 | |
|---|
| 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 | + |
|---|
| 247 | 210 | reg_5v0: regulator-5v0 { |
|---|
| 248 | 211 | compatible = "regulator-fixed"; |
|---|
| 249 | 212 | regulator-name = "5V_SW"; |
|---|
| 250 | 213 | regulator-min-microvolt = <5000000>; |
|---|
| 251 | 214 | regulator-max-microvolt = <5000000>; |
|---|
| 215 | + }; |
|---|
| 216 | + |
|---|
| 217 | + reg_12v0: regulator-12v0 { |
|---|
| 218 | + compatible = "regulator-fixed"; |
|---|
| 219 | + regulator-name = "12V_SW"; |
|---|
| 220 | + regulator-min-microvolt = <12000000>; |
|---|
| 221 | + regulator-max-microvolt = <12000000>; |
|---|
| 252 | 222 | }; |
|---|
| 253 | 223 | |
|---|
| 254 | 224 | /* USBO1_EN */ |
|---|
| .. | .. |
|---|
| 276 | 246 | |
|---|
| 277 | 247 | &gpio { |
|---|
| 278 | 248 | /* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */ |
|---|
| 279 | | - pex_perst_n { |
|---|
| 249 | + pex-perst-n { |
|---|
| 280 | 250 | gpio-hog; |
|---|
| 281 | 251 | gpios = <TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>; |
|---|
| 282 | 252 | output-high; |
|---|