Allwinner A10 PWM
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 hereRule 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 hereMaximum number of items (
maxItems):2
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"mod"Item 2
Exact value (
const):"bus"When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum 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