Home
last modified time | relevance | path

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

123

/linux-6.12.1/drivers/input/misc/
Datc260x-onkey.c3 * Onkey driver for Actions Semi ATC260x PMICs.
74 static int atc2603x_onkey_hw_init(struct atc260x_onkey *onkey, in atc2603x_onkey_hw_init() argument
80 reg_bm = onkey->params->long_int_pnd_bm | in atc2603x_onkey_hw_init()
81 onkey->params->short_int_pnd_bm | in atc2603x_onkey_hw_init()
82 onkey->params->kdwn_int_pnd_bm | in atc2603x_onkey_hw_init()
83 onkey->params->press_int_en_bm | in atc2603x_onkey_hw_init()
84 onkey->params->kdwn_int_en_bm; in atc2603x_onkey_hw_init()
87 reg_bm |= onkey->params->press_time_bm; in atc2603x_onkey_hw_init()
90 reg_bm |= onkey->params->reset_en_bm; in atc2603x_onkey_hw_init()
92 reg_bm |= onkey->params->reset_en_bm | in atc2603x_onkey_hw_init()
[all …]
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 …]
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 …]
Dda9063_onkey.c3 * OnKey device driver for DA9063, DA9062 and DA9061 PMICs
75 .name = "da9062-onkey",
80 struct da9063_onkey *onkey = container_of(work, in da9063_poll_on() local
83 const struct da906x_chip_config *config = onkey->config; in da9063_poll_on()
90 error = regmap_read(onkey->regmap, in da9063_poll_on()
94 dev_err(onkey->dev, in da9063_poll_on()
100 error = regmap_update_bits(onkey->regmap, in da9063_poll_on()
105 dev_err(onkey->dev, in da9063_poll_on()
110 input_report_key(onkey->input, KEY_POWER, 0); in da9063_poll_on()
111 input_sync(onkey->input); in da9063_poll_on()
[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 …]
D88pm886-onkey.c17 struct pm886_onkey *onkey = data; in pm886_onkey_irq_handler() local
18 struct regmap *regmap = onkey->chip->regmap; in pm886_onkey_irq_handler()
19 struct input_dev *idev = onkey->idev; in pm886_onkey_irq_handler()
41 struct pm886_onkey *onkey; in pm886_onkey_probe() local
45 onkey = devm_kzalloc(dev, sizeof(*onkey), GFP_KERNEL); in pm886_onkey_probe()
46 if (!onkey) in pm886_onkey_probe()
49 onkey->chip = chip; in pm886_onkey_probe()
60 onkey->idev = idev; in pm886_onkey_probe()
62 idev->name = "88pm886-onkey"; in pm886_onkey_probe()
63 idev->phys = "88pm886-onkey/input0"; in pm886_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
37 tristate "Marvell 88PM886 onkey support"
40 Support the onkey of Marvell 88PM886 PMIC as an input device
105 tristate "Actions Semi ATC260x PMIC ONKEY"
108 Support the ONKEY of ATC260x PMICs as an input device reporting
109 power button status. ONKEY can be used to wakeup from low power
113 module will be called atc260x-onkey.
[all …]
D88pm80x_onkey.c3 * Marvell 88PM80x ONKEY driver
30 /* 88PM80x gives us an interrupt when ONKEY is held */
94 IRQF_ONESHOT, "onkey", info); in pm80x_onkey_probe()
109 /* Enable long onkey detection */ in pm80x_onkey_probe()
140 .name = "88pm80x-onkey",
150 MODULE_DESCRIPTION("Marvell 88PM80x ONKEY driver");
152 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()
165 .name = "max8925-onkey",
172 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()
137 .name = "88pm860x-onkey",
144 MODULE_DESCRIPTION("Marvell 88PM860x ONKEY driver");
DMakefile10 obj-$(CONFIG_INPUT_88PM886_ONKEY) += 88pm886-onkey.o
21 obj-$(CONFIG_INPUT_ATC260X_ONKEY) += atc260x-onkey.o
54 obj-$(CONFIG_INPUT_MAX77650_ONKEY) += max77650-onkey.o
/linux-6.12.1/Documentation/devicetree/bindings/input/
Ddlg,da9062-onkey.yaml4 $id: http://devicetree.org/schemas/input/dlg,da9062-onkey.yaml#
7 title: Dialog DA9061/62/63 OnKey Module
22 - dlg,da9062-onkey
23 - dlg,da9063-onkey
25 - const: dlg,da9061-onkey
26 - const: dlg,da9062-onkey
32 the OnKey driver will remove support for the KEY_POWER key press
33 when triggered using a long press of the OnKey.
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
24 const: maxim,max77650-onkey
29 maxim,onkey-slide:
/linux-6.12.1/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 …]
Dmax77650.yaml20 LEDs and onkey) refer to the binding documents under the respective
64 onkey:
65 $ref: /schemas/input/max77650-onkey.yaml
143 onkey {
144 compatible = "maxim,max77650-onkey";
146 maxim,onkey-slide;
Ddlg,da9063.yaml57 onkey:
58 $ref: /schemas/input/dlg,da9062-onkey.yaml
130 - onkey
151 - onkey
179 onkey {
180 compatible = "dlg,da9063-onkey";
255 onkey {
256 compatible = "dlg,da9062-onkey";
/linux-6.12.1/drivers/mfd/
Dda9062-core.c181 DEFINE_RES_IRQ_NAMED(DA9061_IRQ_ONKEY, "ONKEY"),
193 MFD_CELL_OF("da9061-onkey", da9061_onkey_resources, NULL, 0, 0,
194 "dlg,da9061-onkey"),
202 MFD_CELL_OF("da9061-onkey", NULL, NULL, 0, 0, "dlg,da9061-onkey"),
227 DEFINE_RES_NAMED(DA9062_IRQ_ONKEY, 1, "ONKEY", IORESOURCE_IRQ),
249 MFD_CELL_OF("da9062-onkey", da9062_onkey_resources, NULL, 0, 0,
250 "dlg,da9062-onkey"),
261 MFD_CELL_OF("da9062-onkey", NULL, NULL, 0, 0, "dlg,da9062-onkey"),
/linux-6.12.1/arch/arm/boot/dts/st/
Dstm32mp15xx-osd32.dtsi181 onkey {
182 compatible = "st,stpmic1-onkey";
184 interrupt-names = "onkey-falling", "onkey-rising";
Dstm32mp157c-odyssey-som.dtsi207 onkey {
208 compatible = "st,stpmic1-onkey";
210 interrupt-names = "onkey-falling", "onkey-rising";
Dstm32mp15xx-dhcor-som.dtsi204 onkey {
205 compatible = "st,stpmic1-onkey";
207 interrupt-names = "onkey-falling", "onkey-rising";
Dstm32mp157a-stinger96.dtsi229 onkey {
230 compatible = "st,stpmic1-onkey";
232 interrupt-names = "onkey-falling", "onkey-rising";
Dstm32mp13xx-dhcor-som.dtsi185 onkey {
186 compatible = "st,stpmic1-onkey";
188 interrupt-names = "onkey-falling", "onkey-rising";
Dstm32mp157c-ed1.dts302 onkey {
303 compatible = "st,stpmic1-onkey";
305 interrupt-names = "onkey-falling", "onkey-rising";
/linux-6.12.1/include/linux/mfd/pcf50633/
Dcore.h171 PCF50633_INT2_ONKEYR = 0x01, /* ONKEY rising edge */
172 PCF50633_INT2_ONKEYF = 0x02, /* ONKEY falling edge */
189 PCF50633_INT3_ONKEY1S = 0x80, /* ONKEY pressed 1 second */

123