Marvell PXA PWM

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

Edit this page