dt-bindings: imx: Add pinctrl binding doc for i.MX8MN
Subsystems (5)
PATCH v2 3/3 arm64: defconfig: Select CONFIG_PINCTRL_IMX8MN by default
In reply to [email protected]From: Anson Huang <[email protected]>
Enable CONFIG_PINCTRL_IMX8MN by default to support i.MX8MN pinctrl driver.
---
Changes since V1:
- sort the change in alphabet order.
--- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
@@ -374,6 +374,7 @@ CONFIG_SPMI=y CONFIG_PINCTRL_SINGLE=y CONFIG_PINCTRL_MAX77620=y CONFIG_PINCTRL_IMX8MM=y +CONFIG_PINCTRL_IMX8MN=y CONFIG_PINCTRL_IMX8MQ=y CONFIG_PINCTRL_IMX8QXP=y CONFIG_PINCTRL_IPQ8074=y
Signature · 1 line
2.7.4
PATCH v2 2/3 pinctrl: freescale: Add i.MX8MN pinctrl driver support
In reply to [email protected]From: Anson Huang <[email protected]>
Add the pinctrl driver support for i.MX8MN.
---
Changes since V1:
- Fix some nitpicks like sorting the change in alphabet order and improve the headfile included.
--- drivers/pinctrl/freescale/Kconfig | 7 + drivers/pinctrl/freescale/Makefile | 1 + drivers/pinctrl/freescale/pinctrl-imx8mn.c | 348 +++++++++++++++++++++++++++++ 3 files changed, 356 insertions(+) create mode 100644 drivers/pinctrl/freescale/pinctrl-imx8mn.c
drivers/pinctrl/freescale/Kconfig +7 -0
@@ -130,6 +130,13 @@ config PINCTRL_IMX8MM help Say Y here to enable the imx8mm pinctrl driver +config PINCTRL_IMX8MN + bool "IMX8MN pinctrl driver" + depends on ARCH_MXC && ARM64 + select PINCTRL_IMX + help + Say Y here to enable the imx8mn pinctrl driver + config PINCTRL_IMX8MQ bool "IMX8MQ pinctrl driver" depends on ARCH_MXC && ARM64
drivers/pinctrl/freescale/Makefile +1 -0
@@ -19,6 +19,7 @@ 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_IMX8MN) += pinctrl-imx8mn.o obj-$(CONFIG_PINCTRL_IMX8MQ) += pinctrl-imx8mq.o obj-$(CONFIG_PINCTRL_IMX8QM) += pinctrl-imx8qm.o obj-$(CONFIG_PINCTRL_IMX8QXP) += pinctrl-imx8qxp.o
drivers/pinctrl/freescale/pinctrl-imx8mn.c new file +348 -0
348 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH v2 1/3 dt-bindings: imx: Add pinctrl binding doc for i.MX8MN
From: Anson Huang <[email protected]>
Add binding doc for i.MX8MN pinctrl driver.
---
No change.
--- .../bindings/pinctrl/fsl,imx8mn-pinctrl.txt | 39 ++ arch/arm64/boot/dts/freescale/imx8mn-pinfunc.h | 646 +++++++++++++++++++++ 2 files changed, 685 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx8mn-pinctrl.txt create mode 100644 arch/arm64/boot/dts/freescale/imx8mn-pinfunc.h
Documentation/devicetree/bindings/pinctrl/fsl,imx8mn-pinctrl.txt new file +39 -0
@@ -0,0 +1,39 @@ +* Freescale IMX8MN 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,imx8mn-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 + <arch/arm64/boot/dts/freescale/imx8mn-pinfunc.h>. The last integer CONFIG is + the pad setting value like pull-up on this pin. Please refer to i.MX8M Nano + Reference Manual for detailed CONFIG settings. + +Examples: + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart1>; +}; + +iomuxc: pinctrl@30330000 { + compatible = "fsl,imx8mn-iomuxc"; + reg = <0x0 0x30330000 0x0 0x10000>; + + pinctrl_uart1: uart1grp { + fsl,pins = < + MX8MN_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 + MX8MN_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140 + MX8MN_IOMUXC_UART3_RXD_UART1_DCE_CTS_B 0x140 + MX8MN_IOMUXC_UART3_TXD_UART1_DCE_RTS_B 0x140 + MX8MN_IOMUXC_SD1_DATA4_GPIO2_IO6 0x19 + >; + }; +};
arch/arm64/boot/dts/freescale/imx8mn-pinfunc.h new file +646 -0
646 lines not on this page · raw message
Signature · 1 line
2.7.4
Quoted 6 lines · On Tue, Jun 11, 2019 at 2:24 PM <[email protected]> wrote:
From: Anson Huang <[email protected]>
Add binding doc for i.MX8MN pinctrl driver.
Signed-off-by Anson Huang <[email protected]>Acked-by Dong Aisheng <[email protected]>
Patch applied.
Yours,
Linus Walleij
Re: [PATCH V2 2/3] pinctrl: freescale: Add i.MX8MN pinctrl driver support
In reply to [email protected]Quoted 10 lines · On Tue, Jun 11, 2019 at 2:24 PM <[email protected]> wrote:
From: Anson Huang <[email protected]>
Add the pinctrl driver support for i.MX8MN.
Signed-off-by Anson Huang <[email protected]>Acked-by Dong Aisheng <[email protected]>---
Changes since V1:
- Fix some nitpicks like sorting the change in alphabet order and improve the headfile included.
Patch applied.
Yours,
Linus Walleij
Re: [PATCH V2 3/3] arm64: defconfig: Select CONFIG_PINCTRL_IMX8MN by default
In reply to [email protected]Quoted 10 lines · On Tue, Jun 11, 2019 at 2:24 PM <[email protected]> wrote:
From: Anson Huang <[email protected]>
Enable
CONFIG_PINCTRL_IMX8MNby default to support i.MX8MN pinctrl driver.Signed-off-by Anson Huang <[email protected]>Reviewed-by Dong Aisheng <[email protected]>---
Changes since V1:
- sort the change in alphabet order.
Please merge this through the ARM SoC tree.
Yours,
Linus Walleij
Shawn Guo
AppliedRe: [PATCH V2 3/3] arm64: defconfig: Select CONFIG_PINCTRL_IMX8MN by default
In reply to [email protected]Quoted 7 lines · On Tue, Jun 11, 2019 at 08:25:35PM +0800, [email protected] wrote:
From: Anson Huang <[email protected]>
Enable
CONFIG_PINCTRL_IMX8MNby default to support i.MX8MN pinctrl driver.Signed-off-by Anson Huang <[email protected]>Reviewed-by Dong Aisheng <[email protected]>
Applied, thanks.