drivers/pinctrl/tegra/pinctrl-tegra234.c
Source file repositories/reference/linux-study-clean/drivers/pinctrl/tegra/pinctrl-tegra234.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/tegra/pinctrl-tegra234.c- Extension
.c- Size
- 79911 bytes
- Lines
- 1961
- 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/mod_devicetable.hlinux/module.hlinux/platform_device.hlinux/property.hlinux/pinctrl/pinctrl.hlinux/pinctrl/pinmux.hpinctrl-tegra.h
Detected Declarations
enum tegra_mux_dtfunction tegra234_pinctrl_probefunction tegra234_pinctrl_init
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0+
/*
* Pinctrl data for the NVIDIA Tegra234 pinmux
*
* Copyright (c) 2021-2023, NVIDIA CORPORATION. All rights reserved.
*/
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/pinctrl/pinctrl.h>
#include <linux/pinctrl/pinmux.h>
#include "pinctrl-tegra.h"
/* Define unique ID for each pins */
enum {
TEGRA_PIN_DAP6_SCLK_PA0,
TEGRA_PIN_DAP6_DOUT_PA1,
TEGRA_PIN_DAP6_DIN_PA2,
TEGRA_PIN_DAP6_FS_PA3,
TEGRA_PIN_DAP4_SCLK_PA4,
TEGRA_PIN_DAP4_DOUT_PA5,
TEGRA_PIN_DAP4_DIN_PA6,
TEGRA_PIN_DAP4_FS_PA7,
TEGRA_PIN_SOC_GPIO08_PB0,
TEGRA_PIN_QSPI0_SCK_PC0,
TEG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_SOC_GPIO42_PI0,
TEGRA_PIN_SOC_GPIO43_PI1,
TEGRA_PIN_SOC_GPIO44_PI2,
TEGRA_PIN_GEN1_I2C_SCL_PI3,
TEGRA_PIN_GEN1_I2C_SDA_PI4,
TEGRA_PIN_CPU_PWR_REQ_PI5,
TEGRA_PIN_SOC_GPIO07_PI6,
TEGRA_PIN_SDMMC1_CLK_PJ0,
TEGRA_PIN_SDMMC1_CMD_PJ1,
TEGRA_PIN_SDMMC1_DAT0_PJ2,
TEGRA_PIN_SDMMC1_DAT1_PJ3,
TEGRA_PIN_SDMMC1_DAT2_PJ4,
TEGRA_PIN_SDMMC1_DAT3_PJ5,
TEGRA_PIN_PEX_L0_CLKREQ_N_PK0,
TEGRA_PIN_PEX_L0_RST_N_PK1,
TEGRA_PIN_PEX_L1_CLKREQ_N_PK2,
TEGRA_PIN_PEX_L1_RST_N_PK3,
TEGRA_PIN_PEX_L2_CLKREQ_N_PK4,
TEGRA_PIN_PEX_L2_RST_N_PK5,
TEGRA_PIN_PEX_L3_CLKREQ_N_PK6,
Annotation
- Immediate include surface: `linux/mod_devicetable.h`, `linux/module.h`, `linux/platform_device.h`, `linux/property.h`, `linux/pinctrl/pinctrl.h`, `linux/pinctrl/pinmux.h`, `pinctrl-tegra.h`.
- Detected declarations: `enum tegra_mux_dt`, `function tegra234_pinctrl_probe`, `function tegra234_pinctrl_init`.
- 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.