summaryrefslogtreecommitdiff
path: root/skey.dts
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-19 23:16:57 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-19 23:16:57 -0500
commit3593e6a0eeececae94e51c25a0787f108b87d75b (patch)
tree932014faf723d6000d51a4ce08db9327a37f837b /skey.dts
parentea79b0a8190fa0d923816141391337027fb4bc33 (diff)
added device tree overlay to make pins pull down`
Diffstat (limited to 'skey.dts')
-rw-r--r--skey.dts19
1 files changed, 19 insertions, 0 deletions
diff --git a/skey.dts b/skey.dts
new file mode 100644
index 0000000..2e56735
--- /dev/null
+++ b/skey.dts
@@ -0,0 +1,19 @@
+// dtoverlay for skey that sets all pins to be pull-down
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "brcm,bcm2708";
+ fragment@0 {
+ target-path = "/";
+ __overlay__ {
+ skey {
+ ///compatible = "skey";
+ status = "okay";
+ bcrm,pins = <10 24 23 22 27 18 17 15 14 4 3 6 5>
+ bcrm,function = <0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x1 0x1>
+ bcrm,pull = <0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x0 0x0 0x0>
+ };
+ };
+ };
+};