drivers/pinctrl/mediatek/pinctrl-mtk-mt8188.h

Source file repositories/reference/linux-study-clean/drivers/pinctrl/mediatek/pinctrl-mtk-mt8188.h

File Facts

System
Linux kernel
Corpus path
drivers/pinctrl/mediatek/pinctrl-mtk-mt8188.h
Extension
.h
Size
52204 bytes
Lines
2260
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __PINCTRL_MTK_MT8188_H
#define __PINCTRL_MTK_MT8188_H

#include "pinctrl-paris.h"

static const struct mtk_pin_desc mtk_pins_mt8188[] = {
	MTK_PIN(
		0, "GPIO0",
		MTK_EINT_FUNCTION(0, 0),
		DRV_GRP4,
		MTK_FUNCTION(0, "B_GPIO0"),
		MTK_FUNCTION(1, "B0_TP_GPIO0_AO"),
		MTK_FUNCTION(2, "O_SPIM5_CSB"),
		MTK_FUNCTION(3, "O_UTXD1"),
		MTK_FUNCTION(4, "O_DMIC3_CLK"),
		MTK_FUNCTION(5, "B0_I2SIN_MCK"),
		MTK_FUNCTION(6, "O_I2SO2_MCK"),
		MTK_FUNCTION(7, "B0_DBG_MON_A0")
	),

	MTK_PIN(
		1, "GPIO1",
		MTK_EINT_FUNCTION(0, 1),
		DRV_GRP4,
		MTK_FUNCTION(0, "B_GPIO1"),
		MTK_FUNCTION(1, "B0_TP_GPIO1_AO"),
		MTK_FUNCTION(2, "O_SPIM5_CLK"),
		MTK_FUNCTION(3, "I1_URXD1"),
		MTK_FUNCTION(4, "I0_DMIC3_DAT"),
		MTK_FUNCTION(5, "B0_I2SIN_BCK"),
		MTK_FUNCTION(6, "B0_I2SO2_BCK"),
		MTK_FUNCTION(7, "B0_DBG_MON_A1")
	),

	MTK_PIN(
		2, "GPIO2",
		MTK_EINT_FUNCTION(0, 2),
		DRV_GRP4,
		MTK_FUNCTION(0, "B_GPIO2"),
		MTK_FUNCTION(1, "B0_TP_GPIO2_AO"),
		MTK_FUNCTION(2, "B0_SPIM5_MOSI"),
		MTK_FUNCTION(3, "O_URTS1"),
		MTK_FUNCTION(4, "I0_DMIC3_DAT_R"),
		MTK_FUNCTION(5, "B0_I2SIN_WS"),
		MTK_FUNCTION(6, "B0_I2SO2_WS"),
		MTK_FUNCTION(7, "B0_DBG_MON_A2")
	),

	MTK_PIN(
		3, "GPIO3",
		MTK_EINT_FUNCTION(0, 3),
		DRV_GRP4,
		MTK_FUNCTION(0, "B_GPIO3"),
		MTK_FUNCTION(1, "B0_TP_GPIO3_AO"),
		MTK_FUNCTION(2, "B0_SPIM5_MISO"),
		MTK_FUNCTION(3, "I1_UCTS1"),
		MTK_FUNCTION(4, "O_DMIC4_CLK"),
		MTK_FUNCTION(5, "I0_I2SIN_D0"),
		MTK_FUNCTION(6, "O_I2SO2_D0"),
		MTK_FUNCTION(7, "B0_DBG_MON_A3")
	),

	MTK_PIN(
		4, "GPIO4",
		MTK_EINT_FUNCTION(0, 4),
		DRV_GRP4,
		MTK_FUNCTION(0, "B_GPIO4"),
		MTK_FUNCTION(1, "B0_TP_GPIO4_AO"),
		MTK_FUNCTION(2, "I0_SPDIF_IN2"),
		MTK_FUNCTION(3, "O_I2SO1_MCK"),
		MTK_FUNCTION(4, "I0_DMIC4_DAT"),
		MTK_FUNCTION(5, "I0_I2SIN_D1"),
		MTK_FUNCTION(6, "O_I2SO2_D1"),
		MTK_FUNCTION(7, "B0_DBG_MON_A4")
	),

	MTK_PIN(
		5, "GPIO5",
		MTK_EINT_FUNCTION(0, 5),
		DRV_GRP4,
		MTK_FUNCTION(0, "B_GPIO5"),
		MTK_FUNCTION(1, "B0_TP_GPIO5_AO"),
		MTK_FUNCTION(2, "I0_SPDIF_IN1"),
		MTK_FUNCTION(3, "O_I2SO1_BCK"),
		MTK_FUNCTION(4, "I0_DMIC4_DAT_R"),
		MTK_FUNCTION(5, "I0_I2SIN_D2"),
		MTK_FUNCTION(6, "O_I2SO2_D2"),
		MTK_FUNCTION(7, "B0_DBG_MON_A5")
	),

Annotation

Implementation Notes