drivers/pinctrl/mediatek/pinctrl-mtk-mt8183.h
Source file repositories/reference/linux-study-clean/drivers/pinctrl/mediatek/pinctrl-mtk-mt8183.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/mediatek/pinctrl-mtk-mt8183.h- Extension
.h- Size
- 43616 bytes
- Lines
- 1917
- 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
pinctrl-paris.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __PINCTRL_MTK_MT8183_H
#define __PINCTRL_MTK_MT8183_H
#include "pinctrl-paris.h"
static struct mtk_pin_desc mtk_pins_mt8183[] = {
MTK_PIN(
0, "GPIO0",
MTK_EINT_FUNCTION(0, 0),
DRV_GRP4,
MTK_FUNCTION(0, "GPIO0"),
MTK_FUNCTION(1, "MRG_SYNC"),
MTK_FUNCTION(2, "PCM0_SYNC"),
MTK_FUNCTION(3, "TP_GPIO0_AO"),
MTK_FUNCTION(4, "SRCLKENAI0"),
MTK_FUNCTION(5, "SCP_SPI2_CS"),
MTK_FUNCTION(6, "I2S3_MCK"),
MTK_FUNCTION(7, "SPI2_CSB")
),
MTK_PIN(
1, "GPIO1",
MTK_EINT_FUNCTION(0, 1),
DRV_GRP4,
MTK_FUNCTION(0, "GPIO1"),
MTK_FUNCTION(1, "MRG_CLK"),
MTK_FUNCTION(2, "PCM0_CLK"),
MTK_FUNCTION(3, "TP_GPIO1_AO"),
MTK_FUNCTION(4, "CLKM3"),
MTK_FUNCTION(5, "SCP_SPI2_MO"),
MTK_FUNCTION(6, "I2S3_BCK"),
MTK_FUNCTION(7, "SPI2_MO")
),
MTK_PIN(
2, "GPIO2",
MTK_EINT_FUNCTION(0, 2),
DRV_GRP4,
MTK_FUNCTION(0, "GPIO2"),
MTK_FUNCTION(1, "MRG_DO"),
MTK_FUNCTION(2, "PCM0_DO"),
MTK_FUNCTION(3, "TP_GPIO2_AO"),
MTK_FUNCTION(4, "SCL6"),
MTK_FUNCTION(5, "SCP_SPI2_CK"),
MTK_FUNCTION(6, "I2S3_LRCK"),
MTK_FUNCTION(7, "SPI2_CLK")
),
MTK_PIN(
3, "GPIO3",
MTK_EINT_FUNCTION(0, 3),
DRV_GRP4,
MTK_FUNCTION(0, "GPIO3"),
MTK_FUNCTION(1, "MRG_DI"),
MTK_FUNCTION(2, "PCM0_DI"),
MTK_FUNCTION(3, "TP_GPIO3_AO"),
MTK_FUNCTION(4, "SDA6"),
MTK_FUNCTION(5, "TDM_MCK"),
MTK_FUNCTION(6, "I2S3_DO"),
MTK_FUNCTION(7, "SCP_VREQ_VAO")
),
MTK_PIN(
4, "GPIO4",
MTK_EINT_FUNCTION(0, 4),
DRV_GRP4,
MTK_FUNCTION(0, "GPIO4"),
MTK_FUNCTION(1, "PWM_B"),
MTK_FUNCTION(2, "I2S0_MCK"),
MTK_FUNCTION(3, "SSPM_UTXD_AO"),
MTK_FUNCTION(4, "MD_URXD1"),
MTK_FUNCTION(5, "TDM_BCK"),
MTK_FUNCTION(6, "TP_GPIO4_AO"),
MTK_FUNCTION(7, "DAP_MD32_SWD")
),
MTK_PIN(
5, "GPIO5",
MTK_EINT_FUNCTION(0, 5),
DRV_GRP4,
MTK_FUNCTION(0, "GPIO5"),
MTK_FUNCTION(1, "PWM_C"),
MTK_FUNCTION(2, "I2S0_BCK"),
MTK_FUNCTION(3, "SSPM_URXD_AO"),
MTK_FUNCTION(4, "MD_UTXD1"),
MTK_FUNCTION(5, "TDM_LRCK"),
MTK_FUNCTION(6, "TP_GPIO5_AO"),
MTK_FUNCTION(7, "DAP_MD32_SWCK")
),
MTK_PIN(
6, "GPIO6",
MTK_EINT_FUNCTION(0, 6),
DRV_GRP4,
MTK_FUNCTION(0, "GPIO6"),
MTK_FUNCTION(1, "PWM_A"),
Annotation
- Immediate include surface: `pinctrl-paris.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.