drivers/pinctrl/freescale/pinctrl-imx27.c
Source file repositories/reference/linux-study-clean/drivers/pinctrl/freescale/pinctrl-imx27.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/freescale/pinctrl-imx27.c- Extension
.c- Size
- 14554 bytes
- Lines
- 410
- 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/mod_devicetable.hlinux/platform_device.hlinux/pinctrl/pinctrl.hpinctrl-imx1.h
Detected Declarations
enum imx27_padsfunction imx27_pinctrl_probefunction imx27_pinctrl_init
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0+
//
// imx27 pinctrl driver based on imx pinmux core
//
// Copyright (C) 2013 Pengutronix
//
// Author: Markus Pargmann <mpa@pengutronix.de>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/pinctrl/pinctrl.h>
#include "pinctrl-imx1.h"
#define PAD_ID(port, pin) (port*32 + pin)
#define MX27_PA 0
#define MX27_PB 1
#define MX27_PC 2
#define MX27_PD 3
#define MX27_PE 4
#define MX27_PF 5
enum imx27_pads {
MX27_PAD_USBH2_CLK = PAD_ID(MX27_PA, 0),
MX27_PAD_USBH2_DIR = PAD_ID(MX27_PA, 1),
MX27_PAD_USBH2_DATA7 = PAD_ID(MX27_PA, 2),
MX27_PAD_USBH2_NXT = PAD_ID(MX27_PA, 3),
MX27_PAD_USBH2_STP = PAD_ID(MX27_PA, 4),
MX27_PAD_LSCLK = PAD_ID(MX27_PA, 5),
MX27_PAD_LD0 = PAD_ID(MX27_PA, 6),
MX27_PAD_LD1 = PAD_ID(MX27_PA, 7),
MX27_PAD_LD2 = PAD_ID(MX27_PA, 8),
MX27_PAD_LD3 = PAD_ID(MX27_PA, 9),
MX27_PAD_LD4 = PAD_ID(MX27_PA, 10),
MX27_PAD_LD5 = PAD_ID(MX27_PA, 11),
MX27_PAD_LD6 = PAD_ID(MX27_PA, 12),
MX27_PAD_LD7 = PAD_ID(MX27_PA, 13),
MX27_PAD_LD8 = PAD_ID(MX27_PA, 14),
MX27_PAD_LD9 = PAD_ID(MX27_PA, 15),
MX27_PAD_LD10 = PAD_ID(MX27_PA, 16),
MX27_PAD_LD11 = PAD_ID(MX27_PA, 17),
MX27_PAD_LD12 = PAD_ID(MX27_PA, 18),
MX27_PAD_LD13 = PAD_ID(MX27_PA, 19),
MX27_PAD_LD14 = PAD_ID(MX27_PA, 20),
MX27_PAD_LD15 = PAD_ID(MX27_PA, 21),
MX27_PAD_LD16 = PAD_ID(MX27_PA, 22),
MX27_PAD_LD17 = PAD_ID(MX27_PA, 23),
MX27_PAD_REV = PAD_ID(MX27_PA, 24),
MX27_PAD_CLS = PAD_ID(MX27_PA, 25),
MX27_PAD_PS = PAD_ID(MX27_PA, 26),
MX27_PAD_SPL_SPR = PAD_ID(MX27_PA, 27),
MX27_PAD_HSYNC = PAD_ID(MX27_PA, 28),
MX27_PAD_VSYNC = PAD_ID(MX27_PA, 29),
MX27_PAD_CONTRAST = PAD_ID(MX27_PA, 30),
MX27_PAD_OE_ACD = PAD_ID(MX27_PA, 31),
MX27_PAD_SD2_D0 = PAD_ID(MX27_PB, 4),
MX27_PAD_SD2_D1 = PAD_ID(MX27_PB, 5),
MX27_PAD_SD2_D2 = PAD_ID(MX27_PB, 6),
MX27_PAD_SD2_D3 = PAD_ID(MX27_PB, 7),
MX27_PAD_SD2_CMD = PAD_ID(MX27_PB, 8),
MX27_PAD_SD2_CLK = PAD_ID(MX27_PB, 9),
MX27_PAD_CSI_D0 = PAD_ID(MX27_PB, 10),
MX27_PAD_CSI_D1 = PAD_ID(MX27_PB, 11),
MX27_PAD_CSI_D2 = PAD_ID(MX27_PB, 12),
MX27_PAD_CSI_D3 = PAD_ID(MX27_PB, 13),
MX27_PAD_CSI_D4 = PAD_ID(MX27_PB, 14),
MX27_PAD_CSI_MCLK = PAD_ID(MX27_PB, 15),
MX27_PAD_CSI_PIXCLK = PAD_ID(MX27_PB, 16),
MX27_PAD_CSI_D5 = PAD_ID(MX27_PB, 17),
MX27_PAD_CSI_D6 = PAD_ID(MX27_PB, 18),
MX27_PAD_CSI_D7 = PAD_ID(MX27_PB, 19),
MX27_PAD_CSI_VSYNC = PAD_ID(MX27_PB, 20),
MX27_PAD_CSI_HSYNC = PAD_ID(MX27_PB, 21),
MX27_PAD_USBH1_SUSP = PAD_ID(MX27_PB, 22),
MX27_PAD_USB_PWR = PAD_ID(MX27_PB, 23),
MX27_PAD_USB_OC_B = PAD_ID(MX27_PB, 24),
MX27_PAD_USBH1_RCV = PAD_ID(MX27_PB, 25),
MX27_PAD_USBH1_FS = PAD_ID(MX27_PB, 26),
MX27_PAD_USBH1_OE_B = PAD_ID(MX27_PB, 27),
MX27_PAD_USBH1_TXDM = PAD_ID(MX27_PB, 28),
MX27_PAD_USBH1_TXDP = PAD_ID(MX27_PB, 29),
MX27_PAD_USBH1_RXDM = PAD_ID(MX27_PB, 30),
MX27_PAD_USBH1_RXDP = PAD_ID(MX27_PB, 31),
MX27_PAD_I2C2_SDA = PAD_ID(MX27_PC, 5),
MX27_PAD_I2C2_SCL = PAD_ID(MX27_PC, 6),
Annotation
- Immediate include surface: `linux/err.h`, `linux/init.h`, `linux/io.h`, `linux/mod_devicetable.h`, `linux/platform_device.h`, `linux/pinctrl/pinctrl.h`, `pinctrl-imx1.h`.
- Detected declarations: `enum imx27_pads`, `function imx27_pinctrl_probe`, `function imx27_pinctrl_init`.
- 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.