OSDN Git Service

2bb1a164681ee1ae5cdd394c1a8d51d764684ea0
[immortalwrt/immortalwrt.git] / target / linux / imx / patches-5.15 / 301-ARM-dts-imx6q-apalis-ixora-make-switch3-reset-button.patch
1 From b6764bb27c819cdcf854371db485a43d71f579f3 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
3 Date: Tue, 3 Mar 2020 15:15:57 +0100
4 Subject: [PATCH] ARM: dts: imx6q-apalis: ixora: make switch3 reset button
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Petr ┼átetiar <ynezz@true.cz>
10 ---
11  arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 15 ++++++++++++++-
12  arch/arm/boot/dts/imx6q-apalis-ixora.dts      | 15 ++++++++++++++-
13  2 files changed, 28 insertions(+), 2 deletions(-)
14
15 --- a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts
16 +++ b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts
17 @@ -74,7 +74,7 @@
18         gpio-keys {
19                 compatible = "gpio-keys";
20                 pinctrl-names = "default";
21 -               pinctrl-0 = <&pinctrl_gpio_keys>;
22 +               pinctrl-0 = <&pinctrl_gpio_keys &pinctrl_switch3_ixora>;
23  
24                 wakeup {
25                         label = "Wake-Up";
26 @@ -83,6 +83,13 @@
27                         debounce-interval = <10>;
28                         wakeup-source;
29                 };
30 +
31 +               reset {
32 +                       label = "reset";
33 +                       gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
34 +                       linux,code = <KEY_RESTART>;
35 +                       debounce-interval = <10>;
36 +               };
37         };
38  
39         lcd_display: disp0 {
40 @@ -298,4 +305,10 @@
41                         MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
42                 >;
43         };
44 +
45 +       pinctrl_switch3_ixora: switch3ixora {
46 +               fsl,pins = <
47 +                       MX6QDL_PAD_SD1_DAT0__GPIO1_IO16 0x1b0b0
48 +               >;
49 +       };
50  };
51 --- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts
52 +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts
53 @@ -73,7 +73,7 @@
54         gpio-keys {
55                 compatible = "gpio-keys";
56                 pinctrl-names = "default";
57 -               pinctrl-0 = <&pinctrl_gpio_keys>;
58 +               pinctrl-0 = <&pinctrl_gpio_keys &pinctrl_switch3_ixora>;
59  
60                 wakeup {
61                         label = "Wake-Up";
62 @@ -82,6 +82,13 @@
63                         debounce-interval = <10>;
64                         wakeup-source;
65                 };
66 +
67 +               reset {
68 +                       label = "reset";
69 +                       gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
70 +                       linux,code = <KEY_RESTART>;
71 +                       debounce-interval = <10>;
72 +               };
73         };
74  
75         lcd_display: disp0 {
76 @@ -299,4 +306,10 @@
77                         MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
78                 >;
79         };
80 +
81 +       pinctrl_switch3_ixora: switch3ixora {
82 +               fsl,pins = <
83 +                       MX6QDL_PAD_SD1_DAT0__GPIO1_IO16 0x1b0b0
84 +               >;
85 +       };
86  };