Sophgo SG2042 PWM controller

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)

Edit this page