Home
last modified time | relevance | path

Searched +full:mt6323 +full:- +full:rtc (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/mfd/
H A Dmt6397-core.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <linux/mfd/mt6323/core.h>
22 #include <linux/mfd/mt6323/registers.h>
122 .name = "mt6323-rtc",
125 .of_compatible = "mediatek,mt6323-rtc",
127 .name = "mt6323-regulator",
128 .of_compatible = "mediatek,mt6323-regulator"
130 .name = "mt6323-led",
131 .of_compatible = "mediatek,mt6323-led"
133 .name = "mtk-pmic-keys",
[all …]
/linux/arch/arm/boot/dts/mediatek/
H A Dmt6323.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2018 MediaTek Inc.
10 pmic: mt6323 {
11 compatible = "mediatek,mt6323";
12 interrupt-parent = <&pio>;
14 interrupt-controller;
15 #interrupt-cells = <2>;
18 compatible = "mediatek,mt6323-led";
19 #address-cells = <1>;
20 #size-cells = <0>;
[all …]
/linux/drivers/power/reset/
H A Dmt6323-poweroff.c1 // SPDX-License-Identifier: GPL-2.0
16 #include <linux/mfd/mt6397/rtc.h>
27 struct mt6323_pwrc *pwrc = data->cb_data; in mt6323_do_pwroff()
31 regmap_write(pwrc->regmap, pwrc->base + RTC_BBPU, RTC_BBPU_KEY); in mt6323_do_pwroff()
32 regmap_write(pwrc->regmap, pwrc->base + RTC_WRTGR_MT6323, 1); in mt6323_do_pwroff()
34 ret = regmap_read_poll_timeout(pwrc->regmap, in mt6323_do_pwroff()
35 pwrc->base + RTC_BBPU, val, in mt6323_do_pwroff()
40 dev_err(pwrc->dev, "failed to write BBPU: %d\n", ret); in mt6323_do_pwroff()
52 struct mt6397_chip *mt6397_chip = dev_get_drvdata(pdev->dev.parent); in mt6323_pwrc_probe()
57 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in mt6323_pwrc_probe()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
13 bool "ams AS3722 power-off driver"
16 This driver supports turning off board via a ams AS3722 power-off.
35 tristate "Atmel AT91 SAMA5D2-Compatible shutdown controller driver"
43 tristate "Actions Semi ATC260x PMIC power-off driver"
46 This driver provides power-off and restart support for a system
64 Say Y here if you have a Broadcom Kona-base
[all...]
/linux/drivers/rtc/
H A Drtc-mt6397.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2014-2015 MediaTek Inc.
15 #include <linux/rtc.h>
16 #include <linux/mfd/mt6397/rtc.h>
19 static int mtk_rtc_write_trigger(struct mt6397_rtc *rtc) in mtk_rtc_write_trigger() argument
24 ret = regmap_write(rtc->regmap, rtc->addr_base + rtc->data->wrtgr, 1); in mtk_rtc_write_trigger()
28 ret = regmap_read_poll_timeout(rtc->regmap, in mtk_rtc_write_trigger()
29 rtc->addr_base + RTC_BBPU, data, in mtk_rtc_write_trigger()
34 dev_err(rtc->rtc_dev->dev.parent, in mtk_rtc_write_trigger()
42 struct mt6397_rtc *rtc = data; in mtk_rtc_irq_handler_thread() local
[all …]
/linux/
H A DMAINTAINERS5 ----------
[all...]