diff options
author | knolax <1339802534.kk@gmail.com> | 2017-12-19 23:16:57 -0500 |
---|---|---|
committer | knolax <1339802534.kk@gmail.com> | 2017-12-19 23:16:57 -0500 |
commit | 3593e6a0eeececae94e51c25a0787f108b87d75b (patch) | |
tree | 932014faf723d6000d51a4ce08db9327a37f837b /skey.dts | |
parent | ea79b0a8190fa0d923816141391337027fb4bc33 (diff) |
added device tree overlay to make pins pull down`
Diffstat (limited to 'skey.dts')
-rw-r--r-- | skey.dts | 19 |
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> + }; + }; + }; +}; |