Home
last modified time | relevance | path

Searched full:onkey (Results 1 – 25 of 48) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/input/misc/
Dda9052_onkey.c24 static void da9052_onkey_query(struct da9052_onkey *onkey) in da9052_onkey_query() argument
28 ret = da9052_reg_read(onkey->da9052, DA9052_STATUS_A_REG); in da9052_onkey_query()
30 dev_err(onkey->da9052->dev, in da9052_onkey_query()
31 "Failed to read onkey event err=%d\n", ret); in da9052_onkey_query()
34 * Since interrupt for deassertion of ONKEY pin is not in da9052_onkey_query()
35 * generated, onkey event state determines the onkey in da9052_onkey_query()
40 input_report_key(onkey->input, KEY_POWER, pressed); in da9052_onkey_query()
41 input_sync(onkey->input); in da9052_onkey_query()
44 * Interrupt is generated only when the ONKEY pin in da9052_onkey_query()
49 schedule_delayed_work(&onkey->work, in da9052_onkey_query()
[all …]
Dda9063_onkey.c3 * OnKey device driver for DA9063, DA9062 and DA9061 PMICs
72 .name = "da9062-onkey",
76 { .compatible = "dlg,da9063-onkey", .data = &da9063_regs },
77 { .compatible = "dlg,da9062-onkey", .data = &da9062_regs },
84 struct da9063_onkey *onkey = container_of(work, in da9063_poll_on() local
87 const struct da906x_chip_config *config = onkey->config; in da9063_poll_on()
94 error = regmap_read(onkey->regmap, in da9063_poll_on()
98 dev_err(onkey->dev, in da9063_poll_on()
104 error = regmap_update_bits(onkey->regmap, in da9063_poll_on()
109 dev_err(onkey->dev, in da9063_poll_on()
[all …]
Dda9055_onkey.c23 static void da9055_onkey_query(struct da9055_onkey *onkey) in da9055_onkey_query() argument
27 key_stat = da9055_reg_read(onkey->da9055, DA9055_REG_STATUS_A); in da9055_onkey_query()
29 dev_err(onkey->da9055->dev, in da9055_onkey_query()
30 "Failed to read onkey event %d\n", key_stat); in da9055_onkey_query()
34 * Onkey status bit is cleared when onkey button is released. in da9055_onkey_query()
37 input_report_key(onkey->input, KEY_POWER, 0); in da9055_onkey_query()
38 input_sync(onkey->input); in da9055_onkey_query()
43 * Interrupt is generated only when the ONKEY pin is asserted. in da9055_onkey_query()
47 schedule_delayed_work(&onkey->work, msecs_to_jiffies(10)); in da9055_onkey_query()
53 struct da9055_onkey *onkey = container_of(work, struct da9055_onkey, in da9055_onkey_work() local
[all …]
Dmax77650-onkey.c6 // ONKEY driver for MAXIM 77650/77651 charger/power-supply.
27 struct max77650_onkey *onkey = data; in max77650_onkey_falling() local
29 input_report_key(onkey->input, onkey->code, 0); in max77650_onkey_falling()
30 input_sync(onkey->input); in max77650_onkey_falling()
37 struct max77650_onkey *onkey = data; in max77650_onkey_rising() local
39 input_report_key(onkey->input, onkey->code, 1); in max77650_onkey_rising()
40 input_sync(onkey->input); in max77650_onkey_rising()
48 struct max77650_onkey *onkey; in max77650_onkey_probe() local
60 onkey = devm_kzalloc(dev, sizeof(*onkey), GFP_KERNEL); in max77650_onkey_probe()
61 if (!onkey) in max77650_onkey_probe()
[all …]
Dstpmic1_onkey.c15 * struct stpmic1_onkey - OnKey data
28 struct stpmic1_onkey *onkey = ponkey; in onkey_falling_irq() local
29 struct input_dev *input_dev = onkey->input_dev; in onkey_falling_irq()
40 struct stpmic1_onkey *onkey = ponkey; in onkey_rising_irq() local
41 struct input_dev *input_dev = onkey->input_dev; in onkey_rising_irq()
55 struct stpmic1_onkey *onkey; in stpmic1_onkey_probe() local
59 onkey = devm_kzalloc(dev, sizeof(*onkey), GFP_KERNEL); in stpmic1_onkey_probe()
60 if (!onkey) in stpmic1_onkey_probe()
63 onkey->irq_falling = platform_get_irq_byname(pdev, "onkey-falling"); in stpmic1_onkey_probe()
64 if (onkey->irq_falling < 0) in stpmic1_onkey_probe()
[all …]
DKconfig17 tristate "88PM860x ONKEY support"
20 Support the ONKEY of Marvell 88PM860x PMICs as an input device
27 tristate "88PM80x ONKEY support"
30 Support the ONKEY of Marvell 88PM80x PMICs as an input device
184 tristate "Maxim MAX77650 ONKEY support"
187 Support the ONKEY of the MAX77650 PMIC as an input device.
190 will be called max77650-onkey.
204 tristate "MAX8925 ONKEY support"
207 Support the ONKEY of MAX8925 PMICs as an input device
312 tristate "CPCAP OnKey"
[all …]
D88pm80x_onkey.c2 * Marvell 88PM80x ONKEY driver
42 /* 88PM80x gives us an interrupt when ONKEY is held */
106 IRQF_ONESHOT, "onkey", info); in pm80x_onkey_probe()
121 /* Enable long onkey detection */ in pm80x_onkey_probe()
153 .name = "88pm80x-onkey",
163 MODULE_DESCRIPTION("Marvell 88PM80x ONKEY driver");
165 MODULE_ALIAS("platform:88pm80x-onkey");
Dmax8925_onkey.c2 * MAX8925 ONKEY driver
43 * MAX8925 gives us an interrupt when ONKEY is pressed or released.
57 dev_dbg(info->dev, "onkey state:%d\n", state); in max8925_onkey_handler()
104 "onkey-down", info); in max8925_onkey_probe()
113 "onkey-up", info); in max8925_onkey_probe()
164 .name = "max8925-onkey",
171 MODULE_DESCRIPTION("Maxim MAX8925 ONKEY driver");
D88pm860x_onkey.c2 * 88pm860x_onkey.c - Marvell 88PM860x ONKEY driver
44 /* 88PM860x gives us an interrupt when ONKEY is held */
55 /* Enable 8-second long onkey detection */ in pm860x_onkey_handler()
100 "onkey", info); in pm860x_onkey_probe()
136 .name = "88pm860x-onkey",
143 MODULE_DESCRIPTION("Marvell 88PM860x ONKEY driver");
DMakefile47 obj-$(CONFIG_INPUT_MAX77650_ONKEY) += max77650-onkey.o
73 obj-$(CONFIG_INPUT_SIRFSOC_ONKEY) += sirfsoc-onkey.o
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/
Dda9062-onkey.txt1 * Dialog DA9061/62/63 OnKey Module
12 "dlg,da9061-onkey", "dlg,da9062-onkey"
13 "dlg,da9062-onkey"
14 "dlg,da9063-onkey"
19 entry exists the OnKey driver will remove support for the KEY_POWER key
20 press when triggered using a long press of the OnKey.
25 onkey {
26 compatible = "dlg,da9063-onkey";
34 onkey {
35 compatible = "dlg,da9062-onkey";
[all …]
Dmax77650-onkey.yaml4 $id: http://devicetree.org/schemas/input/max77650-onkey.yaml#
7 title: Onkey driver for MAX77650 PMIC from Maxim Integrated.
16 The onkey controller is represented as a sub-node of the PMIC node on
21 const: maxim,max77650-onkey
29 maxim,onkey-slide:
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Dst,stpmic1.yaml29 onkey:
36 const: st,stpmic1-onkey
40 - description: onkey-falling, happens when onkey is pressed. IT_PONKEY_F of pmic
41 - description: onkey-rising, happens when onkey is released. IT_PONKEY_R of pmic
45 - const: onkey-falling
46 - const: onkey-rising
48 st,onkey-clear-cc-flag:
49 description: onkey is able power on after an over-current shutdown event.
52 st,onkey-pu-inactive:
53 description: onkey pull up is not active
[all …]
Dda9063.txt8 da9063-onkey : : On Key
54 - onkey : This node defines the OnKey settings for controlling the key
56 with the value "dlg,da9063-onkey".
58 Optional onkey properties:
61 entry exists the OnKey driver will remove support for the KEY_POWER key
63 triggered power down is enabled and the OnKey will support both KEY_POWER
89 onkey {
90 compatible = "dlg,da9063-onkey";
Dmax77650.yaml20 LEDs and onkey) refer to the binding documents under the respective
64 onkey:
65 $ref: ../input/max77650-onkey.yaml
145 onkey {
146 compatible = "maxim,max77650-onkey";
148 maxim,onkey-slide;
Dda9062.txt13 da9062-onkey : : On Key
23 da9062-onkey : : On Key
86 - onkey : See ../input/da9062-onkey.txt
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dstm32mp15xx-dhcor-som.dtsi158 onkey {
159 compatible = "st,stpmic1-onkey";
161 interrupt-names = "onkey-falling", "onkey-rising";
Dstm32mp15xx-osd32.dtsi192 onkey {
193 compatible = "st,stpmic1-onkey";
195 interrupt-names = "onkey-falling", "onkey-rising";
Dstm32mp157c-odyssey-som.dtsi217 onkey {
218 compatible = "st,stpmic1-onkey";
220 interrupt-names = "onkey-falling", "onkey-rising";
Dstm32mp157a-stinger96.dtsi229 onkey {
230 compatible = "st,stpmic1-onkey";
232 interrupt-names = "onkey-falling", "onkey-rising";
Dstm32mp157c-ed1.dts277 onkey {
278 compatible = "st,stpmic1-onkey";
280 interrupt-names = "onkey-falling", "onkey-rising";
Dstm32mp15xx-dhcom-som.dtsi278 onkey {
279 compatible = "st,stpmic1-onkey";
281 interrupt-names = "onkey-falling", "onkey-rising";
/kernel/linux/linux-5.10/include/linux/mfd/pcf50633/
Dcore.h170 PCF50633_INT2_ONKEYR = 0x01, /* ONKEY rising edge */
171 PCF50633_INT2_ONKEYF = 0x02, /* ONKEY falling edge */
188 PCF50633_INT3_ONKEY1S = 0x80, /* ONKEY pressed 1 second */
/kernel/linux/linux-5.10/drivers/mfd/
Dda9062-core.c180 DEFINE_RES_IRQ_NAMED(DA9061_IRQ_ONKEY, "ONKEY"),
207 .name = "da9061-onkey",
210 .of_compatible = "dlg,da9061-onkey",
236 DEFINE_RES_NAMED(DA9062_IRQ_ONKEY, 1, "ONKEY", IORESOURCE_IRQ),
277 .name = "da9062-onkey",
280 .of_compatible = "dlg,da9062-onkey",
Dda9055-core.c258 .name = "ONKEY",
343 .of_compatible = "dlg,da9055-onkey",
344 .name = "da9055-onkey",

12