Home
last modified time | relevance | path

Searched +full:imx93 +full:- +full:bbnsm +full:- +full:rtc (Results 1 – 2 of 2) sorted by relevance

/linux/Documentation/devicetree/bindings/mfd/
H A Dnxp,bbnsm.yaml1 # 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.
14 it Intergrates RTC & ON/OFF control.
15 The RTC can retain its state and continues counting even when the
17 significant 32 bits of the real-time counter match the value in the
[all …]
/linux/drivers/rtc/
H A Drtc-nxp-bbnsm.c1 // SPDX-License-Identifier: GPL-2.0+
14 #include <linux/rtc.h>
36 struct rtc_device *rtc; member
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()
[all …]