summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/pinctrl
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2017-02-19 20:12:49 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit5d61fb84fd226905e62734fa5eb617ce2f38cc85 (patch)
tree698942069ffc3b5c9ea50d8ff2f801da9571436e /Documentation/devicetree/bindings/pinctrl
parent54e81dfeb2dfe4dc9baaa2a71df95bd75bc71065 (diff)
MLK-13911-8 pinctrl: freescale: imx8qm: add pinctrl
Add i.MX8QM pinctrl driver support. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'Documentation/devicetree/bindings/pinctrl')
-rw-r--r--Documentation/devicetree/bindings/pinctrl/fsl,imx8qm-pinctrl.txt57
1 files changed, 57 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,imx8qm-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/fsl,imx8qm-pinctrl.txt
new file mode 100644
index 000000000000..26fb0f8b0c02
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx8qm-pinctrl.txt
@@ -0,0 +1,57 @@
+* Freescale i.MX8QM IOMUX Controller
+
+Required properties:
+- compatible: "fsl,imx8qm-iomuxc"
+- fsl,pins: each entry consists of 2 integers. Its format is
+ <pin_id pin_config>.
+
+pin_config definition:
+- i.MX8QM have different pad types, please refer to below pad
+ register definitions, the pinctrl driver will just write the
+ pin_config into the hardware register.
+
+typedef union _hw_pad_iomux
+{
+ uint32_t U;
+ struct _hw_pad_iomux_bitfields0
+ {
+ uint32_t GP : 19; /*!< [18:0] GP controls. */
+ uint32_t WAKEUP : 3; /*!< [21:19] Wakeup controls. */
+ uint32_t WAKEUP_ENB : 1; /*!< [22] Wakeup write enable. */
+ uint32_t LPCONFIG : 2; /*!< [24:23] Low-power config. */
+ uint32_t CONFIG : 2; /*!< [26:25] Config. */
+ uint32_t IFMUX : 3; /*!< [29:27] Mux. */
+ uint32_t GP_ENB : 1; /*!< [30] GP write enable. */
+ uint32_t IFMUX_ENB : 1; /*!< [31] Mux write enable. */
+ } B;
+ struct _hw_pad_iomux_28fdsoi
+ {
+ uint32_t DSE : 3; /*!< [2:0] Drive strength. */
+ uint32_t _reserved1 : 2; /*!< [4:3] */
+ uint32_t PS : 2; /*!< [6:5] Pull select. */
+ uint32_t _reserved2 : 12; /*!< [18:7] */
+ uint32_t WAKEUP : 3; /*!< [21:19] Wakeup controls. */
+ uint32_t WAKEUP_ENB : 1; /*!< [22] Wakeup write enable. */
+ uint32_t LPCONFIG : 2; /*!< [24:23] Low-power config. */
+ uint32_t CONFIG : 2; /*!< [26:25] Config. */
+ uint32_t IFMUX : 3; /*!< [29:27] Mux. */
+ uint32_t GP_ENB : 1; /*!< [30] GP write enable. */
+ uint32_t IFMUX_ENB : 1; /*!< [31] Mux write enable. */
+ } FDS0I28;
+ struct _hw_pad_iomux_28fdsoi_comp
+ {
+ uint32_t COMPEN : 3; /*!< [2:0] Mode. */
+ uint32_t FASTFRZ : 1; /*!< [3] Fast freeze. */
+ uint32_t _reserved1 : 1; /*!< [4] */
+ uint32_t RASRCP : 4; /*!< [8:5] PMOS comp. */
+ uint32_t RASRCN : 4; /*!< [12:9] NMOS comp. */
+ uint32_t NASRC_SEL : 1; /*!< [13] Read NASRC select. */
+ uint32_t COMPOK : 1; /*!< [14] Comp status. */
+ uint32_t NASRC : 4; /*!< [18:15] NASRC value. */
+ uint32_t _reserved2 : 4; /*!< [22:19] */
+ uint32_t LPCONFIG : 2; /*!< [24:23] Low-power config. */
+ uint32_t _reserved3 : 5; /*!< [29:25] */
+ uint32_t GP_ENB : 1; /*!< [30] GP write enable. */
+ uint32_t IFMUX_ENB : 1; /*!< [31] Mux write enable. */
+ } FDS0I28_COMP;
+} hw_pad_iomux_t;