2018-05-07 05:58:06 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2015-11-10 09:06:16 +08:00
|
|
|
|
pinctrl: add pin control uclass support
This creates a new framework for handling of pin control devices,
i.e. devices that control different aspects of package pins.
This uclass handles pinmuxing and pin configuration; pinmuxing
controls switching among silicon blocks that share certain physical
pins, pin configuration handles electronic properties such as pin-
biasing, load capacitance etc.
This framework can support the same device tree bindings, but if you
do not need full interface support, you can disable some features to
reduce memory foot print. Typically around 1.5KB is necessary to
include full-featured uclass support on ARM board (CONFIG_PINCTRL +
CONFIG_PINCTRL_FULL + CONFIG_PINCTRL_GENERIC + CONFIG_PINCTRL_PINMUX),
for example.
We are often limited on code size for SPL. Besides, we still have
many boards that do not support device tree configuration. The full
pinctrl, which requires OF_CONTROL, does not make sense for those
boards. So, this framework also has a Do-It-Yourself (let's say
simple pinctrl) interface. With CONFIG_PINCTRL_FULL disabled, the
uclass itself provides no systematic mechanism for identifying the
peripheral device, applying pinctrl settings, etc. They must be
done in each low-level driver. In return, you can save much memory
footprint and it might be useful especially for SPL.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Simon Glass <sjg@chromium.org>
2015-08-27 11:44:29 +08:00
|
|
|
obj-y += pinctrl-uclass.o
|
|
|
|
obj-$(CONFIG_$(SPL_)PINCTRL_GENERIC) += pinctrl-generic.o
|
2015-08-27 11:44:30 +08:00
|
|
|
|
2021-11-03 01:21:57 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_APPLE) += pinctrl-apple.o
|
2017-03-23 12:44:37 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_AT91) += pinctrl-at91.o
|
2016-07-20 17:16:27 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_AT91PIO4) += pinctrl-at91-pio4.o
|
pinctrl: imx: Introduce pinctrl driver for i.MX6
Introduce pinctrl for i.MX6
1. pinctrl-imx.c is for common usage. It's used by i.MX6/7.
2. Add PINCTRL_IMX PINCTRL_IMX6 Kconfig entry.
3. To the pinctrl_ops implementation, only set_state is implemented.
To i.MX6/7, the pinctrl dts entry is as following:
&iomuxc {
pinctrl-names = "default";
pinctrl_csi1: csi1grp {
fsl,pins = <
MX6UL_PAD_CSI_MCLK__CSI_MCLK 0x1b088
MX6UL_PAD_CSI_PIXCLK__CSI_PIXCLK 0x1b088
MX6UL_PAD_CSI_VSYNC__CSI_VSYNC 0x1b088
>;
};
[.....]
};
there is no property named function or groups. So pinctrl_generic_set_state
can not be used here.
5. This driver is a simple implementation for i.mx iomux controller,
only parse the fsl,pins property and write value to registers.
6. With DEBUG enabled, we can see log when "i2c bus 0":
"
set_state_simple op missing
imx_pinctrl_set_state: i2c1grp
mux_reg 0x14c, conf_reg 0x3bc, input_reg 0x5d8, mux_mode 0x0, input_val 0x1, config_val 0x4000007f
write mux: offset 0x14c val 0x10
select_input: offset 0x5d8 val 0x1
write config: offset 0x3bc val 0x7f
mux_reg 0x148, conf_reg 0x3b8, input_reg 0x5d4, mux_mode 0x0, input_val 0x1, config_val 0x4000007f
write mux: offset 0x148 val 0x10
select_input: offset 0x5d4 val 0x1
write config: offset 0x3b8 val 0x7f
"
this means imx6 pinctrl driver works as expected.
Signed-off-by: Peng Fan <van.freenix@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2016-02-03 10:06:07 +08:00
|
|
|
obj-y += nxp/
|
2019-01-02 21:00:55 +08:00
|
|
|
obj-$(CONFIG_$(SPL_)PINCTRL_ROCKCHIP) += rockchip/
|
2017-04-18 03:00:27 +08:00
|
|
|
obj-$(CONFIG_ARCH_ASPEED) += aspeed/
|
2016-03-16 16:59:55 +08:00
|
|
|
obj-$(CONFIG_ARCH_ATH79) += ath79/
|
2019-12-07 12:42:53 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_INTEL) += intel/
|
2019-09-25 17:45:26 +08:00
|
|
|
obj-$(CONFIG_ARCH_MTMIPS) += mtmips/
|
2022-05-17 16:30:32 +08:00
|
|
|
obj-$(CONFIG_ARCH_NPCM) += nuvoton/
|
2023-11-14 20:55:40 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_QCOM) += qcom/
|
2024-02-28 00:05:55 +08:00
|
|
|
obj-$(CONFIG_ARCH_RENESAS) += renesas/
|
2023-05-13 09:36:52 +08:00
|
|
|
obj-$(CONFIG_ARCH_RZN1) += renesas/
|
2015-08-27 11:44:30 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_SANDBOX) += pinctrl-sandbox.o
|
2021-08-13 09:09:43 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_SUNXI) += sunxi/
|
2023-11-26 23:54:03 +08:00
|
|
|
obj-$(CONFIG_$(SPL_)PINCTRL_TEGRA) += tegra/
|
2016-03-04 14:56:31 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_UNIPHIER) += uniphier/
|
2017-04-19 22:46:37 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_PIC32) += pinctrl_pic32.o
|
2016-04-24 00:48:08 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_EXYNOS) += exynos/
|
2022-03-01 18:35:39 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_K210) += pinctrl-k210.o
|
2016-08-16 17:49:49 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_MESON) += meson/
|
2018-11-15 10:07:58 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_MTK) += mediatek/
|
2018-12-08 16:59:01 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_MSCC) += mscc/
|
2017-05-09 19:35:44 +08:00
|
|
|
obj-$(CONFIG_ARCH_MVEBU) += mvebu/
|
2020-07-11 01:07:30 +08:00
|
|
|
obj-$(CONFIG_ARCH_NEXELL) += nexell/
|
2020-02-03 17:23:53 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_QE) += pinctrl-qe-io.o
|
2017-03-22 18:26:44 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_SINGLE) += pinctrl-single.o
|
2017-02-21 20:37:10 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_STI) += pinctrl-sti.o
|
2017-02-13 02:25:49 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_STM32) += pinctrl_stm32.o
|
2019-03-11 18:13:15 +08:00
|
|
|
obj-$(CONFIG_$(SPL_)PINCTRL_STMFX) += pinctrl-stmfx.o
|
2018-01-24 01:05:21 +08:00
|
|
|
obj-y += broadcom/
|
2022-02-23 22:23:05 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_ZYNQMP) += pinctrl-zynqmp.o
|
2023-03-29 11:42:15 +08:00
|
|
|
obj-$(CONFIG_PINCTRL_STARFIVE) += starfive/
|