Home
last modified time | relevance | path

Searched full:mt6397 (Results 1 – 25 of 36) sorted by relevance

12

/linux/drivers/mfd/
H A Dmt6397-irq.c18 #include <linux/mfd/mt6397/core.h>
19 #include <linux/mfd/mt6397/registers.h>
23 struct mt6397_chip *mt6397 = irq_data_get_irq_chip_data(data); in mt6397_irq_lock() local
25 mutex_lock(&mt6397->irqlock); in mt6397_irq_lock()
30 struct mt6397_chip *mt6397 = irq_data_get_irq_chip_data(data); in mt6397_irq_sync_unlock() local
32 regmap_write(mt6397->regmap, mt6397->int_con[0], in mt6397_irq_sync_unlock()
33 mt6397->irq_masks_cur[0]); in mt6397_irq_sync_unlock()
34 regmap_write(mt6397->regmap, mt6397->int_con[1], in mt6397_irq_sync_unlock()
35 mt6397->irq_masks_cur[1]); in mt6397_irq_sync_unlock()
36 if (mt6397->int_con[2]) in mt6397_irq_sync_unlock()
[all …]
H A Dmt6397-core.c21 #include <linux/mfd/mt6397/core.h>
28 #include <linux/mfd/mt6397/registers.h>
246 .name = "mt6397-rtc",
249 .of_compatible = "mediatek,mt6397-rtc",
251 .name = "mt6397-regulator",
252 .of_compatible = "mediatek,mt6397-regulator",
254 .name = "mt6397-codec",
255 .of_compatible = "mediatek,mt6397-codec",
257 .name = "mt6397-clk",
258 .of_compatible = "mediatek,mt6397-clk",
[all …]
H A Dmt6358-irq.c14 #include <linux/mfd/mt6397/core.h>
212 struct mt6397_chip *mt6397 = d->host_data; in pmic_irq_domain_map() local
214 irq_set_chip_data(irq, mt6397); in pmic_irq_domain_map()
/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-mt6397.h10 "N2", "mt6397",
16 "M4", "mt6397",
23 "M2", "mt6397",
30 "K3", "mt6397",
37 "J2", "mt6397",
43 "L4", "mt6397",
49 "J3", "mt6397",
55 "J1", "mt6397",
61 "L3", "mt6397",
67 "H2", "mt6397",
[all …]
H A Dpinctrl-mt6397.c12 #include <linux/mfd/mt6397/core.h>
15 #include "pinctrl-mtk-mt6397.h"
42 struct mt6397_chip *mt6397; in mt6397_pinctrl_probe() local
44 mt6397 = dev_get_drvdata(pdev->dev.parent); in mt6397_pinctrl_probe()
45 return mtk_pctrl_init(pdev, &mt6397_pinctrl_data, mt6397->regmap); in mt6397_pinctrl_probe()
49 { .compatible = "mediatek,mt6397-pinctrl", },
56 .name = "mediatek-mt6397-pinctrl",
/linux/drivers/regulator/
H A Dmt6397-regulator.c10 #include <linux/mfd/mt6397/core.h>
11 #include <linux/mfd/mt6397/registers.h>
14 #include <linux/regulator/mt6397-regulator.h>
16 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
19 * MT6397 regulators' information
176 dev_dbg(&rdev->dev, "mt6397 buck set_mode %#x, %#x, %#x\n", in mt6397_regulator_set_mode()
186 "Failed to set mt6397 buck mode: %d\n", ret); in mt6397_regulator_set_mode()
201 "Failed to get mt6397 buck mode: %d\n", ret); in mt6397_regulator_get_mode()
325 struct mt6397_chip *mt6397 = dev_get_drvdata(pdev->dev.parent); in mt6397_set_buck_vosel_reg() local
331 if (regmap_read(mt6397->regmap, in mt6397_set_buck_vosel_reg()
[all …]
H A Dmt6358-regulator.c6 #include <linux/mfd/mt6397/core.h>
16 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
646 struct mt6397_chip *mt6397 = dev_get_drvdata(dev->parent); in mt6358_sync_vcn33_setting() local
657 ret = regmap_read(mt6397->regmap, MT6358_LDO_VCN33_CON0_1, &val); in mt6358_sync_vcn33_setting()
667 ret = regmap_update_bits(mt6397->regmap, MT6358_LDO_VCN33_CON0_0, BIT(0), BIT(0)); in mt6358_sync_vcn33_setting()
674 ret = regmap_update_bits(mt6397->regmap, MT6358_LDO_VCN33_CON0_1, BIT(0), 0); in mt6358_sync_vcn33_setting()
685 struct mt6397_chip *mt6397 = dev_get_drvdata(pdev->dev.parent); in mt6358_regulator_probe() local
691 switch (mt6397->chip_id) { in mt6358_regulator_probe()
701 dev_err(&pdev->dev, "unsupported chip ID: %d\n", mt6397->chip_id); in mt6358_regulator_probe()
711 config.regmap = mt6397->regmap; in mt6358_regulator_probe()
H A Dmt6359-regulator.c8 #include <linux/mfd/mt6397/core.h>
950 struct mt6397_chip *mt6397 = dev_get_drvdata(pdev->dev.parent); in mt6359_regulator_probe() local
956 ret = regmap_read(mt6397->regmap, MT6359P_HWCID, &hw_ver); in mt6359_regulator_probe()
965 config.dev = mt6397->dev; in mt6359_regulator_probe()
966 config.regmap = mt6397->regmap; in mt6359_regulator_probe()
H A Dmt6357-regulator.c9 // Based on mt6397-regulator.c
16 #include <linux/mfd/mt6397/core.h>
H A Dmt6323-regulator.c10 #include <linux/mfd/mt6397/core.h>
H A DMakefile114 obj-$(CONFIG_REGULATOR_MT6397) += mt6397-regulator.o
/linux/Documentation/devicetree/bindings/regulator/
H A Dmediatek,mt6397-regulator.yaml4 $id: http://devicetree.org/schemas/regulator/mediatek,mt6397-regulator.yaml#
7 title: MediaTek MT6397 Regulator
21 - const: mediatek,mt6397-regulator
32 values specified in dt-bindings/regulator/mediatek,mt6397-regulator.h
71 compatible = "mediatek,mt6397-regulator";
H A Dmediatek,mt6358-regulator.yaml71 Users should use the macros from dt-bindings/regulator/mediatek,mt6397-regulator.h
181 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
206 #include <dt-bindings/regulator/mediatek,mt6397-regulator.h>
H A Dmediatek,mt6332-regulator.yaml16 MT6332 regulators node should be sub node of the MT6397 MFD node.
H A Dmediatek,mt6331-regulator.yaml16 MT6331 regulators node should be sub node of the MT6397 MFD node.
H A Dmediatek,mt6357-regulator.yaml19 MT6357 regulators node should be sub node of the MT6397 MFD node.
H A Dmt6359-regulator.yaml15 MT6359 regulators node should be sub node of the MT6397 MFD node.
/linux/drivers/rtc/
H A Drtc-mt6397.c9 #include <linux/mfd/mt6397/core.h>
16 #include <linux/mfd/mt6397/rtc.h>
281 "mt6397-rtc", rtc); in mtk_rtc_probe()
336 { .compatible = "mediatek,mt6397-rtc", .data = &mt6397_rtc_data },
343 .name = "mt6397-rtc",
354 MODULE_DESCRIPTION("RTC Driver for MediaTek MT6397 PMIC");
/linux/arch/arm/boot/dts/mediatek/
H A Dmt8135-evbp1.dts22 pmic: mt6397 {
23 compatible = "mediatek,mt6397";
26 compatible = "mediatek,mt6397-regulator";
H A Dmt6323.dtsi258 compatible = "mediatek,mt6397-codec";
/linux/drivers/power/reset/
H A Dmt6323-poweroff.c15 #include <linux/mfd/mt6397/core.h>
16 #include <linux/mfd/mt6397/rtc.h>
/linux/drivers/input/keyboard/
H A Dmtk-pmic-keys.c15 #include <linux/mfd/mt6397/core.h>
16 #include <linux/mfd/mt6397/registers.h>
285 .compatible = "mediatek,mt6397-keys",
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dmediatek,mt65xx-pinctrl.yaml20 - mediatek,mt6397-pinctrl
/linux/sound/soc/codecs/
H A Dmt6359-accdet.c25 #include <linux/mfd/mt6397/core.h>
925 struct mt6397_chip *mt6397 = dev_get_drvdata(pdev->dev.parent); in mt6359_accdet_probe() local
947 priv->regmap = mt6397->regmap; in mt6359_accdet_probe()
/linux/drivers/iio/adc/
H A Dmt6359-auxadc.c22 #include <linux/mfd/mt6397/core.h>
553 /* Regmap is from SoC PMIC Wrapper, parent of the mt6397 MFD */ in mt6359_auxadc_probe()

12