Re: [RFC] WIP: import gpio-poweroff driver from linux kernel

2019-11-08 Thread Sascha Hauer
Hi Antony, On Fri, Nov 08, 2019 at 02:56:45PM +0300, Antony Pavlov wrote: > Signed-off-by: Antony Pavlov > --- > drivers/reset/Kconfig | 7 +++ > drivers/reset/Makefile| 1 + > drivers/reset/gpio-poweroff.c | 86 +++ > 3 files changed, 94

Re: [PATCH 1/2] ARM: i.MX6: Embedsky E9: remove inaccurate comment

2019-11-08 Thread Sascha Hauer
On Fri, Nov 08, 2019 at 12:33:01PM +0100, Ahmad Fatoum wrote: > The board support is likely copied from the freescale-mx6-sabrelite, > which requires some GPIOs setup before Ethernet is usable. There is no > GPIOs used in this board's code, so remove the comment and along it the > header. > >

[RFC] WIP: import gpio-poweroff driver from linux kernel

2019-11-08 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/reset/Kconfig | 7 +++ drivers/reset/Makefile| 1 + drivers/reset/gpio-poweroff.c | 86 +++ 3 files changed, 94 insertions(+) diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig index

[PATCH 2/2] ARM: i.MX6: sabresd: remove inaccurate comment

2019-11-08 Thread Ahmad Fatoum
The board support is likely copied from the freescale-mx6-sabrelite, which requires some GPIOs setup before Ethernet is usable. There is no GPIOs used in this board's code, so remove the comment and along it the header. Signed-off-by: Ahmad Fatoum ---

[PATCH 1/2] ARM: i.MX6: Embedsky E9: remove inaccurate comment

2019-11-08 Thread Ahmad Fatoum
The board support is likely copied from the freescale-mx6-sabrelite, which requires some GPIOs setup before Ethernet is usable. There is no GPIOs used in this board's code, so remove the comment and along it the header. Signed-off-by: Ahmad Fatoum --- arch/arm/boards/embedsky-e9/board.c | 5

Re: [PATCH v2 2/4] watchdog: implement generic support for .running device parameter

2019-11-08 Thread Ahmad Fatoum
On 11/5/19 12:18 PM, Sascha Hauer wrote: > On Tue, Nov 05, 2019 at 12:10:51PM +0100, Ahmad Fatoum wrote: >> On 11/5/19 11:46 AM, Ahmad Fatoum wrote: >>> Hi, >>> >>> On 11/5/19 11:40 AM, Sascha Hauer wrote: When we just started the watchdog we actually know that it is running, so we could

[PATCH v3 1/4] watchdog: always populate watchdog priority from device tree if possible

2019-11-08 Thread Ahmad Fatoum
So far, only the da9063 and da9053 have made use of the optional barebox watchdog-priority binding. Move it into the core, so other device drivers automatically have their watchdog-priority property parsed as well. This patch doesn't introduce any functional changes for upstream boards.

[PATCH v3 3/4] watchdog: imxwd: support .running device parameter on i.MX2+

2019-11-08 Thread Ahmad Fatoum
The i.MX can be fused to start the watchdog on power-on reset. To give users an easy way to determine whether the watchdog is running, implement support for WDOG_HW_RUNNING. Signed-off-by: Ahmad Fatoum --- v2 -> v3: Use new enum wdog_hw_running v1 -> v2: Use new WDOG_HW_RUNNING_SUPPORTED ---

[PATCH v3 2/4] watchdog: implement generic support for .running device parameter

2019-11-08 Thread Ahmad Fatoum
Linux watchdog have an optional WDOG_HW_RUNNING bit that is used in conjunction with CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED to automatically ping running watchdogs until userspace takes over. So far, when we ported Linux drivers, we dropped this detection, but it would be useful to have this

[PATCH v3 4/4] watchdog: f71808e: support .running device parameter

2019-11-08 Thread Ahmad Fatoum
The American Megatrends BIOS I am using can be configured to start the Fintek watchdog prior to the UEFI payloads. To avoid BIOS updates that reset this functionality going unnoticed, implement support for WDOG_HW_RUNNING. Signed-off-by: Ahmad Fatoum --- v2 -> v3: Use new enum wdog_hw_running

[PATCH] ARM: mmu-early: On i.MX6 with HAB map ROM is mapped without XN

2019-11-08 Thread Sascha Hauer
On i.MX6 with HAB enabled we call into the ROM later in imx6_hab_get_status(). This only works when the XN bit is not set for this area, so remap the first MiB as cached which doesn't have the XN bit set. Signed-off-by: Sascha Hauer --- arch/arm/cpu/mmu-early.c | 7 +++ 1 file changed, 7