linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: add binding for i.MX8MQ IOMUXC
@ 2018-01-17 18:28 Lucas Stach
  2018-01-17 18:28 ` [PATCH 2/2] pinctrl: imx: add driver for i.MX8MQ Lucas Stach
  0 siblings, 1 reply; 4+ messages in thread
From: Lucas Stach @ 2018-01-17 18:28 UTC (permalink / raw)
  To: Linus Walleij, Rob Herring, Mark Rutland
  Cc: linux-gpio, linux-arm-kernel, kernel, patchwork-lst

This adds the binding for the i.MX8MQ pin controller, in the same
fashion as earlier i.MX SoCs.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 .../bindings/pinctrl/nxp,imx8mq-pinctrl.txt        | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/nxp,imx8mq-pinctrl.txt

diff --git a/Documentation/devicetree/bindings/pinctrl/nxp,imx8mq-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/nxp,imx8mq-pinctrl.txt
new file mode 100644
index 000000000000..2f7e88356321
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/nxp,imx8mq-pinctrl.txt
@@ -0,0 +1,33 @@
+* NXP IMX8MQ IOMUX Controller
+
+Please refer to fsl,imx-pinctrl.txt in this directory for common binding part
+and usage.
+
+Required properties:
+- compatible: "nxp,imx8mq-iomuxc"
+- fsl,pins: two integers array, represents a group of pins mux and config
+  setting. The format is fsl,pins = <PIN_FUNC_ID CONFIG>, PIN_FUNC_ID is a
+  pin working on a specific function, CONFIG is the pad setting value like
+  pull-up for this pin. Please refer to imx8mq datasheet for the valid pad
+  config settings.
+
+CONFIG bits definition:
+PAD_CTL_LVTTL                   (1 << 8)
+PAD_CTL_HYS                     (1 << 7)
+PAD_CTL_PUE                     (1 << 6)
+PAD_CTL_ODE                     (1 << 5)
+PAD_CTL_SRE_MAX                 (3 << 3)
+PAD_CTL_SRE_FAST                (2 << 3)
+PAD_CTL_SRE_MEDIUM              (1 << 3)
+PAD_CTL_SRE_SLOW                (0 << 3)
+PAD_CTL_DSE_DISABLE             (0 << 0)
+PAD_CTL_DSE_255ohm              (1 << 0)
+PAD_CTL_DSE_105ohm              (2 << 0)
+PAD_CTL_DSE_75ohm               (3 << 0)
+PAD_CTL_DSE_85ohm               (4 << 0)
+PAD_CTL_DSE_65ohm               (5 << 0)
+PAD_CTL_DSE_45ohm               (6 << 0)
+PAD_CTL_DSE_40ohm               (7 << 0)
+
+Refer to imx8mq-pinfunc.h in device tree source folder for all available
+imx8mq PIN_FUNC_ID.
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-18 12:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-17 18:28 [PATCH 1/2] dt-bindings: add binding for i.MX8MQ IOMUXC Lucas Stach
2018-01-17 18:28 ` [PATCH 2/2] pinctrl: imx: add driver for i.MX8MQ Lucas Stach
2018-01-18 12:41   ` stefan
2018-01-18 12:44     ` Lucas Stach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).