mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 23:14:31 +08:00
5e2e7383b5
Core changes: - Add PINCTRL_PINGROUP() helper macro (and use it in the AMD driver). New drivers: - Intel Meteor Lake support. - Reneasas RZ/V2M and r8a779g0 (R-Car V4H). - AXP209 variants AXP221, AXP223 and AXP809. - Qualcomm MSM8909, PM8226, PMP8074 and SM6375. - Allwinner D1. Improvements: - Proper pin multiplexing in the AMD driver. - Mediatek MT8192 can use generic drive strength and pin bias, then fixes on top plus some I2C pin group fixes. - Have the Allwinner Sunplus SP7021 use the generic DT schema and make interrupts optional. - Handle Qualcomm SC7280 ADSP. - Handle Qualcomm MSM8916 CAMSS GP clock muxing. - High impedance bias on ZynqMP. - Serialize StarFive access to MMIO. - Immutable gpiochip for BCM2835, Ingenic, Qualcomm SPMI GPIO. -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEElDRnuGcz/wPCXQWMQRCzN7AZXXMFAmLy1PoACgkQQRCzN7AZ XXOavA/+O9lIcZqt/I3ZzA4+paEJsXM/win6NKGUHlAE76D5qOvMEXPYCszccGVl 0ZV9s3A3xmlb0AQZONeiK5M6FTghnIHiPMI5Ewzw358hZQg68Mgaba5+/yTqc9ZT L5zs6whboB1Mlr05L3g5e5ImM1FdFklGHimI6G/evE5r1ZXAAdoyXbSzWgtgLwp9 Gn3rstfqxwwPa9QWIjCXXIeZ/EFnX6BRFT5Pu47dRz/67UWB3xzJjRkZXBf8Nag9 /H/TpmkXSFNaP8HK2kN8m5eNtfWLYM1AmjFPNICWtKLhH12ArD3j+MBYLcJoDnAI JZryrMSFi2P14Ov42zYeJaSjReTt/QBcRAlWBhSiuotJHl6wrFXzM6wA6JirfvsJ XQsNm7rKfkmfJ84VjqmCg6QF+39fwKw9MYY9IMXsey7864pBWSyl2xYXUjwXFLua EWh+6I1CX4db/S6I/uqvluDenT0NKAPZ3rwK5Al1m1DMI47kz0qoW5ZxAW10xeYB BNGN7IyRvYZhfA/DHcxMB5XgateIKTJqfcYnmHD29Ep4skEetOSac0wVytd3S+Hw v1zklpcGDLHNiCBXmTYniTlfgBkWJUmVCLA4K6TjSNUKfeoR+33wlpnPHveq8ckn PJLf79A+5Br3IsLnr6AzDrmtCd0sV46Gy8Vi5I1TD1i/LUUhnL0= =enmk -----END PGP SIGNATURE----- Merge tag 'pinctrl-v6.0-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl Pull pin control updates from Linus Walleij: "Outside the pinctrl driver and DT bindings we hit some Arm DT files, patched by the maintainers. Other than that it is business as usual. Core changes: - Add PINCTRL_PINGROUP() helper macro (and use it in the AMD driver). New drivers: - Intel Meteor Lake support. - Reneasas RZ/V2M and r8a779g0 (R-Car V4H). - AXP209 variants AXP221, AXP223 and AXP809. - Qualcomm MSM8909, PM8226, PMP8074 and SM6375. - Allwinner D1. Improvements: - Proper pin multiplexing in the AMD driver. - Mediatek MT8192 can use generic drive strength and pin bias, then fixes on top plus some I2C pin group fixes. - Have the Allwinner Sunplus SP7021 use the generic DT schema and make interrupts optional. - Handle Qualcomm SC7280 ADSP. - Handle Qualcomm MSM8916 CAMSS GP clock muxing. - High impedance bias on ZynqMP. - Serialize StarFive access to MMIO. - Immutable gpiochip for BCM2835, Ingenic, Qualcomm SPMI GPIO" * tag 'pinctrl-v6.0-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: (117 commits) dt-bindings: pinctrl: qcom,pmic-gpio: add PM8226 constraints pinctrl: qcom: Make PINCTRL_SM8450 depend on PINCTRL_MSM pinctrl: qcom: sm8250: Fix PDC map pinctrl: amd: Fix an unused variable dt-bindings: pinctrl: mt8186: Add and use drive-strength-microamp dt-bindings: pinctrl: mt8186: Add gpio-line-names property ARM: dts: imxrt1170-pinfunc: Add pinctrl binding header pinctrl: amd: Use unicode for debugfs output pinctrl: amd: Fix newline declaration in debugfs output pinctrl: at91: Fix typo 'the the' in comment dt-bindings: pinctrl: st,stm32: Correct 'resets' property name pinctrl: mvebu: Missing a blank line after declarations. pinctrl: qcom: Add SM6375 TLMM driver dt-bindings: pinctrl: Add DT schema for SM6375 TLMM dt-bindings: pinctrl: mt8195: Use drive-strength-microamp in examples Revert "pinctrl: qcom: spmi-gpio: make the irqchip immutable" pinctrl: imx93: Add MODULE_DEVICE_TABLE() pinctrl: sunxi: Add driver for Allwinner D1 pinctrl: sunxi: Make some layout parameters dynamic pinctrl: sunxi: Refactor register/offset calculation ...
275 lines
9.0 KiB
C
275 lines
9.0 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright 2021 NXP
|
|
*/
|
|
|
|
#include <linux/err.h>
|
|
#include <linux/init.h>
|
|
#include <linux/io.h>
|
|
#include <linux/module.h>
|
|
#include <linux/of.h>
|
|
#include <linux/of_device.h>
|
|
#include <linux/pinctrl/pinctrl.h>
|
|
|
|
#include "pinctrl-imx.h"
|
|
|
|
enum imx93_pads {
|
|
IMX93_IOMUXC_DAP_TDI = 0,
|
|
IMX93_IOMUXC_DAP_TMS_SWDIO = 1,
|
|
IMX93_IOMUXC_DAP_TCLK_SWCLK = 2,
|
|
IMX93_IOMUXC_DAP_TDO_TRACESWO = 3,
|
|
IMX93_IOMUXC_GPIO_IO00 = 4,
|
|
IMX93_IOMUXC_GPIO_IO01 = 5,
|
|
IMX93_IOMUXC_GPIO_IO02 = 6,
|
|
IMX93_IOMUXC_GPIO_IO03 = 7,
|
|
IMX93_IOMUXC_GPIO_IO04 = 8,
|
|
IMX93_IOMUXC_GPIO_IO05 = 9,
|
|
IMX93_IOMUXC_GPIO_IO06 = 10,
|
|
IMX93_IOMUXC_GPIO_IO07 = 11,
|
|
IMX93_IOMUXC_GPIO_IO08 = 12,
|
|
IMX93_IOMUXC_GPIO_IO09 = 13,
|
|
IMX93_IOMUXC_GPIO_IO10 = 14,
|
|
IMX93_IOMUXC_GPIO_IO11 = 15,
|
|
IMX93_IOMUXC_GPIO_IO12 = 16,
|
|
IMX93_IOMUXC_GPIO_IO13 = 17,
|
|
IMX93_IOMUXC_GPIO_IO14 = 18,
|
|
IMX93_IOMUXC_GPIO_IO15 = 19,
|
|
IMX93_IOMUXC_GPIO_IO16 = 20,
|
|
IMX93_IOMUXC_GPIO_IO17 = 21,
|
|
IMX93_IOMUXC_GPIO_IO18 = 22,
|
|
IMX93_IOMUXC_GPIO_IO19 = 23,
|
|
IMX93_IOMUXC_GPIO_IO20 = 24,
|
|
IMX93_IOMUXC_GPIO_IO21 = 25,
|
|
IMX93_IOMUXC_GPIO_IO22 = 26,
|
|
IMX93_IOMUXC_GPIO_IO23 = 27,
|
|
IMX93_IOMUXC_GPIO_IO24 = 28,
|
|
IMX93_IOMUXC_GPIO_IO25 = 29,
|
|
IMX93_IOMUXC_GPIO_IO26 = 30,
|
|
IMX93_IOMUXC_GPIO_IO27 = 31,
|
|
IMX93_IOMUXC_GPIO_IO28 = 32,
|
|
IMX93_IOMUXC_GPIO_IO29 = 33,
|
|
IMX93_IOMUXC_CCM_CLKO1 = 34,
|
|
IMX93_IOMUXC_CCM_CLKO2 = 35,
|
|
IMX93_IOMUXC_CCM_CLKO3 = 36,
|
|
IMX93_IOMUXC_CCM_CLKO4 = 37,
|
|
IMX93_IOMUXC_ENET1_MDC = 38,
|
|
IMX93_IOMUXC_ENET1_MDIO = 39,
|
|
IMX93_IOMUXC_ENET1_TD3 = 40,
|
|
IMX93_IOMUXC_ENET1_TD2 = 41,
|
|
IMX93_IOMUXC_ENET1_TD1 = 42,
|
|
IMX93_IOMUXC_ENET1_TD0 = 43,
|
|
IMX93_IOMUXC_ENET1_TX_CTL = 44,
|
|
IMX93_IOMUXC_ENET1_TXC = 45,
|
|
IMX93_IOMUXC_ENET1_RX_CTL = 46,
|
|
IMX93_IOMUXC_ENET1_RXC = 47,
|
|
IMX93_IOMUXC_ENET1_RD0 = 48,
|
|
IMX93_IOMUXC_ENET1_RD1 = 49,
|
|
IMX93_IOMUXC_ENET1_RD2 = 50,
|
|
IMX93_IOMUXC_ENET1_RD3 = 51,
|
|
IMX93_IOMUXC_ENET2_MDC = 52,
|
|
IMX93_IOMUXC_ENET2_MDIO = 53,
|
|
IMX93_IOMUXC_ENET2_TD3 = 54,
|
|
IMX93_IOMUXC_ENET2_TD2 = 55,
|
|
IMX93_IOMUXC_ENET2_TD1 = 56,
|
|
IMX93_IOMUXC_ENET2_TD0 = 57,
|
|
IMX93_IOMUXC_ENET2_TX_CTL = 58,
|
|
IMX93_IOMUXC_ENET2_TXC = 59,
|
|
IMX93_IOMUXC_ENET2_RX_CTL = 60,
|
|
IMX93_IOMUXC_ENET2_RXC = 61,
|
|
IMX93_IOMUXC_ENET2_RD0 = 62,
|
|
IMX93_IOMUXC_ENET2_RD1 = 63,
|
|
IMX93_IOMUXC_ENET2_RD2 = 64,
|
|
IMX93_IOMUXC_ENET2_RD3 = 65,
|
|
IMX93_IOMUXC_SD1_CLK = 66,
|
|
IMX93_IOMUXC_SD1_CMD = 67,
|
|
IMX93_IOMUXC_SD1_DATA0 = 68,
|
|
IMX93_IOMUXC_SD1_DATA1 = 69,
|
|
IMX93_IOMUXC_SD1_DATA2 = 70,
|
|
IMX93_IOMUXC_SD1_DATA3 = 71,
|
|
IMX93_IOMUXC_SD1_DATA4 = 72,
|
|
IMX93_IOMUXC_SD1_DATA5 = 73,
|
|
IMX93_IOMUXC_SD1_DATA6 = 74,
|
|
IMX93_IOMUXC_SD1_DATA7 = 75,
|
|
IMX93_IOMUXC_SD1_STROBE = 76,
|
|
IMX93_IOMUXC_SD2_VSELECT = 77,
|
|
IMX93_IOMUXC_SD3_CLK = 78,
|
|
IMX93_IOMUXC_SD3_CMD = 79,
|
|
IMX93_IOMUXC_SD3_DATA0 = 80,
|
|
IMX93_IOMUXC_SD3_DATA1 = 81,
|
|
IMX93_IOMUXC_SD3_DATA2 = 82,
|
|
IMX93_IOMUXC_SD3_DATA3 = 83,
|
|
IMX93_IOMUXC_SD2_CD_B = 84,
|
|
IMX93_IOMUXC_SD2_CLK = 85,
|
|
IMX93_IOMUXC_SD2_CMD = 86,
|
|
IMX93_IOMUXC_SD2_DATA0 = 87,
|
|
IMX93_IOMUXC_SD2_DATA1 = 88,
|
|
IMX93_IOMUXC_SD2_DATA2 = 89,
|
|
IMX93_IOMUXC_SD2_DATA3 = 90,
|
|
IMX93_IOMUXC_SD2_RESET_B = 91,
|
|
IMX93_IOMUXC_I2C1_SCL = 92,
|
|
IMX93_IOMUXC_I2C1_SDA = 93,
|
|
IMX93_IOMUXC_I2C2_SCL = 94,
|
|
IMX93_IOMUXC_I2C2_SDA = 95,
|
|
IMX93_IOMUXC_UART1_RXD = 96,
|
|
IMX93_IOMUXC_UART1_TXD = 97,
|
|
IMX93_IOMUXC_UART2_RXD = 98,
|
|
IMX93_IOMUXC_UART2_TXD = 99,
|
|
IMX93_IOMUXC_PDM_CLK = 100,
|
|
IMX93_IOMUXC_PDM_BIT_STREAM0 = 101,
|
|
IMX93_IOMUXC_PDM_BIT_STREAM1 = 102,
|
|
IMX93_IOMUXC_SAI1_TXFS = 103,
|
|
IMX93_IOMUXC_SAI1_TXC = 104,
|
|
IMX93_IOMUXC_SAI1_TXD0 = 105,
|
|
IMX93_IOMUXC_SAI1_RXD0 = 106,
|
|
IMX93_IOMUXC_WDOG_ANY = 107,
|
|
};
|
|
|
|
/* Pad names for the pinmux subsystem */
|
|
static const struct pinctrl_pin_desc imx93_pinctrl_pads[] = {
|
|
IMX_PINCTRL_PIN(IMX93_IOMUXC_DAP_TDI),
|
|
IMX_PINCTRL_PIN(IMX93_IOMUXC_DAP_TMS_SWDIO),
|
|
IMX_PINCTRL_PIN(IMX93_IOMUXC_DAP_TCLK_SWCLK),
|
|
IMX_PINCTRL_PIN(IMX93_IOMUXC_DAP_TDO_TRACESWO),
|
|
IMX_PINCTRL_PIN(IMX93_IOMUXC_GPIO_IO00),
|
|
IMX_PINCTRL_PIN(IMX93_IOMUXC_GPIO_IO01),
|
|
IMX_PINCTRL_PIN(IMX93_IOMUXC_GPIO_IO02),
|
|
IMX_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IOMUXC_SAI1_RXD0),
|
|
IMX_PINCTRL_PIN(IMX93_IOMUXC_WDOG_ANY),
|
|
};
|
|
|
|
static const struct imx_pinctrl_soc_info imx93_pinctrl_info = {
|
|
.pins = imx93_pinctrl_pads,
|
|
.npins = ARRAY_SIZE(imx93_pinctrl_pads),
|
|
.flags = ZERO_OFFSET_VALID,
|
|
.gpr_compatible = "fsl,imx93-iomuxc-gpr",
|
|
};
|
|
|
|
static const struct of_device_id imx93_pinctrl_of_match[] = {
|
|
{ .compatible = "fsl,imx93-iomuxc", },
|
|
{ /* sentinel */ }
|
|
};
|
|
MODULE_DEVICE_TABLE(of, imx93_pinctrl_of_match);
|
|
|
|
static int imx93_pinctrl_probe(struct platform_device *pdev)
|
|
{
|
|
return imx_pinctrl_probe(pdev, &imx93_pinctrl_info);
|
|
}
|
|
|
|
static struct platform_driver imx93_pinctrl_driver = {
|
|
.driver = {
|
|
.name = "imx93-pinctrl",
|
|
.of_match_table = imx93_pinctrl_of_match,
|
|
.suppress_bind_attrs = true,
|
|
},
|
|
.probe = imx93_pinctrl_probe,
|
|
};
|
|
|
|
static int __init imx93_pinctrl_init(void)
|
|
{
|
|
return platform_driver_register(&imx93_pinctrl_driver);
|
|
}
|
|
arch_initcall(imx93_pinctrl_init);
|
|
|
|
MODULE_AUTHOR("Bai Ping <ping.bai@nxp.com>");
|
|
MODULE_DESCRIPTION("NXP i.MX93 pinctrl driver");
|
|
MODULE_LICENSE("GPL v2");
|