hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
....@@ -4,6 +4,7 @@
44 // Copyright 2011 Linaro Ltd.
55
66 #include <dt-bindings/gpio/gpio.h>
7
+#include <dt-bindings/input/input.h>
78
89 / {
910 chosen {
....@@ -11,6 +12,7 @@
1112 };
1213
1314 memory@10000000 {
15
+ device_type = "memory";
1416 reg = <0x10000000 0x80000000>;
1517 };
1618
....@@ -25,6 +27,47 @@
2527 };
2628 };
2729
30
+ gpio-keys {
31
+ compatible = "gpio-keys";
32
+ pinctrl-names = "default";
33
+ pinctrl-0 = <&pinctrl_gpio_keys>;
34
+
35
+ home {
36
+ label = "Home";
37
+ gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
38
+ linux,code = <KEY_HOME>;
39
+ wakeup-source;
40
+ };
41
+
42
+ back {
43
+ label = "Back";
44
+ gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
45
+ linux,code = <KEY_BACK>;
46
+ wakeup-source;
47
+ };
48
+
49
+ program {
50
+ label = "Program";
51
+ gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
52
+ linux,code = <KEY_PROGRAM>;
53
+ wakeup-source;
54
+ };
55
+
56
+ volume-up {
57
+ label = "Volume Up";
58
+ gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
59
+ linux,code = <KEY_VOLUMEUP>;
60
+ wakeup-source;
61
+ };
62
+
63
+ volume-down {
64
+ label = "Volume Down";
65
+ gpios = <&gpio5 14 GPIO_ACTIVE_LOW>;
66
+ linux,code = <KEY_VOLUMEDOWN>;
67
+ wakeup-source;
68
+ };
69
+ };
70
+
2871 clocks {
2972 codec_osc: anaclk2 {
3073 compatible = "fixed-clock";
....@@ -33,39 +76,49 @@
3376 };
3477 };
3578
36
- regulators {
37
- compatible = "simple-bus";
38
- #address-cells = <1>;
39
- #size-cells = <0>;
79
+ reg_audio: regulator-audio {
80
+ compatible = "regulator-fixed";
81
+ regulator-name = "cs42888_supply";
82
+ regulator-min-microvolt = <3300000>;
83
+ regulator-max-microvolt = <3300000>;
84
+ regulator-always-on;
85
+ };
4086
41
- reg_audio: regulator@0 {
42
- compatible = "regulator-fixed";
43
- reg = <0>;
44
- regulator-name = "cs42888_supply";
45
- regulator-min-microvolt = <3300000>;
46
- regulator-max-microvolt = <3300000>;
47
- regulator-always-on;
48
- };
87
+ reg_usb_h1_vbus: regulator-usb-h1-vbus {
88
+ compatible = "regulator-fixed";
89
+ regulator-name = "usb_h1_vbus";
90
+ regulator-min-microvolt = <5000000>;
91
+ regulator-max-microvolt = <5000000>;
92
+ gpio = <&max7310_b 7 GPIO_ACTIVE_HIGH>;
93
+ enable-active-high;
94
+ };
4995
50
- reg_usb_h1_vbus: regulator@1 {
51
- compatible = "regulator-fixed";
52
- reg = <1>;
53
- regulator-name = "usb_h1_vbus";
54
- regulator-min-microvolt = <5000000>;
55
- regulator-max-microvolt = <5000000>;
56
- gpio = <&max7310_b 7 GPIO_ACTIVE_HIGH>;
57
- enable-active-high;
58
- };
96
+ reg_usb_otg_vbus: regulator-usb-otg-vbus {
97
+ compatible = "regulator-fixed";
98
+ regulator-name = "usb_otg_vbus";
99
+ regulator-min-microvolt = <5000000>;
100
+ regulator-max-microvolt = <5000000>;
101
+ gpio = <&max7310_c 1 GPIO_ACTIVE_HIGH>;
102
+ enable-active-high;
103
+ };
59104
60
- reg_usb_otg_vbus: regulator@2 {
61
- compatible = "regulator-fixed";
62
- reg = <2>;
63
- regulator-name = "usb_otg_vbus";
64
- regulator-min-microvolt = <5000000>;
65
- regulator-max-microvolt = <5000000>;
66
- gpio = <&max7310_c 1 GPIO_ACTIVE_HIGH>;
67
- enable-active-high;
68
- };
105
+ reg_can_en: regulator-can-en {
106
+ compatible = "regulator-fixed";
107
+ regulator-name = "can-en";
108
+ regulator-min-microvolt = <3300000>;
109
+ regulator-max-microvolt = <3300000>;
110
+ gpio = <&max7310_b 6 GPIO_ACTIVE_HIGH>;
111
+ enable-active-high;
112
+ };
113
+
114
+ reg_can_stby: regulator-can-stby {
115
+ compatible = "regulator-fixed";
116
+ regulator-name = "can-stby";
117
+ regulator-min-microvolt = <3300000>;
118
+ regulator-max-microvolt = <3300000>;
119
+ gpio = <&max7310_b 5 GPIO_ACTIVE_HIGH>;
120
+ enable-active-high;
121
+ vin-supply = <&reg_can_en>;
69122 };
70123
71124 sound-cs42888 {
....@@ -214,12 +267,12 @@
214267 };
215268
216269 &ecspi1 {
217
- cs-gpios = <&gpio3 19 0>;
270
+ cs-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
218271 pinctrl-names = "default";
219272 pinctrl-0 = <&pinctrl_ecspi1 &pinctrl_ecspi1_cs>;
220273 status = "disabled"; /* pin conflict with WEIM NOR */
221274
222
- flash: m25p80@0 {
275
+ flash: flash@0 {
223276 #address-cells = <1>;
224277 #size-cells = <1>;
225278 compatible = "st,m25p32", "jedec,spi-nor";
....@@ -241,10 +294,24 @@
241294 &fec {
242295 pinctrl-names = "default";
243296 pinctrl-0 = <&pinctrl_enet>;
244
- phy-mode = "rgmii";
297
+ phy-mode = "rgmii-id";
245298 interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>,
246299 <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>;
247300 fsl,err006687-workaround-present;
301
+ status = "okay";
302
+};
303
+
304
+&can1 {
305
+ pinctrl-names = "default";
306
+ pinctrl-0 = <&pinctrl_flexcan1>;
307
+ xceiver-supply = <&reg_can_stby>;
308
+ status = "disabled"; /* pin conflict with fec */
309
+};
310
+
311
+&can2 {
312
+ pinctrl-names = "default";
313
+ pinctrl-0 = <&pinctrl_flexcan2>;
314
+ xceiver-supply = <&reg_can_stby>;
248315 status = "okay";
249316 };
250317
....@@ -377,6 +444,15 @@
377444 VLC-supply = <&reg_audio>;
378445 };
379446
447
+ touchscreen@4 {
448
+ compatible = "eeti,egalax_ts";
449
+ reg = <0x04>;
450
+ pinctrl-names = "default";
451
+ pinctrl-0 = <&pinctrl_egalax_int>;
452
+ interrupt-parent = <&gpio2>;
453
+ interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
454
+ wakeup-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
455
+ };
380456 };
381457
382458 &i2c3 {
....@@ -409,6 +485,12 @@
409485 pinctrl_ecspi1_cs: ecspi1cs {
410486 fsl,pins = <
411487 MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x80000000
488
+ >;
489
+ };
490
+
491
+ pinctrl_egalax_int: egalax-intgrp {
492
+ fsl,pins = <
493
+ MX6QDL_PAD_EIM_EB0__GPIO2_IO28 0xb0b1
412494 >;
413495 };
414496
....@@ -445,6 +527,30 @@
445527 MX6QDL_PAD_NANDF_CS3__ESAI_TX1 0x1b030
446528 MX6QDL_PAD_ENET_MDIO__ESAI_RX_CLK 0x1b030
447529 MX6QDL_PAD_GPIO_9__ESAI_RX_FS 0x1b030
530
+ >;
531
+ };
532
+
533
+ pinctrl_flexcan1: flexcan1grp {
534
+ fsl,pins = <
535
+ MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x17059
536
+ MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x17059
537
+ >;
538
+ };
539
+
540
+ pinctrl_flexcan2: flexcan2grp {
541
+ fsl,pins = <
542
+ MX6QDL_PAD_KEY_COL4__FLEXCAN2_TX 0x17059
543
+ MX6QDL_PAD_KEY_ROW4__FLEXCAN2_RX 0x17059
544
+ >;
545
+ };
546
+
547
+ pinctrl_gpio_keys: gpiokeysgrp {
548
+ fsl,pins = <
549
+ MX6QDL_PAD_SD2_CMD__GPIO1_IO11 0x1b0b0
550
+ MX6QDL_PAD_SD2_DAT3__GPIO1_IO12 0x1b0b0
551
+ MX6QDL_PAD_SD4_DAT4__GPIO2_IO12 0x1b0b0
552
+ MX6QDL_PAD_SD4_DAT7__GPIO2_IO15 0x1b0b0
553
+ MX6QDL_PAD_DISP0_DAT20__GPIO5_IO14 0x1b0b0
448554 >;
449555 };
450556
....@@ -694,11 +800,16 @@
694800 };
695801
696802 &pwm3 {
803
+ #pwm-cells = <2>;
697804 pinctrl-names = "default";
698805 pinctrl-0 = <&pinctrl_pwm3>;
699806 status = "okay";
700807 };
701808
809
+&pcie {
810
+ status = "okay";
811
+};
812
+
702813 &spdif {
703814 pinctrl-names = "default";
704815 pinctrl-0 = <&pinctrl_spdif>;