OpenCores PWM controller
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