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

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

File Facts

System
Linux kernel
Corpus path
drivers/pinctrl/mediatek/pinctrl-mtk-mt8195.h
Extension
.h
Size
37933 bytes
Lines
1670
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_MT8195_H
#define __PINCTRL_MTK_MT8195_H

#include "pinctrl-paris.h"

static const struct mtk_pin_desc mtk_pins_mt8195[] = {
	MTK_PIN(
		0, "GPIO0",
		MTK_EINT_FUNCTION(0, 0),
		DRV_GRP4,
		MTK_FUNCTION(0, "GPIO0"),
		MTK_FUNCTION(1, "TP_GPIO0_AO"),
		MTK_FUNCTION(2, "MSDC2_CMD"),
		MTK_FUNCTION(3, "TDMIN_MCK"),
		MTK_FUNCTION(4, "CLKM0"),
		MTK_FUNCTION(5, "PERSTN_1"),
		MTK_FUNCTION(6, "IDDIG_1P"),
		MTK_FUNCTION(7, "DMIC4_CLK")
	),
	MTK_PIN(
		1, "GPIO1",
		MTK_EINT_FUNCTION(0, 1),
		DRV_GRP4,
		MTK_FUNCTION(0, "GPIO1"),
		MTK_FUNCTION(1, "TP_GPIO1_AO"),
		MTK_FUNCTION(2, "MSDC2_CLK"),
		MTK_FUNCTION(3, "TDMIN_DI"),
		MTK_FUNCTION(4, "CLKM1"),
		MTK_FUNCTION(5, "CLKREQN_1"),
		MTK_FUNCTION(6, "USB_DRVVBUS_1P"),
		MTK_FUNCTION(7, "DMIC4_DAT")
	),
	MTK_PIN(
		2, "GPIO2",
		MTK_EINT_FUNCTION(0, 2),
		DRV_GRP4,
		MTK_FUNCTION(0, "GPIO2"),
		MTK_FUNCTION(1, "TP_GPIO2_AO"),
		MTK_FUNCTION(2, "MSDC2_DAT3"),
		MTK_FUNCTION(3, "TDMIN_LRCK"),
		MTK_FUNCTION(4, "CLKM2"),
		MTK_FUNCTION(5, "WAKEN_1"),
		MTK_FUNCTION(7, "DMIC2_CLK")
	),
	MTK_PIN(
		3, "GPIO3",
		MTK_EINT_FUNCTION(0, 3),
		DRV_GRP4,
		MTK_FUNCTION(0, "GPIO3"),
		MTK_FUNCTION(1, "TP_GPIO3_AO"),
		MTK_FUNCTION(2, "MSDC2_DAT0"),
		MTK_FUNCTION(3, "TDMIN_BCK"),
		MTK_FUNCTION(4, "CLKM3"),
		MTK_FUNCTION(7, "DMIC2_DAT")
	),
	MTK_PIN(
		4, "GPIO4",
		MTK_EINT_FUNCTION(0, 4),
		DRV_GRP4,
		MTK_FUNCTION(0, "GPIO4"),
		MTK_FUNCTION(1, "TP_GPIO4_AO"),
		MTK_FUNCTION(2, "MSDC2_DAT2"),
		MTK_FUNCTION(3, "SPDIF_IN1"),
		MTK_FUNCTION(4, "UTXD3"),
		MTK_FUNCTION(5, "SDA2"),
		MTK_FUNCTION(7, "IDDIG_2P")
	),
	MTK_PIN(
		5, "GPIO5",
		MTK_EINT_FUNCTION(0, 5),
		DRV_GRP4,
		MTK_FUNCTION(0, "GPIO5"),
		MTK_FUNCTION(1, "TP_GPIO5_AO"),
		MTK_FUNCTION(2, "MSDC2_DAT1"),
		MTK_FUNCTION(3, "SPDIF_IN0"),
		MTK_FUNCTION(4, "URXD3"),
		MTK_FUNCTION(5, "SCL2"),
		MTK_FUNCTION(7, "USB_DRVVBUS_2P")
	),
	MTK_PIN(
		6, "GPIO6",
		MTK_EINT_FUNCTION(0, 6),
		DRV_GRP4,
		MTK_FUNCTION(0, "GPIO6"),
		MTK_FUNCTION(1, "TP_GPIO6_AO"),
		MTK_FUNCTION(2, "DP_TX_HPD"),
		MTK_FUNCTION(3, "I2SO1_D4"),
		MTK_FUNCTION(4, "UTXD4"),
		MTK_FUNCTION(5, "CMVREF3"),
		MTK_FUNCTION(7, "DMIC3_CLK")

Annotation

Implementation Notes