Home
last modified time | relevance | path

Searched +full:mt6323 +full:- +full:pwrc (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/power/reset/
H A Dmt6323-poweroff.c1 // SPDX-License-Identifier: GPL-2.0
27 struct mt6323_pwrc *pwrc = data->cb_data; in mt6323_do_pwroff() local
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()
53 struct mt6323_pwrc *pwrc; in mt6323_pwrc_probe() local
57 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in mt6323_pwrc_probe()
[all …]
/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/Documentation/devicetree/bindings/mfd/
H A Dmediatek,mt6397.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek MT6397/MT6323 PMIC
10 - Sen Chu <sen.chu@mediatek.com>
11 - Macpaul Lin <macpaul.lin@mediatek.com>
14 MT6397/MT6323 is a power management system chip.
15 Please see the sub-modules below for supported features.
17 MT6397/MT6323 is a multifunction device with the following sub modules:
18 - Regulators
[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 …]