drivers/pinctrl/bcm/pinctrl-bcm281xx.c
Source file repositories/reference/linux-study-clean/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/bcm/pinctrl-bcm281xx.c- Extension
.c- Size
- 70682 bytes
- Lines
- 2163
- 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/of.hlinux/platform_device.hlinux/regmap.hlinux/seq_file.hlinux/slab.hlinux/pinctrl/pinconf-generic.hlinux/pinctrl/pinconf.hlinux/pinctrl/pinctrl.hlinux/pinctrl/pinmux.h../core.h../pinctrl-utils.h
Detected Declarations
struct bcm281xx_pin_functionstruct bcm281xx_pinctrl_infostruct bcm281xx_pinctrl_dataenum bcm281xx_pin_typeenum bcm281xx_pinctrl_typefunction bcm21664_pinctrl_lock_allfunction bcm21664_pinctrl_set_pin_lockfunction pin_type_getfunction bcm281xx_pin_updatefunction bcm281xx_pinctrl_get_groups_countfunction bcm281xx_pinctrl_get_group_pinsfunction bcm281xx_pinctrl_pin_dbg_showfunction bcm281xx_pinctrl_get_fcns_countfunction bcm281xx_pinctrl_get_fcn_groupsfunction bcm281xx_pinmux_setfunction bcm281xx_pinctrl_pin_config_getfunction bcm281xx_std_pin_updatefunction bcm281xx_i2c_pin_updatefunction bcm21664_i2c_pin_updatefunction bcm281xx_hdmi_pin_updatefunction bcm281xx_pinctrl_pin_config_setfunction bcm281xx_pinctrl_probe
Annotated Snippet
struct bcm281xx_pin_function {
const char *name;
const char * const *groups;
const unsigned int ngroups;
};
/*
* Device types (used in bcm281xx_pinctrl_desc to differentiate
* the two device types from each other)
*/
enum bcm281xx_pinctrl_type {
BCM281XX_PINCTRL_TYPE,
BCM21664_PINCTRL_TYPE,
};
/*
* bcm281xx_pinctrl_info - description of a pinctrl device supported
* by this driver, intended to be used as a provider of OF match data.
*/
struct bcm281xx_pinctrl_info {
enum bcm281xx_pinctrl_type device_type;
/* List of all pins */
const struct pinctrl_pin_desc *pins;
unsigned int npins;
const struct bcm281xx_pin_function *functions;
unsigned int nfunctions;
const struct regmap_config *regmap_config;
};
/*
* bcm281xx_pinctrl_data - Broadcom-specific pinctrl data
* @reg_base - base of pinctrl registers
*/
struct bcm281xx_pinctrl_data {
struct device *dev;
void __iomem *reg_base;
struct regmap *regmap;
const struct bcm281xx_pinctrl_info *info;
};
/*
* Pin number definition. The order here must be the same as defined in the
* PADCTRLREG block in the RDB.
*/
#define BCM281XX_PIN_ADCSYNC 0
#define BCM281XX_PIN_BAT_RM 1
#define BCM281XX_PIN_BSC1_SCL 2
#define BCM281XX_PIN_BSC1_SDA 3
#define BCM281XX_PIN_BSC2_SCL 4
#define BCM281XX_PIN_BSC2_SDA 5
#define BCM281XX_PIN_CLASSGPWR 6
#define BCM281XX_PIN_CLK_CX8 7
#define BCM281XX_PIN_CLKOUT_0 8
#define BCM281XX_PIN_CLKOUT_1 9
#define BCM281XX_PIN_CLKOUT_2 10
#define BCM281XX_PIN_CLKOUT_3 11
#define BCM281XX_PIN_CLKREQ_IN_0 12
#define BCM281XX_PIN_CLKREQ_IN_1 13
#define BCM281XX_PIN_CWS_SYS_REQ1 14
#define BCM281XX_PIN_CWS_SYS_REQ2 15
#define BCM281XX_PIN_CWS_SYS_REQ3 16
#define BCM281XX_PIN_DIGMIC1_CLK 17
#define BCM281XX_PIN_DIGMIC1_DQ 18
#define BCM281XX_PIN_DIGMIC2_CLK 19
#define BCM281XX_PIN_DIGMIC2_DQ 20
#define BCM281XX_PIN_GPEN13 21
#define BCM281XX_PIN_GPEN14 22
#define BCM281XX_PIN_GPEN15 23
#define BCM281XX_PIN_GPIO00 24
#define BCM281XX_PIN_GPIO01 25
#define BCM281XX_PIN_GPIO02 26
#define BCM281XX_PIN_GPIO03 27
#define BCM281XX_PIN_GPIO04 28
#define BCM281XX_PIN_GPIO05 29
#define BCM281XX_PIN_GPIO06 30
#define BCM281XX_PIN_GPIO07 31
#define BCM281XX_PIN_GPIO08 32
#define BCM281XX_PIN_GPIO09 33
#define BCM281XX_PIN_GPIO10 34
#define BCM281XX_PIN_GPIO11 35
#define BCM281XX_PIN_GPIO12 36
#define BCM281XX_PIN_GPIO13 37
#define BCM281XX_PIN_GPIO14 38
#define BCM281XX_PIN_GPS_PABLANK 39
#define BCM281XX_PIN_GPS_TMARK 40
#define BCM281XX_PIN_HDMI_SCL 41
Annotation
- Immediate include surface: `linux/err.h`, `linux/init.h`, `linux/io.h`, `linux/of.h`, `linux/platform_device.h`, `linux/regmap.h`, `linux/seq_file.h`, `linux/slab.h`.
- Detected declarations: `struct bcm281xx_pin_function`, `struct bcm281xx_pinctrl_info`, `struct bcm281xx_pinctrl_data`, `enum bcm281xx_pin_type`, `enum bcm281xx_pinctrl_type`, `function bcm21664_pinctrl_lock_all`, `function bcm21664_pinctrl_set_pin_lock`, `function pin_type_get`, `function bcm281xx_pin_update`, `function bcm281xx_pinctrl_get_groups_count`.
- 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.