From: Oleksij Rempel <o.rempel@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Oleksij Rempel <o.rempel@pengutronix.de>
Subject: [PATCH v1 2/3] MIPS: dts: dpt-module: fix gpio button
Date: Mon, 26 Aug 2019 13:38:53 +0200 [thread overview]
Message-ID: <20190826113854.27895-2-o.rempel@pengutronix.de> (raw)
In-Reply-To: <20190826113854.27895-1-o.rempel@pengutronix.de>
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
next prev parent reply other threads:[~2019-08-26 11:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-26 11:38 [PATCH v1 1/3] MIPS: ath79: enable watchdog support Oleksij Rempel
2019-08-26 11:38 ` Oleksij Rempel [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190826113854.27895-2-o.rempel@pengutronix.de \
--to=o.rempel@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox