drivers/pinctrl/realtek/pinctrl-rtd1315e.c

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

File Facts

System
Linux kernel
Corpus path
drivers/pinctrl/realtek/pinctrl-rtd1315e.c
Extension
.c
Size
68570 bytes
Lines
1442
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 1315E 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 rtd13xxe_iso_pins {
	RTD1315E_ISO_GPIO_0 = 0,
	RTD1315E_ISO_GPIO_1,
	RTD1315E_ISO_EMMC_RST_N,
	RTD1315E_ISO_EMMC_DD_SB,
	RTD1315E_ISO_EMMC_CLK,
	RTD1315E_ISO_EMMC_CMD,
	RTD1315E_ISO_GPIO_6,
	RTD1315E_ISO_GPIO_7,
	RTD1315E_ISO_GPIO_8,
	RTD1315E_ISO_GPIO_9,
	RTD1315E_ISO_GPIO_10,
	RTD1315E_ISO_GPIO_11,
	RTD1315E_ISO_GPIO_12,
	RTD1315E_ISO_GPIO_13,
	RTD1315E_ISO_GPIO_14,
	RTD1315E_ISO_GPIO_15,
	RTD1315E_ISO_GPIO_16,
	RTD1315E_ISO_GPIO_17,
	RTD1315E_ISO_GPIO_18,
	RTD1315E_ISO_GPIO_19,
	RTD1315E_ISO_GPIO_20,
	RTD1315E_ISO_EMMC_DATA_0,
	RTD1315E_ISO_EMMC_DATA_1,
	RTD1315E_ISO_EMMC_DATA_2,
	RTD1315E_ISO_USB_CC2,
	RTD1315E_ISO_GPIO_25,
	RTD1315E_ISO_GPIO_26,
	RTD1315E_ISO_GPIO_27,
	RTD1315E_ISO_GPIO_28,
	RTD1315E_ISO_GPIO_29,
	RTD1315E_ISO_GPIO_30,
	RTD1315E_ISO_GPIO_31,
	RTD1315E_ISO_GPIO_32,
	RTD1315E_ISO_GPIO_33,
	RTD1315E_ISO_GPIO_34,
	RTD1315E_ISO_GPIO_35,
	RTD1315E_ISO_HIF_DATA,
	RTD1315E_ISO_HIF_EN,
	RTD1315E_ISO_HIF_RDY,
	RTD1315E_ISO_HIF_CLK,
	RTD1315E_ISO_GPIO_DUMMY_40,
	RTD1315E_ISO_GPIO_DUMMY_41,
	RTD1315E_ISO_GPIO_DUMMY_42,
	RTD1315E_ISO_GPIO_DUMMY_43,
	RTD1315E_ISO_GPIO_DUMMY_44,
	RTD1315E_ISO_GPIO_DUMMY_45,
	RTD1315E_ISO_GPIO_46,
	RTD1315E_ISO_GPIO_47,
	RTD1315E_ISO_GPIO_48,
	RTD1315E_ISO_GPIO_49,
	RTD1315E_ISO_GPIO_50,
	RTD1315E_ISO_USB_CC1,
	RTD1315E_ISO_EMMC_DATA_3,
	RTD1315E_ISO_EMMC_DATA_4,
	RTD1315E_ISO_IR_RX,
	RTD1315E_ISO_UR0_RX,
	RTD1315E_ISO_UR0_TX,
	RTD1315E_ISO_GPIO_57,
	RTD1315E_ISO_GPIO_58,
	RTD1315E_ISO_GPIO_59,
	RTD1315E_ISO_GPIO_60,
	RTD1315E_ISO_GPIO_61,
	RTD1315E_ISO_GPIO_62,
	RTD1315E_ISO_GPIO_DUMMY_63,
	RTD1315E_ISO_GPIO_DUMMY_64,
	RTD1315E_ISO_GPIO_DUMMY_65,
	RTD1315E_ISO_GPIO_66,
	RTD1315E_ISO_GPIO_67,
	RTD1315E_ISO_GPIO_68,
	RTD1315E_ISO_GPIO_69,
	RTD1315E_ISO_GPIO_70,
	RTD1315E_ISO_GPIO_71,
	RTD1315E_ISO_GPIO_72,
	RTD1315E_ISO_GPIO_DUMMY_73,

Annotation

Implementation Notes