/openbmc/linux/drivers/mfd/ |
H A D | mt6397-irq.c | 16 #include <linux/mfd/mt6397/core.h> 17 #include <linux/mfd/mt6397/registers.h> 21 struct mt6397_chip *mt6397 = irq_data_get_irq_chip_data(data); in mt6397_irq_lock() local 23 mutex_lock(&mt6397->irqlock); in mt6397_irq_lock() 28 struct mt6397_chip *mt6397 = irq_data_get_irq_chip_data(data); in mt6397_irq_sync_unlock() local 30 regmap_write(mt6397->regmap, mt6397->int_con[0], in mt6397_irq_sync_unlock() 31 mt6397->irq_masks_cur[0]); in mt6397_irq_sync_unlock() 32 regmap_write(mt6397->regmap, mt6397->int_con[1], in mt6397_irq_sync_unlock() 33 mt6397->irq_masks_cur[1]); in mt6397_irq_sync_unlock() 35 mutex_unlock(&mt6397->irqlock); in mt6397_irq_sync_unlock() [all …]
|
H A D | mt6397-core.c | 20 #include <linux/mfd/mt6397/core.h> 26 #include <linux/mfd/mt6397/registers.h> 212 .name = "mt6397-rtc", 215 .of_compatible = "mediatek,mt6397-rtc", 217 .name = "mt6397-regulator", 218 .of_compatible = "mediatek,mt6397-regulator", 220 .name = "mt6397-codec", 221 .of_compatible = "mediatek,mt6397-codec", 223 .name = "mt6397-clk", 224 .of_compatible = "mediatek,mt6397-clk", [all …]
|
H A D | mt6358-irq.c | 14 #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()
|
H A D | Makefile | 177 mt6397-objs := mt6397-core.o mt6397-irq.o mt6358-irq.o 178 obj-$(CONFIG_MFD_MT6397) += mt6397.o
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-mt6397.h | 10 "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 D | pinctrl-mt6397.c | 12 #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",
|
H A D | Makefile | 39 obj-$(CONFIG_PINCTRL_MT6397) += pinctrl-mt6397.o
|
H A D | Kconfig | 260 bool "MediaTek MT6397 pin control"
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | mt6397.txt | 1 MediaTek MT6397/MT6323 Multifunction Device Driver 3 MT6397/MT6323 is a multifunction device with the following sub modules: 14 called PMIC wrapper or pwrap. MT6397/MT6323 MFD is a child device of pwrap. 28 "mediatek,mt6397" for PMIC MT6397 37 - compatible: "mediatek,mt6397-rtc" 38 For details, see ../rtc/rtc-mt6397.txt 46 - compatible: "mediatek,mt6397-regulator" 47 see ../regulator/mt6397-regulator.txt 50 - compatible: "mediatek,mt6397-codec" or "mediatek,mt6358-sound" 53 - compatible: "mediatek,mt6397-clk" [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | mt6397-regulator.c | 10 #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 D | mt6358-regulator.c | 6 #include <linux/mfd/mt6397/core.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 D | mt6359-regulator.c | 8 #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 D | mt6357-regulator.c | 9 // Based on mt6397-regulator.c 16 #include <linux/mfd/mt6397/core.h>
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | mediatek,pmic-keys.yaml | 16 There are two key functions provided by MT6397, MT6323 and other MediaTek 21 For MediaTek MT6323/MT6397 PMIC bindings see 22 Documentation/devicetree/bindings/mfd/mt6397.txt 31 - mediatek,mt6397-keys 99 compatible = "mediatek,mt6397"; 102 compatible = "mediatek,mt6397-keys";
|
/openbmc/linux/Documentation/devicetree/bindings/rtc/ |
H A D | rtc-mt6397.txt | 9 ../mfd/mt6397.txt 19 "mediatek,mt6397-rtc": for MT6397 PMIC
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | mt6397-regulator.txt | 1 Mediatek MT6397 Regulator 4 - compatible: "mediatek,mt6397-regulator" 20 values specified in dt-bindings/regulator/mediatek,mt6397-regulator.h 24 compatible = "mediatek,mt6397"; 27 compatible = "mediatek,mt6397-regulator";
|
H A D | mediatek,mt6332-regulator.yaml | 16 MT6332 regulators node should be sub node of the MT6397 MFD node.
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-mt6397.c | 9 #include <linux/mfd/mt6397/core.h> 16 #include <linux/mfd/mt6397/rtc.h> 294 "mt6397-rtc", rtc); in mtk_rtc_probe() 345 { .compatible = "mediatek,mt6397-rtc", .data = &mt6397_rtc_data }, 352 .name = "mt6397-rtc", 363 MODULE_DESCRIPTION("RTC Driver for MediaTek MT6397 PMIC");
|
/openbmc/linux/arch/arm/boot/dts/mediatek/ |
H A D | mt8135-evbp1.dts | 22 pmic: mt6397 { 23 compatible = "mediatek,mt6397"; 26 compatible = "mediatek,mt6397-regulator";
|
/openbmc/linux/drivers/power/reset/ |
H A D | mt6323-poweroff.c | 15 #include <linux/mfd/mt6397/core.h> 16 #include <linux/mfd/mt6397/rtc.h>
|
/openbmc/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8173-elm.dtsi | 933 compatible = "mediatek,mt6397"; 942 compatible = "mediatek,mt6397-clk"; 947 compatible = "mediatek,mt6397-pinctrl"; 953 compatible = "mediatek,mt6397-regulator"; 1142 compatible = "mediatek,mt6397-rtc"; 1146 compatible = "mediatek,mt6397-pctl-pmic-syscfg",
|
H A D | mt8173-evb.dts | 305 compatible = "mediatek,mt6397"; 312 compatible = "mediatek,mt6397-regulator";
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | mtk-pmic-keys.c | 15 #include <linux/mfd/mt6397/core.h> 16 #include <linux/mfd/mt6397/registers.h> 285 .compatible = "mediatek,mt6397-keys",
|
/openbmc/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-mt6323.txt | 10 Documentation/devicetree/bindings/mfd/mt6397.txt
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | mediatek,mt65xx-pinctrl.yaml | 20 - mediatek,mt6397-pinctrl
|