imx6: Add support for Toradex Apalis family of CoMs
[openwrt/openwrt.git] / target / linux / imx6 / patches-4.19 / 302-apalis-ixora-dts-reset-button.patch
1 arm: dts: apalis-ixora: Add switch3 as reset button
2
3 Signed-off-by: Petr Štetiar <ynezz@true.cz>
4
5 --- a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts
6 +++ b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts
7 @@ -70,7 +70,7 @@
8 gpio-keys {
9 compatible = "gpio-keys";
10 pinctrl-names = "default";
11 - pinctrl-0 = <&pinctrl_gpio_keys>;
12 + pinctrl-0 = <&pinctrl_gpio_keys &pinctrl_switch3_ixora>;
13
14 wakeup {
15 label = "Wake-Up";
16 @@ -79,6 +79,13 @@
17 debounce-interval = <10>;
18 wakeup-source;
19 };
20 +
21 + reset {
22 + label = "reset";
23 + gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
24 + linux,code = <KEY_RESTART>;
25 + debounce-interval = <10>;
26 + };
27 };
28
29 lcd_display: display@di0 {
30 @@ -292,4 +299,10 @@
31 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
32 >;
33 };
34 +
35 + pinctrl_switch3_ixora: switch3ixora {
36 + fsl,pins = <
37 + MX6QDL_PAD_SD1_DAT0__GPIO1_IO16 0x1b0b0
38 + >;
39 + };
40 };
41 --- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts
42 +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts
43 @@ -69,7 +69,7 @@
44 gpio-keys {
45 compatible = "gpio-keys";
46 pinctrl-names = "default";
47 - pinctrl-0 = <&pinctrl_gpio_keys>;
48 + pinctrl-0 = <&pinctrl_gpio_keys &pinctrl_switch3_ixora>;
49
50 wakeup {
51 label = "Wake-Up";
52 @@ -78,6 +78,13 @@
53 debounce-interval = <10>;
54 wakeup-source;
55 };
56 +
57 + reset {
58 + label = "reset";
59 + gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
60 + linux,code = <KEY_RESTART>;
61 + debounce-interval = <10>;
62 + };
63 };
64
65 lcd_display: display@di0 {
66 @@ -293,4 +300,10 @@
67 MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
68 >;
69 };
70 +
71 + pinctrl_switch3_ixora: switch3ixora {
72 + fsl,pins = <
73 + MX6QDL_PAD_SD1_DAT0__GPIO1_IO16 0x1b0b0
74 + >;
75 + };
76 };