Searched +full:imx93 +full:- +full:bbnsm (Results 1 – 3 of 3) sorted by relevance
| /linux/Documentation/devicetree/bindings/mfd/ |
| H A D | nxp,bbnsm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/nxp,bbnsm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NXP Battery-Backed Non-Secure Module 10 - Jacky Bai <ping.bai@nxp.com> 13 NXP BBNSM serves as non-volatile logic and storage for the system. 17 significant 32 bits of the real-time counter match the value in the 19 The ON/OFF logic inside the BBNSM allows for connecting directly to 26 - enum: [all …]
|
| /linux/drivers/input/misc/ |
| H A D | nxp-bbnsm-pwrkey.c | 1 // SPDX-License-Identifier: GPL-2.0+ 48 struct bbnsm_pwrkey *bbnsm = timer_container_of(bbnsm, t, check_timer); in bbnsm_pwrkey_check_for_events() local 49 struct input_dev *input = bbnsm->input; in bbnsm_pwrkey_check_for_events() 52 regmap_read(bbnsm->regmap, BBNSM_EVENTS, &state); in bbnsm_pwrkey_check_for_events() 57 if (state ^ bbnsm->keystate) { in bbnsm_pwrkey_check_for_events() 58 bbnsm->keystate = state; in bbnsm_pwrkey_check_for_events() 59 input_event(input, EV_KEY, bbnsm->keycode, state); in bbnsm_pwrkey_check_for_events() 61 pm_relax(bbnsm->input->dev.parent); in bbnsm_pwrkey_check_for_events() 66 mod_timer(&bbnsm->check_timer, in bbnsm_pwrkey_check_for_events() 73 struct bbnsm_pwrkey *bbnsm = platform_get_drvdata(pdev); in bbnsm_pwrkey_interrupt() local [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-nxp-bbnsm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 42 static u32 bbnsm_read_counter(struct bbnsm_rtc *bbnsm) in bbnsm_read_counter() argument 52 regmap_read(bbnsm->regmap, BBNSM_RTC_MS, &rtc_msb); in bbnsm_read_counter() 54 regmap_read(bbnsm->regmap, BBNSM_RTC_LS, &rtc_lsb); in bbnsm_read_counter() 57 } while (tmp != time && --timeout); in bbnsm_read_counter() 64 struct bbnsm_rtc *bbnsm = dev_get_drvdata(dev); in bbnsm_rtc_read_time() local 68 regmap_read(bbnsm->regmap, BBNSM_CTRL, &val); in bbnsm_rtc_read_time() 70 return -EINVAL; in bbnsm_rtc_read_time() 72 time = bbnsm_read_counter(bbnsm); in bbnsm_rtc_read_time() 80 struct bbnsm_rtc *bbnsm = dev_get_drvdata(dev); in bbnsm_rtc_set_time() local [all …]
|