-
Notifications
You must be signed in to change notification settings - Fork 20
/
bspm_P9_11_27-00A0.dts
48 lines (43 loc) · 1.29 KB
/
bspm_P9_11_27-00A0.dts
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Generated using http://kilobaser.com/blog/2014-07-28-beaglebone-black-devicetreeoverlay-generator#dtogenerator
* To compile:
* dtc -O dtb -o /lib/firmware/bspm_P9_11_27-00A0.dtbo -b 0 -@ /lib/firmware/bspm_P9_11_27-00A0.dts
* To use:
* echo bspm_P9_11_27 > /sys/devices/bone_capemgr.?/slots
* echo 30 > /sys/class/gpio/export
* Associated directory:
* ls /sys/class/gpio/gpio30/
* The current value of the pin can be found in the file:
* /sys/class/gpio/gpio30/value
*/
/dts-v1/;
/plugin/;
/{
compatible = "ti,beaglebone", "ti,beaglebone-black";
part_number = "BS_PINMODE_P9_11_0x27";
exclusive-use =
"P9.11",
"gpio0_30";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
bs_pinmode_P9_11_0x27: pinmux_bs_pinmode_P9_11_0x27 {
pinctrl-single,pins = <0x070 0x27>;
};
};
};
fragment@1 {
target = <&ocp>;
__overlay__ {
bs_pinmode_P9_11_0x27_pinmux {
compatible = "gpio-keys";
status = "okay";
pinctrl-names = "default";
debounce_interval = <50>;
linux,code = <1>;
pinctrl-0 = <&bs_pinmode_P9_11_0x27>;
gpio-key,wakeup;
};
};
};
};