:orphan:
.. raw:: html
    
    
.. dtcompatible:: ite,it8xxx2-pinctrl
.. _dtbinding_ite_it8xxx2_pinctrl:
ite,it8xxx2-pinctrl
###################
Vendor: :ref:`ITE Tech. Inc. `
Description
***********
.. code-block:: none
   The ITE IT8XXX2 pin controller is a node responsible for controlling
   pin function selection and pin properties. For example, you can
   use this node to route UART1 RX and TX setting the alternate
   function on the pin.
   The node has the 'pinctrl' node label set in your SoC's devicetree,
   so you can modify it like this:
     &pinctrl {
             /* your modifications go here */
     };
   All device pin configurations should be placed in child nodes of the
   'pinctrl' node, as shown in this example:
     /* You can put this in places like a board-pinctrl.dtsi file in
      * your board directory, or a devicetree overlay in your application.
      */
     /* include pre-defined pins and functions for the SoC used by the board */
     #include 
     &pinctrl {
       /* configuration for I2C0 default state */
       i2c0_clk_pb3_default: i2c0_clk_pb3_default {
               pinmuxs = <&pinctrlb 3 IT8XXX2_ALT_FUNC_1>;
               gpio-voltage = "1p8";
       };
       i2c0_data_pb4_default: i2c0_data_pb4_default {
               pinmuxs = <&pinctrlb 4 IT8XXX2_ALT_FUNC_1>;
               gpio-voltage = "1v8";
       };
       /* configuration for UART0 default state */
       uart1_rx_pb0_default: uart1_rx_pb0_default {
               pinmuxs = <&pinctrlb 0 IT8XXX2_ALT_FUNC_3>;
               bias-pull-up;
       };
       uart1_tx_pb1_default: uart1_tx_pb1_default {
               pinmuxs = <&pinctrlb 1 IT8XXX2_ALT_FUNC_3>;
       };
     };
   The 'uart1_rx_pb0_default' child node encodes the pin configurations
   for a particular state of a device; in this case, the default
   (that is, active) sate.
   To link pin configurations with a device, use a pinctrl-N property for some
   number N, like this example you could place in your board's DTS file:
     #include "board-pinctrl.dtsi"
     &uart0 {
       pinctrl-0 = <&uart1_rx_pb0_default &uart1_tx_pb1_default>;
       pinctrl-1 = <&uart1_rx_pb0_sleep &uart1_tx_pb1_sleep>;
       pinctrl-names = "default", "sleep";
     };
Properties
**********
Top level properties
====================
These property descriptions apply to "ite,it8xxx2-pinctrl"
nodes themselves. This page also describes child node
properties in the following sections.
.. tabs::
   .. group-tab:: Node specific properties
      Properties not inherited from the base binding file.
      (None)
   .. group-tab:: Deprecated node specific properties
      Deprecated properties not inherited from the base binding file.
      (None)
   .. group-tab:: Base properties
      Properties inherited from the base binding file, which defines
      common properties that may be set on many nodes. Not all of these
      may apply to the "ite,it8xxx2-pinctrl" compatible.
      .. list-table::
         :widths: 1 1 4
         :header-rows: 1
         * - Name
           - Type
           - Details
         * - ``status``
           - ``string``
           - .. code-block:: none
                indicates the operational status of a device
             Legal values: ``'ok'``, ``'okay'``, ``'disabled'``, ``'reserved'``, ``'fail'``, ``'fail-sss'``
             See :ref:`zephyr:dt-important-props` for more information.
         * - ``compatible``
           - ``string-array``
           - .. code-block:: none
                compatible strings
             This property is **required**.
             See :ref:`zephyr:dt-important-props` for more information.
         * - ``reg``
           - ``array``
           - .. code-block:: none
                register space
             See :ref:`zephyr:dt-important-props` for more information.
         * - ``reg-names``
           - ``string-array``
           - .. code-block:: none
                name of each register space
         * - ``interrupts``
           - ``array``
           - .. code-block:: none
                interrupts for device
             See :ref:`zephyr:dt-important-props` for more information.
         * - ``interrupts-extended``
           - ``compound``
           - .. code-block:: none
                extended interrupt specifier for device
         * - ``interrupt-names``
           - ``string-array``
           - .. code-block:: none
                name of each interrupt
         * - ``interrupt-parent``
           - ``phandle``
           - .. code-block:: none
                phandle to interrupt controller node
         * - ``label``
           - ``string``
           - .. code-block:: none
                Human readable string describing the device (used as device_get_binding() argument)
             See :ref:`zephyr:dt-important-props` for more information.
         * - ``clocks``
           - ``phandle-array``
           - .. code-block:: none
                Clock gate information
         * - ``clock-names``
           - ``string-array``
           - .. code-block:: none
                name of each clock
         * - ``#address-cells``
           - ``int``
           - .. code-block:: none
                number of address cells in reg property
         * - ``#size-cells``
           - ``int``
           - .. code-block:: none
                number of size cells in reg property
         * - ``dmas``
           - ``phandle-array``
           - .. code-block:: none
                DMA channels specifiers
         * - ``dma-names``
           - ``string-array``
           - .. code-block:: none
                Provided names of DMA channel specifiers
         * - ``io-channels``
           - ``phandle-array``
           - .. code-block:: none
                IO channels specifiers
         * - ``io-channel-names``
           - ``string-array``
           - .. code-block:: none
                Provided names of IO channel specifiers
         * - ``mboxes``
           - ``phandle-array``
           - .. code-block:: none
                mailbox / IPM channels specifiers
         * - ``mbox-names``
           - ``string-array``
           - .. code-block:: none
                Provided names of mailbox / IPM channel specifiers
         * - ``wakeup-source``
           - ``boolean``
           - .. code-block:: none
                Property to identify that a device can be used as wake up source.
                When this property is provided a specific flag is set into the
                device that tells the system that the device is capable of
                wake up the system.
                Wake up capable devices are disabled (interruptions will not wake up
                the system) by default but they can be enabled at runtime if necessary.
         * - ``power-domain``
           - ``phandle``
           - .. code-block:: none
                Power domain the device belongs to.
                The device will be notified when the power domain it belongs to is either
                suspended or resumed.
Child node properties
=====================
.. list-table::
   :widths: 1 1 4
   :header-rows: 1
   * - Name
     - Type
     - Details
   * - ``pinmuxs``
     - ``phandle-array``
     - .. code-block:: none
          ITE IT8XXX2 pin's configuration (pinctrl node, pin and function).
       This property is **required**.
   * - ``gpio-voltage``
     - ``string``
     - .. code-block:: none
          Pin input voltage selection 3.3V or 1.8V. All gpio pins support 3.3V.
          This property only needs to be configured if the board specifies a
          pin as 1.8V. So the default is 3.3V
       Default value: ``3v3``
       Legal values: ``'3v3'``, ``'1v8'``
   * - ``bias-high-impedance``
     - ``boolean``
     - .. code-block:: none
          high impedance mode ("third-state", "floating")
   * - ``bias-pull-up``
     - ``boolean``
     - .. code-block:: none
          enable pull-up resistor
   * - ``bias-pull-down``
     - ``boolean``
     - .. code-block:: none
          enable pull-down resistor
   * - ``bias-pull-pin-default``
     - ``boolean``
     - .. code-block:: none
          use pin's default pull state
   * - ``input-enable``
     - ``boolean``
     - .. code-block:: none
          enable input on pin (no effect on output, such as enabling an input
          buffer)