drivers/pinctrl/actions/pinctrl-s500.c
Source file repositories/reference/linux-study-clean/drivers/pinctrl/actions/pinctrl-s500.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/actions/pinctrl-s500.c- Extension
.c- Size
- 51220 bytes
- Lines
- 1727
- 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/module.hlinux/of.hlinux/platform_device.hlinux/pinctrl/pinconf-generic.hlinux/pinctrl/pinctrl.hpinctrl-owl.h
Detected Declarations
enum s500_pinmux_functionsenum s500_pinconf_pullfunction s500_pad_pinconf_arg2valfunction s500_pad_pinconf_val2argfunction s500_pinctrl_probefunction s500_pinctrl_initfunction s500_pinctrl_exit
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0+
/*
* Actions Semi S500 SoC Pinctrl driver
*
* Copyright (c) 2014 Actions Semi Inc.
* Copyright (c) 2020 Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
*/
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/pinctrl/pinconf-generic.h>
#include <linux/pinctrl/pinctrl.h>
#include "pinctrl-owl.h"
/* Pinctrl registers offset */
#define MFCTL0 (0x0040)
#define MFCTL1 (0x0044)
#define MFCTL2 (0x0048)
#define MFCTL3 (0x004C)
#define PAD_PULLCTL0 (0x0060)
#define PAD_PULLCTL1 (0x0064)
#define PAD_PULLCTL2 (0x0068)
#define PAD_ST0 (0x006C)
#define PAD_ST1 (0x0070)
#define PAD_CTL (0x0074)
#define PAD_DRV0 (0x0080)
#define PAD_DRV1 (0x0084)
#define PAD_DRV2 (0x0088)
#define _GPIOA(offset) (offset)
#define _GPIOB(offset) (32 + (offset))
#define _GPIOC(offset) (64 + (offset))
#define _GPIOD(offset) (96 + (offset))
#define _GPIOE(offset) (128 + (offset))
#define NUM_GPIOS (_GPIOE(3) + 1)
#define _PIN(offset) (NUM_GPIOS + (offset))
#define DNAND_DQS _GPIOA(12)
#define DNAND_DQSN _GPIOA(13)
#define ETH_TXD0 _GPIOA(14)
#define ETH_TXD1 _GPIOA(15)
#define ETH_TXEN _GPIOA(16)
#define ETH_RXER _GPIOA(17)
#define ETH_CRS_DV _GPIOA(18)
#define ETH_RXD1 _GPIOA(19)
#define ETH_RXD0 _GPIOA(20)
#define ETH_REF_CLK _GPIOA(21)
#define ETH_MDC _GPIOA(22)
#define ETH_MDIO _GPIOA(23)
#define SIRQ0 _GPIOA(24)
#define SIRQ1 _GPIOA(25)
#define SIRQ2 _GPIOA(26)
#define I2S_D0 _GPIOA(27)
#define I2S_BCLK0 _GPIOA(28)
#define I2S_LRCLK0 _GPIOA(29)
#define I2S_MCLK0 _GPIOA(30)
#define I2S_D1 _GPIOA(31)
#define I2S_BCLK1 _GPIOB(0)
#define I2S_LRCLK1 _GPIOB(1)
#define I2S_MCLK1 _GPIOB(2)
#define KS_IN0 _GPIOB(3)
#define KS_IN1 _GPIOB(4)
#define KS_IN2 _GPIOB(5)
#define KS_IN3 _GPIOB(6)
#define KS_OUT0 _GPIOB(7)
#define KS_OUT1 _GPIOB(8)
#define KS_OUT2 _GPIOB(9)
#define LVDS_OEP _GPIOB(10)
#define LVDS_OEN _GPIOB(11)
#define LVDS_ODP _GPIOB(12)
#define LVDS_ODN _GPIOB(13)
#define LVDS_OCP _GPIOB(14)
#define LVDS_OCN _GPIOB(15)
#define LVDS_OBP _GPIOB(16)
#define LVDS_OBN _GPIOB(17)
#define LVDS_OAP _GPIOB(18)
#define LVDS_OAN _GPIOB(19)
#define LVDS_EEP _GPIOB(20)
#define LVDS_EEN _GPIOB(21)
#define LVDS_EDP _GPIOB(22)
#define LVDS_EDN _GPIOB(23)
#define LVDS_ECP _GPIOB(24)
#define LVDS_ECN _GPIOB(25)
#define LVDS_EBP _GPIOB(26)
#define LVDS_EBN _GPIOB(27)
#define LVDS_EAP _GPIOB(28)
#define LVDS_EAN _GPIOB(29)
Annotation
- Immediate include surface: `linux/module.h`, `linux/of.h`, `linux/platform_device.h`, `linux/pinctrl/pinconf-generic.h`, `linux/pinctrl/pinctrl.h`, `pinctrl-owl.h`.
- Detected declarations: `enum s500_pinmux_functions`, `enum s500_pinconf_pull`, `function s500_pad_pinconf_arg2val`, `function s500_pad_pinconf_val2arg`, `function s500_pinctrl_probe`, `function s500_pinctrl_init`, `function s500_pinctrl_exit`.
- 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.