Spreadtrum/Unisoc UMS512 PWM Controller

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

Edit this page