drivers/pinctrl/realtek/pinctrl-rtd1625.c

Source file repositories/reference/linux-study-clean/drivers/pinctrl/realtek/pinctrl-rtd1625.c

File Facts

System
Linux kernel
Corpus path
drivers/pinctrl/realtek/pinctrl-rtd1625.c
Extension
.c
Size
122931 bytes
Lines
3139
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

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Realtek DHC 1625 pin controller driver
 *
 * Copyright (c) 2023 Realtek Semiconductor Corp.
 *
 */

#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pinctrl/pinctrl.h>

#include "pinctrl-rtd.h"

enum rtd1625_iso_pins_enum {
	RTD1625_ISO_GPIO_8 = 0,
	RTD1625_ISO_GPIO_9,
	RTD1625_ISO_GPIO_10,
	RTD1625_ISO_GPIO_11,
	RTD1625_ISO_USB_CC1,
	RTD1625_ISO_USB_CC2,
	RTD1625_ISO_GPIO_45,
	RTD1625_ISO_GPIO_46,
	RTD1625_ISO_GPIO_47,
	RTD1625_ISO_GPIO_48,
	RTD1625_ISO_GPIO_49,
	RTD1625_ISO_GPIO_50,
	RTD1625_ISO_GPIO_52,
	RTD1625_ISO_GPIO_94,
	RTD1625_ISO_GPIO_95,
	RTD1625_ISO_GPIO_96,
	RTD1625_ISO_GPIO_97,
	RTD1625_ISO_GPIO_98,
	RTD1625_ISO_GPIO_99,
	RTD1625_ISO_GPIO_100,
	RTD1625_ISO_GPIO_101,
	RTD1625_ISO_GPIO_102,
	RTD1625_ISO_GPIO_103,
	RTD1625_ISO_GPIO_104,
	RTD1625_ISO_GPIO_105,
	RTD1625_ISO_GPIO_106,
	RTD1625_ISO_GPIO_107,
	RTD1625_ISO_GPIO_108,
	RTD1625_ISO_GPIO_109,
	RTD1625_ISO_GPIO_110,
	RTD1625_ISO_GPIO_111,
	RTD1625_ISO_GPIO_112,
	RTD1625_ISO_GPIO_128,
	RTD1625_ISO_GPIO_129,
	RTD1625_ISO_GPIO_130,
	RTD1625_ISO_GPIO_131,
	RTD1625_ISO_GPIO_145,
	RTD1625_ISO_GPIO_146,
	RTD1625_ISO_GPIO_147,
	RTD1625_ISO_GPIO_148,
	RTD1625_ISO_GPIO_149,
	RTD1625_ISO_GPIO_150,
	RTD1625_ISO_GPIO_151,
	RTD1625_ISO_GPIO_152,
	RTD1625_ISO_GPIO_153,
	RTD1625_ISO_GPIO_154,
	RTD1625_ISO_GPIO_155,
	RTD1625_ISO_GPIO_156,
	RTD1625_ISO_GPIO_157,
	RTD1625_ISO_GPIO_158,
	RTD1625_ISO_GPIO_159,
	RTD1625_ISO_GPIO_160,
	RTD1625_ISO_GPIO_161,
	RTD1625_ISO_GPIO_162,
	RTD1625_ISO_GPIO_163,
	RTD1625_ISO_HI_WIDTH,
	RTD1625_ISO_SF_EN,
	RTD1625_ISO_ARM_TRACE_DBG_EN,
	RTD1625_ISO_EJTAG_AUCPU0_LOC,
	RTD1625_ISO_EJTAG_AUCPU1_LOC,
	RTD1625_ISO_EJTAG_VE2_LOC,
	RTD1625_ISO_EJTAG_SCPU_LOC,
	RTD1625_ISO_EJTAG_PCPU_LOC,
	RTD1625_ISO_EJTAG_ACPU_LOC,
	RTD1625_ISO_I2C6_LOC,
	RTD1625_ISO_UART0_LOC,
	RTD1625_ISO_AI_I2S1_LOC,
	RTD1625_ISO_AO_I2S1_LOC,
	RTD1625_ISO_ETN_PHY_LOC,
	RTD1625_ISO_SPDIF_LOC,
	RTD1625_ISO_RGMII_VDSEL,
	RTD1625_ISO_CSI_VDSEL,
	RTD1625_ISO_SPDIF_IN_MODE,
};

Annotation

Implementation Notes