dt-bindings: imx: Add pinctrl binding doc for imx8mm
Jacky Bai
maintainerPATCH v2 1/2 dt-bindings: imx: Add pinctrl binding doc for imx8mm
From: Bai Ping <[email protected]>
Add binding doc imx8mm pinctrl driver.
---
change v1->v2:
- mv imx8mm-pinfunc.h header file into dts dir.
--- .../bindings/pinctrl/fsl,imx8mm-pinctrl.txt | 36 ++ arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h | 629 +++++++++++++++++++++ 2 files changed, 665 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.txt create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h
Documentation/devicetree/bindings/pinctrl/fsl,imx8mm-pinctrl.txt new file +36 -0
@@ -0,0 +1,36 @@ +* Freescale IMX8MM IOMUX Controller + +Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory +for common binding part and usage. + +Required properties: +- compatible: "fsl,imx8mm-iomuxc" +- reg: should contain the base physical address and size of the iomuxc + registers. + +Required properties in sub-nodes: +- fsl,pins: each entry consists of 6 integers and represents the mux and config + setting for one pin. The first 5 integers <mux_reg conf_reg input_reg mux_val + input_val> are specified using a PIN_FUNC_ID macro, which can be found in + <dt-bindings/pinctrl/imx8mm-pinfunc.h>. The last integer CONFIG is + the pad setting value like pull-up on this pin. Please refer to i.MX8M Mini + Reference Manual for detailed CONFIG settings. + +Examples: + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart1>; +}; + +iomuxc: pinctrl@30330000 { + compatible = "fsl,imx8mm-iomuxc"; + reg = <0x0 0x30330000 0x0 0x10000>; + + pinctrl_uart1: uart1grp { + fsl,pins = < + MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 + MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140 + >; + }; +};
arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h new file +629 -0
629 lines not on this page · raw message
Signature · 1 line
1.9.1
Jacky Bai
maintainerPATCH v2 2/2 pinctrl: freescale: Add imx8mm pinctrl driver support
From: Bai Ping <[email protected]>
Add the pinctrl driver support for i.MX8MM.
---
change v1->v2:
- remove unnecessary header file include.
--- drivers/pinctrl/freescale/Kconfig | 7 + drivers/pinctrl/freescale/Makefile | 1 + drivers/pinctrl/freescale/pinctrl-imx8mm.c | 348 +++++++++++++++++++++++++++++ 3 files changed, 356 insertions(+) create mode 100644 drivers/pinctrl/freescale/pinctrl-imx8mm.c
drivers/pinctrl/freescale/Kconfig +7 -0
@@ -122,6 +122,13 @@ config PINCTRL_IMX7ULP help Say Y here to enable the imx7ulp pinctrl driver +config PINCTRL_IMX8MM + bool "IMX8MM pinctrl driver" + depends on ARCH_MXC && ARM64 + select PINCTRL_IMX + help + Say Y here to enable the imx8mm pinctrl driver + config PINCTRL_IMX8MQ bool "IMX8MQ pinctrl driver" depends on ARCH_MXC && ARM64
drivers/pinctrl/freescale/Makefile +1 -0
@@ -18,6 +18,7 @@ obj-$(CONFIG_PINCTRL_IMX6SX) += pinctrl-imx6sx.o obj-$(CONFIG_PINCTRL_IMX6UL) += pinctrl-imx6ul.o obj-$(CONFIG_PINCTRL_IMX7D) += pinctrl-imx7d.o obj-$(CONFIG_PINCTRL_IMX7ULP) += pinctrl-imx7ulp.o +obj-$(CONFIG_PINCTRL_IMX8MM) += pinctrl-imx8mm.o obj-$(CONFIG_PINCTRL_IMX8MQ) += pinctrl-imx8mq.o obj-$(CONFIG_PINCTRL_IMX8QXP) += pinctrl-imx8qxp.o obj-$(CONFIG_PINCTRL_VF610) += pinctrl-vf610.o
drivers/pinctrl/freescale/pinctrl-imx8mm.c new file +348 -0
348 lines not on this page · raw message
Signature · 1 line
1.9.1
Re: [PATCH v2 2/2] pinctrl: freescale: Add imx8mm pinctrl driver support
Quoted 9 lines · Jacky Bai
From: Bai Ping <[email protected]>
Add the pinctrl driver support for i.MX8MM.
Signed-off-by Bai Ping <[email protected]>Acked-by Aisheng Dong <[email protected]>---
changev1->v2:
- remove unnecessary header file include.
This doesn't apply on the current pinctrl devel branch, I suppose it's the imx8qm patch that disturbs it. Can you check and possibly respin on my branch?
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git/log/?h=devel
Yours,
Linus Walleij
Jacky Bai
maintainerRE: [PATCH v2 2/2] pinctrl: freescale: Add imx8mm pinctrl driver support
Quoted 15 lines
Subject: Re: [PATCH v2 2/2] pinctrl: freescale: Add imx8mm pinctrl driver support
Quoted 9 lines · Jacky Bai
From: Bai Ping <[email protected]>
Add the pinctrl driver support for i.MX8MM.
Signed-off-by Bai Ping <[email protected]>Acked-by Aisheng Dong <[email protected]>---
changev1->v2:
- remove unnecessary header file include.
Quoted 3 lines
This doesn't apply on the current pinctrl devel branch, I suppose it's the imx8qm patch that disturbs it.
Can you check and possibly respin on my branch?
Yes, it is disturbed by 8qm patch, I will send out V3.
BR
Quoted 3 lines
Yours,
Linus Walleij
Quoted 9 lines · Jacky Bai
From: Bai Ping <[email protected]>
Add binding doc imx8mm pinctrl driver.
Signed-off-by Bai Ping <[email protected]>Acked-by Aisheng Dong <[email protected]>---
changev1->v2:
- mvimx8mm-pinfunc.hheader file into dts dir.
Patch applied.
Yours,
Linus Walleij