Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.6-rc4 28 lines 905 B view raw
1STMicroelectronics STPMIC1 Onkey 2 3Required properties: 4 5- compatible = "st,stpmic1-onkey"; 6- interrupts: interrupt line to use 7- interrupt-names = "onkey-falling", "onkey-rising" 8 onkey-falling: happens when onkey is pressed; IT_PONKEY_F of pmic 9 onkey-rising: happens when onkey is released; IT_PONKEY_R of pmic 10 11Optional properties: 12 13- st,onkey-clear-cc-flag: onkey is able power on after an 14 over-current shutdown event. 15- st,onkey-pu-inactive: onkey pull up is not active 16- power-off-time-sec: Duration in seconds which the key should be kept 17 pressed for device to power off automatically (from 1 to 16 seconds). 18 see See Documentation/devicetree/bindings/input/input.yaml 19 20Example: 21 22onkey { 23 compatible = "st,stpmic1-onkey"; 24 interrupt-parent = <&pmic>; 25 interrupts = <IT_PONKEY_F 0>,<IT_PONKEY_R 1>; 26 interrupt-names = "onkey-falling", "onkey-rising"; 27 power-off-time-sec = <10>; 28};