forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 645e752c5a84baeb21015cdc85fc05b7d16312c8
kernel/arch/arm/boot/dts/tegra124-apalis-eval.dts
....@@ -1,42 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0 OR X11
12 /*
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
404 */
415
426 /dts-v1/;
....@@ -72,6 +36,7 @@
7236 host1x@50000000 {
7337 hdmi@54280000 {
7438 status = "okay";
39
+ hdmi-supply = <&reg_5v0>;
7540 };
7641 };
7742
....@@ -122,7 +87,7 @@
12287 /*
12388 * GEN2_I2C: I2C2_SDA/SCL (DDC) on MXM3 pin 205/207 (e.g. display EDID)
12489 */
125
- hdmi_ddc: i2c@7000c400 {
90
+ i2c@7000c400 {
12691 status = "okay";
12792 };
12893
....@@ -141,29 +106,19 @@
141106 spi@7000d400 {
142107 status = "okay";
143108 spi-max-frequency = <50000000>;
144
-
145
- spidev0: spidev@0 {
146
- compatible = "spidev";
147
- reg = <0>;
148
- spi-max-frequency = <50000000>;
149
- };
150109 };
151110
152111 /* SPI4: Apalis SPI2 */
153112 spi@7000da00 {
154113 status = "okay";
155114 spi-max-frequency = <50000000>;
156
-
157
- spidev1: spidev@0 {
158
- compatible = "spidev";
159
- reg = <0>;
160
- spi-max-frequency = <50000000>;
161
- };
162115 };
163116
164117 /* Apalis Serial ATA */
165118 sata@70020000 {
166119 status = "okay";
120
+ target-5v-supply = <&reg_5v0>;
121
+ target-12v-supply = <&reg_12v0>;
167122 };
168123
169124 hda@70030000 {
....@@ -175,20 +130,20 @@
175130 };
176131
177132 /* Apalis MMC1 */
178
- sdhci@700b0000 {
133
+ mmc@700b0000 {
179134 status = "okay";
135
+ bus-width = <4>;
180136 /* MMC1_CD# */
181137 cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>;
182
- bus-width = <4>;
183138 vqmmc-supply = <&vddio_sdmmc1>;
184139 };
185140
186141 /* Apalis SD1 */
187
- sdhci@700b0400 {
142
+ mmc@700b0400 {
188143 status = "okay";
144
+ bus-width = <4>;
189145 /* SD1_CD# */
190146 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
191
- bus-width = <4>;
192147 vqmmc-supply = <&vddio_sdmmc3>;
193148 };
194149
....@@ -225,11 +180,12 @@
225180
226181 backlight: backlight {
227182 compatible = "pwm-backlight";
228
- pwms = <&pwm 3 5000000>; /* BKL1_PWM */
229183 brightness-levels = <255 231 223 207 191 159 127 0>;
230184 default-brightness-level = <6>;
231185 /* BKL1_ON */
232186 enable-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_HIGH>;
187
+ power-supply = <&reg_3v3>;
188
+ pwms = <&pwm 3 5000000>; /* BKL1_PWM */
233189 };
234190
235191 gpio-keys {
....@@ -244,11 +200,25 @@
244200 };
245201 };
246202
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
+
247210 reg_5v0: regulator-5v0 {
248211 compatible = "regulator-fixed";
249212 regulator-name = "5V_SW";
250213 regulator-min-microvolt = <5000000>;
251214 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>;
252222 };
253223
254224 /* USBO1_EN */
....@@ -276,7 +246,7 @@
276246
277247 &gpio {
278248 /* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */
279
- pex_perst_n {
249
+ pex-perst-n {
280250 gpio-hog;
281251 gpios = <TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>;
282252 output-high;