forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi
....@@ -1,10 +1,6 @@
1
-/*
2
- * Copyright (C) 2015 Freescale Semiconductor, Inc.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
7
- */
1
+// SPDX-License-Identifier: GPL-2.0
2
+//
3
+// Copyright (C) 2015 Freescale Semiconductor, Inc.
84
95 / {
106 chosen {
....@@ -32,6 +28,36 @@
3228 regulator-max-microvolt = <3300000>;
3329 gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
3430 enable-active-high;
31
+ };
32
+
33
+ reg_peri_3v3: regulator-peri-3v3 {
34
+ compatible = "regulator-fixed";
35
+ pinctrl-names = "default";
36
+ pinctrl-0 = <&pinctrl_peri_3v3>;
37
+ regulator-name = "VPERI_3V3";
38
+ regulator-min-microvolt = <3300000>;
39
+ regulator-max-microvolt = <3300000>;
40
+ gpio = <&gpio5 2 GPIO_ACTIVE_LOW>;
41
+ /*
42
+ * If you want to want to make this dynamic please
43
+ * check schematics and test all affected peripherals:
44
+ *
45
+ * - sensors
46
+ * - ethernet phy
47
+ * - can
48
+ * - bluetooth
49
+ * - wm8960 audio codec
50
+ * - ov5640 camera
51
+ */
52
+ regulator-always-on;
53
+ };
54
+
55
+ reg_can_3v3: regulator-can-3v3 {
56
+ compatible = "regulator-fixed";
57
+ regulator-name = "can-3v3";
58
+ regulator-min-microvolt = <3300000>;
59
+ regulator-max-microvolt = <3300000>;
60
+ gpios = <&gpio_spi 3 GPIO_ACTIVE_LOW>;
3561 };
3662
3763 sound {
....@@ -68,6 +94,28 @@
6894 };
6995 };
7096
97
+ spi4 {
98
+ compatible = "spi-gpio";
99
+ pinctrl-names = "default";
100
+ pinctrl-0 = <&pinctrl_spi4>;
101
+ status = "okay";
102
+ gpio-sck = <&gpio5 11 0>;
103
+ gpio-mosi = <&gpio5 10 0>;
104
+ cs-gpios = <&gpio5 7 0>;
105
+ num-chipselects = <1>;
106
+ #address-cells = <1>;
107
+ #size-cells = <0>;
108
+
109
+ gpio_spi: gpio@0 {
110
+ compatible = "fairchild,74hc595";
111
+ gpio-controller;
112
+ #gpio-cells = <2>;
113
+ reg = <0>;
114
+ registers-number = <1>;
115
+ spi-max-frequency = <100000>;
116
+ };
117
+ };
118
+
71119 panel {
72120 compatible = "innolux,at043tn24";
73121 backlight = <&backlight_display>;
....@@ -86,7 +134,7 @@
86134 };
87135
88136 &i2c2 {
89
- clock_frequency = <100000>;
137
+ clock-frequency = <100000>;
90138 pinctrl-names = "default";
91139 pinctrl-0 = <&pinctrl_i2c2>;
92140 status = "okay";
....@@ -104,6 +152,7 @@
104152 pinctrl-0 = <&pinctrl_enet1>;
105153 phy-mode = "rmii";
106154 phy-handle = <&ethphy0>;
155
+ phy-supply = <&reg_peri_3v3>;
107156 status = "okay";
108157 };
109158
....@@ -112,6 +161,7 @@
112161 pinctrl-0 = <&pinctrl_enet2>;
113162 phy-mode = "rmii";
114163 phy-handle = <&ethphy1>;
164
+ phy-supply = <&reg_peri_3v3>;
115165 status = "okay";
116166
117167 mdio {
....@@ -134,15 +184,31 @@
134184 };
135185 };
136186
187
+&can1 {
188
+ pinctrl-names = "default";
189
+ pinctrl-0 = <&pinctrl_flexcan1>;
190
+ xceiver-supply = <&reg_can_3v3>;
191
+ status = "okay";
192
+};
193
+
194
+&can2 {
195
+ pinctrl-names = "default";
196
+ pinctrl-0 = <&pinctrl_flexcan2>;
197
+ xceiver-supply = <&reg_can_3v3>;
198
+ status = "okay";
199
+};
200
+
137201 &i2c1 {
138202 clock-frequency = <100000>;
139203 pinctrl-names = "default";
140204 pinctrl-0 = <&pinctrl_i2c1>;
141205 status = "okay";
142206
143
- mag3110@e {
207
+ magnetometer@e {
144208 compatible = "fsl,mag3110";
145209 reg = <0x0e>;
210
+ vdd-supply = <&reg_peri_3v3>;
211
+ vddio-supply = <&reg_peri_3v3>;
146212 };
147213 };
148214
....@@ -162,6 +228,7 @@
162228 };
163229
164230 &pwm1 {
231
+ #pwm-cells = <2>;
165232 pinctrl-names = "default";
166233 pinctrl-0 = <&pinctrl_pwm1>;
167234 status = "okay";
....@@ -172,11 +239,13 @@
172239 pinctrl-0 = <&pinctrl_qspi>;
173240 status = "okay";
174241
175
- flash0: n25q256a@0 {
242
+ flash0: flash@0 {
176243 #address-cells = <1>;
177244 #size-cells = <1>;
178245 compatible = "micron,n25q256a", "jedec,spi-nor";
179246 spi-max-frequency = <29000000>;
247
+ spi-rx-bus-width = <4>;
248
+ spi-tx-bus-width = <4>;
180249 reg = <0>;
181250 };
182251 };
....@@ -193,6 +262,10 @@
193262 };
194263
195264 &snvs_poweroff {
265
+ status = "okay";
266
+};
267
+
268
+&snvs_pwrkey {
196269 status = "okay";
197270 };
198271
....@@ -220,6 +293,8 @@
220293
221294 &usbotg1 {
222295 dr_mode = "otg";
296
+ pinctrl-names = "default";
297
+ pinctrl-0 = <&pinctrl_usb_otg1>;
223298 status = "okay";
224299 };
225300
....@@ -253,6 +328,7 @@
253328 pinctrl-names = "default";
254329 pinctrl-0 = <&pinctrl_usdhc2>;
255330 no-1-8-v;
331
+ broken-cd;
256332 keep-power-in-suspend;
257333 wakeup-source;
258334 status = "okay";
....@@ -402,6 +478,12 @@
402478 >;
403479 };
404480
481
+ pinctrl_peri_3v3: peri3v3grp {
482
+ fsl,pins = <
483
+ MX6UL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x1b0b0
484
+ >;
485
+ };
486
+
405487 pinctrl_pwm1: pwm1grp {
406488 fsl,pins = <
407489 MX6UL_PAD_GPIO1_IO08__PWM1_OUT 0x110b0
....@@ -416,6 +498,15 @@
416498 MX6UL_PAD_CSI_DATA06__SIM2_PORT1_SVEN 0xb808
417499 MX6UL_PAD_CSI_DATA07__SIM2_PORT1_TRXD 0xb809
418500 MX6UL_PAD_CSI_DATA02__GPIO4_IO23 0x3008
501
+ >;
502
+ };
503
+
504
+ pinctrl_spi4: spi4grp {
505
+ fsl,pins = <
506
+ MX6UL_PAD_BOOT_MODE0__GPIO5_IO10 0x70a1
507
+ MX6UL_PAD_BOOT_MODE1__GPIO5_IO11 0x70a1
508
+ MX6UL_PAD_SNVS_TAMPER7__GPIO5_IO07 0x70a1
509
+ MX6UL_PAD_SNVS_TAMPER8__GPIO5_IO08 0x80000000
419510 >;
420511 };
421512
....@@ -444,6 +535,12 @@
444535 >;
445536 };
446537
538
+ pinctrl_usb_otg1: usbotg1grp {
539
+ fsl,pins = <
540
+ MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059
541
+ >;
542
+ };
543
+
447544 pinctrl_usdhc1: usdhc1grp {
448545 fsl,pins = <
449546 MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059