summaryrefslogtreecommitdiff
path: root/skey.dts
blob: ed1eeef68cb5d7ce59797fa6e15df6579b422bfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// dtoverlay for skey that sets all pins to be pull-down
/dts-v1/;
/plugin/;

/ {
	compatible = "brcm,bcm2708";
	fragment@0 {
		target-path = "/";
        	__overlay__ {
			skey: skey {
				compatible = "skey";
				status = "okay";
				gpios = <10 24 23 22 27 18 17 15 14 4 3 6 5>;
			};
		};
	};
	fragment@1 {
		target = <&gpio>;
        	__overlay__ {
			pinctrl-names = "default";
			pinctrl-0 = <&skey_pins>;
			skey_pins: skey_pins {
				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>;
			};
		};
	};
};