drivers/pinctrl/renesas/pinctrl-rza2.c
Source file repositories/reference/linux-study-clean/drivers/pinctrl/renesas/pinctrl-rza2.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/renesas/pinctrl-rza2.c- Extension
.c- Size
- 14857 bytes
- Lines
- 540
- Domain
- Driver Families
- Bucket
- drivers/pinctrl
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bitops.hlinux/gpio/driver.hlinux/io.hlinux/module.hlinux/mutex.hlinux/of.hlinux/pinctrl/consumer.hlinux/pinctrl/pinmux.hlinux/platform_device.h../core.h../pinmux.h
Detected Declarations
struct rza2_pinctrl_privfunction rza2_set_pin_functionfunction rza2_pin_to_gpiofunction rza2_chip_get_directionfunction rza2_chip_direction_inputfunction rza2_chip_getfunction rza2_chip_setfunction rza2_chip_direction_outputfunction rza2_gpio_registerfunction rza2_pinctrl_registerfunction rza2_dt_node_to_mapfunction rza2_dt_free_mapfunction rza2_set_muxfunction rza2_pinctrl_probefunction rza2_pinctrl_initmodule init rza2_pinctrl_init
Annotated Snippet
core_initcall(rza2_pinctrl_init);
MODULE_AUTHOR("Chris Brandt <chris.brandt@renesas.com>");
MODULE_DESCRIPTION("Pin and gpio controller driver for RZ/A2 SoC");
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/gpio/driver.h`, `linux/io.h`, `linux/module.h`, `linux/mutex.h`, `linux/of.h`, `linux/pinctrl/consumer.h`, `linux/pinctrl/pinmux.h`.
- Detected declarations: `struct rza2_pinctrl_priv`, `function rza2_set_pin_function`, `function rza2_pin_to_gpio`, `function rza2_chip_get_direction`, `function rza2_chip_direction_input`, `function rza2_chip_get`, `function rza2_chip_set`, `function rza2_chip_direction_output`, `function rza2_gpio_register`, `function rza2_pinctrl_register`.
- Atlas domain: Driver Families / drivers/pinctrl.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.