drivers/pinctrl/mediatek/pinctrl-mtk-mt8173.h
Source file repositories/reference/linux-study-clean/drivers/pinctrl/mediatek/pinctrl-mtk-mt8173.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/mediatek/pinctrl-mtk-mt8173.h- Extension
.h- Size
- 28359 bytes
- Lines
- 1084
- 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/pinctrl/pinctrl.hpinctrl-mtk-common.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __PINCTRL_MTK_MT8173_H
#define __PINCTRL_MTK_MT8173_H
#include <linux/pinctrl/pinctrl.h>
#include "pinctrl-mtk-common.h"
static const struct mtk_desc_pin mtk_pins_mt8173[] = {
MTK_PIN(PINCTRL_PIN(0, "EINT0"),
NULL, "mt8173",
MTK_EINT_FUNCTION(0, 0),
MTK_FUNCTION(0, "GPIO0"),
MTK_FUNCTION(1, "IRDA_PDN"),
MTK_FUNCTION(2, "I2S1_WS"),
MTK_FUNCTION(3, "AUD_SPDIF"),
MTK_FUNCTION(4, "UTXD0"),
MTK_FUNCTION(7, "DBG_MON_A_20_")
),
MTK_PIN(PINCTRL_PIN(1, "EINT1"),
NULL, "mt8173",
MTK_EINT_FUNCTION(0, 1),
MTK_FUNCTION(0, "GPIO1"),
MTK_FUNCTION(1, "IRDA_RXD"),
MTK_FUNCTION(2, "I2S1_BCK"),
MTK_FUNCTION(3, "SDA5"),
MTK_FUNCTION(4, "URXD0"),
MTK_FUNCTION(7, "DBG_MON_A_21_")
),
MTK_PIN(PINCTRL_PIN(2, "EINT2"),
NULL, "mt8173",
MTK_EINT_FUNCTION(0, 2),
MTK_FUNCTION(0, "GPIO2"),
MTK_FUNCTION(1, "IRDA_TXD"),
MTK_FUNCTION(2, "I2S1_MCK"),
MTK_FUNCTION(3, "SCL5"),
MTK_FUNCTION(4, "UTXD3"),
MTK_FUNCTION(7, "DBG_MON_A_22_")
),
MTK_PIN(PINCTRL_PIN(3, "EINT3"),
NULL, "mt8173",
MTK_EINT_FUNCTION(0, 3),
MTK_FUNCTION(0, "GPIO3"),
MTK_FUNCTION(1, "DSI1_TE"),
MTK_FUNCTION(2, "I2S1_DO_1"),
MTK_FUNCTION(3, "SDA3"),
MTK_FUNCTION(4, "URXD3"),
MTK_FUNCTION(7, "DBG_MON_A_23_")
),
MTK_PIN(PINCTRL_PIN(4, "EINT4"),
NULL, "mt8173",
MTK_EINT_FUNCTION(0, 4),
MTK_FUNCTION(0, "GPIO4"),
MTK_FUNCTION(1, "DISP_PWM1"),
MTK_FUNCTION(2, "I2S1_DO_2"),
MTK_FUNCTION(3, "SCL3"),
MTK_FUNCTION(4, "UCTS3"),
MTK_FUNCTION(6, "SFWP_B")
),
MTK_PIN(PINCTRL_PIN(5, "EINT5"),
NULL, "mt8173",
MTK_EINT_FUNCTION(0, 5),
MTK_FUNCTION(0, "GPIO5"),
MTK_FUNCTION(1, "PCM1_CLK"),
MTK_FUNCTION(2, "I2S2_WS"),
MTK_FUNCTION(3, "SPI_CK_3_"),
MTK_FUNCTION(4, "URTS3"),
MTK_FUNCTION(5, "AP_MD32_JTAG_TMS"),
MTK_FUNCTION(6, "SFOUT")
),
MTK_PIN(PINCTRL_PIN(6, "EINT6"),
NULL, "mt8173",
MTK_EINT_FUNCTION(0, 6),
MTK_FUNCTION(0, "GPIO6"),
MTK_FUNCTION(1, "PCM1_SYNC"),
MTK_FUNCTION(2, "I2S2_BCK"),
MTK_FUNCTION(3, "SPI_MI_3_"),
MTK_FUNCTION(5, "AP_MD32_JTAG_TCK"),
MTK_FUNCTION(6, "SFCS0")
),
MTK_PIN(PINCTRL_PIN(7, "EINT7"),
NULL, "mt8173",
MTK_EINT_FUNCTION(0, 7),
MTK_FUNCTION(0, "GPIO7"),
MTK_FUNCTION(1, "PCM1_DI"),
MTK_FUNCTION(2, "I2S2_DI_1"),
MTK_FUNCTION(3, "SPI_MO_3_"),
MTK_FUNCTION(5, "AP_MD32_JTAG_TDI"),
MTK_FUNCTION(6, "SFHOLD")
),
MTK_PIN(PINCTRL_PIN(8, "EINT8"),
NULL, "mt8173",
Annotation
- Immediate include surface: `linux/pinctrl/pinctrl.h`, `pinctrl-mtk-common.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.