drivers/pinctrl/stm32/pinctrl-stm32mp257.c
Source file repositories/reference/linux-study-clean/drivers/pinctrl/stm32/pinctrl-stm32mp257.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/stm32/pinctrl-stm32mp257.c- Extension
.c- Size
- 82543 bytes
- Lines
- 2589
- 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/init.hlinux/module.hlinux/of.hlinux/platform_device.hpinctrl-stm32.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) STMicroelectronics 2023 - All Rights Reserved
* Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
*/
#include <linux/init.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include "pinctrl-stm32.h"
static const struct stm32_desc_pin stm32mp257_pins[] = {
STM32_PIN_PKG(
PINCTRL_PIN(0, "PA0"),
STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
STM32_FUNCTION(0, "GPIOA0"),
STM32_FUNCTION(2, "LPTIM1_CH2"),
STM32_FUNCTION(3, "SPI5_RDY"),
STM32_FUNCTION(4, "UART8_CTS"),
STM32_FUNCTION(5, "SAI2_MCLK_B"),
STM32_FUNCTION(6, "UART5_TX"),
STM32_FUNCTION(7, "USART3_TX"),
STM32_FUNCTION(8, "TIM3_ETR"),
STM32_FUNCTION(9, "TIM5_CH2"),
STM32_FUNCTION(11, "ETH2_MII_RXD2 ETH2_RGMII_RXD2"),
STM32_FUNCTION(13, "FMC_NL"),
STM32_FUNCTION(15, "DCMI_D9 PSSI_D9 DCMIPP_D9"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(1, "PA1"),
STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
STM32_FUNCTION(0, "GPIOA1"),
STM32_FUNCTION(3, "SPI6_MISO"),
STM32_FUNCTION(5, "SAI3_SD_A"),
STM32_FUNCTION(6, "USART1_RTS"),
STM32_FUNCTION(7, "USART6_CK"),
STM32_FUNCTION(8, "TIM4_CH2"),
STM32_FUNCTION(9, "I2C4_SDA"),
STM32_FUNCTION(10, "I2C6_SDA"),
STM32_FUNCTION(12, "LCD_R3"),
STM32_FUNCTION(14, "DCMI_D5 PSSI_D5 DCMIPP_D5"),
STM32_FUNCTION(15, "ETH3_PHY_INTN"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(2, "PA2"),
STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
STM32_FUNCTION(0, "GPIOA2"),
STM32_FUNCTION(2, "LPTIM2_IN1"),
STM32_FUNCTION(3, "SPI7_MISO"),
STM32_FUNCTION(6, "MDF1_SDI7"),
STM32_FUNCTION(7, "USART1_RX"),
STM32_FUNCTION(9, "I3C1_SDA"),
STM32_FUNCTION(11, "I2C1_SDA"),
STM32_FUNCTION(12, "LCD_B0"),
STM32_FUNCTION(14, "DCMI_D3 PSSI_D3 DCMIPP_D3"),
STM32_FUNCTION(15, "ETH3_RGMII_RX_CTL ETH3_RMII_CRS_DV"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(3, "PA3"),
STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
STM32_FUNCTION(0, "GPIOA3"),
STM32_FUNCTION(2, "LPTIM2_ETR"),
STM32_FUNCTION(3, "SPI7_MOSI"),
STM32_FUNCTION(6, "MDF1_CKI7"),
STM32_FUNCTION(7, "USART1_TX"),
STM32_FUNCTION(9, "I3C1_SCL"),
STM32_FUNCTION(10, "I2C7_SMBA"),
STM32_FUNCTION(11, "I2C1_SCL"),
STM32_FUNCTION(12, "LCD_B1"),
STM32_FUNCTION(14, "DCMI_D2 PSSI_D2 DCMIPP_D2"),
STM32_FUNCTION(15, "ETH3_RGMII_TX_CTL ETH3_RMII_TX_EN"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(4, "PA4"),
STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
STM32_FUNCTION(0, "GPIOA4"),
STM32_FUNCTION(7, "USART2_TX"),
STM32_FUNCTION(8, "FDCAN2_TX"),
STM32_FUNCTION(9, "TIM2_CH1"),
STM32_FUNCTION(11, "LCD_R1"),
STM32_FUNCTION(14, "ETH1_PTP_AUX_TS"),
Annotation
- Immediate include surface: `linux/init.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`, `pinctrl-stm32.h`.
- 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.