Skip to contentSkip to conversation

Doc: dt: binding: imx: update pinctrl doc for imx6sll

PATCH Superseded Bai Ping 2 participants 5 messages Mar 8, 2018 – Mar 9, 2018

Subsystems (6)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Bai Ping

author maintainer
#0 lore raw

PATCH v4 1/2 Doc: dt: binding: imx: update pinctrl doc for imx6sll

Add pinctrl binding doc update for imx6sll.

---
changes v2-v3:
- add generic config binding

change v3->v4:
- add SION bit define
- fix typo
- move the pin header file to dts patch.

---
 .../bindings/pinctrl/fsl,imx6sll-pinctrl.txt       | 71 ++++++++++++++++++++++
 1 file changed, 71 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx6sll-pinctrl.txt
Documentation/devicetree/bindings/pinctrl/fsl,imx6sll-pinctrl.txt new file +71 -0
new file mode 100644
index 0000000..b830a86
@@ -0,0 +1,71 @@
+* Freescale i.MX6 SLL IOMUX Controller
+
+Please refer to the pinctrl-bindings.txt in this directory for generic pinctrl binding.
+
+=== Pin Controller Node ===
+
+Required properties:
+- compatible: "fsl,imx6sll-iomuxc"
+- reg: Should contain the base physical address and size of the iomuxc registers.
+
+
+=== Pin Configuration Node ===
+- pinmux: One integers array, represents a group of pins mux setting.
+	The format is pinmux = <PIN_FUNC_ID>, PIN_FUNC_ID is a pin working on
+	a specific function. which can be found in imx6sll-pinfunc.h under device
+	tree source folder. Please also refer to i.MX6SLL Reference Manual for detailed
+	CONFIG settings.
+
+Optional Properties:
+- drive-strength		Integer. Controls Drive Strength
+					0: HI-Z
+					1: 260 ohm at 3.3v, 150 ohm at 1.8v
+					2: 130 ohm at 3.3v, 75 ohm at 1.8v
+					3: 86 ohm at 3.3v, 50 ohm at 1.8v
+					4: 65 ohm at 3.3v, 37 ohm at 1.8v
+					5: 52 ohm at 3.3v, 30 ohm at 1.8v
+					6: 43 ohm at 3.3v, 25 ohm at 1.8v
+					7: 37 ohm at 3.3v, 21 ohm at 1.8v
+- drive-open-drain		Bool. Enable Pin Open-drian
+- slew-rate:			Integer. Controls Slew Rate
+					0: slow
+					1: fast
+- fsl,pin-speed:		Integer, Controls the pin speed
+					0: reserverd
+					1: low(50 MHz)
+					2: medium(100 MHz)
+					3: maximum(200 MHz)
+
+- bias-pull-down:		Integer. Pull down on pin
+					0: 100K ohm pull down
+- bias-pull-up:			Integer. Pull up on pin
+					1: 47K ohm pull up
+					2: 100K ohm pull up
+					3: 22K ohm pull up
+- input-schmitt-enable:		bool, Schmitt trigger input enable
+- input-enable			bool, Software input on enbale
+- fsl,low-voltage-enable:	Integer. low voltage enable
+					0: High voltage
+					1: Low voltage
+Examples:
+#include "imx6sll-pinfunc.h"
+
+/* Pin Controller Node */
+
+iomuxc: iomuxc at 020e0000 {
+		compatible = "fsl,imx6sll-iomuxc";
+		reg = <0x020e0000 0x4000>;
+
+	/* Pin configuration Node */
+	pinctrl_uart1: uart1grp {
+		pinmux = <
+			MX6SLL_PAD_UART1_TXD__UART1_DCE_TX
+			MX6SLL_PAD_UART1_RXD__UART1_DCE_RX
+		>;
+		slew-rate = <0x1>;
+		drive-strength = <0x6>;
+		fsl,pin-speed = <0x2>;
+		bias-pull-up = <0x2>;
+		input-schmitt-enable;
+	};
+};
Signature · 1 line
1.9.1
author maintainer
#1 lore raw

PATCH v4 2/2 driver: pinctrl: imx: Add pinctrl driver support for imx6sll

Add pinctrl driver support for imx6sll.

---
changes v2->v3
- switch the pinctrl driver to use generic pinconfig based on imx7ulp

changes v3->v4
- remove the unecessary log print
- add SION support
- update the license identifier to SPDX
---

 arch/arm/mach-imx/Kconfig                   |   1 +
 drivers/pinctrl/freescale/Kconfig           |   7 +
 drivers/pinctrl/freescale/Makefile          |   1 +
 drivers/pinctrl/freescale/pinctrl-imx6sll.c | 425 ++++++++++++++++++++++++++++
 4 files changed, 434 insertions(+)
 create mode 100644 drivers/pinctrl/freescale/pinctrl-imx6sll.c
arch/arm/mach-imx/Kconfig +1 -0
index 8e3a618..cb010a0 100644
@@ -514,6 +514,7 @@ config SOC_IMX6SL
 
 config SOC_IMX6SLL
 	bool "i.MX6 SoloLiteLite support"
+	select PINCTRL_IMX6SLL
 	select SOC_IMX6
 
 	help
drivers/pinctrl/freescale/Kconfig +7 -0
index 4dbc576..b4886ee 100644
@@ -82,6 +82,13 @@ config PINCTRL_IMX6SL
 	help
 	  Say Y here to enable the imx6sl pinctrl driver
 
+config PINCTRL_IMX6SLL
+	bool "IMX6SL pinctrl driver"
+	depends on SOC_IMX6SLL
+	select PINCTRL_IMX
+	help
+	  Say Y here to enable the imx6sl pinctrl driver
+
 config PINCTRL_IMX6SX
 	bool "IMX6SX pinctrl driver"
 	depends on SOC_IMX6SX
drivers/pinctrl/freescale/Makefile +1 -0
index 19bb9a5..368be8c 100644
@@ -12,6 +12,7 @@ obj-$(CONFIG_PINCTRL_IMX53)	+= pinctrl-imx53.o
 obj-$(CONFIG_PINCTRL_IMX6Q)	+= pinctrl-imx6q.o
 obj-$(CONFIG_PINCTRL_IMX6Q)	+= pinctrl-imx6dl.o
 obj-$(CONFIG_PINCTRL_IMX6SL)	+= pinctrl-imx6sl.o
+obj-$(CONFIG_PINCTRL_IMX6SLL)	+= pinctrl-imx6sll.o
 obj-$(CONFIG_PINCTRL_IMX6SX)	+= pinctrl-imx6sx.o
 obj-$(CONFIG_PINCTRL_IMX6UL)	+= pinctrl-imx6ul.o
 obj-$(CONFIG_PINCTRL_IMX7D)	+= pinctrl-imx7d.o
drivers/pinctrl/freescale/pinctrl-imx6sll.c new file +425 -0

425 lines not on this page · raw message

Signature · 1 line
1.9.1
#2 lore raw

PATCH v4 1/2 Doc: dt: binding: imx: update pinctrl doc for imx6sll

In reply to Bai Ping
Quoted 59 lines · Bai Ping

Add pinctrl binding doc update for imx6sll.

---
changes v2-v3:
- add generic config binding

change v3->v4:
- add SION bit define
- fix typo
- move the pin header file to dts patch.

---
 .../bindings/pinctrl/fsl,imx6sll-pinctrl.txt       | 71 ++++++++++++++++++++++
 1 file changed, 71 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx6sll-pinctrl.txt
Documentation/devicetree/bindings/pinctrl/fsl,imx6sll-pinctrl.txt new file +37 -0
new file mode 100644
index 0000000..b830a86
@@ -0,0 +1,71 @@
+* Freescale i.MX6 SLL IOMUX Controller
+
+Please refer to the pinctrl-bindings.txt in this directory for generic pinctrl binding.
+
+=== Pin Controller Node ===
+
+Required properties:
+- compatible: "fsl,imx6sll-iomuxc"
+- reg: Should contain the base physical address and size of the iomuxc registers.
+
+
+=== Pin Configuration Node ===
+- pinmux: One integers array, represents a group of pins mux setting.
+	The format is pinmux = <PIN_FUNC_ID>, PIN_FUNC_ID is a pin working on
+	a specific function. which can be found in imx6sll-pinfunc.h under device
+	tree source folder. Please also refer to i.MX6SLL Reference Manual for detailed
+	CONFIG settings.
+
+Optional Properties:
+- drive-strength		Integer. Controls Drive Strength
+					0: HI-Z
+					1: 260 ohm at 3.3v, 150 ohm at 1.8v
+					2: 130 ohm at 3.3v, 75 ohm at 1.8v
+					3: 86 ohm at 3.3v, 50 ohm at 1.8v
+					4: 65 ohm at 3.3v, 37 ohm at 1.8v
+					5: 52 ohm at 3.3v, 30 ohm at 1.8v
+					6: 43 ohm at 3.3v, 25 ohm at 1.8v
+					7: 37 ohm at 3.3v, 21 ohm at 1.8v
+- drive-open-drain		Bool. Enable Pin Open-drian
+- slew-rate:			Integer. Controls Slew Rate
+					0: slow
+					1: fast
+- fsl,pin-speed:		Integer, Controls the pin speed
+					0: reserverd
+					1: low(50 MHz)
+					2: medium(100 MHz)
+					3: maximum(200 MHz)

...

Documentation/devicetree/bindings/pinctrl/fsl,imx6sll-pinctrl.txt line 49

Quoted 12 lines
Documentation/devicetree/bindings/pinctrl/fsl,imx6sll-pinctrl.txt new file +12 -0
+
+- bias-pull-down:		Integer. Pull down on pin
+					0: 100K ohm pull down
+- bias-pull-up:			Integer. Pull up on pin
+					1: 47K ohm pull up
+					2: 100K ohm pull up
+					3: 22K ohm pull up
+- input-schmitt-enable:		bool, Schmitt trigger input enable
+- input-enable			bool, Software input on enbale
+- fsl,low-voltage-enable:	Integer. low voltage enable
+					0: High voltage
+					1: Low voltage

As discussed in Lucas' i.MX8QM pinctrl patches, majority of i.MX folks agreed that i.MX pin configuration has too many specialities, and it's not worth to switch to the generic pinconf bindings.

Shawn

Quoted 30 lines
Documentation/devicetree/bindings/pinctrl/fsl,imx6sll-pinctrl.txt new file +22 -0
+Examples:
+#include "imx6sll-pinfunc.h"
+
+/* Pin Controller Node */
+
+iomuxc: iomuxc at 020e0000 {
+		compatible = "fsl,imx6sll-iomuxc";
+		reg = <0x020e0000 0x4000>;
+
+	/* Pin configuration Node */
+	pinctrl_uart1: uart1grp {
+		pinmux = <
+			MX6SLL_PAD_UART1_TXD__UART1_DCE_TX
+			MX6SLL_PAD_UART1_RXD__UART1_DCE_RX
+		>;
+		slew-rate = <0x1>;
+		drive-strength = <0x6>;
+		fsl,pin-speed = <0x2>;
+		bias-pull-up = <0x2>;
+		input-schmitt-enable;
+	};
+};
Signature · 7 lines
1.9.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#3 lore raw

PATCH v4 1/2 Doc: dt: binding: imx: update pinctrl doc for imx6sll

In reply to Bai Ping
Quoted 7 lines · Bai Ping

Add pinctrl binding doc update for imx6sll.

---
changes v2-v3:
- add generic config binding

Quoted 8 lines

change v3->v4:
- add SION bit define
- fix typo
- move the pin header file to dts patch.

---
 .../bindings/pinctrl/fsl,imx6sll-pinctrl.txt       | 71 ++++++++++++++++++++++
 1 file changed, 71 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx6sll-pinctrl.txt

Suggest "dt-bindings: add pinctrl bindings doc for imx6sll" as subject.

Shawn

author maintainer
#4 lore raw

PATCH v4 1/2 Doc: dt: binding: imx: update pinctrl doc for imx6sll

Quoted 16 lines

Subject: Re: [PATCH v4 1/2] Doc: dt: binding: imx: update pinctrl doc for imx6sll

Quoted 7 lines · Bai Ping

Add pinctrl binding doc update for imx6sll.

---
changes v2-v3:
- add generic config binding

Quoted 6 lines

change v3->v4:
- add SION bit define
- fix typo
- move the pin header file to dts patch.

---
 .../bindings/pinctrl/fsl,imx6sll-pinctrl.txt       | 71
Quoted 7 lines

++++++++++++++++++++++

Quoted 2 lines
 1 file changed, 71 insertions(+)
 create mode 100644

Documentation/devicetree/bindings/pinctrl/fsl,imx6sll-pinctrl.txt

Suggest "dt-bindings: add pinctrl bindings doc for imx6sll" as subject.

Thanks, will fix it and use the older imx pinconfig style in v5. Jacky

Quoted 1 line

Shawn