forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/tegra124-apalis-v1.2-eval.dts
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: (GPL-2.0 OR MIT)
1
+// SPDX-License-Identifier: GPL-2.0 OR MIT
22 /*
33 * Copyright 2016-2018 Toradex AG
44 */
....@@ -11,7 +11,8 @@
1111 / {
1212 model = "Toradex Apalis TK1 on Apalis Evaluation Board";
1313 compatible = "toradex,apalis-tk1-v1.2-eval", "toradex,apalis-tk1-eval",
14
- "toradex,apalis-tk1", "nvidia,tegra124";
14
+ "toradex,apalis-tk1-v1.2", "toradex,apalis-tk1",
15
+ "nvidia,tegra124";
1516
1617 aliases {
1718 rtc0 = "/i2c@7000c000/rtc@68";
....@@ -36,6 +37,7 @@
3637 host1x@50000000 {
3738 hdmi@54280000 {
3839 status = "okay";
40
+ hdmi-supply = <&reg_5v0>;
3941 };
4042 };
4143
....@@ -98,7 +100,7 @@
98100 * I2C4 (DDC): I2C4_SDA/SCL (DDC) on MXM3 pin 205/207
99101 * (e.g. display EDID)
100102 */
101
- hdmi_ddc: i2c@7000c700 {
103
+ i2c@7000c700 {
102104 status = "okay";
103105 };
104106
....@@ -106,29 +108,19 @@
106108 spi@7000d400 {
107109 status = "okay";
108110 spi-max-frequency = <50000000>;
109
-
110
- spidev0: spidev@0 {
111
- compatible = "spidev";
112
- reg = <0>;
113
- spi-max-frequency = <50000000>;
114
- };
115111 };
116112
117113 /* SPI4: Apalis SPI2 */
118114 spi@7000da00 {
119115 status = "okay";
120116 spi-max-frequency = <50000000>;
121
-
122
- spidev1: spidev@0 {
123
- compatible = "spidev";
124
- reg = <0>;
125
- spi-max-frequency = <50000000>;
126
- };
127117 };
128118
129119 /* Apalis Serial ATA */
130120 sata@70020000 {
131121 status = "okay";
122
+ target-5v-supply = <&reg_5v0>;
123
+ target-12v-supply = <&reg_12v0>;
132124 };
133125
134126 hda@70030000 {
....@@ -140,20 +132,20 @@
140132 };
141133
142134 /* Apalis MMC1 */
143
- sdhci@700b0000 {
135
+ mmc@700b0000 {
144136 status = "okay";
137
+ bus-width = <4>;
145138 /* MMC1_CD# */
146139 cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>;
147
- bus-width = <4>;
148140 vqmmc-supply = <&vddio_sdmmc1>;
149141 };
150142
151143 /* Apalis SD1 */
152
- sdhci@700b0400 {
144
+ mmc@700b0400 {
153145 status = "okay";
146
+ bus-width = <4>;
154147 /* SD1_CD# */
155148 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_LOW>;
156
- bus-width = <4>;
157149 vqmmc-supply = <&vddio_sdmmc3>;
158150 };
159151
....@@ -190,11 +182,12 @@
190182
191183 backlight: backlight {
192184 compatible = "pwm-backlight";
193
- pwms = <&pwm 3 5000000>; /* BKL1_PWM */
194185 brightness-levels = <255 231 223 207 191 159 127 0>;
195186 default-brightness-level = <6>;
196187 /* BKL1_ON */
197188 enable-gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_HIGH>;
189
+ power-supply = <&reg_3v3>;
190
+ pwms = <&pwm 3 5000000>; /* BKL1_PWM */
198191 };
199192
200193 gpio-keys {
....@@ -209,11 +202,25 @@
209202 };
210203 };
211204
205
+ reg_3v3: regulator-3v3 {
206
+ compatible = "regulator-fixed";
207
+ regulator-name = "3.3V_SW";
208
+ regulator-min-microvolt = <3300000>;
209
+ regulator-max-microvolt = <3300000>;
210
+ };
211
+
212212 reg_5v0: regulator-5v0 {
213213 compatible = "regulator-fixed";
214214 regulator-name = "5V_SW";
215215 regulator-min-microvolt = <5000000>;
216216 regulator-max-microvolt = <5000000>;
217
+ };
218
+
219
+ reg_12v0: regulator-12v0 {
220
+ compatible = "regulator-fixed";
221
+ regulator-name = "12V_SW";
222
+ regulator-min-microvolt = <12000000>;
223
+ regulator-max-microvolt = <12000000>;
217224 };
218225
219226 /* USBO1_EN */
....@@ -241,7 +248,7 @@
241248
242249 &gpio {
243250 /* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */
244
- pex_perst_n {
251
+ pex-perst-n {
245252 gpio-hog;
246253 gpios = <TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>;
247254 output-high;