Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Pwm bindings

Single-page view · as markdown

Analog Devices AXI PWM generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/adi,axi-pwmgen.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Michael Hennerich <Michael.Hennerich@analog.com>", "Nuno Sá <nuno.sa@analog.com>"

The Analog Devices AXI PWM generator can generate PWM signals with variable pulse width and period. https://analogdevicesinc.github.io/hdl/library/axi_pwm_gen/index.html

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "adi,axi-pwmgen-2.00.a"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "axi"

Item 2

Exact value (const): "ext"

Required in this object (required): "reg", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm@44b00000 {
    compatible = "adi,axi-pwmgen-2.00.a";
    reg = <0x44b00000 0x1000>;
    clocks = <&fpga_clk>, <&spi_clk>;
    clock-names = "axi", "ext";
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Airoha EN7581 PWM Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/airoha,en7581-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "airoha,en7581-pwm"

#pwm-cells — required here #

Exact value (const): 3

Required in this object (required): "compatible", "#pwm-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm {
  compatible = "airoha,en7581-pwm";

  #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Allwinner A10 PWM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/allwinner,sun4i-a10-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

#pwm-cells — not listed as required here #

Exact value (const): 3

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun4i-a10-pwm"

Rule 2

Exact value (const): "allwinner,sun5i-a10s-pwm"

Rule 3

Exact value (const): "allwinner,sun5i-a13-pwm"

Rule 4

Exact value (const): "allwinner,sun7i-a20-pwm"

Rule 5

Exact value (const): "allwinner,sun8i-h3-pwm"

Rule 6

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun8i-a83t-pwm"

Item 2

Exact value (const): "allwinner,sun8i-h3-pwm"

Rule 7

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,suniv-f1c100s-pwm", "allwinner,sun8i-v3s-pwm"

Item 2

Exact value (const): "allwinner,sun7i-a20-pwm"

Rule 8

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun50i-a64-pwm"

Item 2

Exact value (const): "allwinner,sun5i-a13-pwm"

Rule 9

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun50i-h5-pwm"

Item 2

Exact value (const): "allwinner,sun5i-a13-pwm"

Rule 10

Exact value (const): "allwinner,sun50i-h6-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Module Clock

Item 2

Bus Clock

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "mod"

Item 2

Exact value (const): "bus"

resets — not listed as required here #

Maximum number of items (maxItems): 1

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "allwinner,sun50i-h6-pwm"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 2

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "mod"

Item 2

Exact value (const): "bus"

Required in this object (required): "clock-names", "resets"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm: pwm@1c20e00 {
    compatible = "allwinner,sun7i-a20-pwm";
    reg = <0x01c20e00 0xc>;
    clocks = <&osc24M>;
    #pwm-cells = <3>;
};
#include <dt-bindings/clock/sun50i-h6-ccu.h>
#include <dt-bindings/reset/sun50i-h6-ccu.h>

pwm@300a000 {
  compatible = "allwinner,sun50i-h6-pwm";
  reg = <0x0300a000 0x400>;
  clocks = <&osc24M>, <&ccu CLK_BUS_PWM>;
  clock-names = "mod", "bus";
  resets = <&ccu RST_BUS_PWM>;
  #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Apple FPWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/apple,s5l-fpwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "asahi@lists.linux.dev", "Sasha Finkelstein <fnkl.kernel@gmail.com>"

PWM controller used for keyboard backlight on ARM Macs

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "apple,t8103-fpwm", "apple,t8112-fpwm", "apple,t6000-fpwm", "apple,t6020-fpwm"

Item 2

Exact value (const): "apple,s5l-fpwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 2

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm@235044000 {
  compatible = "apple,t8103-fpwm", "apple,s5l-fpwm";
  reg = <0x35044000 0x4000>;
  power-domains = <&ps_fpwm1>;
  clocks = <&clkref>;
  #pwm-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Argon40 Fan HAT PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/argon40,fan-hat.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Marek Vasut <marek.vasut+renesas@mailbox.org>"

The trivial PWM on Argon40 Fan HAT, which is a RaspberryPi blower fan hat which can be controlled over I2C, generates a fixed 30 kHz period PWM signal with configurable 0..100% duty cycle to control the fan speed.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "argon40,fan-hat"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
  #address-cells = <1>;
  #size-cells = <0>;

  pwm@1a {
    compatible = "argon40,fan-hat";
    reg = <0x1a>;
    #pwm-cells = <3>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Atmel/Microchip PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/atmel,at91sam-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Claudiu Beznea <claudiu.beznea@microchip.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "atmel,at91sam9rl-pwm", "atmel,sama5d3-pwm", "atmel,sama5d2-pwm", "microchip,sam9x60-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "microchip,sama7d65-pwm", "microchip,sama7g5-pwm"

Item 2

Exact value (const): "atmel,sama5d2-pwm"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "microchip,sam9x7-pwm"

Item 2

Exact value (const): "microchip,sam9x60-pwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm0: pwm@f8034000 {
    compatible = "atmel,at91sam9rl-pwm";
    reg = <0xf8034000 0x400>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries

Atmel's HLCDC's PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/atmel,hlcdc-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nicolas Ferre <nicolas.ferre@microchip.com>", "Alexandre Belloni <alexandre.belloni@bootlin.com>", "Claudiu Beznea <claudiu.beznea@tuxon.dev>"

The LCDC integrates a Pulse Width Modulation (PWM) Controller. This block generates the LCD contrast control signal (LCD_PWM) that controls the display's contrast by software. LCDC_PWM is an 8-bit PWM signal that can be converted to an analog voltage with a simple passive filter. LCD display panels have different backlight specifications in terms of minimum/maximum values for PWM frequency. If the LCDC PWM frequency range does not match the LCD display panel, it is possible to use the standalone PWM Controller to drive the backlight.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "atmel,hlcdc-pwm"

#pwm-cells — required here #

Exact value (const): 3

Required in this object (required): "compatible", "#pwm-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Broadcom BCM7038 PWM controller (BCM7xxx Set Top Box PWM controller)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/brcm,bcm7038-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,bcm7038-pwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 2

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm: pwm@f0408000 {
    compatible = "brcm,bcm7038-pwm";
    reg = <0xf0408000 0x28>;
    #pwm-cells = <2>;
    clocks = <&upg_fixed>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Broadcom iProc PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/brcm,iproc-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"

This controller has 4 channels.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "brcm,iproc-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

external clock

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "reg", "clocks"

Examples (examples) #

pwm@18031000 {
    compatible = "brcm,iproc-pwm";
    reg = <0x18031000 0x28>;
    clocks = <&osc>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Broadcom Kona family PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/brcm,kona-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This controller has 6 channels.

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "brcm,bcm11351-pwm"

Item 2

Exact value (const): "brcm,kona-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/bcm281xx.h>

pwm@3e01a000 {
    compatible = "brcm,bcm11351-pwm", "brcm,kona-pwm";
    reg = <0x3e01a000 0xcc>;
    clocks = <&slave_ccu BCM281XX_SLAVE_CCU_PWM>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Cirrus Logic ep93xx PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/cirrus,ep9301-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexander Sverdlin <alexander.sverdlin@gmail.com>", "Nikita Shubin <nikita.shubin@maquefel.me>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "cirrus,ep9301-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "cirrus,ep9302-pwm", "cirrus,ep9307-pwm", "cirrus,ep9312-pwm", "cirrus,ep9315-pwm"

Item 2

Exact value (const): "cirrus,ep9301-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

SoC PWM clock

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/cirrus,ep9301-syscon.h>
pwm@80910000 {
    compatible = "cirrus,ep9301-pwm";
    reg = <0x80910000 0x10>;
    clocks = <&syscon EP93XX_CLK_PWM>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Clock based PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/clk-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nikita Travkin <nikita@trvn.ru>"

Some systems have clocks that can be exposed to external devices. (e.g. by muxing them to GPIO pins) It's often possible to control duty-cycle of such clocks which makes them suitable for generating PWM signal.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "clk-pwm"

clocks — required here #

Clock used to generate the signal.

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 2

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "clocks"

Examples (examples) #

pwm {
  compatible = "clk-pwm";
  #pwm-cells = <2>;
  clocks = <&gcc 0>;
  pinctrl-names = "default";
  pinctrl-0 = <&pwm_clk_flash_default>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Freescale FlexTimer Module (FTM) PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/fsl,vf610-ftm-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The same FTM PWM device can have a different endianness on different SoCs. The device tree provides a property to describing this so that an operating system device driver can handle all variants of the device. Refer to the table below for the endianness of the FTM PWM block as integrated into the existing SoCs:

SoC | FTM-PWM endianness --------+------------------- Vybrid | LE LS1 | BE LS2 | LE

Please see ../regmap/regmap.txt for more detail about how to specify endian modes in device tree.

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,vf610-ftm-pwm", "fsl,imx8qm-ftm-pwm", "nxp,s32g2-ftm-pwm"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "nxp,s32g3-ftm-pwm"

Item 2

Exact value (const): "nxp,s32g2-ftm-pwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

clocks — required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ftm_sys"

Item 2

Exact value (const): "ftm_ext"

Item 3

Exact value (const): "ftm_fix"

Item 4

Exact value (const): "ftm_cnt_clk_en"

pinctrl-0 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-1 — not listed as required here #

true — No constraints added by this property rule.

pinctrl-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "sleep"

big-endian — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Boolean property, required if the FTM PWM registers use a big- endian rather than little-endian layout.

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/vf610-clock.h>

pwm@40038000 {
    compatible = "fsl,vf610-ftm-pwm";
    reg = <0x40038000 0x1000>;
    #pwm-cells = <3>;
    clocks = <&clks VF610_CLK_FTM0>,
             <&clks VF610_CLK_FTM0_EXT_SEL>,
             <&clks VF610_CLK_FTM0_FIX_SEL>,
             <&clks VF610_CLK_FTM0_EXT_FIX_EN>;
    clock-names = "ftm_sys", "ftm_ext", "ftm_fix", "ftm_cnt_clk_en";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_pwm0_1>;
    big-endian;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

PWM controlled by ChromeOS EC

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/google,cros-ec-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "\"Uwe Kleine-König\" <u.kleine-koenig@pengutronix.de>"

Google's ChromeOS EC PWM is a simple PWM attached to the Embedded Controller (EC) and controlled via a host-command interface. An EC PWM node should be only found as a sub-node of the EC node (see Documentation/devicetree/bindings/embedded-controller/google,cros-ec.yaml).

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

PWM controlled using EC_PWM_TYPE_GENERIC channels.

Array item rules (items)

Item 1

Exact value (const): "google,cros-ec-pwm"

Rule 2

PWM controlled using CROS_EC_PWM_DT_<...> types.

Array item rules (items)

Item 1

Exact value (const): "google,cros-ec-pwm-type"

#pwm-cells — not listed as required here #

The cell specifies the PWM index.

Exact value (const): 1

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    cros-ec@0 {
        compatible = "google,cros-ec-spi";
        reg = <0>;
        interrupts = <101 0>;

        cros_ec_pwm: pwm {
            compatible = "google,cros-ec-pwm";
            #pwm-cells = <1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Freescale i.MX PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/imx-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Philipp Zabel <p.zabel@pengutronix.de>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

#pwm-cells — not listed as required here #

The only third cell flag supported by this binding is PWM_POLARITY_INVERTED. fsl,imx1-pwm does not support this flags.

Exact value (const): 3

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx1-pwm", "fsl,imx27-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx25-pwm", "fsl,imx31-pwm", "fsl,imx50-pwm", "fsl,imx51-pwm", "fsl,imx53-pwm", "fsl,imx6q-pwm", "fsl,imx6sl-pwm", "fsl,imx6sll-pwm", "fsl,imx6sx-pwm", "fsl,imx6ul-pwm", "fsl,imx7d-pwm", "fsl,imx8mm-pwm", "fsl,imx8mn-pwm", "fsl,imx8mp-pwm", "fsl,imx8mq-pwm", "fsl,imx8qxp-pwm"

Item 2

Exact value (const): "fsl,imx27-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

SoC PWM ipg clock

Item 2

SoC PWM per clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "per"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx5-clock.h>

pwm@53fb4000 {
    #pwm-cells = <3>;
    compatible = "fsl,imx27-pwm";
    reg = <0x53fb4000 0x4000>;
    clocks = <&clks IMX5_CLK_PWM1_IPG_GATE>,
             <&clks IMX5_CLK_PWM1_HF_GATE>;
    clock-names = "ipg", "per";
    interrupts = <61>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale i.MX TPM PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/imx-tpm-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"

The TPM counter and period counter are shared between multiple channels, so all channels should use same period setting.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

#pwm-cells — not listed as required here #

Exact value (const): 3

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx7ulp-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx93-pwm", "fsl,imx94-pwm", "fsl,imx95-pwm"

Item 2

Exact value (const): "fsl,imx7ulp-pwm"

reg — required here #

Maximum number of items (maxItems): 1

assigned-clocks — not listed as required here #

Maximum number of items (maxItems): 1

assigned-clock-parents — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx7ulp-clock.h>

pwm@40250000 {
    compatible = "fsl,imx7ulp-pwm";
    reg = <0x40250000 0x1000>;
    assigned-clocks = <&pcc2 IMX7ULP_CLK_LPTPM4>;
    assigned-clock-parents = <&scg1 IMX7ULP_CLK_SOSC_BUS_CLK>;
    clocks = <&pcc2 IMX7ULP_CLK_LPTPM4>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Intel Keem Bay PWM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/intel,keembay-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vijayakannan Ayyathurai <vijayakannan.ayyathurai@intel.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "intel,keembay-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 2

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#define KEEM_BAY_A53_GPIO

pwm@203200a0 {
    compatible = "intel,keembay-pwm";
    reg = <0x203200a0 0xe8>;
    clocks = <&scmi_clk KEEM_BAY_A53_GPIO>;
    #pwm-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (C) 2020 Intel Corporation

LGM SoC PWM fan controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/intel,lgm-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Rahul Tanwar <rtanwar@maxlinear.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "intel,lgm-pwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 2

clocks — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm: pwm@e0d00000 {
    compatible = "intel,lgm-pwm";
    reg = <0xe0d00000 0x30>;
    #pwm-cells = <2>;
    clocks = <&cgu0 126>;
    resets = <&rcu0 0x30 21>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Azoteq IQS620A PWM Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/iqs620a-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jeff LaBundy <jeff@labundy.com>"

The Azoteq IQS620A multi-function sensor generates a fixed-frequency PWM output represented by a "pwm" child node from the parent MFD driver. See Documentation/devicetree/bindings/mfd/iqs62x.yaml for further details as well as an example.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "azoteq,iqs620a-pwm"

#pwm-cells — not listed as required here #

Exact value (const): 2

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

PWM driver for the sl28cpld board management controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/kontron,sl28cpld-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Michael Walle <michael@walle.cc>"

This module is part of the sl28cpld multi-function device. For more details see ../embedded-controller/kontron,sl28cpld.yaml.

The controller supports one PWM channel and supports only four distinct frequencies (250Hz, 500Hz, 1kHz, 2kHz).

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "kontron,sl28cpld-pwm"

reg — not listed as required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 2

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Loongson PWM Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/loongson,ls7a-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Binbin Zhou <zhoubinbin@loongson.cn>"

The Loongson PWM has one pulse width output signal and one pulse input signal to be measured. It can be found on Loongson-2K series cpus and Loongson LS7A bridge chips.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "loongson,ls7a-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "loongson,ls2k0500-pwm", "loongson,ls2k1000-pwm", "loongson,ls2k2000-pwm"

Item 2

Exact value (const): "loongson,ls7a-pwm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

The first cell must have a value of 0, which specifies the PWM output signal; The second cell is the period in nanoseconds; The third cell flag supported by this binding is PWM_POLARITY_INVERTED.

Exact value (const): 3

Required in this object (required): "compatible", "reg", "interrupts", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/loongson,ls2k-clk.h>

pwm@1fe22000 {
    compatible = "loongson,ls2k1000-pwm", "loongson,ls7a-pwm";
    reg = <0x1fe22000 0x10>;
    interrupt-parent = <&liointc0>;
    interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clk LOONGSON2_APB_CLK>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Berlin PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/marvell,berlin-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jisheng Zhang <jszhang@kernel.org>", "Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "marvell,berlin-pwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm@f7f20000 {
    compatible = "marvell,berlin-pwm";
    reg = <0xf7f20000 0x40>;
    clocks = <&chip_clk 12>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Marvell PXA PWM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/marvell,pxa-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Duje Mihanović <duje.mihanovic@skole.hr>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "spacemit,k1-pwm"

When the condition matches (then) #

Properties and child nodes (properties)

#pwm-cells — not listed as required here

Exact value (const): 3

When the condition does not match (else) #

Properties and child nodes (properties)

#pwm-cells — not listed as required here

Exact value (const): 1

Used for specifying the period length in nanoseconds.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "marvell,pxa250-pwm", "marvell,pxa270-pwm", "marvell,pxa168-pwm", "marvell,pxa910-pwm"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "spacemit,k1-pwm"

Item 2

Exact value (const): "marvell,pxa910-pwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Number of cells in a pwm specifier.

clocks — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/pxa-clock.h>

pwm0: pwm@40b00000 {
  compatible = "marvell,pxa250-pwm";
  reg = <0x40b00000 0x10>;
  #pwm-cells = <1>;
  clocks = <&clks CLK_PWM0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 43: Length should be 0x10

MediaTek PWM Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/mediatek,mt2712-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "John Crispin <john@phrozen.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "mediatek,mt2712-pwm", "mediatek,mt6795-pwm", "mediatek,mt6991-pwm", "mediatek,mt7622-pwm", "mediatek,mt7623-pwm", "mediatek,mt7628-pwm", "mediatek,mt7629-pwm", "mediatek,mt7981-pwm", "mediatek,mt7986-pwm", "mediatek,mt7988-pwm", "mediatek,mt8183-pwm", "mediatek,mt8365-pwm", "mediatek,mt8516-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt8195-pwm"

Item 2

Exact value (const): "mediatek,mt8183-pwm"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt8196-pwm"

Item 2

Exact value (const): "mediatek,mt6991-pwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 10

clock-names — required here #

This controller needs two input clocks for its core and one clock for each PWM output.

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "top"

Item 2

Exact value (const): "main"

Item 3

Exact value (const): "pwm1"

Item 4

Exact value (const): "pwm2"

Item 5

Exact value (const): "pwm3"

Item 6

Exact value (const): "pwm4"

Item 7

Exact value (const): "pwm5"

Item 8

Exact value (const): "pwm6"

Item 9

Exact value (const): "pwm7"

Item 10

Exact value (const): "pwm8"

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/mt2712-clk.h>
#include <dt-bindings/interrupt-controller/irq.h>

pwm0: pwm@11006000 {
    compatible = "mediatek,mt2712-pwm";
    reg = <0x11006000 0x1000>;
    #pwm-cells = <2>;
    interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>;
    clocks = <&topckgen CLK_TOP_PWM_SEL>, <&pericfg CLK_PERI_PWM>,
             <&pericfg CLK_PERI_PWM0>, <&pericfg CLK_PERI_PWM1>,
             <&pericfg CLK_PERI_PWM2>, <&pericfg CLK_PERI_PWM3>,
             <&pericfg CLK_PERI_PWM4>, <&pericfg CLK_PERI_PWM5>,
             <&pericfg CLK_PERI_PWM6>, <&pericfg CLK_PERI_PWM7>;
    clock-names = "top", "main",
                  "pwm1", "pwm2",
                  "pwm3", "pwm4",
                  "pwm5", "pwm6",
                  "pwm7", "pwm8";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

MediaTek DISP_PWM Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/mediatek,pwm-disp.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jitao Shi <jitao.shi@mediatek.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "mediatek,mt2701-disp-pwm", "mediatek,mt6595-disp-pwm", "mediatek,mt8173-disp-pwm", "mediatek,mt8183-disp-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt6795-disp-pwm", "mediatek,mt8167-disp-pwm"

Item 2

Exact value (const): "mediatek,mt8173-disp-pwm"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt6893-disp-pwm", "mediatek,mt8186-disp-pwm", "mediatek,mt8188-disp-pwm", "mediatek,mt8192-disp-pwm", "mediatek,mt8195-disp-pwm", "mediatek,mt8365-disp-pwm"

Item 2

Exact value (const): "mediatek,mt8183-disp-pwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Main Clock

Item 2

Mm Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "main"

Item 2

Exact value (const): "mm"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/mt8173-clk.h>
#include <dt-bindings/interrupt-controller/irq.h>

pwm0: pwm@1401e000 {
    compatible = "mediatek,mt8173-disp-pwm";
    reg = <0x1401e000 0x1000>;
    #pwm-cells = <2>;
    clocks = <&mmsys CLK_MM_DISP_PWM026M>,
             <&mmsys CLK_MM_DISP_PWM0MM>;
    clock-names = "main", "mm";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Microchip IP corePWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/microchip,corepwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Conor Dooley <conor.dooley@microchip.com>"

corePWM is an 16 channel pulse width modulator FPGA IP

https://www.microsemi.com/existing-parts/parts/152118

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "microchip,corepwm-rtl-v4"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Allowed values (enum): 2, 3

The only flag supported by the controller is PWM_POLARITY_INVERTED.

microchip,sync-update-mask — not listed as required here #

Depending on how the IP is instantiated, there are two modes of operation. In synchronous mode, all channels are updated at the beginning of the PWM period, and in asynchronous mode updates happen as the control registers are written. A 16 bit wide "SHADOW_REG_EN" parameter of the IP core controls whether synchronous mode is possible for each channel, and is set by the bitstream programmed to the FPGA. If the IP core is instantiated with SHADOW_REG_ENx=1, both registers that control the duty cycle for channel x have a second "shadow"/buffer reg synthesised. At runtime a bit wide register exposed to APB can be used to toggle on/off synchronised mode for all channels it has been synthesised for. Each bit of "microchip,sync-update-mask" corresponds to a PWM channel & represents whether synchronous mode is possible for the PWM channel.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 0

microchip,dac-mode-mask — not listed as required here #

Optional, per-channel Low Ripple DAC mode is possible on this IP core. It creates a minimum period pulse train whose High/Low average is that of the chosen duty cycle. This "DAC" will have far better bandwidth and ripple performance than the standard PWM algorithm can achieve. A 16 bit DAC_MODE module parameter of the IP core, set at instantiation and by the bitstream programmed to the FPGA, determines whether a given channel operates in regular PWM or DAC mode. Each bit corresponds to a PWM channel & represents whether DAC mode is enabled for that channel.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 0

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm@41000000 {
  compatible = "microchip,corepwm-rtl-v4";
  microchip,sync-update-mask = /bits/ 32 <0>;
  clocks = <&clkcfg 30>;
  reg = <0x41000000 0xF0>;
  #pwm-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale MXS PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/mxs-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "fsl,imx23-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx28-pwm"

Item 2

Exact value (const): "fsl,imx23-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

fsl,pwm-number — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

u32 value representing the number of PWM devices

Required in this object (required): "compatible", "reg", "clocks", "fsl,pwm-number"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm@80064000 {
    compatible = "fsl,imx23-pwm";
    reg = <0x80064000 0x2000>;
    clocks = <&clks 30>;
    #pwm-cells = <3>;
    fsl,pwm-number = <8>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NVIDIA Tegra PWFM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/nvidia,tegra20-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra20-pwm", "nvidia,tegra186-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra30-pwm", "nvidia,tegra114-pwm", "nvidia,tegra124-pwm", "nvidia,tegra132-pwm", "nvidia,tegra210-pwm"

Item 2

Allowed values (enum): "nvidia,tegra20-pwm"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra194-pwm"

Item 2

Exact value (const): "nvidia,tegra186-pwm"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra234-pwm"

Item 2

Exact value (const): "nvidia,tegra194-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

resets — required here #

Array item rules (items) #

Item 1

module reset

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pwm"

#pwm-cells — not listed as required here #

Exact value (const): 2

pinctrl-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "sleep"

pinctrl-0 — not listed as required here #

configuration for the default/active state

pinctrl-1 — not listed as required here #

configuration for the sleep state

operating-points-v2 — not listed as required here #

true — No constraints added by this property rule.

power-domains — not listed as required here #

Array item rules (items) #

Item 1

phandle to the core power domain

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml

Required in this object (required): "compatible", "reg", "clocks", "resets", "reset-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/tegra20-car.h>

pwm: pwm@7000a000 {
    compatible = "nvidia,tegra20-pwm";
    reg = <0x7000a000 0x100>;
    #pwm-cells = <2>;
    clocks = <&tegra_car TEGRA20_CLK_PWM>;
    resets = <&tegra_car 17>;
    reset-names = "pwm";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NXP LPC18xx State Configurable Timer

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/nxp,lpc1850-sct-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,lpc1850-sct-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pwm"

#pwm-cells — required here #

Exact value (const): 3

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#pwm-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/lpc18xx-ccu.h>

pwm@40000000 {
    compatible = "nxp,lpc1850-sct-pwm";
    reg = <0x40000000 0x1000>;
    clocks = <&ccu1 CLK_CPU_SCT>;
    clock-names = "pwm";
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

NXP LPC32XX PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/nxp,lpc3220-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nxp,lpc3220-pwm", "nxp,lpc3220-motor-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#pwm-cells — required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg", "clocks", "#pwm-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/lpc32xx-clock.h>

pwm@4005c000 {
    compatible = "nxp,lpc3220-pwm";
    reg = <0x4005c000 0x4>;
    clocks = <&clk LPC32XX_CLK_PWM1>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

High-side switch MC33XS2410

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/nxp,mc33xs2410.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Dimitri Fedrau <dima.fedrau@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,mc33xs2410"

reg — required here #

Maximum number of items (maxItems): 1

spi-max-frequency — not listed as required here #

Maximum value (maximum): 10000000

spi-cpha — not listed as required here #

true — No constraints added by this property rule.

spi-cs-setup-delay-ns — not listed as required here #

Minimum value (minimum): 100

Default value (default): 100

spi-cs-hold-delay-ns — not listed as required here #

Minimum value (minimum): 10

Default value (default): 10

spi-cs-inactive-delay-ns — not listed as required here #

Minimum value (minimum): 300

Default value (default): 300

reset-gpios — not listed as required here #

GPIO connected to the active low reset pin.

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

pwm-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "di0"

Item 2

Exact value (const): "di1"

Item 3

Exact value (const): "di2"

Item 4

Exact value (const): "di3"

pwms — not listed as required here #

Direct inputs(di0-3) are used to directly turn-on or turn-off the outputs.

Maximum number of items (maxItems): 4

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

The external clock can be used if the internal clock doesn't meet timing requirements over temperature and voltage operating range.

Maximum number of items (maxItems): 1

vdd-supply — not listed as required here #

Logic supply voltage

vspi-supply — not listed as required here #

Supply voltage for SPI

vpwr-supply — not listed as required here #

Power switch supply

Required in this object (required): "compatible", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
    #address-cells = <1>;
    #size-cells = <0>;

   pwm@0 {
       compatible = "nxp,mc33xs2410";
       reg = <0x0>;
       spi-max-frequency = <4000000>;
       spi-cpha;
       spi-cs-setup-delay-ns = <100>;
       spi-cs-hold-delay-ns = <10>;
       spi-cs-inactive-delay-ns = <300>;
       reset-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
       #pwm-cells = <3>;
       pwm-names = "di0", "di1", "di2", "di3";
       pwms = <&pwm0 0 1000000>,
              <&pwm1 0 1000000>,
              <&pwm2 0 1000000>,
              <&pwm3 0 1000000>;
       interrupt-parent = <&gpio0>;
       interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
       clocks = <&clk_ext_fixed>;
       vdd-supply = <&reg_3v3>;
       vspi-supply = <&reg_3v3>;
       vpwr-supply = <&reg_24v0>;
   };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

OpenCores PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/opencores,pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "William Qiu <william.qiu@starfivetech.com>"

The OpenCores PTC ip core contains a PWM controller. When operating in PWM mode, the PTC core generates binary signal with user-programmable low and high periods. All PTC counters and registers are 32-bit.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "starfive,jh7100-pwm", "starfive,jh7110-pwm", "starfive,jh8100-pwm"

Item 2

Exact value (const): "opencores,pwm-v1"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm@12490000 {
    compatible = "starfive,jh7110-pwm", "opencores,pwm-v1";
    reg = <0x12490000 0x10000>;
    clocks = <&clkgen 181>;
    resets = <&rstgen 109>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Amlogic PWM

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-amlogic.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Heiner Kallweit <hkallweit1@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "amlogic,meson8b-pwm", "amlogic,meson-gxbb-pwm", "amlogic,meson-gxbb-ao-pwm", "amlogic,meson-axg-ee-pwm", "amlogic,meson-axg-ao-pwm", "amlogic,meson-g12a-ee-pwm", "amlogic,meson-g12a-ao-pwm-ab", "amlogic,meson-g12a-ao-pwm-cd"

Deprecated (deprecated): true

Rule 2

Array item rules (items)

Item 1

Exact value (const): "amlogic,meson-gx-pwm"

Item 2

Exact value (const): "amlogic,meson-gxbb-pwm"

Deprecated (deprecated): true

Rule 3

Array item rules (items)

Item 1

Exact value (const): "amlogic,meson-gx-ao-pwm"

Item 2

Exact value (const): "amlogic,meson-gxbb-ao-pwm"

Deprecated (deprecated): true

Rule 4

Array item rules (items)

Item 1

Exact value (const): "amlogic,meson8-pwm"

Item 2

Exact value (const): "amlogic,meson8b-pwm"

Deprecated (deprecated): true

Rule 5

Allowed values (enum): "amlogic,meson8-pwm-v2", "amlogic,meson-s4-pwm"

Rule 6

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,c3-pwm", "amlogic,meson-a1-pwm"

Item 2

Exact value (const): "amlogic,meson-s4-pwm"

Rule 7

Array item rules (items)

Item 1

Allowed values (enum): "amlogic,meson8b-pwm-v2", "amlogic,meson-gxbb-pwm-v2", "amlogic,meson-axg-pwm-v2", "amlogic,meson-g12-pwm-v2"

Item 2

Exact value (const): "amlogic,meson8-pwm-v2"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,meson8-pwm", "amlogic,meson8b-pwm", "amlogic,meson-gxbb-pwm", "amlogic,meson-gxbb-ao-pwm", "amlogic,meson-axg-ee-pwm", "amlogic,meson-axg-ao-pwm", "amlogic,meson-g12a-ee-pwm", "amlogic,meson-g12a-ao-pwm-ab", "amlogic,meson-g12a-ao-pwm-cd"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "clkin0", "clkin1"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "clkin0"

Item 2

Exact value (const): "clkin1"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,meson8-pwm-v2"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

input clock 0 of the pwm block

Item 2

input clock 1 of the pwm block

Item 3

input clock 2 of the pwm block

Item 4

input clock 3 of the pwm block

clock-names — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "clocks"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,meson-s4-pwm"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Array item rules (items)

Item 1

input clock of PWM channel A

Item 2

input clock of PWM channel B

clock-names — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "clocks"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "amlogic,meson-a1-pwm"

When the condition matches (then) #

Required in this object (required): "power-domains"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm@8550 {
  compatible = "amlogic,meson-gxbb-pwm";
  reg = <0x08550 0x10>;
  clocks = <&xtal>, <&xtal>;
  clock-names = "clkin0", "clkin1";
  #pwm-cells = <3>;
};
pwm@2000 {
  compatible = "amlogic,meson8-pwm-v2";
  reg = <0x1000 0x10>;
  clocks = <&xtal>, <0>, <&fdiv4>, <&fdiv5>;
  #pwm-cells = <3>;
};
pwm@1000 {
  compatible = "amlogic,meson-s4-pwm";
  reg = <0x1000 0x10>;
  clocks = <&pwm_src_a>, <&pwm_src_b>;
  #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 92: Obsolete historic bindings tied to the driver implementation

Line 93: The clocks provided here are meant to be matched with the input

Line 94: known (hard-coded) in the driver and used to select pwm clock

Line 95: source. Currently, the linux driver ignores this.

Line 96: This is kept to maintain ABI backward compatibility.

Line 108: Newer binding where clock describe the actual clock inputs of the pwm

Line 109: block. These are necessary but some inputs may be grounded.

Line 129: Newer IP block take a single input per channel, instead of 4 inputs

Line 130: for both channels

BCM2835 PWM controller (Raspberry Pi controller)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-bcm2835.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Stefan Wahren <stefan.wahren@i2se.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,bcm2835-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm@2020c000 {
  compatible = "brcm,bcm2835-pwm";
  reg = <0x2020c000 0x28>;
  clocks = <&clk_pwm>;
  #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Generic software PWM for modulating GPIOs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-gpio.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Stefan Wahren <wahrenst@gmx.net>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "pwm-gpio"

#pwm-cells — required here #

Exact value (const): 3

See pwm.yaml in this directory for a description of the cells format. The first cell which represents the PWM instance number must always be zero.

gpios — required here #

GPIO to be modulated

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "#pwm-cells", "gpios"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

pwm {
    #pwm-cells = <3>;
    compatible = "pwm-gpio";
    gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

PWM Nexus node properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-nexus-node.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Platforms can have a standardized connector/expansion slot that exposes PWMs signals to expansion boards. A nexus node allows to remap a phandle list in a consumer node through a connector node in a generic way. With this remapping, the consumer node needs to know only about the nexus node. Resources behind the nexus node are decoupled by the nexus node itself.

Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"

Automatic schema selection (select) #

true

This selection rule always matches.

Properties and child nodes (properties) #

#pwm-cells — not listed as required here #

true — No constraints added by this property rule.

pwm-map — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix

pwm-map-mask — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

pwm-map-pass-thru — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Requirements triggered by another property (dependentRequired): { pwm-map: "#pwm-cells", pwm-map-mask: "pwm-map", pwm-map-pass-thru: "pwm-map" }

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Examples (examples) #

pwm1: pwm@100 {
    reg = <0x100 0x10>;
    #pwm-cells = <3>;
};

pwm2: pwm@200 {
    reg = <0x200 0x10>;
    #pwm-cells = <3>;
};

connector: connector {
    #pwm-cells = <3>;
    pwm-map = <0 0 0 &pwm1 1 0 0>,
              <1 0 0 &pwm2 4 0 0>,
              <2 0 0 &pwm1 3 0 0>;
    pwm-map-mask = <0xffffffff 0x0 0x0>;
    pwm-map-pass-thru = <0x0 0xffffffff 0xffffffff>;
};

device {
    pwms = <&connector 1 57000 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Rockchip PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-rockchip.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rockchip,rk2928-pwm"

Rule 2

Exact value (const): "rockchip,rk3288-pwm"

Rule 3

Exact value (const): "rockchip,rk3328-pwm"

Rule 4

Exact value (const): "rockchip,vop-pwm"

Rule 5

Array item rules (items)

Item 1

Exact value (const): "rockchip,rk3036-pwm"

Item 2

Exact value (const): "rockchip,rk2928-pwm"

Rule 6

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3128-pwm", "rockchip,rk3368-pwm", "rockchip,rk3399-pwm", "rockchip,rv1108-pwm"

Item 2

Exact value (const): "rockchip,rk3288-pwm"

Rule 7

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,px30-pwm", "rockchip,rk3308-pwm", "rockchip,rk3528-pwm", "rockchip,rk3562-pwm", "rockchip,rk3568-pwm", "rockchip,rk3588-pwm", "rockchip,rv1126-pwm"

Item 2

Exact value (const): "rockchip,rk3328-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — not listed as required here #

Maximum number of items (maxItems): 2

#pwm-cells — not listed as required here #

Allowed values (enum): 2, 3

Must be 2 (rk2928) or 3 (rk3288 and later). See pwm.yaml for a description of the cell format.

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rockchip,rk3328-pwm", "rockchip,rv1108-pwm"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Array item rules (items)

Item 1

Used to derive the functional clock for the device.

Item 2

Used as the APB bus clock.

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "pwm"

Item 2

Exact value (const): "pclk"

Required in this object (required): "clocks", "clock-names"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — required here

Maximum number of items (maxItems): 1

Used both to derive the functional clock for the device and as the bus clock.

Required in this object (required): "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3188-cru-common.h>
pwm0: pwm@20030000 {
  compatible = "rockchip,rk2928-pwm";
  reg = <0x20030000 0x10>;
  clocks = <&cru PCLK_PWM01>;
  #pwm-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Samsung SoC PWM timers

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-samsung.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Krzysztof Kozlowski <krzk@kernel.org>"

Samsung SoCs contain PWM timer blocks which can be used for system clock source and clock event timers, as well as to drive SoC outputs with PWM signal. Each PWM timer block provides 5 PWM channels (not all of them can drive physical outputs - see SoC and board manual).

Be aware that the clocksource driver supports only uniprocessor systems.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "samsung,s3c2410-pwm", "samsung,s3c6400-pwm", "samsung,s5p6440-pwm", "samsung,s5pc100-pwm", "samsung,exynos4210-pwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos5433-pwm", "samsung,exynos7-pwm", "samsung,exynos8890-pwm", "samsung,exynosautov9-pwm", "samsung,exynosautov920-pwm", "tesla,fsd-pwm"

Item 2

Exact value (const): "samsung,exynos4210-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — required here #

Should contain all following required clock names: - "timers" - PWM base clock used to generate PWM signals, and any subset of following optional clock names: - "pwm-tclk0" - first external PWM clock source, - "pwm-tclk1" - second external PWM clock source. Note that not all IP variants allow using all external clock sources. Refer to SoC documentation to learn which clock source configurations are available.

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "timers"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "timers"

Item 2

Exact value (const): "pwm-tclk0"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "timers"

Item 2

Exact value (const): "pwm-tclk1"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "timers"

Item 2

Exact value (const): "pwm-tclk0"

Item 3

Exact value (const): "pwm-tclk1"

interrupts — not listed as required here #

One interrupt per timer, starting at timer 0. Necessary only for SoCs which use PWM clocksource.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

#pwm-cells — not listed as required here #

The only third cell flag supported by this binding is PWM_POLARITY_INVERTED.

Exact value (const): 3

samsung,pwm-outputs — not listed as required here #

A list of PWM channels used as PWM outputs on particular platform. It is an array of up to 5 elements being indices of PWM channels (from 0 to 4), the order does not matter.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Items must be unique (uniqueItems): true

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 4

Required in this object (required): "clocks", "clock-names", "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "samsung,s3c2410-pwm", "samsung,s3c6400-pwm", "samsung,s5p6440-pwm", "samsung,s5pc100-pwm"

When the condition matches (then) #

Required in this object (required): "interrupts"

Examples (examples) #

pwm@7f006000 {
    compatible = "samsung,s3c6400-pwm";
    reg = <0x7f006000 0x1000>;
    interrupt-parent = <&vic0>;
    interrupts = <23>, <24>, <25>, <27>, <28>;
    clocks = <&clock 67>;
    clock-names = "timers";
    samsung,pwm-outputs = <0>, <1>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 25: 16-bit, S3C24xx

Line 26: 32-bit, S3C64xx

Line 27: 32-bit, S5P64x0

Line 28: 32-bit, S5PC100, S5PV210, Exynos4210 rev0 SoCs

Line 29: 32-bit, Exynos

SiFive PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-sifive.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Paul Walmsley <paul.walmsley@sifive.com>"

Unlike most other PWM controllers, the SiFive PWM controller currently only supports one period for all channels in the PWM. All PWMs need to run at the same period. The period also has significant restrictions on the values it can achieve, which the driver rounds to the nearest achievable period. PWM RTL that corresponds to the IP block version numbers can be found here - https://github.com/sifive/sifive-blocks/tree/master/src/main/scala/devices/pwm

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "sifive,fu540-c000-pwm", "sifive,fu740-c000-pwm"

Item 2

Exact value (const): "sifive,pwm0"

Should be "sifive,<chip>-pwm" and "sifive,pwm<version>". Supported compatible strings are "sifive,fu540-c000-pwm" and "sifive,fu740-c000-pwm" for the SiFive PWM v0 as integrated onto the SiFive FU540 and FU740 chip respectively, and "sifive,pwm0" for the SiFive PWM v0 IP block with no chip integration tweaks. Please refer to sifive-blocks-ip-versioning.txt for details.

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

interrupts — required here #

Maximum number of items (maxItems): 4

Each PWM instance in FU540-C000 has 4 comparators. One interrupt per comparator.

Required in this object (required): "compatible", "reg", "clocks", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm:  pwm@10020000 {
  compatible = "sifive,fu540-c000-pwm", "sifive,pwm0";
  reg = <0x10020000 0x1000>;
  clocks = <&tlclk>;
  interrupt-parent = <&plic>;
  interrupts = <42>, <43>, <44>, <45>;
  #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (C) 2020 SiFive, Inc.

TI SOC ECAP based APWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-tiecap.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vignesh R <vigneshr@ti.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "ti,am3352-ecap"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ti,da850-ecap", "ti,am4372-ecap", "ti,dra746-ecap", "ti,k2g-ecap", "ti,am654-ecap", "ti,am64-ecap"

Item 2

Exact value (const): "ti,am3352-ecap"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

See pwm.yaml in this directory for a description of the cells format. The only third cell flag supported by this binding is PWM_POLARITY_INVERTED.

clock-names — required here #

Exact value (const): "fck"

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

ecap0: pwm@48300100 { /* ECAP on am33xx */
    compatible = "ti,am3352-ecap";
    #pwm-cells = <3>;
    reg = <0x48300100 0x80>;
    clocks = <&l4ls_gclk>;
    clock-names = "fck";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

TI SOC EHRPWM based PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-tiehrpwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vignesh R <vigneshr@ti.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "ti,am3352-ehrpwm"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "ti,da850-ehrpwm", "ti,am4372-ehrpwm", "ti,dra746-ehrpwm", "ti,am654-ehrpwm", "ti,am64-epwm"

Item 2

Exact value (const): "ti,am3352-ehrpwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

See pwm.yaml in this directory for a description of the cells format. The only third cell flag supported by this binding is PWM_POLARITY_INVERTED.

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tbclk"

Item 2

Exact value (const): "fck"

clocks — required here #

Maximum number of items (maxItems): 2

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

ehrpwm0: pwm@48300200 { /* EHRPWM on am33xx */
    compatible = "ti,am3352-ehrpwm";
    #pwm-cells = <3>;
    reg = <0x48300200 0x100>;
    clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>;
    clock-names = "tbclk", "fck";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

PWM controllers (providers)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>"

Automatic schema selection (select) #

false

Not selected automatically by this rule.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^pwm(@.*|-([0-9]|[1-9][0-9]+))?$"

#pwm-cells — required here #

Number of cells in a PWM specifier. Typically the cells represent, in order: the chip-relative PWM number, the PWM period in nanoseconds and optionally a number of flags (defined in <dt-bindings/pwm/pwm.h>).

Required in this object (required): "#pwm-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Examples (examples) #

pwm: pwm@1c20e00 {
    compatible = "allwinner,sun7i-a20-pwm";
    reg = <0x01c20e00 0xc>;
    clocks = <&osc24M>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Renesas R-Car PWM Timer Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/renesas,pwm-rcar.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,pwm-r8a7742", "renesas,pwm-r8a7743", "renesas,pwm-r8a7744", "renesas,pwm-r8a7745", "renesas,pwm-r8a77470", "renesas,pwm-r8a774a1", "renesas,pwm-r8a774b1", "renesas,pwm-r8a774c0", "renesas,pwm-r8a774e1", "renesas,pwm-r8a7778", "renesas,pwm-r8a7779", "renesas,pwm-r8a7790", "renesas,pwm-r8a7791", "renesas,pwm-r8a7794", "renesas,pwm-r8a7795", "renesas,pwm-r8a7796", "renesas,pwm-r8a77961", "renesas,pwm-r8a77965", "renesas,pwm-r8a77970", "renesas,pwm-r8a77980", "renesas,pwm-r8a77990", "renesas,pwm-r8a77995", "renesas,pwm-r8a779a0", "renesas,pwm-r8a779g0", "renesas,pwm-r8a779h0"

Item 2

Exact value (const): "renesas,pwm-rcar"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 2

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "power-domains"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Rule 2 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,pwm-r8a7778", "renesas,pwm-r8a7779"

When the condition matches (then) #

Required in this object (required): "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a7743-cpg-mssr.h>
#include <dt-bindings/power/r8a7743-sysc.h>

pwm0: pwm@e6e30000 {
    compatible = "renesas,pwm-r8a7743", "renesas,pwm-rcar";
    reg = <0xe6e30000 0x8>;
    clocks = <&cpg CPG_MOD 523>;
    power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
    resets = <&cpg 523>;
    #pwm-cells = <2>;
    pinctrl-0 = <&pwm0_pins>;
    pinctrl-names = "default";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 16: RZ/G1H

Line 17: RZ/G1M

Line 18: RZ/G1N

Line 19: RZ/G1E

Line 20: RZ/G1C

Line 21: RZ/G2M

Line 22: RZ/G2N

Line 23: RZ/G2E

Line 24: RZ/G2H

Line 25: R-Car M1A

Line 26: R-Car H1

Line 27: R-Car H2

Line 28: R-Car M2-W

Line 29: R-Car E2

Line 30: R-Car H3

Line 31: R-Car M3-W

Line 32: R-Car M3-W+

Line 33: R-Car M3-N

Line 34: R-Car V3M

Line 35: R-Car V3H

Line 36: R-Car E3

Line 37: R-Car D3

Line 38: R-Car V3U

Line 39: R-Car V4H

Line 40: R-Car V4M

Line 44: base address and length of the registers block for the PWM.

Line 48: should be 2. See pwm.yaml in this directory for a description of

Line 49: the cells format.

Line 53: clock phandle and specifier pair.

Renesas RZ/G2L General PWM Timer (GPT)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/renesas,rzg2l-gpt.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"

RZ/G2L General PWM Timer (GPT) composed of 8 channels with 32-bit timer
(GPT32E). It supports the following functions
* 32 bits x 8 channels.
* Up-counting or down-counting (saw waves) or up/down-counting
  (triangle waves) for each counter.
* Clock sources independently selectable for each channel.
* Two I/O pins per channel.
* Two output compare/input capture registers per channel.
* For the two output compare/input capture registers of each channel,
  four registers are provided as buffer registers and are capable of
  operating as comparison registers when buffering is not in use.
* In output compare operation, buffer switching can be at crests or
  troughs, enabling the generation of laterally asymmetric PWM waveforms.
* Registers for setting up frame cycles in each channel (with capability
  for generating interrupts at overflow or underflow)
* Generation of dead times in PWM operation.
* Synchronous starting, stopping and clearing counters for arbitrary
  channels.
* Starting, stopping, clearing and up/down counters in response to input
  level comparison.
* Starting, clearing, stopping and up/down counters in response to a
  maximum of four external triggers.
* Output pin disable function by dead time error and detected
  short-circuits between output pins.
* A/D converter start triggers can be generated (GPT32E0 to GPT32E3)
* Enables the noise filter for input capture and external trigger
  operation.
The below pwm channels are supported.
  pwm0  - GPT32E0.GTIOC0A channel
  pwm1  - GPT32E0.GTIOC0B channel
  pwm2  - GPT32E1.GTIOC1A channel
  pwm3  - GPT32E1.GTIOC1B channel
  pwm4  - GPT32E2.GTIOC2A channel
  pwm5  - GPT32E2.GTIOC2B channel
  pwm6  - GPT32E3.GTIOC3A channel
  pwm7  - GPT32E3.GTIOC3B channel
  pwm8  - GPT32E4.GTIOC4A channel
  pwm9  - GPT32E4.GTIOC4B channel
  pwm10 - GPT32E5.GTIOC5A channel
  pwm11 - GPT32E5.GTIOC5B channel
  pwm12 - GPT32E6.GTIOC6A channel
  pwm13 - GPT32E6.GTIOC6B channel
  pwm14 - GPT32E7.GTIOC7A channel
  pwm15 - GPT32E7.GTIOC7B channel

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,r9a07g044-gpt", "renesas,r9a07g054-gpt"

Item 2

Exact value (const): "renesas,rzg2l-gpt"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

interrupts — required here #

Array item rules (items) #

Item 1

GPT32E0.GTCCRA input capture/compare match

Item 2

GPT32E0.GTCCRB input capture/compare

Item 3

GPT32E0.GTCCRC compare match

Item 4

GPT32E0.GTCCRD compare match

Item 5

GPT32E0.GTCCRE compare match

Item 6

GPT32E0.GTCCRF compare match

Item 7

GPT32E0.GTADTRA compare match

Item 8

GPT32E0.GTADTRB compare match

Item 9

GPT32E0.GTCNT overflow/GTPR compare match

Item 10

GPT32E0.GTCNT underflow

Item 11

GPT32E1.GTCCRA input capture/compare match

Item 12

GPT32E1.GTCCRB input capture/compare

Item 13

GPT32E1.GTCCRC compare match

Item 14

GPT32E1.GTCCRD compare match

Item 15

GPT32E1.GTCCRE compare match

Item 16

GPT32E1.GTCCRF compare match

Item 17

GPT32E1.GTADTRA compare match

Item 18

GPT32E1.GTADTRB compare match

Item 19

GPT32E1.GTCNT overflow/GTPR compare match

Item 20

GPT32E1.GTCNT underflow

Item 21

GPT32E2.GTCCRA input capture/compare match

Item 22

GPT32E2.GTCCRB input capture/compare

Item 23

GPT32E2.GTCCRC compare match

Item 24

GPT32E2.GTCCRD compare match

Item 25

GPT32E2.GTCCRE compare match

Item 26

GPT32E2.GTCCRF compare match

Item 27

GPT32E2.GTADTRA compare match

Item 28

GPT32E2.GTADTRB compare match

Item 29

GPT32E2.GTCNT overflow/GTPR compare match

Item 30

GPT32E2.GTCNT underflow

Item 31

GPT32E3.GTCCRA input capture/compare match

Item 32

GPT32E3.GTCCRB input capture/compare

Item 33

GPT32E3.GTCCRC compare match

Item 34

GPT32E3.GTCCRD compare match

Item 35

GPT32E3.GTCCRE compare match

Item 36

GPT32E3.GTCCRF compare match

Item 37

GPT32E3.GTADTRA compare match

Item 38

GPT32E3.GTADTRB compare match

Item 39

GPT32E3.GTCNT overflow/GTPR compare match

Item 40

GPT32E3.GTCNT underflow

Item 41

GPT32E4.GTCCRA input capture/compare match

Item 42

GPT32E4.GTCCRB input capture/compare

Item 43

GPT32E4.GTCCRC compare match

Item 44

GPT32E4.GTCCRD compare match

Item 45

GPT32E4.GTCCRE compare match

Item 46

GPT32E4.GTCCRF compare match

Item 47

GPT32E4.GTADTRA compare match

Item 48

GPT32E4.GTADTRB compare match

Item 49

GPT32E4.GTCNT overflow/GTPR compare match

Item 50

GPT32E4.GTCNT underflow

Item 51

GPT32E5.GTCCRA input capture/compare match

Item 52

GPT32E5.GTCCRB input capture/compare

Item 53

GPT32E5.GTCCRC compare match

Item 54

GPT32E5.GTCCRD compare match

Item 55

GPT32E5.GTCCRE compare match

Item 56

GPT32E5.GTCCRF compare match

Item 57

GPT32E5.GTADTRA compare match

Item 58

GPT32E5.GTADTRB compare match

Item 59

GPT32E5.GTCNT overflow/GTPR compare match

Item 60

GPT32E5.GTCNT underflow

Item 61

GPT32E6.GTCCRA input capture/compare match

Item 62

GPT32E6.GTCCRB input capture/compare

Item 63

GPT32E6.GTCCRC compare match

Item 64

GPT32E6.GTCCRD compare match

Item 65

GPT32E6.GTCCRE compare match

Item 66

GPT32E6.GTCCRF compare match

Item 67

GPT32E6.GTADTRA compare match

Item 68

GPT32E6.GTADTRB compare match

Item 69

GPT32E6.GTCNT overflow/GTPR compare match

Item 70

GPT32E6.GTCNT underflow

Item 71

GPT32E7.GTCCRA input capture/compare match

Item 72

GPT32E7.GTCCRB input capture/compare

Item 73

GPT32E7.GTCCRC compare match

Item 74

GPT32E7.GTCCRD compare match

Item 75

GPT32E7.GTCCRE compare match

Item 76

GPT32E7.GTCCRF compare match

Item 77

GPT32E7.GTADTRA compare match

Item 78

GPT32E7.GTADTRB compare match

Item 79

GPT32E7.GTCNT overflow/GTPR compare match

Item 80

GPT32E7.GTCNT underflow

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ccmpa0"

Item 2

Exact value (const): "ccmpb0"

Item 3

Exact value (const): "cmpc0"

Item 4

Exact value (const): "cmpd0"

Item 5

Exact value (const): "cmpe0"

Item 6

Exact value (const): "cmpf0"

Item 7

Exact value (const): "adtrga0"

Item 8

Exact value (const): "adtrgb0"

Item 9

Exact value (const): "ovf0"

Item 10

Exact value (const): "unf0"

Item 11

Exact value (const): "ccmpa1"

Item 12

Exact value (const): "ccmpb1"

Item 13

Exact value (const): "cmpc1"

Item 14

Exact value (const): "cmpd1"

Item 15

Exact value (const): "cmpe1"

Item 16

Exact value (const): "cmpf1"

Item 17

Exact value (const): "adtrga1"

Item 18

Exact value (const): "adtrgb1"

Item 19

Exact value (const): "ovf1"

Item 20

Exact value (const): "unf1"

Item 21

Exact value (const): "ccmpa2"

Item 22

Exact value (const): "ccmpb2"

Item 23

Exact value (const): "cmpc2"

Item 24

Exact value (const): "cmpd2"

Item 25

Exact value (const): "cmpe2"

Item 26

Exact value (const): "cmpf2"

Item 27

Exact value (const): "adtrga2"

Item 28

Exact value (const): "adtrgb2"

Item 29

Exact value (const): "ovf2"

Item 30

Exact value (const): "unf2"

Item 31

Exact value (const): "ccmpa3"

Item 32

Exact value (const): "ccmpb3"

Item 33

Exact value (const): "cmpc3"

Item 34

Exact value (const): "cmpd3"

Item 35

Exact value (const): "cmpe3"

Item 36

Exact value (const): "cmpf3"

Item 37

Exact value (const): "adtrga3"

Item 38

Exact value (const): "adtrgb3"

Item 39

Exact value (const): "ovf3"

Item 40

Exact value (const): "unf3"

Item 41

Exact value (const): "ccmpa4"

Item 42

Exact value (const): "ccmpb4"

Item 43

Exact value (const): "cmpc4"

Item 44

Exact value (const): "cmpd4"

Item 45

Exact value (const): "cmpe4"

Item 46

Exact value (const): "cmpf4"

Item 47

Exact value (const): "adtrga4"

Item 48

Exact value (const): "adtrgb4"

Item 49

Exact value (const): "ovf4"

Item 50

Exact value (const): "unf4"

Item 51

Exact value (const): "ccmpa5"

Item 52

Exact value (const): "ccmpb5"

Item 53

Exact value (const): "cmpc5"

Item 54

Exact value (const): "cmpd5"

Item 55

Exact value (const): "cmpe5"

Item 56

Exact value (const): "cmpf5"

Item 57

Exact value (const): "adtrga5"

Item 58

Exact value (const): "adtrgb5"

Item 59

Exact value (const): "ovf5"

Item 60

Exact value (const): "unf5"

Item 61

Exact value (const): "ccmpa6"

Item 62

Exact value (const): "ccmpb6"

Item 63

Exact value (const): "cmpc6"

Item 64

Exact value (const): "cmpd6"

Item 65

Exact value (const): "cmpe6"

Item 66

Exact value (const): "cmpf6"

Item 67

Exact value (const): "adtrga6"

Item 68

Exact value (const): "adtrgb6"

Item 69

Exact value (const): "ovf6"

Item 70

Exact value (const): "unf6"

Item 71

Exact value (const): "ccmpa7"

Item 72

Exact value (const): "ccmpb7"

Item 73

Exact value (const): "cmpc7"

Item 74

Exact value (const): "cmpd7"

Item 75

Exact value (const): "cmpe7"

Item 76

Exact value (const): "cmpf7"

Item 77

Exact value (const): "adtrga7"

Item 78

Exact value (const): "adtrgb7"

Item 79

Exact value (const): "ovf7"

Item 80

Exact value (const): "unf7"

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "power-domains", "resets"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r9a07g044-cpg.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

gpt: pwm@10048000 {
    compatible = "renesas,r9a07g044-gpt", "renesas,rzg2l-gpt";
    reg = <0x10048000 0x800>;
    interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 219 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 220 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 221 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 222 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 223 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 224 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 225 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 226 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 227 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 231 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 232 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 233 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 234 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 235 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 236 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 237 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 238 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 239 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 240 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 244 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 245 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 246 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 247 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 248 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 249 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 250 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 251 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 252 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 253 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 257 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 258 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 259 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 260 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 261 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 262 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 263 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 264 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 265 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 266 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 270 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 271 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 272 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 273 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 274 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 275 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 276 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 278 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 279 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 283 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 284 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 285 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 286 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 287 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 288 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 289 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 290 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 291 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 292 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 296 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 297 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 298 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 299 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 300 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 301 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 302 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 303 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 304 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 305 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 309 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 310 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 311 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 312 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 313 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 314 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 315 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 316 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 317 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 318 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "ccmpa0", "ccmpb0", "cmpc0", "cmpd0",
                      "cmpe0", "cmpf0", "adtrga0", "adtrgb0",
                      "ovf0", "unf0",
                      "ccmpa1", "ccmpb1", "cmpc1", "cmpd1",
                      "cmpe1", "cmpf1", "adtrga1", "adtrgb1",
                      "ovf1", "unf1",
                      "ccmpa2", "ccmpb2", "cmpc2", "cmpd2",
                      "cmpe2", "cmpf2", "adtrga2", "adtrgb2",
                      "ovf2", "unf2",
                      "ccmpa3", "ccmpb3", "cmpc3", "cmpd3",
                      "cmpe3", "cmpf3", "adtrga3", "adtrgb3",
                      "ovf3", "unf3",
                      "ccmpa4", "ccmpb4", "cmpc4", "cmpd4",
                      "cmpe4", "cmpf4", "adtrga4", "adtrgb4",
                      "ovf4", "unf4",
                      "ccmpa5", "ccmpb5", "cmpc5", "cmpd5",
                      "cmpe5", "cmpf5", "adtrga5", "adtrgb5",
                      "ovf5", "unf5",
                      "ccmpa6", "ccmpb6", "cmpc6", "cmpd6",
                      "cmpe6", "cmpf6", "adtrga6", "adtrgb6",
                      "ovf6", "unf6",
                      "ccmpa7", "ccmpb7", "cmpc7", "cmpd7",
                      "cmpe7", "cmpf7", "adtrga7", "adtrgb7",
                      "ovf7", "unf7";
    clocks = <&cpg CPG_MOD R9A07G044_GPT_PCLK>;
    power-domains = <&cpg>;
    resets = <&cpg R9A07G044_GPT_RST_C>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 63: RZ/G2{L,LC}

Line 64: RZ/V2L

Renesas R-Car Timer Pulse Unit PWM Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/renesas,tpu-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,tpu-r8a73a4", "renesas,tpu-r8a7740", "renesas,tpu-r8a7742", "renesas,tpu-r8a7743", "renesas,tpu-r8a7744", "renesas,tpu-r8a7745", "renesas,tpu-r8a7790", "renesas,tpu-r8a7791", "renesas,tpu-r8a7792", "renesas,tpu-r8a7793", "renesas,tpu-r8a7794", "renesas,tpu-r8a7795", "renesas,tpu-r8a7796", "renesas,tpu-r8a77961", "renesas,tpu-r8a77965", "renesas,tpu-r8a77970", "renesas,tpu-r8a77980", "renesas,tpu-r8a779a0", "renesas,tpu-r8a779g0", "renesas,tpu-r8a779h0"

Item 2

Exact value (const): "renesas,tpu"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "power-domains"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Rule 2 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,tpu-r8a73a4", "renesas,tpu-r8a7740"

When the condition matches (then) #

Required in this object (required): "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a7740-clock.h>

tpu: pwm@e6600000 {
    compatible = "renesas,tpu-r8a7740", "renesas,tpu";
    reg = <0xe6600000 0x148>;
    clocks = <&mstp3_clks R8A7740_CLK_TPU0>;
    power-domains = <&pd_a3sp>;
    #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 16: R-Mobile APE6

Line 17: R-Mobile A1

Line 18: RZ/G1H

Line 19: RZ/G1M

Line 20: RZ/G1N

Line 21: RZ/G1E

Line 22: R-Car H2

Line 23: R-Car M2-W

Line 24: R-Car V2H

Line 25: R-Car M2-N

Line 26: R-Car E2

Line 27: R-Car H3

Line 28: R-Car M3-W

Line 29: R-Car M3-W+

Line 30: R-Car M3-N

Line 31: R-Car V3M

Line 32: R-Car V3H

Line 33: R-Car V3U

Line 34: R-Car V4H

Line 35: R-Car V4M

Line 39: Base address and length of each memory resource used by the PWM

Line 40: controller hardware module.

Line 47: should be 3. See pwm.yaml in this directory for a description of

Line 48: the cells format. The only third cell flag supported by this binding is

Line 49: PWM_POLARITY_INVERTED.

Synopsys DW-APB timers PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/snps,dw-apb-timers-pwm2.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Ben Dooks <ben.dooks@sifive.com>"

This describes the DesignWare APB timers module when used in the PWM mode. The IP core can be generated with various options which can control the functionality, the number of PWMs available and other internal controls the designer requires. The IP block has a version register so this can be used for detection instead of having to encode the IP version number in the device tree compatible.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "snps,dw-apb-timers-pwm2"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

clocks — required here #

Array item rules (items) #

Item 1

Interface bus clock

Item 2

PWM reference clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "bus"

Item 2

Exact value (const): "timer"

snps,pwm-number — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The number of PWM channels configured for this instance

Allowed values (enum): 1, 2, 3, 4, 5, 6, 7, 8

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm: pwm@180000 {
  compatible = "snps,dw-apb-timers-pwm2";
  reg = <0x180000 0x200>;
  #pwm-cells = <3>;
  clocks = <&bus>, <&timer>;
  clock-names = "bus", "timer";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (C) 2022 SiFive, Inc.

Sophgo SG2042 PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/sophgo,sg2042-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chen Wang <unicorn_wang@outlook.com>"

This controller contains 4 channels which can generate PWM waveforms.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "sophgo,sg2042-pwm", "sophgo,sg2044-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "apb"

resets — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/reset/sophgo,sg2042-reset.h>

pwm@7f006000 {
    compatible = "sophgo,sg2042-pwm";
    reg = <0x7f006000 0x1000>;
    #pwm-cells = <3>;
    clocks = <&clock 67>;
    clock-names = "apb";
    resets = <&rstgen RST_PWM>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Spreadtrum/Unisoc UMS512 PWM Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/sprd,ums512-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang@linux.alibaba.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sprd,ums512-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 8

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pwm0"

Item 2

Exact value (const): "enable0"

Item 3

Exact value (const): "pwm1"

Item 4

Exact value (const): "enable1"

Item 5

Exact value (const): "pwm2"

Item 6

Exact value (const): "enable2"

Item 7

Exact value (const): "pwm3"

Item 8

Exact value (const): "enable3"

#pwm-cells — not listed as required here #

Exact value (const): 2

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/sprd,ums512-clk.h>

pwm@32260000 {
  compatible = "sprd,ums512-pwm";
  reg = <0x32260000 0x10000>;
  clocks = <&aon_clk CLK_PWM0>, <&aonapb_gate CLK_PWM0_EB>,
           <&aon_clk CLK_PWM1>, <&aonapb_gate CLK_PWM1_EB>,
           <&aon_clk CLK_PWM2>, <&aonapb_gate CLK_PWM2_EB>,
           <&aon_clk CLK_PWM3>, <&aonapb_gate CLK_PWM3_EB>;
  clock-names = "pwm0", "enable0",
                "pwm1", "enable1",
                "pwm2", "enable2",
                "pwm3", "enable3";
  #pwm-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Sunplus SoC SP7021 PWM Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/sunplus,sp7021-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Hammer Hsieh <hammerh0314@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "sunplus,sp7021-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 2

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "reg", "clocks"

Examples (examples) #

pwm: pwm@9c007a00 {
  compatible = "sunplus,sp7021-pwm";
  reg = <0x9c007a00 0x80>;
  clocks = <&clkc 0xa2>;
  #pwm-cells = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (C) Sunplus Co., Ltd. 2021

T-HEAD TH1520 PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/thead,th1520-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Michal Wilczynski <m.wilczynski@samsung.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "thead,th1520-pwm"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

SoC PWM clock

#pwm-cells — not listed as required here #

Exact value (const): 3

Required in this object (required): "compatible", "reg", "clocks"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/thead,th1520-clk-ap.h>
soc {
  #address-cells = <2>;
  #size-cells = <2>;
  pwm@ffec01c000 {
      compatible = "thead,th1520-pwm";
      reg = <0xff 0xec01c000 0x0 0x4000>;
      clocks = <&clk CLK_PWM>;
      #pwm-cells = <3>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

TI dual mode timer PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/ti,omap-dmtimer-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>"

TI dual mode timer instances have an IO pin for PWM capability

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,omap-dmtimer-pwm"

#pwm-cells — not listed as required here #

Exact value (const): 3

ti,timers — required here #

Timer instance phandle for the PWM

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

ti,prescaler — not listed as required here #

Legacy clock prescaler for timer. The timer counter is prescaled with 2^n where n is the prescaler.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

Deprecated (deprecated): true

ti,clock-source — not listed as required here #

Legacy clock for timer, please use assigned-clocks instead. 0x00 - high-frequency system clock (timer_sys_ck) 0x01 - 32-kHz always-on clock (timer_32k_ck) 0x02 - external clock (timer_ext_ck, OMAP2 only)

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2

Deprecated (deprecated): true

Required in this object (required): "compatible", "ti,timers"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm9: pwm {
  compatible = "ti,omap-dmtimer-pwm";
  ti,timers = <&timer9>;
  #pwm-cells = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Toshiba Visconti PWM Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/toshiba,pwm-visconti.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "toshiba,visconti-pwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 2

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    pwm: pwm@241c0000 {
        compatible = "toshiba,visconti-pwm";
        reg = <0 0x241c0000 0 0x1000>;
        pinctrl-names = "default";
        pinctrl-0 = <&pwm_mux>;
        #pwm-cells = <2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

VIA/Wondermedia VT8500/WM8xxx series SoC PWM controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Pwm bindings

Schema identifier ($id): "http://devicetree.org/schemas/pwm/via,vt8500-pwm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexey Charkov <alchark@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): pwm.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "via,vt8500-pwm"

reg — required here #

Maximum number of items (maxItems): 1

#pwm-cells — not listed as required here #

Exact value (const): 3

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pwm1: pwm@d8220000 {
    compatible = "via,vt8500-pwm";
    reg = <0xd8220000 0x1000>;
    #pwm-cells = <3>;
    clocks = <&clkpwm>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Peios Learn — documentation for Peios software.

Built with Trail.