162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * pin-controller/pin-mux/pin-config/gpio-driver for Samsung's SoC's.
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (c) 2012 Samsung Electronics Co., Ltd.
662306a36Sopenharmony_ci *		http://www.samsung.com
762306a36Sopenharmony_ci * Copyright (c) 2012 Linaro Ltd
862306a36Sopenharmony_ci *		http://www.linaro.org
962306a36Sopenharmony_ci *
1062306a36Sopenharmony_ci * Author: Thomas Abraham <thomas.ab@samsung.com>
1162306a36Sopenharmony_ci */
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#ifndef __PINCTRL_SAMSUNG_H
1462306a36Sopenharmony_ci#define __PINCTRL_SAMSUNG_H
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci#include <linux/pinctrl/pinctrl.h>
1762306a36Sopenharmony_ci#include <linux/pinctrl/pinmux.h>
1862306a36Sopenharmony_ci#include <linux/pinctrl/pinconf.h>
1962306a36Sopenharmony_ci#include <linux/pinctrl/consumer.h>
2062306a36Sopenharmony_ci#include <linux/pinctrl/machine.h>
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci#include <linux/gpio/driver.h>
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci/**
2562306a36Sopenharmony_ci * enum pincfg_type - possible pin configuration types supported.
2662306a36Sopenharmony_ci * @PINCFG_TYPE_FUNC: Function configuration.
2762306a36Sopenharmony_ci * @PINCFG_TYPE_DAT: Pin value configuration.
2862306a36Sopenharmony_ci * @PINCFG_TYPE_PUD: Pull up/down configuration.
2962306a36Sopenharmony_ci * @PINCFG_TYPE_DRV: Drive strength configuration.
3062306a36Sopenharmony_ci * @PINCFG_TYPE_CON_PDN: Pin function in power down mode.
3162306a36Sopenharmony_ci * @PINCFG_TYPE_PUD_PDN: Pull up/down configuration in power down mode.
3262306a36Sopenharmony_ci */
3362306a36Sopenharmony_cienum pincfg_type {
3462306a36Sopenharmony_ci	PINCFG_TYPE_FUNC,
3562306a36Sopenharmony_ci	PINCFG_TYPE_DAT,
3662306a36Sopenharmony_ci	PINCFG_TYPE_PUD,
3762306a36Sopenharmony_ci	PINCFG_TYPE_DRV,
3862306a36Sopenharmony_ci	PINCFG_TYPE_CON_PDN,
3962306a36Sopenharmony_ci	PINCFG_TYPE_PUD_PDN,
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci	PINCFG_TYPE_NUM
4262306a36Sopenharmony_ci};
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci/*
4562306a36Sopenharmony_ci * pin configuration (pull up/down and drive strength) type and its value are
4662306a36Sopenharmony_ci * packed together into a 16-bits. The upper 8-bits represent the configuration
4762306a36Sopenharmony_ci * type and the lower 8-bits hold the value of the configuration type.
4862306a36Sopenharmony_ci */
4962306a36Sopenharmony_ci#define PINCFG_TYPE_MASK		0xFF
5062306a36Sopenharmony_ci#define PINCFG_VALUE_SHIFT		8
5162306a36Sopenharmony_ci#define PINCFG_VALUE_MASK		(0xFF << PINCFG_VALUE_SHIFT)
5262306a36Sopenharmony_ci#define PINCFG_PACK(type, value)	(((value) << PINCFG_VALUE_SHIFT) | type)
5362306a36Sopenharmony_ci#define PINCFG_UNPACK_TYPE(cfg)		((cfg) & PINCFG_TYPE_MASK)
5462306a36Sopenharmony_ci#define PINCFG_UNPACK_VALUE(cfg)	(((cfg) & PINCFG_VALUE_MASK) >> \
5562306a36Sopenharmony_ci						PINCFG_VALUE_SHIFT)
5662306a36Sopenharmony_ci/*
5762306a36Sopenharmony_ci * Values for the pin CON register, choosing pin function.
5862306a36Sopenharmony_ci * The basic set (input and output) are same between: S3C24xx, S3C64xx, S5PV210,
5962306a36Sopenharmony_ci * Exynos ARMv7, Exynos ARMv8, Tesla FSD.
6062306a36Sopenharmony_ci */
6162306a36Sopenharmony_ci#define PIN_CON_FUNC_INPUT		0x0
6262306a36Sopenharmony_ci#define PIN_CON_FUNC_OUTPUT		0x1
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci/**
6562306a36Sopenharmony_ci * enum eint_type - possible external interrupt types.
6662306a36Sopenharmony_ci * @EINT_TYPE_NONE: bank does not support external interrupts
6762306a36Sopenharmony_ci * @EINT_TYPE_GPIO: bank supportes external gpio interrupts
6862306a36Sopenharmony_ci * @EINT_TYPE_WKUP: bank supportes external wakeup interrupts
6962306a36Sopenharmony_ci * @EINT_TYPE_WKUP_MUX: bank supports multiplexed external wakeup interrupts
7062306a36Sopenharmony_ci *
7162306a36Sopenharmony_ci * Samsung GPIO controller groups all the available pins into banks. The pins
7262306a36Sopenharmony_ci * in a pin bank can support external gpio interrupts or external wakeup
7362306a36Sopenharmony_ci * interrupts or no interrupts at all. From a software perspective, the only
7462306a36Sopenharmony_ci * difference between external gpio and external wakeup interrupts is that
7562306a36Sopenharmony_ci * the wakeup interrupts can additionally wakeup the system if it is in
7662306a36Sopenharmony_ci * suspended state.
7762306a36Sopenharmony_ci */
7862306a36Sopenharmony_cienum eint_type {
7962306a36Sopenharmony_ci	EINT_TYPE_NONE,
8062306a36Sopenharmony_ci	EINT_TYPE_GPIO,
8162306a36Sopenharmony_ci	EINT_TYPE_WKUP,
8262306a36Sopenharmony_ci	EINT_TYPE_WKUP_MUX,
8362306a36Sopenharmony_ci};
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ci/* maximum length of a pin in pin descriptor (example: "gpa0-0") */
8662306a36Sopenharmony_ci#define PIN_NAME_LENGTH	10
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ci#define PIN_GROUP(n, p, f)				\
8962306a36Sopenharmony_ci	{						\
9062306a36Sopenharmony_ci		.name		= n,			\
9162306a36Sopenharmony_ci		.pins		= p,			\
9262306a36Sopenharmony_ci		.num_pins	= ARRAY_SIZE(p),	\
9362306a36Sopenharmony_ci		.func		= f			\
9462306a36Sopenharmony_ci	}
9562306a36Sopenharmony_ci
9662306a36Sopenharmony_ci#define PMX_FUNC(n, g)					\
9762306a36Sopenharmony_ci	{						\
9862306a36Sopenharmony_ci		.name		= n,			\
9962306a36Sopenharmony_ci		.groups		= g,			\
10062306a36Sopenharmony_ci		.num_groups	= ARRAY_SIZE(g),	\
10162306a36Sopenharmony_ci	}
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_cistruct samsung_pinctrl_drv_data;
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ci/**
10662306a36Sopenharmony_ci * struct samsung_pin_bank_type: pin bank type description
10762306a36Sopenharmony_ci * @fld_width: widths of configuration bitfields (0 if unavailable)
10862306a36Sopenharmony_ci * @reg_offset: offsets of configuration registers (don't care of width is 0)
10962306a36Sopenharmony_ci */
11062306a36Sopenharmony_cistruct samsung_pin_bank_type {
11162306a36Sopenharmony_ci	u8 fld_width[PINCFG_TYPE_NUM];
11262306a36Sopenharmony_ci	u8 reg_offset[PINCFG_TYPE_NUM];
11362306a36Sopenharmony_ci};
11462306a36Sopenharmony_ci
11562306a36Sopenharmony_ci/**
11662306a36Sopenharmony_ci * struct samsung_pin_bank_data: represent a controller pin-bank (init data).
11762306a36Sopenharmony_ci * @type: type of the bank (register offsets and bitfield widths)
11862306a36Sopenharmony_ci * @pctl_offset: starting offset of the pin-bank registers.
11962306a36Sopenharmony_ci * @pctl_res_idx: index of base address for pin-bank registers.
12062306a36Sopenharmony_ci * @nr_pins: number of pins included in this bank.
12162306a36Sopenharmony_ci * @eint_func: function to set in CON register to configure pin as EINT.
12262306a36Sopenharmony_ci * @eint_type: type of the external interrupt supported by the bank.
12362306a36Sopenharmony_ci * @eint_mask: bit mask of pins which support EINT function.
12462306a36Sopenharmony_ci * @eint_offset: SoC-specific EINT register or interrupt offset of bank.
12562306a36Sopenharmony_ci * @name: name to be prefixed for each pin in this pin bank.
12662306a36Sopenharmony_ci */
12762306a36Sopenharmony_cistruct samsung_pin_bank_data {
12862306a36Sopenharmony_ci	const struct samsung_pin_bank_type *type;
12962306a36Sopenharmony_ci	u32		pctl_offset;
13062306a36Sopenharmony_ci	u8		pctl_res_idx;
13162306a36Sopenharmony_ci	u8		nr_pins;
13262306a36Sopenharmony_ci	u8		eint_func;
13362306a36Sopenharmony_ci	enum eint_type	eint_type;
13462306a36Sopenharmony_ci	u32		eint_mask;
13562306a36Sopenharmony_ci	u32		eint_offset;
13662306a36Sopenharmony_ci	const char	*name;
13762306a36Sopenharmony_ci};
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ci/**
14062306a36Sopenharmony_ci * struct samsung_pin_bank: represent a controller pin-bank.
14162306a36Sopenharmony_ci * @type: type of the bank (register offsets and bitfield widths)
14262306a36Sopenharmony_ci * @pctl_base: base address of the pin-bank registers
14362306a36Sopenharmony_ci * @pctl_offset: starting offset of the pin-bank registers.
14462306a36Sopenharmony_ci * @nr_pins: number of pins included in this bank.
14562306a36Sopenharmony_ci * @eint_base: base address of the pin-bank EINT registers.
14662306a36Sopenharmony_ci * @eint_func: function to set in CON register to configure pin as EINT.
14762306a36Sopenharmony_ci * @eint_type: type of the external interrupt supported by the bank.
14862306a36Sopenharmony_ci * @eint_mask: bit mask of pins which support EINT function.
14962306a36Sopenharmony_ci * @eint_offset: SoC-specific EINT register or interrupt offset of bank.
15062306a36Sopenharmony_ci * @name: name to be prefixed for each pin in this pin bank.
15162306a36Sopenharmony_ci * @pin_base: starting pin number of the bank.
15262306a36Sopenharmony_ci * @soc_priv: per-bank private data for SoC-specific code.
15362306a36Sopenharmony_ci * @of_node: OF node of the bank.
15462306a36Sopenharmony_ci * @drvdata: link to controller driver data
15562306a36Sopenharmony_ci * @irq_domain: IRQ domain of the bank.
15662306a36Sopenharmony_ci * @gpio_chip: GPIO chip of the bank.
15762306a36Sopenharmony_ci * @grange: linux gpio pin range supported by this bank.
15862306a36Sopenharmony_ci * @irq_chip: link to irq chip for external gpio and wakeup interrupts.
15962306a36Sopenharmony_ci * @slock: spinlock protecting bank registers
16062306a36Sopenharmony_ci * @pm_save: saved register values during suspend
16162306a36Sopenharmony_ci */
16262306a36Sopenharmony_cistruct samsung_pin_bank {
16362306a36Sopenharmony_ci	const struct samsung_pin_bank_type *type;
16462306a36Sopenharmony_ci	void __iomem	*pctl_base;
16562306a36Sopenharmony_ci	u32		pctl_offset;
16662306a36Sopenharmony_ci	u8		nr_pins;
16762306a36Sopenharmony_ci	void __iomem	*eint_base;
16862306a36Sopenharmony_ci	u8		eint_func;
16962306a36Sopenharmony_ci	enum eint_type	eint_type;
17062306a36Sopenharmony_ci	u32		eint_mask;
17162306a36Sopenharmony_ci	u32		eint_offset;
17262306a36Sopenharmony_ci	const char	*name;
17362306a36Sopenharmony_ci
17462306a36Sopenharmony_ci	u32		pin_base;
17562306a36Sopenharmony_ci	void		*soc_priv;
17662306a36Sopenharmony_ci	struct fwnode_handle *fwnode;
17762306a36Sopenharmony_ci	struct samsung_pinctrl_drv_data *drvdata;
17862306a36Sopenharmony_ci	struct irq_domain *irq_domain;
17962306a36Sopenharmony_ci	struct gpio_chip gpio_chip;
18062306a36Sopenharmony_ci	struct pinctrl_gpio_range grange;
18162306a36Sopenharmony_ci	struct exynos_irq_chip *irq_chip;
18262306a36Sopenharmony_ci	raw_spinlock_t slock;
18362306a36Sopenharmony_ci
18462306a36Sopenharmony_ci	u32 pm_save[PINCFG_TYPE_NUM + 1]; /* +1 to handle double CON registers*/
18562306a36Sopenharmony_ci};
18662306a36Sopenharmony_ci
18762306a36Sopenharmony_ci/**
18862306a36Sopenharmony_ci * struct samsung_retention_data: runtime pin-bank retention control data.
18962306a36Sopenharmony_ci * @regs: array of PMU registers to control pad retention.
19062306a36Sopenharmony_ci * @nr_regs: number of registers in @regs array.
19162306a36Sopenharmony_ci * @value: value to store to registers to turn off retention.
19262306a36Sopenharmony_ci * @refcnt: atomic counter if retention control affects more than one bank.
19362306a36Sopenharmony_ci * @priv: retention control code private data
19462306a36Sopenharmony_ci * @enable: platform specific callback to enter retention mode.
19562306a36Sopenharmony_ci * @disable: platform specific callback to exit retention mode.
19662306a36Sopenharmony_ci **/
19762306a36Sopenharmony_cistruct samsung_retention_ctrl {
19862306a36Sopenharmony_ci	const u32	*regs;
19962306a36Sopenharmony_ci	int		nr_regs;
20062306a36Sopenharmony_ci	u32		value;
20162306a36Sopenharmony_ci	atomic_t	*refcnt;
20262306a36Sopenharmony_ci	void		*priv;
20362306a36Sopenharmony_ci	void		(*enable)(struct samsung_pinctrl_drv_data *);
20462306a36Sopenharmony_ci	void		(*disable)(struct samsung_pinctrl_drv_data *);
20562306a36Sopenharmony_ci};
20662306a36Sopenharmony_ci
20762306a36Sopenharmony_ci/**
20862306a36Sopenharmony_ci * struct samsung_retention_data: represent a pin-bank retention control data.
20962306a36Sopenharmony_ci * @regs: array of PMU registers to control pad retention.
21062306a36Sopenharmony_ci * @nr_regs: number of registers in @regs array.
21162306a36Sopenharmony_ci * @value: value to store to registers to turn off retention.
21262306a36Sopenharmony_ci * @refcnt: atomic counter if retention control affects more than one bank.
21362306a36Sopenharmony_ci * @init: platform specific callback to initialize retention control.
21462306a36Sopenharmony_ci **/
21562306a36Sopenharmony_cistruct samsung_retention_data {
21662306a36Sopenharmony_ci	const u32	*regs;
21762306a36Sopenharmony_ci	int		nr_regs;
21862306a36Sopenharmony_ci	u32		value;
21962306a36Sopenharmony_ci	atomic_t	*refcnt;
22062306a36Sopenharmony_ci	struct samsung_retention_ctrl *(*init)(struct samsung_pinctrl_drv_data *,
22162306a36Sopenharmony_ci					const struct samsung_retention_data *);
22262306a36Sopenharmony_ci};
22362306a36Sopenharmony_ci
22462306a36Sopenharmony_ci/**
22562306a36Sopenharmony_ci * struct samsung_pin_ctrl: represent a pin controller.
22662306a36Sopenharmony_ci * @pin_banks: list of pin banks included in this controller.
22762306a36Sopenharmony_ci * @nr_banks: number of pin banks.
22862306a36Sopenharmony_ci * @nr_ext_resources: number of the extra base address for pin banks.
22962306a36Sopenharmony_ci * @retention_data: configuration data for retention control.
23062306a36Sopenharmony_ci * @eint_gpio_init: platform specific callback to setup the external gpio
23162306a36Sopenharmony_ci *	interrupts for the controller.
23262306a36Sopenharmony_ci * @eint_wkup_init: platform specific callback to setup the external wakeup
23362306a36Sopenharmony_ci *	interrupts for the controller.
23462306a36Sopenharmony_ci * @suspend: platform specific suspend callback, executed during pin controller
23562306a36Sopenharmony_ci *	device suspend, see samsung_pinctrl_suspend()
23662306a36Sopenharmony_ci * @resume: platform specific resume callback, executed during pin controller
23762306a36Sopenharmony_ci *	device suspend, see samsung_pinctrl_resume()
23862306a36Sopenharmony_ci *
23962306a36Sopenharmony_ci * External wakeup interrupts must define at least eint_wkup_init,
24062306a36Sopenharmony_ci * retention_data and suspend in order for proper suspend/resume to work.
24162306a36Sopenharmony_ci */
24262306a36Sopenharmony_cistruct samsung_pin_ctrl {
24362306a36Sopenharmony_ci	const struct samsung_pin_bank_data *pin_banks;
24462306a36Sopenharmony_ci	unsigned int	nr_banks;
24562306a36Sopenharmony_ci	unsigned int	nr_ext_resources;
24662306a36Sopenharmony_ci	const struct samsung_retention_data *retention_data;
24762306a36Sopenharmony_ci
24862306a36Sopenharmony_ci	int		(*eint_gpio_init)(struct samsung_pinctrl_drv_data *);
24962306a36Sopenharmony_ci	int		(*eint_wkup_init)(struct samsung_pinctrl_drv_data *);
25062306a36Sopenharmony_ci	void		(*suspend)(struct samsung_pinctrl_drv_data *);
25162306a36Sopenharmony_ci	void		(*resume)(struct samsung_pinctrl_drv_data *);
25262306a36Sopenharmony_ci};
25362306a36Sopenharmony_ci
25462306a36Sopenharmony_ci/**
25562306a36Sopenharmony_ci * struct samsung_pinctrl_drv_data: wrapper for holding driver data together.
25662306a36Sopenharmony_ci * @node: global list node
25762306a36Sopenharmony_ci * @virt_base: register base address of the controller; this will be equal
25862306a36Sopenharmony_ci *             to each bank samsung_pin_bank->pctl_base and used on legacy
25962306a36Sopenharmony_ci *             platforms (like S3C24XX or S3C64XX) which has to access the base
26062306a36Sopenharmony_ci *             through samsung_pinctrl_drv_data, not samsung_pin_bank).
26162306a36Sopenharmony_ci * @dev: device instance representing the controller.
26262306a36Sopenharmony_ci * @irq: interrpt number used by the controller to notify gpio interrupts.
26362306a36Sopenharmony_ci * @ctrl: pin controller instance managed by the driver.
26462306a36Sopenharmony_ci * @pctl: pin controller descriptor registered with the pinctrl subsystem.
26562306a36Sopenharmony_ci * @pctl_dev: cookie representing pinctrl device instance.
26662306a36Sopenharmony_ci * @pin_groups: list of pin groups available to the driver.
26762306a36Sopenharmony_ci * @nr_groups: number of such pin groups.
26862306a36Sopenharmony_ci * @pmx_functions: list of pin functions available to the driver.
26962306a36Sopenharmony_ci * @nr_function: number of such pin functions.
27062306a36Sopenharmony_ci * @pin_base: starting system wide pin number.
27162306a36Sopenharmony_ci * @nr_pins: number of pins supported by the controller.
27262306a36Sopenharmony_ci * @retention_ctrl: retention control runtime data.
27362306a36Sopenharmony_ci * @suspend: platform specific suspend callback, executed during pin controller
27462306a36Sopenharmony_ci *	device suspend, see samsung_pinctrl_suspend()
27562306a36Sopenharmony_ci * @resume: platform specific resume callback, executed during pin controller
27662306a36Sopenharmony_ci *	device suspend, see samsung_pinctrl_resume()
27762306a36Sopenharmony_ci */
27862306a36Sopenharmony_cistruct samsung_pinctrl_drv_data {
27962306a36Sopenharmony_ci	struct list_head		node;
28062306a36Sopenharmony_ci	void __iomem			*virt_base;
28162306a36Sopenharmony_ci	struct device			*dev;
28262306a36Sopenharmony_ci	int				irq;
28362306a36Sopenharmony_ci
28462306a36Sopenharmony_ci	struct pinctrl_desc		pctl;
28562306a36Sopenharmony_ci	struct pinctrl_dev		*pctl_dev;
28662306a36Sopenharmony_ci
28762306a36Sopenharmony_ci	const struct samsung_pin_group	*pin_groups;
28862306a36Sopenharmony_ci	unsigned int			nr_groups;
28962306a36Sopenharmony_ci	const struct samsung_pmx_func	*pmx_functions;
29062306a36Sopenharmony_ci	unsigned int			nr_functions;
29162306a36Sopenharmony_ci
29262306a36Sopenharmony_ci	struct samsung_pin_bank		*pin_banks;
29362306a36Sopenharmony_ci	unsigned int			nr_banks;
29462306a36Sopenharmony_ci	unsigned int			pin_base;
29562306a36Sopenharmony_ci	unsigned int			nr_pins;
29662306a36Sopenharmony_ci
29762306a36Sopenharmony_ci	struct samsung_retention_ctrl	*retention_ctrl;
29862306a36Sopenharmony_ci
29962306a36Sopenharmony_ci	void (*suspend)(struct samsung_pinctrl_drv_data *);
30062306a36Sopenharmony_ci	void (*resume)(struct samsung_pinctrl_drv_data *);
30162306a36Sopenharmony_ci};
30262306a36Sopenharmony_ci
30362306a36Sopenharmony_ci/**
30462306a36Sopenharmony_ci * struct samsung_pinctrl_of_match_data: OF match device specific configuration data.
30562306a36Sopenharmony_ci * @ctrl: array of pin controller data.
30662306a36Sopenharmony_ci * @num_ctrl: size of array @ctrl.
30762306a36Sopenharmony_ci */
30862306a36Sopenharmony_cistruct samsung_pinctrl_of_match_data {
30962306a36Sopenharmony_ci	const struct samsung_pin_ctrl	*ctrl;
31062306a36Sopenharmony_ci	unsigned int			num_ctrl;
31162306a36Sopenharmony_ci};
31262306a36Sopenharmony_ci
31362306a36Sopenharmony_ci/**
31462306a36Sopenharmony_ci * struct samsung_pin_group: represent group of pins of a pinmux function.
31562306a36Sopenharmony_ci * @name: name of the pin group, used to lookup the group.
31662306a36Sopenharmony_ci * @pins: the pins included in this group.
31762306a36Sopenharmony_ci * @num_pins: number of pins included in this group.
31862306a36Sopenharmony_ci * @func: the function number to be programmed when selected.
31962306a36Sopenharmony_ci */
32062306a36Sopenharmony_cistruct samsung_pin_group {
32162306a36Sopenharmony_ci	const char		*name;
32262306a36Sopenharmony_ci	const unsigned int	*pins;
32362306a36Sopenharmony_ci	u8			num_pins;
32462306a36Sopenharmony_ci	u8			func;
32562306a36Sopenharmony_ci};
32662306a36Sopenharmony_ci
32762306a36Sopenharmony_ci/**
32862306a36Sopenharmony_ci * struct samsung_pmx_func: represent a pin function.
32962306a36Sopenharmony_ci * @name: name of the pin function, used to lookup the function.
33062306a36Sopenharmony_ci * @groups: one or more names of pin groups that provide this function.
33162306a36Sopenharmony_ci * @num_groups: number of groups included in @groups.
33262306a36Sopenharmony_ci */
33362306a36Sopenharmony_cistruct samsung_pmx_func {
33462306a36Sopenharmony_ci	const char		*name;
33562306a36Sopenharmony_ci	const char		**groups;
33662306a36Sopenharmony_ci	u8			num_groups;
33762306a36Sopenharmony_ci	u32			val;
33862306a36Sopenharmony_ci};
33962306a36Sopenharmony_ci
34062306a36Sopenharmony_ci/* list of all exported SoC specific data */
34162306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynos3250_of_data;
34262306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynos4210_of_data;
34362306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynos4x12_of_data;
34462306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynos5250_of_data;
34562306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynos5260_of_data;
34662306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynos5410_of_data;
34762306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynos5420_of_data;
34862306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynos5433_of_data;
34962306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynos7_of_data;
35062306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynos7885_of_data;
35162306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynos850_of_data;
35262306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data exynosautov9_of_data;
35362306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data fsd_of_data;
35462306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data s3c64xx_of_data;
35562306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data s3c2412_of_data;
35662306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data s3c2416_of_data;
35762306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data s3c2440_of_data;
35862306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data s3c2450_of_data;
35962306a36Sopenharmony_ciextern const struct samsung_pinctrl_of_match_data s5pv210_of_data;
36062306a36Sopenharmony_ci
36162306a36Sopenharmony_ci#endif /* __PINCTRL_SAMSUNG_H */
362