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

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

File Facts

System
Linux kernel
Corpus path
drivers/pinctrl/mediatek/pinctrl-mtk-mt6397.h
Extension
.h
Size
10531 bytes
Lines
385
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_MT6397_H
#define __PINCTRL_MTK_MT6397_H

#include <linux/pinctrl/pinctrl.h>
#include "pinctrl-mtk-common.h"

static const struct mtk_desc_pin mtk_pins_mt6397[] = {
	MTK_PIN(PINCTRL_PIN(0, "INT"),
		"N2", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO0"),
		MTK_FUNCTION(1, "INT")
	),
	MTK_PIN(PINCTRL_PIN(1, "SRCVOLTEN"),
		"M4", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO1"),
		MTK_FUNCTION(1, "SRCVOLTEN"),
		MTK_FUNCTION(6, "TEST_CK1")
	),
	MTK_PIN(PINCTRL_PIN(2, "SRCLKEN_PERI"),
		"M2", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO2"),
		MTK_FUNCTION(1, "SRCLKEN_PERI"),
		MTK_FUNCTION(6, "TEST_CK2")
	),
	MTK_PIN(PINCTRL_PIN(3, "RTC_32K1V8"),
		"K3", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO3"),
		MTK_FUNCTION(1, "RTC_32K1V8"),
		MTK_FUNCTION(6, "TEST_CK3")
	),
	MTK_PIN(PINCTRL_PIN(4, "WRAP_EVENT"),
		"J2", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO4"),
		MTK_FUNCTION(1, "WRAP_EVENT")
	),
	MTK_PIN(PINCTRL_PIN(5, "SPI_CLK"),
		"L4", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO5"),
		MTK_FUNCTION(1, "SPI_CLK")
	),
	MTK_PIN(PINCTRL_PIN(6, "SPI_CSN"),
		"J3", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO6"),
		MTK_FUNCTION(1, "SPI_CSN")
	),
	MTK_PIN(PINCTRL_PIN(7, "SPI_MOSI"),
		"J1", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO7"),
		MTK_FUNCTION(1, "SPI_MOSI")
	),
	MTK_PIN(PINCTRL_PIN(8, "SPI_MISO"),
		"L3", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO8"),
		MTK_FUNCTION(1, "SPI_MISO")
	),
	MTK_PIN(PINCTRL_PIN(9, "AUD_CLK_MOSI"),
		"H2", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO9"),
		MTK_FUNCTION(1, "AUD_CLK"),
		MTK_FUNCTION(6, "TEST_IN0"),
		MTK_FUNCTION(7, "TEST_OUT0")
	),
	MTK_PIN(PINCTRL_PIN(10, "AUD_DAT_MISO"),
		"H3", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO10"),
		MTK_FUNCTION(1, "AUD_MISO"),
		MTK_FUNCTION(6, "TEST_IN1"),
		MTK_FUNCTION(7, "TEST_OUT1")
	),
	MTK_PIN(PINCTRL_PIN(11, "AUD_DAT_MOSI"),
		"H1", "mt6397",
		MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
		MTK_FUNCTION(0, "GPIO11"),
		MTK_FUNCTION(1, "AUD_MOSI"),
		MTK_FUNCTION(6, "TEST_IN2"),
		MTK_FUNCTION(7, "TEST_OUT2")
	),
	MTK_PIN(PINCTRL_PIN(12, "COL0"),
		"F3", "mt6397",

Annotation

Implementation Notes