Re: [linux-sunxi] Re: [PATCH] input: sun4i-lradc-keys: Add wakup support

2019-10-28 Thread Dmitry Torokhov
On Tue, Oct 29, 2019 at 02:45:59AM +0100, Ondřej Jirman wrote: > On Mon, Oct 28, 2019 at 05:12:50PM -0700, Dmitry Torokhov wrote: > > On Tue, Oct 29, 2019 at 12:56:26AM +0100, Ondřej Jirman wrote: > > > On Mon, Oct 28, 2019 at 04:38:28PM -0700, Dmitry Torokhov wrote: > > > > > + > > > > > +

[linux-sunxi] Re: [PATCH 0/3] Add touchscreen support for TBS A711 Tablet

2019-10-28 Thread Dmitry Torokhov
On Tue, Oct 29, 2019 at 01:58:03AM +0100, Ondrej Jirman wrote: > This is a resurrection of https://lkml.org/lkml/2018/7/25/143 > > Compared to v4 of Mylčne's series I've dropped all attempts to > power off the chip during suspend. This patch just enables the > regulator during probe and disables

[linux-sunxi] Re: [PATCH 1/3] input: edt-ft5x06: Add support for regulator

2019-10-28 Thread Dmitry Torokhov
On Tue, Oct 29, 2019 at 01:58:04AM +0100, Ondrej Jirman wrote: > From: Mylčne Josserand > > Add the support for enabling optional regulator that may be used as VCC > source. > > Signed-off-by: Ondrej Jirman > Signed-off-by: Mylčne Josserand Applied, thank you. > --- >

Re: [linux-sunxi] Re: [PATCH] input: sun4i-lradc-keys: Add wakup support

2019-10-28 Thread Ondřej Jirman
On Mon, Oct 28, 2019 at 05:12:50PM -0700, Dmitry Torokhov wrote: > On Tue, Oct 29, 2019 at 12:56:26AM +0100, Ondřej Jirman wrote: > > On Mon, Oct 28, 2019 at 04:38:28PM -0700, Dmitry Torokhov wrote: > > > > + > > > > + error = dev_pm_set_wake_irq(dev, irq); > > > > + if (error) { > > >

Re: [linux-sunxi] [PATCH] ARM: sunxi: Fix CPU powerdown on A83T

2019-10-28 Thread Ondřej Jirman
On Tue, Oct 29, 2019 at 09:09:40AM +0800, Chen-Yu Tsai wrote: > On Tue, Oct 29, 2019 at 5:49 AM Ondrej Jirman wrote: > > > > PRCM_PWROFF_GATING_REG has CPU0 at bit 4 on A83T. So without this > > patch, instead of gating the CPU0, the whole cluster was power gated, > > when shutting down first CPU

Re: [linux-sunxi] [PATCH] ARM: sunxi: Fix CPU powerdown on A83T

2019-10-28 Thread Chen-Yu Tsai
On Tue, Oct 29, 2019 at 5:49 AM Ondrej Jirman wrote: > > PRCM_PWROFF_GATING_REG has CPU0 at bit 4 on A83T. So without this > patch, instead of gating the CPU0, the whole cluster was power gated, > when shutting down first CPU in the cluster. > > Fixes: 6961275e72a8c1 ("ARM: sun8i: smp: Add

[linux-sunxi] [PATCH 1/3] input: edt-ft5x06: Add support for regulator

2019-10-28 Thread Ondrej Jirman
From: Mylène Josserand Add the support for enabling optional regulator that may be used as VCC source. Signed-off-by: Ondrej Jirman Signed-off-by: Mylène Josserand --- drivers/input/touchscreen/edt-ft5x06.c | 30 ++ 1 file changed, 30 insertions(+) diff --git

[linux-sunxi] [PATCH 0/3] Add touchscreen support for TBS A711 Tablet

2019-10-28 Thread Ondrej Jirman
This is a resurrection of https://lkml.org/lkml/2018/7/25/143 Compared to v4 of Mylène's series I've dropped all attempts to power off the chip during suspend. This patch just enables the regulator during probe and disables it on driver rmmod. I've tested the driver with suspend/resume and

[linux-sunxi] [PATCH 3/3] arm: dts: sun8i: a83t: a711: Add touchscreen node

2019-10-28 Thread Ondrej Jirman
From: Mylène Josserand Enable a FocalTech EDT-FT5x06 Polytouch touchscreen. Signed-off-by: Ondrej Jirman Signed-off-by: Mylène Josserand --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 16 1 file changed, 16 insertions(+) diff --git

[linux-sunxi] [PATCH 2/3] dt-bindings: input: edt-ft5x06: Add regulator support

2019-10-28 Thread Ondrej Jirman
Touch controller may have an optional regulator. Reviewed-by: Rob Herring Signed-off-by: Ondrej Jirman --- .../devicetree/bindings/input/touchscreen/edt-ft5x06.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.txt

[linux-sunxi] Re: [PATCH] input: sun4i-lradc-keys: Add wakup support

2019-10-28 Thread Dmitry Torokhov
On Tue, Oct 29, 2019 at 12:56:26AM +0100, Ondřej Jirman wrote: > Hello Dmitry, > > On Mon, Oct 28, 2019 at 04:38:28PM -0700, Dmitry Torokhov wrote: > > Hi Ondrej, > > > > On Mon, Oct 28, 2019 at 11:15:02PM +0100, Ondrej Jirman wrote: > > > Allow the driver to wakeup the system on key press. > >

[linux-sunxi] Re: [PATCH] input: sun4i-lradc-keys: Add wakup support

2019-10-28 Thread Ondřej Jirman
Hello Dmitry, On Mon, Oct 28, 2019 at 04:38:28PM -0700, Dmitry Torokhov wrote: > Hi Ondrej, > > On Mon, Oct 28, 2019 at 11:15:02PM +0100, Ondrej Jirman wrote: > > Allow the driver to wakeup the system on key press. > > > > Signed-off-by: Ondrej Jirman > > --- > >

[linux-sunxi] Re: [PATCH] input: sun4i-lradc-keys: Add wakup support

2019-10-28 Thread Dmitry Torokhov
Hi Ondrej, On Mon, Oct 28, 2019 at 11:15:02PM +0100, Ondrej Jirman wrote: > Allow the driver to wakeup the system on key press. > > Signed-off-by: Ondrej Jirman > --- > drivers/input/keyboard/sun4i-lradc-keys.c | 22 ++ > 1 file changed, 18 insertions(+), 4 deletions(-) >

[linux-sunxi] Re: [PATCH v11 2/7] dt-bindings: sun6i-dsi: Add A64 DPHY compatible (w/ A31 fallback)

2019-10-28 Thread Jagan Teki
On Mon, Oct 28, 2019 at 2:47 AM Rob Herring wrote: > > On Fri, 25 Oct 2019 23:26:20 +0530, Jagan Teki wrote: > > The MIPI DSI PHY controller on Allwinner A64 is similar > > on the one on A31. > > > > Add A64 compatible and append A31 compatible as fallback. > > > > Signed-off-by: Jagan Teki > >

[linux-sunxi] Re: [PATCH v11 4/7] drm/sun4i: dsi: Handle bus clock explicitly

2019-10-28 Thread Jagan Teki
Hi Maxime, On Mon, Oct 28, 2019 at 9:06 PM Maxime Ripard wrote: > > On Fri, Oct 25, 2019 at 11:26:22PM +0530, Jagan Teki wrote: > > Usage of clocks are varies between different Allwinner > > DSI controllers. Clocking in A33 would need bus and > > mod clocks where as A64 would need only bus

[linux-sunxi] [PATCH] input: sun4i-lradc-keys: Add wakup support

2019-10-28 Thread Ondrej Jirman
Allow the driver to wakeup the system on key press. Signed-off-by: Ondrej Jirman --- drivers/input/keyboard/sun4i-lradc-keys.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/input/keyboard/sun4i-lradc-keys.c

[linux-sunxi] [PATCH] ARM: dts: sun8i-a83t-tbs-a711: Fix WiFi resume from suspend

2019-10-28 Thread Ondrej Jirman
Without enabling keep-power-in-suspend, we can't wake the device up using WOL packet, and the log is flooded with these messages on resume: sunxi-mmc 1c1.mmc: send stop command failed sunxi-mmc 1c1.mmc: data error, sending stop command sunxi-mmc 1c1.mmc: send stop command failed

[linux-sunxi] [PATCH] ARM: sunxi: Fix CPU powerdown on A83T

2019-10-28 Thread Ondrej Jirman
PRCM_PWROFF_GATING_REG has CPU0 at bit 4 on A83T. So without this patch, instead of gating the CPU0, the whole cluster was power gated, when shutting down first CPU in the cluster. Fixes: 6961275e72a8c1 ("ARM: sun8i: smp: Add support for A83T") Signed-off-by: Ondrej Jirman Cc:

[linux-sunxi] [PATCH] drm: sun4i: Add support for suspending the display driver

2019-10-28 Thread Ondrej Jirman
Shut down the display engine during suspend. Signed-off-by: Ondrej Jirman --- drivers/gpu/drm/sun4i/sun4i_drv.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c index a5757b11b730..c519d7cfcf43

[linux-sunxi] Re: [PATCH v3 1/4] crypto: Add Allwinner sun8i-ss cryptographic offloader

2019-10-28 Thread Philipp Zabel
Hi Corentin, On Fri, 2019-10-25 at 20:51 +0200, Corentin Labbe wrote: > The Security System is an hardware cryptographic offloader present > on Allwinner SoCs A80 and A83T. > It is different from the previous sun4i-ss. > > This driver supports AES cipher in CBC and ECB mode. > > Acked-by: