:orphan:
.. raw:: html
.. dtcompatible:: infineon,cat1-pwm
.. _dtbinding_infineon_cat1_pwm:
infineon,cat1-pwm
#################
Vendor: :ref:`Infineon Technologies `
.. note::
An implementation of a driver matching this compatible is available in
:zephyr_file:`drivers/pwm/pwm_ifx_cat1.c`.
Description
***********
.. code-block:: none
Infineon Cat1 PWM
Properties
**********
.. tabs::
.. group-tab:: Node specific properties
Properties not inherited from the base binding file.
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``pinctrl-0``
- ``phandles``
- .. code-block:: none
PORT pin configuration for the PWM signal.
We expect that the phandles will reference pinctrl nodes. These
nodes will have a nodelabel that matches the Infineon SoC Pinctrl
defines and have following
format: p___.
Examples:
pinctrl-0 = <&p1_1_pwm0_0>;
This property is **required**.
* - ``pinctrl-names``
- ``string-array``
- .. code-block:: none
Names for the provided states. The number of names needs to match the
number of states.
This property is **required**.
* - ``resolution``
- ``int``
-
* - ``divider-type``
- ``int``
- .. code-block:: none
Specifies which type of divider to use.
Defined by cy_en_divider_types_t in cy_sysclk.h.
This property is **required**.
* - ``divider-sel``
- ``int``
- .. code-block:: none
Specifies which divider of the selected type to configure.
This property is **required**.
* - ``divider-val``
- ``int``
- .. code-block:: none
Causes integer division of (divider value + 1), or division by 1 to 256
(8-bit divider) or 1 to 65536 (16-bit divider).
This property is **required**.
* - ``#pwm-cells``
- ``int``
- .. code-block:: none
Number of items to expect in a PWM
- channel of the timer used for PWM (not used)
- period to set in ns
- flags: standard flags like PWM_POLARITY_NORMAL
This property is **required**.
Constant value: ``3``
* - ``pinctrl-1``
- ``phandles``
- .. code-block:: none
Pin configuration/s for the second state. See pinctrl-0.
* - ``pinctrl-2``
- ``phandles``
- .. code-block:: none
Pin configuration/s for the third state. See pinctrl-0.
* - ``pinctrl-3``
- ``phandles``
- .. code-block:: none
Pin configuration/s for the fourth state. See pinctrl-0.
* - ``pinctrl-4``
- ``phandles``
- .. code-block:: none
Pin configuration/s for the fifth state. See pinctrl-0.
.. 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 "infineon,cat1-pwm" compatible.
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``reg``
- ``array``
- This property is **required**.
See :ref:`zephyr:dt-important-props` for more information.
* - ``interrupts``
- ``array``
- This property is **required**.
See :ref:`zephyr:dt-important-props` for more information.
Specifier cell names
********************
- pwm cells: channel, period, flags