From 3593e6a0eeececae94e51c25a0787f108b87d75b Mon Sep 17 00:00:00 2001 From: knolax <1339802534.kk@gmail.com> Date: Tue, 19 Dec 2017 23:16:57 -0500 Subject: added device tree overlay to make pins pull down` --- skey.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 skey.dts 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> + }; + }; + }; +}; -- cgit v1.1