Lines Matching +full:pinctrl +full:- +full:pin +full:- +full:array

1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * pin-controller/pin-mux/pin-config/gpio-driver for Samsung's SoC's.
16 #include <linux/pinctrl/pinctrl.h>
17 #include <linux/pinctrl/pinmux.h>
18 #include <linux/pinctrl/pinconf.h>
19 #include <linux/pinctrl/consumer.h>
20 #include <linux/pinctrl/machine.h>
25 * enum pincfg_type - possible pin configuration types supported.
27 * @PINCFG_TYPE_DAT: Pin value configuration.
30 * @PINCFG_TYPE_CON_PDN: Pin function in power down mode.
45 * pin configuration (pull up/down and drive strength) type and its value are
46 * packed together into a 16-bits. The upper 8-bits represent the configuration
47 * type and the lower 8-bits hold the value of the configuration type.
57 * Values for the pin CON register, choosing pin function.
64 /* Values for the pin PUD register */
70 * enum pud_index - Possible index values to access the pud_val array.
84 * enum eint_type - possible external interrupt types.
91 * in a pin bank can support external gpio interrupts or external wakeup
104 /* maximum length of a pin in pin descriptor (example: "gpa0-0") */
125 * struct samsung_pin_bank_type: pin bank type description
135 * struct samsung_pin_bank_data: represent a controller pin-bank (init data).
137 * @pctl_offset: starting offset of the pin-bank registers.
138 * @pctl_res_idx: index of base address for pin-bank registers.
140 * @eint_func: function to set in CON register to configure pin as EINT.
143 * @eint_offset: SoC-specific EINT register or interrupt offset of bank.
144 * @eint_con_offset: ExynosAuto SoC-specific EINT control register offset of bank.
145 * @eint_mask_offset: ExynosAuto SoC-specific EINT mask register offset of bank.
146 * @eint_pend_offset: ExynosAuto SoC-specific EINT pend register offset of bank.
147 * @name: name to be prefixed for each pin in this pin bank.
165 * struct samsung_pin_bank: represent a controller pin-bank.
167 * @pctl_base: base address of the pin-bank registers
168 * @pctl_offset: starting offset of the pin-bank registers.
170 * @eint_base: base address of the pin-bank EINT registers.
171 * @eint_func: function to set in CON register to configure pin as EINT.
174 * @eint_offset: SoC-specific EINT register or interrupt offset of bank.
175 * @eint_con_offset: ExynosAuto SoC-specific EINT register or interrupt offset of bank.
176 * @eint_mask_offset: ExynosAuto SoC-specific EINT mask register offset of bank.
177 * @eint_pend_offset: ExynosAuto SoC-specific EINT pend register offset of bank.
178 * @name: name to be prefixed for each pin in this pin bank.
179 * @id: id of the bank, propagated to the pin range.
180 * @pin_base: starting pin number of the bank.
181 * @soc_priv: per-bank private data for SoC-specific code.
186 * @grange: linux gpio pin range supported by this bank.
221 * struct samsung_retention_data: runtime pin-bank retention control data.
222 * @regs: array of PMU registers to control pad retention.
223 * @nr_regs: number of registers in @regs array.
241 * struct samsung_retention_data: represent a pin-bank retention control data.
242 * @regs: array of PMU registers to control pad retention.
243 * @nr_regs: number of registers in @regs array.
258 * struct samsung_pin_ctrl: represent a pin controller.
259 * @pin_banks: list of pin banks included in this controller.
260 * @nr_banks: number of pin banks.
261 * @nr_ext_resources: number of the extra base address for pin banks.
267 * @suspend: platform specific suspend callback, executed during pin controller
269 * @resume: platform specific resume callback, executed during pin controller
292 * to each bank samsung_pin_bank->pctl_base and used on legacy
298 * @ctrl: pin controller instance managed by the driver.
299 * @pctl: pin controller descriptor registered with the pinctrl subsystem.
300 * @pctl_dev: cookie representing pinctrl device instance.
301 * @pin_groups: list of pin groups available to the driver.
302 * @nr_groups: number of such pin groups.
303 * @pmx_functions: list of pin functions available to the driver.
304 * @nr_function: number of such pin functions.
307 * @suspend: platform specific suspend callback, executed during pin controller
309 * @resume: platform specific resume callback, executed during pin controller
340 * @ctrl: array of pin controller data.
341 * @num_ctrl: size of array @ctrl.
350 * @name: name of the pin group, used to lookup the group.
363 * struct samsung_pmx_func: represent a pin function.
364 * @name: name of the pin function, used to lookup the function.
365 * @groups: one or more names of pin groups that provide this function.