mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v1 1/3] MIPS: ath79: enable watchdog support
@ 2019-08-26 11:38 Oleksij Rempel
  2019-08-26 11:38 ` [PATCH v1 2/3] MIPS: dts: dpt-module: fix gpio button Oleksij Rempel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Oleksij Rempel @ 2019-08-26 11:38 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

all ath79 based SoCs have watchdog. Make sure, it can be used.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 arch/mips/configs/ath79_defconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/mips/configs/ath79_defconfig b/arch/mips/configs/ath79_defconfig
index 83d22e4e1c..c41d0bf545 100644
--- a/arch/mips/configs/ath79_defconfig
+++ b/arch/mips/configs/ath79_defconfig
@@ -52,6 +52,7 @@ CONFIG_CMD_LED=y
 CONFIG_CMD_POWEROFF=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_LED_TRIGGER=y
+CONFIG_CMD_WD=y
 CONFIG_CMD_BAREBOX_UPDATE=y
 CONFIG_CMD_OF_NODE=y
 CONFIG_CMD_OF_PROPERTY=y
@@ -77,6 +78,9 @@ CONFIG_LED=y
 CONFIG_LED_GPIO=y
 CONFIG_LED_GPIO_OF=y
 CONFIG_LED_TRIGGERS=y
+CONFIG_WATCHDOG=y
+CONFIG_WATCHDOG_POLLER=y
+CONFIG_WATCHDOG_AR9344=y
 CONFIG_FS_TFTP=y
 CONFIG_FS_NFS=y
 CONFIG_DIGEST_SHA224_GENERIC=y
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v1 2/3] MIPS: dts: dpt-module: fix gpio button
  2019-08-26 11:38 [PATCH v1 1/3] MIPS: ath79: enable watchdog support Oleksij Rempel
@ 2019-08-26 11:38 ` Oleksij Rempel
  2019-08-26 11:38 ` [PATCH v1 3/3] MIPS: ath79: enable gpio key support Oleksij Rempel
  2019-08-28 11:35 ` [PATCH v1 1/3] MIPS: ath79: enable watchdog support Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Oleksij Rempel @ 2019-08-26 11:38 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

GPIO11 is set to 0 by default and there is no internal pull ups
to set a different configuration. To fix the system with gpio-key
activated we need to fix devicetree first.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 arch/mips/dts/ar9331-dptechnics-dpt-module.dts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/mips/dts/ar9331-dptechnics-dpt-module.dts b/arch/mips/dts/ar9331-dptechnics-dpt-module.dts
index f0de46315c..315589aab9 100644
--- a/arch/mips/dts/ar9331-dptechnics-dpt-module.dts
+++ b/arch/mips/dts/ar9331-dptechnics-dpt-module.dts
@@ -24,6 +24,12 @@
 			barebox,default-trigger = "heartbeat";
 		};
 	};
+
+	gpio-keys {
+		button@0 {
+			gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
+		};
+	};
 };
 
 &spiflash {
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v1 3/3] MIPS: ath79: enable gpio key support.
  2019-08-26 11:38 [PATCH v1 1/3] MIPS: ath79: enable watchdog support Oleksij Rempel
  2019-08-26 11:38 ` [PATCH v1 2/3] MIPS: dts: dpt-module: fix gpio button Oleksij Rempel
@ 2019-08-26 11:38 ` Oleksij Rempel
  2019-08-28 11:35 ` [PATCH v1 1/3] MIPS: ath79: enable watchdog support Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Oleksij Rempel @ 2019-08-26 11:38 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

Most of ath79 devices have at least one gpio key.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 arch/mips/configs/ath79_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/configs/ath79_defconfig b/arch/mips/configs/ath79_defconfig
index c41d0bf545..ab7af794a2 100644
--- a/arch/mips/configs/ath79_defconfig
+++ b/arch/mips/configs/ath79_defconfig
@@ -78,6 +78,7 @@ CONFIG_LED=y
 CONFIG_LED_GPIO=y
 CONFIG_LED_GPIO_OF=y
 CONFIG_LED_TRIGGERS=y
+CONFIG_KEYBOARD_GPIO=y
 CONFIG_WATCHDOG=y
 CONFIG_WATCHDOG_POLLER=y
 CONFIG_WATCHDOG_AR9344=y
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v1 1/3] MIPS: ath79: enable watchdog support
  2019-08-26 11:38 [PATCH v1 1/3] MIPS: ath79: enable watchdog support Oleksij Rempel
  2019-08-26 11:38 ` [PATCH v1 2/3] MIPS: dts: dpt-module: fix gpio button Oleksij Rempel
  2019-08-26 11:38 ` [PATCH v1 3/3] MIPS: ath79: enable gpio key support Oleksij Rempel
@ 2019-08-28 11:35 ` Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2019-08-28 11:35 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: barebox

On Mon, Aug 26, 2019 at 01:38:52PM +0200, Oleksij Rempel wrote:
> all ath79 based SoCs have watchdog. Make sure, it can be used.
> 
> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
> ---
>  arch/mips/configs/ath79_defconfig | 4 ++++
>  1 file changed, 4 insertions(+)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-28 11:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-26 11:38 [PATCH v1 1/3] MIPS: ath79: enable watchdog support Oleksij Rempel
2019-08-26 11:38 ` [PATCH v1 2/3] MIPS: dts: dpt-module: fix gpio button Oleksij Rempel
2019-08-26 11:38 ` [PATCH v1 3/3] MIPS: ath79: enable gpio key support Oleksij Rempel
2019-08-28 11:35 ` [PATCH v1 1/3] MIPS: ath79: enable watchdog support Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox