drivers/pinctrl/sunxi/pinctrl-sun55i-a523-r.c
Source file repositories/reference/linux-study-clean/drivers/pinctrl/sunxi/pinctrl-sun55i-a523-r.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/sunxi/pinctrl-sun55i-a523-r.c- Extension
.c- Size
- 1351 bytes
- Lines
- 54
- 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/module.hlinux/platform_device.hlinux/of.hlinux/of_device.hlinux/pinctrl/pinctrl.hpinctrl-sunxi.h
Detected Declarations
function a523_r_pinctrl_probe
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Allwinner A523 SoC r-pinctrl driver.
*
* Copyright (C) 2024 Arm Ltd.
*/
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/pinctrl/pinctrl.h>
#include "pinctrl-sunxi.h"
static const u8 a523_r_nr_bank_pins[SUNXI_PINCTRL_MAX_BANKS] =
/* PL PM */
{ 14, 6 };
static const unsigned int a523_r_irq_bank_map[] = { 0, 1 };
static const u8 a523_r_irq_bank_muxes[SUNXI_PINCTRL_MAX_BANKS] =
/* PL PM */
{ 14, 14 };
static struct sunxi_pinctrl_desc a523_r_pinctrl_data = {
.irq_banks = ARRAY_SIZE(a523_r_irq_bank_map),
.irq_bank_map = a523_r_irq_bank_map,
.io_bias_cfg_variant = BIAS_VOLTAGE_PIO_POW_MODE_SEL,
.pin_base = PL_BASE,
};
static int a523_r_pinctrl_probe(struct platform_device *pdev)
{
return sunxi_pinctrl_dt_table_init(pdev, a523_r_nr_bank_pins,
a523_r_irq_bank_muxes,
&a523_r_pinctrl_data,
SUNXI_PINCTRL_NEW_REG_LAYOUT);
}
static const struct of_device_id a523_r_pinctrl_match[] = {
{ .compatible = "allwinner,sun55i-a523-r-pinctrl", },
{}
};
static struct platform_driver a523_r_pinctrl_driver = {
.probe = a523_r_pinctrl_probe,
.driver = {
.name = "sun55i-a523-r-pinctrl",
.of_match_table = a523_r_pinctrl_match,
},
};
builtin_platform_driver(a523_r_pinctrl_driver);
Annotation
- Immediate include surface: `linux/module.h`, `linux/platform_device.h`, `linux/of.h`, `linux/of_device.h`, `linux/pinctrl/pinctrl.h`, `pinctrl-sunxi.h`.
- Detected declarations: `function a523_r_pinctrl_probe`.
- 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.