Skip to contentSkip to conversation

dt-bindings: imx: Add pinctrl binding doc for i.MX8MP

PATCH Applied Anson Huang 4 participants 11 messages Jan 15, 2020 – Feb 12, 2020

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH v9 1/3 dt-bindings: imx: Add pinctrl binding doc for i.MX8MP

Add binding doc for i.MX8MP pinctrl driver.

---
Changes since V8:
- the lisence should be GPL-2.0

---
 .../bindings/pinctrl/fsl,imx8mp-pinctrl.yaml       | 69 ++++++++++++++++++++++
 1 file changed, 69 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml
Documentation/devicetree/bindings/pinctrl/fsl,imx8mp-pinctrl.yaml new file +69 -0
new file mode 100644
index 0000000..2e31e12
@@ -0,0 +1,69 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pinctrl/fsl,imx8mp-pinctrl.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Freescale IMX8MP IOMUX Controller
+
+maintainers:
+  - Anson Huang <[email protected]>
+
+description:
+  Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory
+  for common binding part and usage.
+
+properties:
+  compatible:
+    const: fsl,imx8mp-iomuxc
+
+  reg:
+    maxItems: 1
+
+# Client device subnode's properties
+patternProperties:
+  'grp$':
+    type: object
+    description:
+      Pinctrl node's client devices use subnodes for desired pin configuration.
+      Client device subnodes use below standard properties.
+
+    properties:
+      fsl,pins:
+        allOf:
+          - $ref: /schemas/types.yaml#/definitions/uint32-array
+        description:
+          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/imx8mp-pinfunc.h>. The last
+          integer CONFIG is the pad setting value like pull-up on this pin. Please
+          refer to i.MX8M Plus Reference Manual for detailed CONFIG settings.
+
+    required:
+      - fsl,pins
+
+    additionalProperties: false
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  # Pinmux controller node
+  - |
+    iomuxc: pinctrl@30330000 {
+        compatible = "fsl,imx8mp-iomuxc";
+        reg = <0x30330000 0x10000>;
+
+        pinctrl_uart2: uart2grp {
+            fsl,pins = <
+                0x228 0x488 0x5F0 0x0 0x6	0x49
+                0x228 0x488 0x000 0x0 0x0	0x49
+            >;
+        };
+    };
+
+...
Signature · 1 line
2.7.4
#1 lore raw

PATCH v9 2/3 pinctrl: freescale: Add i.MX8MP pinctrl driver support

Add the pinctrl driver support for i.MX8MP.

---
No change.

---
 drivers/pinctrl/freescale/Kconfig          |   7 +
 drivers/pinctrl/freescale/Makefile         |   1 +
 drivers/pinctrl/freescale/pinctrl-imx8mp.c | 345 +++++++++++++++++++++++++++++
 3 files changed, 353 insertions(+)
 create mode 100644 drivers/pinctrl/freescale/pinctrl-imx8mp.c
drivers/pinctrl/freescale/Kconfig +7 -0
index 3ea9ce3..de775a8 100644
@@ -137,6 +137,13 @@ config PINCTRL_IMX8MN
 	help
 	  Say Y here to enable the imx8mn pinctrl driver
 
+config PINCTRL_IMX8MP
+	bool "IMX8MP pinctrl driver"
+	depends on ARCH_MXC && ARM64
+	select PINCTRL_IMX
+	help
+	  Say Y here to enable the imx8mp pinctrl driver
+
 config PINCTRL_IMX8MQ
 	bool "IMX8MQ pinctrl driver"
 	depends on ARCH_MXC && ARM64
drivers/pinctrl/freescale/Makefile +1 -0
index 78e9140..0ebd3af 100644
@@ -20,6 +20,7 @@ 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_IMX8MP)	+= pinctrl-imx8mp.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-imx8mp.c new file +345 -0

345 lines not on this page · raw message

Signature · 1 line
2.7.4
#2 lore raw

Re: [PATCH V9 2/3] pinctrl: freescale: Add i.MX8MP pinctrl driver support

Hi Anson,

Quoted 7 lines · Anson Huang

Add the pinctrl driver support for i.MX8MP.

---
No change.

Can this patch be applied independently of the rest of the patches?

In that case I am just waiting for a review from one of the Freescale pin control maintainers then I can merge this.

Yours,
Linus Walleij

#3 lore raw

RE: [PATCH V9 2/3] pinctrl: freescale: Add i.MX8MP pinctrl driver support

Hi, Linus

Quoted 8 lines

Subject: Re: [PATCH V9 2/3] pinctrl: freescale: Add i.MX8MP pinctrl driver support

Hi Anson,

Quoted 1 line · Anson Huang
Quoted 8 lines
Quoted 6 lines

Add the pinctrl driver support for i.MX8MP.

---
No change.

Can this patch be applied independently of the rest of the patches?

I think so.

Thanks,
Anson

#6 lore raw

PATCH v9 3/3 arm64: defconfig: Select CONFIG_PINCTRL_IMX8MP by default

In reply to Anson Huang

Enable CONFIG_PINCTRL_IMX8MP by default to support i.MX8MP pinctrl driver.

---
No change

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index d0ea0d0..d35b417 100644
@@ -396,6 +396,7 @@ CONFIG_PINCTRL_SINGLE=y
 CONFIG_PINCTRL_MAX77620=y
 CONFIG_PINCTRL_IMX8MM=y
 CONFIG_PINCTRL_IMX8MN=y
+CONFIG_PINCTRL_IMX8MP=y
 CONFIG_PINCTRL_IMX8MQ=y
 CONFIG_PINCTRL_IMX8QXP=y
 CONFIG_PINCTRL_IPQ8074=y
Signature · 1 line
2.7.4
Acked-by on v9 3/3
#7 lore raw

Re: [PATCH V9 3/3] arm64: defconfig: Select CONFIG_PINCTRL_IMX8MP by default

Quoted 5 lines · Anson Huang

Enable CONFIG_PINCTRL_IMX8MP by default to support i.MX8MP pinctrl driver.

Please merge this one patch through the ARM SoC tree. If don't know who collects the Freescale/iMX patches for ARM SoC right now....

Yours,
Linus Walleij

#8 lore raw

RE: [PATCH V9 3/3] arm64: defconfig: Select CONFIG_PINCTRL_IMX8MP by default

Hi, Shawn

Quoted 9 lines

Subject: Re: [PATCH V9 3/3] arm64: defconfig: Select CONFIG_PINCTRL_IMX8MP by default

Quoted 3 lines · Anson Huang

Enable CONFIG_PINCTRL_IMX8MP by default to support i.MX8MP pinctrl driver.

Quoted 8 lines
Quoted 2 lines

Please merge this one patch through the ARM SoC tree.
If don't know who collects the Freescale/iMX patches for ARM SoC right now....

Hi, Shawn
Will you pick this patch?

Thanks,
Anson