Re: [PATCH] arm64: dts: fsl: imx8mq: enable the svns power key

From: Lucas Stach
Date: Tue May 28 2019 - 08:55:23 EST


Hi Angus,

Am Dienstag, den 28.05.2019, 05:44 -0700 schrieb Angus Ainslie (Purism):
> Add the snvs power key.
>
> > Signed-off-by: Angus Ainslie (Purism) <angus@xxxxxxxx>
> ---
> Âarch/arm64/boot/dts/freescale/imx8mq.dtsi | 9 +++++++++
> Â1 file changed, 9 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> index 45d10d8efd14..5f93fd9662ae 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
> @@ -8,6 +8,7 @@
> Â#include <dt-bindings/power/imx8mq-power.h>
> Â#include <dt-bindings/reset/imx8mq-reset.h>
> Â#include <dt-bindings/gpio/gpio.h>
> +#include "dt-bindings/input/input.h"
> Â#include <dt-bindings/interrupt-controller/arm-gic.h>
> Â#include <dt-bindings/thermal/thermal.h>
> Â#include "imx8mq-pinfunc.h"
> @@ -463,6 +464,14 @@
> > Â interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
> > Â <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
> > Â };
> +
> > + snvs_pwrkey: snvs-powerkey {
> > + compatible = "fsl,sec-v4.0-pwrkey";
> > + regmap = <&snvs>;
> > + interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
> > + linux,keycode = <KEY_POWER>;
> + wakeup-source;

Not all i.MX8MQ systems will have this functionality wired up at the
board level, so this node needs to be disabled by default. The existing
i.MX6 and i.MX7 DTs seem to get this wrong.

Regards,
Lucas

> + };
> > Â };
> Â
> > > Â clk: clock-controller@30380000 {