Lines Matching full:pmic
75 .name = "mtk-pmic-keys",
121 .name = "mtk-pmic-keys",
164 struct mt6397_chip *pmic; in mt6397_probe() local
167 pmic = devm_kzalloc(&pdev->dev, sizeof(*pmic), GFP_KERNEL); in mt6397_probe()
168 if (!pmic) in mt6397_probe()
171 pmic->dev = &pdev->dev; in mt6397_probe()
174 * mt6397 MFD is child device of soc pmic wrapper. in mt6397_probe()
177 pmic->regmap = dev_get_regmap(pdev->dev.parent, NULL); in mt6397_probe()
178 if (!pmic->regmap) in mt6397_probe()
185 ret = regmap_read(pmic->regmap, pmic_core->cid_addr, &id); in mt6397_probe()
191 pmic->chip_id = (id >> pmic_core->cid_shift) & 0xff; in mt6397_probe()
193 platform_set_drvdata(pdev, pmic); in mt6397_probe()
195 pmic->irq = platform_get_irq(pdev, 0); in mt6397_probe()
196 if (pmic->irq <= 0) in mt6397_probe()
197 return pmic->irq; in mt6397_probe()
199 ret = pmic_core->irq_init(pmic); in mt6397_probe()
205 NULL, 0, pmic->irq_domain); in mt6397_probe()
207 irq_domain_remove(pmic->irq_domain); in mt6397_probe()
248 MODULE_DESCRIPTION("Driver for MediaTek MT6397 PMIC");