drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h
Source file repositories/reference/linux-study-clean/drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/mediatek/pinctrl-mtk-mt2712.h- Extension
.h- Size
- 47203 bytes
- Lines
- 1758
- 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_MT2712_H
#define PINCTRL_MTK_MT2712_H
#include <linux/pinctrl/pinctrl.h>
#include "pinctrl-mtk-common.h"
static const struct mtk_desc_pin mtk_pins_mt2712[] = {
MTK_PIN(PINCTRL_PIN(0, "EINT0"),
NULL, "mt2712",
MTK_EINT_FUNCTION(0, 6),
MTK_FUNCTION(0, "GPIO0"),
MTK_FUNCTION(1, "EINT0"),
MTK_FUNCTION(2, "MBIST_DIAG_SCANOUT"),
MTK_FUNCTION(3, "DSIA_TE"),
MTK_FUNCTION(4, "DSIC_TE"),
MTK_FUNCTION(5, "DIN_D3"),
MTK_FUNCTION(6, "PURE_HW_PROTECT")
),
MTK_PIN(PINCTRL_PIN(1, "EINT1"),
NULL, "mt2712",
MTK_EINT_FUNCTION(0, 7),
MTK_FUNCTION(0, "GPIO1"),
MTK_FUNCTION(1, "EINT1"),
MTK_FUNCTION(2, "IR_IN"),
MTK_FUNCTION(3, "DSIB_TE"),
MTK_FUNCTION(4, "DSID_TE"),
MTK_FUNCTION(5, "DIN_D4")
),
MTK_PIN(PINCTRL_PIN(2, "EINT2"),
NULL, "mt2712",
MTK_EINT_FUNCTION(0, 8),
MTK_FUNCTION(0, "GPIO2"),
MTK_FUNCTION(1, "EINT2"),
MTK_FUNCTION(2, "IR_IN"),
MTK_FUNCTION(3, "LCM_RST1"),
MTK_FUNCTION(5, "DIN_D5")
),
MTK_PIN(PINCTRL_PIN(3, "EINT3"),
NULL, "mt2712",
MTK_EINT_FUNCTION(0, 9),
MTK_FUNCTION(0, "GPIO3"),
MTK_FUNCTION(1, "EINT3"),
MTK_FUNCTION(2, "IR_IN"),
MTK_FUNCTION(3, "LCM_RST0"),
MTK_FUNCTION(5, "DIN_D6")
),
MTK_PIN(PINCTRL_PIN(4, "PWM0"),
NULL, "mt2712",
MTK_EINT_FUNCTION(0, 10),
MTK_FUNCTION(0, "GPIO4"),
MTK_FUNCTION(1, "PWM0"),
MTK_FUNCTION(2, "DISP0_PWM"),
MTK_FUNCTION(3, "DISP1_PWM"),
MTK_FUNCTION(5, "DIN_CLK")
),
MTK_PIN(PINCTRL_PIN(5, "PWM1"),
NULL, "mt2712",
MTK_EINT_FUNCTION(0, 11),
MTK_FUNCTION(0, "GPIO5"),
MTK_FUNCTION(1, "PWM1"),
MTK_FUNCTION(2, "DISP1_PWM"),
MTK_FUNCTION(3, "DISP0_PWM"),
MTK_FUNCTION(5, "DIN_VSYNC")
),
MTK_PIN(PINCTRL_PIN(6, "PWM2"),
NULL, "mt2712",
MTK_EINT_FUNCTION(0, 12),
MTK_FUNCTION(0, "GPIO6"),
MTK_FUNCTION(1, "PWM2"),
MTK_FUNCTION(2, "DISP0_PWM"),
MTK_FUNCTION(3, "DISP1_PWM"),
MTK_FUNCTION(4, "DISP2_PWM"),
MTK_FUNCTION(5, "DIN_HSYNC")
),
MTK_PIN(PINCTRL_PIN(7, "PWM3"),
NULL, "mt2712",
MTK_EINT_FUNCTION(0, 13),
MTK_FUNCTION(0, "GPIO7"),
MTK_FUNCTION(1, "PWM3"),
MTK_FUNCTION(2, "DISP1_PWM"),
MTK_FUNCTION(3, "DISP0_PWM"),
MTK_FUNCTION(4, "LCM_RST2"),
MTK_FUNCTION(5, "DIN_D0")
),
MTK_PIN(PINCTRL_PIN(8, "PWM4"),
NULL, "mt2712",
MTK_EINT_FUNCTION(0, 14),
MTK_FUNCTION(0, "GPIO8"),
MTK_FUNCTION(1, "PWM4"),
MTK_FUNCTION(2, "DISP0_PWM"),
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.