hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/imx6qdl-sabresd.dtsi
....@@ -13,55 +13,57 @@
1313 };
1414
1515 memory@10000000 {
16
+ device_type = "memory";
1617 reg = <0x10000000 0x40000000>;
1718 };
1819
19
- regulators {
20
- compatible = "simple-bus";
21
- #address-cells = <1>;
22
- #size-cells = <0>;
20
+ reg_usb_otg_vbus: regulator-usb-otg-vbus {
21
+ compatible = "regulator-fixed";
22
+ regulator-name = "usb_otg_vbus";
23
+ regulator-min-microvolt = <5000000>;
24
+ regulator-max-microvolt = <5000000>;
25
+ gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
26
+ enable-active-high;
27
+ vin-supply = <&swbst_reg>;
28
+ };
2329
24
- reg_usb_otg_vbus: regulator@0 {
25
- compatible = "regulator-fixed";
26
- reg = <0>;
27
- regulator-name = "usb_otg_vbus";
28
- regulator-min-microvolt = <5000000>;
29
- regulator-max-microvolt = <5000000>;
30
- gpio = <&gpio3 22 0>;
31
- enable-active-high;
32
- vin-supply = <&swbst_reg>;
33
- };
30
+ reg_usb_h1_vbus: regulator-usb-h1-vbus {
31
+ compatible = "regulator-fixed";
32
+ regulator-name = "usb_h1_vbus";
33
+ regulator-min-microvolt = <5000000>;
34
+ regulator-max-microvolt = <5000000>;
35
+ gpio = <&gpio1 29 GPIO_ACTIVE_HIGH>;
36
+ enable-active-high;
37
+ vin-supply = <&swbst_reg>;
38
+ };
3439
35
- reg_usb_h1_vbus: regulator@1 {
36
- compatible = "regulator-fixed";
37
- reg = <1>;
38
- regulator-name = "usb_h1_vbus";
39
- regulator-min-microvolt = <5000000>;
40
- regulator-max-microvolt = <5000000>;
41
- gpio = <&gpio1 29 0>;
42
- enable-active-high;
43
- vin-supply = <&swbst_reg>;
44
- };
40
+ reg_audio: regulator-audio {
41
+ compatible = "regulator-fixed";
42
+ regulator-name = "wm8962-supply";
43
+ gpio = <&gpio4 10 GPIO_ACTIVE_HIGH>;
44
+ enable-active-high;
45
+ };
4546
46
- reg_audio: regulator@2 {
47
- compatible = "regulator-fixed";
48
- reg = <2>;
49
- regulator-name = "wm8962-supply";
50
- gpio = <&gpio4 10 0>;
51
- enable-active-high;
52
- };
47
+ reg_pcie: regulator-pcie {
48
+ compatible = "regulator-fixed";
49
+ pinctrl-names = "default";
50
+ pinctrl-0 = <&pinctrl_pcie_reg>;
51
+ regulator-name = "MPCIE_3V3";
52
+ regulator-min-microvolt = <3300000>;
53
+ regulator-max-microvolt = <3300000>;
54
+ gpio = <&gpio3 19 GPIO_ACTIVE_HIGH>;
55
+ enable-active-high;
56
+ };
5357
54
- reg_pcie: regulator@3 {
55
- compatible = "regulator-fixed";
56
- reg = <3>;
57
- pinctrl-names = "default";
58
- pinctrl-0 = <&pinctrl_pcie_reg>;
59
- regulator-name = "MPCIE_3V3";
60
- regulator-min-microvolt = <3300000>;
61
- regulator-max-microvolt = <3300000>;
62
- gpio = <&gpio3 19 0>;
63
- enable-active-high;
64
- };
58
+ reg_sensors: regulator-sensors {
59
+ compatible = "regulator-fixed";
60
+ pinctrl-names = "default";
61
+ pinctrl-0 = <&pinctrl_sensors_reg>;
62
+ regulator-name = "sensors-supply";
63
+ regulator-min-microvolt = <3300000>;
64
+ regulator-max-microvolt = <3300000>;
65
+ gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
66
+ enable-active-high;
6567 };
6668
6769 gpio-keys {
....@@ -103,9 +105,13 @@
103105 "Ext Spk", "SPKOUTL",
104106 "Ext Spk", "SPKOUTR",
105107 "AMIC", "MICBIAS",
106
- "IN3R", "AMIC";
108
+ "IN3R", "AMIC",
109
+ "DMIC", "MICBIAS",
110
+ "DMICDAT", "DMIC";
107111 mux-int-port = <2>;
108112 mux-ext-port = <3>;
113
+ hp-det-gpio = <&gpio7 8 GPIO_ACTIVE_LOW>;
114
+ mic-det-gpio = <&gpio1 9 GPIO_ACTIVE_LOW>;
109115 };
110116
111117 backlight_lvds: backlight-lvds {
....@@ -183,12 +189,12 @@
183189 };
184190
185191 &ecspi1 {
186
- cs-gpios = <&gpio4 9 0>;
192
+ cs-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>;
187193 pinctrl-names = "default";
188194 pinctrl-0 = <&pinctrl_ecspi1>;
189195 status = "okay";
190196
191
- flash: m25p80@0 {
197
+ flash: flash@0 {
192198 #address-cells = <1>;
193199 #size-cells = <1>;
194200 compatible = "st,m25p32", "jedec,spi-nor";
....@@ -200,9 +206,22 @@
200206 &fec {
201207 pinctrl-names = "default";
202208 pinctrl-0 = <&pinctrl_enet>;
203
- phy-mode = "rgmii";
204
- phy-reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
209
+ phy-mode = "rgmii-id";
210
+ phy-handle = <&phy>;
211
+ fsl,magic-packet;
205212 status = "okay";
213
+
214
+ mdio {
215
+ #address-cells = <1>;
216
+ #size-cells = <0>;
217
+
218
+ phy: ethernet-phy@1 {
219
+ reg = <1>;
220
+ qca,clk-out-frequency = <125000000>;
221
+ reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
222
+ reset-assert-us = <10000>;
223
+ };
224
+ };
206225 };
207226
208227 &hdmi {
....@@ -240,6 +259,17 @@
240259 >;
241260 };
242261
262
+ accelerometer@1c {
263
+ compatible = "fsl,mma8451";
264
+ reg = <0x1c>;
265
+ pinctrl-names = "default";
266
+ pinctrl-0 = <&pinctrl_i2c1_mma8451_int>;
267
+ interrupt-parent = <&gpio1>;
268
+ interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
269
+ vdd-supply = <&reg_sensors>;
270
+ vddio-supply = <&reg_sensors>;
271
+ };
272
+
243273 ov5642: camera@3c {
244274 compatible = "ovti,ov5642";
245275 pinctrl-names = "default";
....@@ -271,6 +301,16 @@
271301 pinctrl-names = "default";
272302 pinctrl-0 = <&pinctrl_i2c2>;
273303 status = "okay";
304
+
305
+ touchscreen@4 {
306
+ compatible = "eeti,egalax_ts";
307
+ reg = <0x04>;
308
+ pinctrl-names = "default";
309
+ pinctrl-0 = <&pinctrl_i2c2_egalax_int>;
310
+ interrupt-parent = <&gpio6>;
311
+ interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
312
+ wakeup-gpios = <&gpio6 8 GPIO_ACTIVE_HIGH>;
313
+ };
274314
275315 ov5640: camera@3c {
276316 compatible = "ovti,ov5640";
....@@ -410,6 +450,27 @@
410450 interrupts = <7 2>;
411451 wakeup-gpios = <&gpio6 7 0>;
412452 };
453
+
454
+ magnetometer@e {
455
+ compatible = "fsl,mag3110";
456
+ reg = <0x0e>;
457
+ pinctrl-names = "default";
458
+ pinctrl-0 = <&pinctrl_i2c3_mag3110_int>;
459
+ interrupt-parent = <&gpio3>;
460
+ interrupts = <16 IRQ_TYPE_EDGE_RISING>;
461
+ vdd-supply = <&reg_sensors>;
462
+ vddio-supply = <&reg_sensors>;
463
+ };
464
+
465
+ light-sensor@44 {
466
+ compatible = "isil,isl29023";
467
+ reg = <0x44>;
468
+ pinctrl-names = "default";
469
+ pinctrl-0 = <&pinctrl_i2c3_isl29023_int>;
470
+ interrupt-parent = <&gpio3>;
471
+ interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
472
+ vcc-supply = <&reg_sensors>;
473
+ };
413474 };
414475
415476 &iomuxc {
....@@ -491,6 +552,12 @@
491552 >;
492553 };
493554
555
+ pinctrl_i2c1_mma8451_int: i2c1mma8451intgrp {
556
+ fsl,pins = <
557
+ MX6QDL_PAD_SD1_CMD__GPIO1_IO18 0xb0b1
558
+ >;
559
+ };
560
+
494561 pinctrl_i2c2: i2c2grp {
495562 fsl,pins = <
496563 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
....@@ -498,10 +565,28 @@
498565 >;
499566 };
500567
568
+ pinctrl_i2c2_egalax_int: i2c2egalaxintgrp {
569
+ fsl,pins = <
570
+ MX6QDL_PAD_NANDF_ALE__GPIO6_IO08 0x1b0b0
571
+ >;
572
+ };
573
+
501574 pinctrl_i2c3: i2c3grp {
502575 fsl,pins = <
503576 MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
504577 MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
578
+ >;
579
+ };
580
+
581
+ pinctrl_i2c3_isl29023_int: i2c3isl29023intgrp {
582
+ fsl,pins = <
583
+ MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0xb0b1
584
+ >;
585
+ };
586
+
587
+ pinctrl_i2c3_mag3110_int: i2c3mag3110intgrp {
588
+ fsl,pins = <
589
+ MX6QDL_PAD_EIM_D16__GPIO3_IO16 0xb0b1
505590 >;
506591 };
507592
....@@ -550,6 +635,12 @@
550635 pinctrl_pwm1: pwm1grp {
551636 fsl,pins = <
552637 MX6QDL_PAD_SD1_DAT3__PWM1_OUT 0x1b0b1
638
+ >;
639
+ };
640
+
641
+ pinctrl_sensors_reg: sensorsreggrp {
642
+ fsl,pins = <
643
+ MX6QDL_PAD_EIM_EB3__GPIO2_IO31 0x1b0b0
553644 >;
554645 };
555646
....@@ -654,6 +745,7 @@
654745 };
655746
656747 &pwm1 {
748
+ #pwm-cells = <2>;
657749 pinctrl-names = "default";
658750 pinctrl-0 = <&pinctrl_pwm1>;
659751 status = "okay";
....@@ -683,6 +775,10 @@
683775 status = "okay";
684776 };
685777
778
+&snvs_pwrkey {
779
+ status = "okay";
780
+};
781
+
686782 &ssi2 {
687783 status = "okay";
688784 };