forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/imx7s-warp.dts
....@@ -1,44 +1,7 @@
1
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
12 /*
23 * Copyright (C) 2016 NXP Semiconductors.
34 * Author: Fabio Estevam <fabio.estevam@nxp.com>
4
- *
5
- * This file is dual-licensed: you can use it either under the terms
6
- * of the GPL or the X11 license, at your option. Note that this dual
7
- * licensing only applies to this file, and not this project as a
8
- * whole.
9
- *
10
- * a) This file is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU General Public License as
12
- * published by the Free Software Foundation; either version 2 of the
13
- * License, or (at your option) any later version.
14
- *
15
- * This file is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * Or, alternatively,
21
- *
22
- * b) Permission is hereby granted, free of charge, to any person
23
- * obtaining a copy of this software and associated documentation
24
- * files (the "Software"), to deal in the Software without
25
- * restriction, including without limitation the rights to use,
26
- * copy, modify, merge, publish, distribute, sublicense, and/or
27
- * sell copies of the Software, and to permit persons to whom the
28
- * Software is furnished to do so, subject to the following
29
- * conditions:
30
- *
31
- * The above copyright notice and this permission notice shall be
32
- * included in all copies or substantial portions of the Software.
33
- *
34
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36
- * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41
- * OTHER DEALINGS IN THE SOFTWARE.
425 */
436
447 /dts-v1/;
....@@ -92,6 +55,14 @@
9255 regulator-always-on;
9356 };
9457
58
+ reg_peri_3p15v: regulator-peri-3p15v {
59
+ compatible = "regulator-fixed";
60
+ regulator-name = "peri_3p15v_reg";
61
+ regulator-min-microvolt = <3150000>;
62
+ regulator-max-microvolt = <3150000>;
63
+ regulator-always-on;
64
+ };
65
+
9566 sound {
9667 compatible = "simple-audio-card";
9768 simple-audio-card,name = "imx7-sgtl5000";
....@@ -104,7 +75,7 @@
10475
10576 dailink_master: simple-audio-card,codec {
10677 sound-dai = <&codec>;
107
- clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
78
+ clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
10879 };
10980 };
11081 };
....@@ -112,6 +83,10 @@
11283 &clks {
11384 assigned-clocks = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
11485 assigned-clock-rates = <884736000>;
86
+};
87
+
88
+&csi {
89
+ status = "okay";
11590 };
11691
11792 &i2c1 {
....@@ -158,6 +133,8 @@
158133 swbst_reg: swbst {
159134 regulator-min-microvolt = <5000000>;
160135 regulator-max-microvolt = <5150000>;
136
+ regulator-boot-on;
137
+ regulator-always-on;
161138 };
162139
163140 snvs_reg: vsnvs {
....@@ -215,6 +192,34 @@
215192 pinctrl-names = "default";
216193 pinctrl-0 = <&pinctrl_i2c2>;
217194 status = "okay";
195
+
196
+ ov2680: camera@36 {
197
+ compatible = "ovti,ov2680";
198
+ pinctrl-names = "default";
199
+ pinctrl-0 = <&pinctrl_ov2680>;
200
+ reg = <0x36>;
201
+ clocks = <&osc>;
202
+ clock-names = "xvclk";
203
+ reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
204
+ DOVDD-supply = <&sw2_reg>;
205
+ DVDD-supply = <&sw2_reg>;
206
+ AVDD-supply = <&reg_peri_3p15v>;
207
+
208
+ port {
209
+ ov2680_to_mipi: endpoint {
210
+ remote-endpoint = <&mipi_from_sensor>;
211
+ clock-lanes = <0>;
212
+ data-lanes = <1>;
213
+ };
214
+ };
215
+ };
216
+};
217
+
218
+&i2c3 {
219
+ clock-frequency = <100000>;
220
+ pinctrl-names = "default";
221
+ pinctrl-0 = <&pinctrl_i2c3>;
222
+ status = "okay";
218223 };
219224
220225 &i2c4 {
....@@ -227,7 +232,7 @@
227232 #sound-dai-cells = <0>;
228233 reg = <0x0a>;
229234 compatible = "fsl,sgtl5000";
230
- clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
235
+ clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
231236 pinctrl-names = "default";
232237 pinctrl-0 = <&pinctrl_sai1_mclk>;
233238 VDDA-supply = <&vgen4_reg>;
....@@ -238,6 +243,22 @@
238243 mpl3115@60 {
239244 compatible = "fsl,mpl3115";
240245 reg = <0x60>;
246
+ };
247
+};
248
+
249
+&mipi_csi {
250
+ clock-frequency = <166000000>;
251
+ fsl,csis-hs-settle = <3>;
252
+ status = "okay";
253
+
254
+ port@0 {
255
+ reg = <0>;
256
+
257
+ mipi_from_sensor: endpoint {
258
+ remote-endpoint = <&ov2680_to_mipi>;
259
+ data-lanes = <1>;
260
+ };
261
+
241262 };
242263 };
243264
....@@ -307,6 +328,10 @@
307328 status = "okay";
308329 };
309330
331
+&video_mux {
332
+ status = "okay";
333
+};
334
+
310335 &wdog1 {
311336 pinctrl-names = "default";
312337 pinctrl-0 = <&pinctrl_wdog>;
....@@ -347,6 +372,13 @@
347372 >;
348373 };
349374
375
+ pinctrl_i2c3: i2c3grp {
376
+ fsl,pins = <
377
+ MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f
378
+ MX7D_PAD_I2C3_SCL__I2C3_SCL 0x4000007f
379
+ >;
380
+ };
381
+
350382 pinctrl_i2c4: i2c4grp {
351383 fsl,pins = <
352384 MX7D_PAD_I2C4_SCL__I2C4_SCL 0x4000007f
....@@ -354,6 +386,12 @@
354386 >;
355387 };
356388
389
+ pinctrl_ov2680: ov2660grp {
390
+ fsl,pins = <
391
+ MX7D_PAD_LPSR_GPIO1_IO03__GPIO1_IO3 0x14
392
+ >;
393
+ };
394
+
357395 pinctrl_sai1: sai1grp {
358396 fsl,pins = <
359397 MX7D_PAD_SAI1_RX_DATA__SAI1_RX_DATA0 0x1f