Home
last modified time | relevance | path

Searched +full:mt6397 +full:- +full:rtc (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/mfd/
H A Dmt6397-core.c1 // SPDX-License-Identifier: GPL-2.0-only
21 #include <linux/mfd/mt6397/core.h>
28 #include <linux/mfd/mt6397/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/drivers/rtc/
H A Drtc-mt6397.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2014-2015 MediaTek Inc.
9 #include <linux/mfd/mt6397/core.h>
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()
[all …]
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for RTC class/drivers.
6 ccflags-$(CONFIG_RTC_DEBUG) := -DDEBUG
8 obj-$(CONFIG_RTC_LIB) += lib.o
9 obj-$(CONFIG_RTC_CLASS) += rtc-core.o
10 obj-$(CONFIG_RTC_MC146818_LIB) += rtc-mc146818-lib.o
11 rtc-core-y := class.o interface.o
13 rtc-core-$(CONFIG_RTC_NVMEM) += nvmem.o
14 rtc-core-$(CONFIG_RTC_INTF_DEV) += dev.o
15 rtc-core-$(CONFIG_RTC_INTF_PROC) += proc.o
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # RTC class/drivers configuration
19 Generic RTC class support. If you say yes here, you will
26 bool "Set system time from RTC on startup and resume"
30 the value read from a specified RTC device. This is useful to avoid
34 string "RTC used to set the system time"
38 The RTC device that will be used to (re)initialize the system
44 This clock should be battery-backed, so that it reads the correct
45 time when the system boots from a power-off state. Otherwise, your
50 sleep states. Do not specify an RTC here unless it stays powered
[all …]
/linux/drivers/power/reset/
H A Dmt6323-poweroff.c1 // SPDX-License-Identifier: GPL-2.0
15 #include <linux/mfd/mt6397/core.h>
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()
[all …]
/linux/arch/arm/boot/dts/mediatek/
H A Dmt6323.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2017-2018 MediaTek Inc.
12 interrupt-parent = <&pio>;
14 interrupt-controller;
15 #interrupt-cells = <2>;
18 compatible = "mediatek,mt6323-led";
19 #address-cells = <1>;
20 #size-cells = <0>;
25 compatible = "mediatek,mt6323-regulator";
28 regulator-name = "vproc";
[all …]
/linux/Documentation/devicetree/bindings/regulator/
H A Dmediatek,mt6331-regulator.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6331-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
15 buck-<name> and ldo-<name>.
16 MT6331 regulators node should be sub node of the MT6397 MFD node.
19 "^buck-v(core2|io18|dvfs11|dvfs12|dvfs13|dvfs14)$":
24 regulator-name:
29 "^ldo-v(avdd32aud|auxa32)$":
[all …]
/linux/
H A DMAINTAINERS5 ---------------------------------------------------
21 W: *Web-page* with status/info
23 B: URI for where to file *bugs*. A web-page with detailed bug
28 patches to the given subsystem. This is either an in-tree file,
29 or a URI. See Documentation/maintainer/maintainer-entry-profile.rst
46 N: [^a-z]tegra all files whose path contains tegra
64 ----------------
83 3WARE SAS/SATA-RAID SCSI DRIVERS (3W-XXXX, 3W-9XXX, 3W-SAS)
85 L: linux-scsi@vger.kernel.org
88 F: drivers/scsi/3w-*
[all …]