drivers/pinctrl/mvebu/pinctrl-dove.c
Source file repositories/reference/linux-study-clean/drivers/pinctrl/mvebu/pinctrl-dove.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/mvebu/pinctrl-dove.c- Extension
.c- Size
- 28856 bytes
- Lines
- 874
- Domain
- Driver Families
- Bucket
- drivers/pinctrl
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/err.hlinux/init.hlinux/io.hlinux/bitops.hlinux/platform_device.hlinux/clk.hlinux/of.hlinux/mfd/syscon.hlinux/pinctrl/pinctrl.hlinux/property.hlinux/regmap.hpinctrl-mvebu.h
Detected Declarations
function dove_pmu_mpp_ctrl_getfunction dove_pmu_mpp_ctrl_setfunction dove_mpp4_ctrl_getfunction dove_mpp4_ctrl_setfunction dove_nand_ctrl_getfunction dove_nand_ctrl_setfunction dove_audio0_ctrl_getfunction dove_audio0_ctrl_setfunction dove_audio1_ctrl_getfunction dove_audio1_ctrl_setfunction dove_audio1_ctrl_gpio_reqfunction dove_audio1_ctrl_gpio_dirfunction dove_twsi_ctrl_getfunction dove_twsi_ctrl_setfunction dove_pinctrl_probe
Annotated Snippet
if (IS_ERR(gc_base)) {
ret = PTR_ERR(gc_base);
goto err_probe;
}
gconfmap = devm_regmap_init_mmio(&pdev->dev,
gc_base, &gc_regmap_config);
if (IS_ERR(gconfmap)) {
ret = PTR_ERR(gconfmap);
goto err_probe;
}
}
/* Warn on any missing DT resource */
if (fb_res.start)
dev_warn(&pdev->dev, FW_BUG "Missing pinctrl regs in DTB. Please update your firmware.\n");
return mvebu_pinctrl_probe(pdev);
err_probe:
clk_disable_unprepare(clk);
return ret;
}
static struct platform_driver dove_pinctrl_driver = {
.driver = {
.name = "dove-pinctrl",
.suppress_bind_attrs = true,
.of_match_table = dove_pinctrl_of_match,
},
.probe = dove_pinctrl_probe,
};
builtin_platform_driver(dove_pinctrl_driver);
Annotation
- Immediate include surface: `linux/err.h`, `linux/init.h`, `linux/io.h`, `linux/bitops.h`, `linux/platform_device.h`, `linux/clk.h`, `linux/of.h`, `linux/mfd/syscon.h`.
- Detected declarations: `function dove_pmu_mpp_ctrl_get`, `function dove_pmu_mpp_ctrl_set`, `function dove_mpp4_ctrl_get`, `function dove_mpp4_ctrl_set`, `function dove_nand_ctrl_get`, `function dove_nand_ctrl_set`, `function dove_audio0_ctrl_get`, `function dove_audio0_ctrl_set`, `function dove_audio1_ctrl_get`, `function dove_audio1_ctrl_set`.
- Atlas domain: Driver Families / drivers/pinctrl.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.