drivers/pinctrl/renesas/pinctrl-rza1.c
Source file repositories/reference/linux-study-clean/drivers/pinctrl/renesas/pinctrl-rza1.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/renesas/pinctrl-rza1.c- Extension
.c- Size
- 37271 bytes
- Lines
- 1410
- 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/err.hlinux/gpio/driver.hlinux/init.hlinux/ioport.hlinux/module.hlinux/of.hlinux/pinctrl/consumer.hlinux/pinctrl/pinconf-generic.hlinux/pinctrl/pinctrl.hlinux/pinctrl/pinmux.hlinux/platform_device.hlinux/property.hlinux/slab.h../core.h../devicetree.h../pinconf.h../pinmux.h
Detected Declarations
struct rza1_bidir_pinstruct rza1_bidir_entrystruct rza1_swio_pinstruct rza1_swio_entrystruct rza1_pinmux_confstruct rza1_mux_confstruct rza1_portstruct rza1_pinctrlfunction rza1_pinmux_get_bidirfunction rza1_pinmux_get_swiofunction rza1_pinmux_get_flagsfunction rza1_set_bitfunction rza1_get_bitfunction rza1_pin_resetfunction rza1_pin_set_directionfunction rza1_pin_setfunction rza1_pin_getfunction rza1_pin_mux_singlefunction rza1_gpio_requestfunction rza1_gpio_freefunction rza1_gpio_get_directionfunction rza1_gpio_direction_inputfunction rza1_gpio_direction_outputfunction rza1_gpio_getfunction rza1_gpio_setfunction rza1_dt_node_pin_countfunction rza1_parse_pinmux_nodefunction rza1_dt_node_to_mapfunction for_each_child_of_node_scopedfunction rza1_dt_free_mapfunction rza1_set_muxfunction rza1_parse_gpiochipfunction rza1_gpio_registerfunction rza1_pinctrl_registerfunction rza1_pinctrl_probefunction rza1_pinctrl_initmodule init rza1_pinctrl_init
Annotated Snippet
core_initcall(rza1_pinctrl_init);
MODULE_AUTHOR("Jacopo Mondi <jacopo+renesas@jmondi.org");
MODULE_DESCRIPTION("Pin and gpio controller driver for Reneas RZ/A1 SoC");
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/err.h`, `linux/gpio/driver.h`, `linux/init.h`, `linux/ioport.h`, `linux/module.h`, `linux/of.h`, `linux/pinctrl/consumer.h`.
- Detected declarations: `struct rza1_bidir_pin`, `struct rza1_bidir_entry`, `struct rza1_swio_pin`, `struct rza1_swio_entry`, `struct rza1_pinmux_conf`, `struct rza1_mux_conf`, `struct rza1_port`, `struct rza1_pinctrl`, `function rza1_pinmux_get_bidir`, `function rza1_pinmux_get_swio`.
- 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.