Rockchip PWM controller
Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-rockchip.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"rockchip,rk2928-pwm"
Rule 2
Exact value (
const):"rockchip,rk3288-pwm"
Rule 3
Exact value (
const):"rockchip,rk3328-pwm"
Rule 4
Exact value (
const):"rockchip,vop-pwm"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"rockchip,rk3036-pwm"Item 2
Exact value (
const):"rockchip,rk2928-pwm"
Rule 6
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,rk3128-pwm","rockchip,rk3368-pwm","rockchip,rk3399-pwm","rockchip,rv1108-pwm"Item 2
Exact value (
const):"rockchip,rk3288-pwm"
Rule 7
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,px30-pwm","rockchip,rk3308-pwm","rockchip,rk3528-pwm","rockchip,rk3562-pwm","rockchip,rk3568-pwm","rockchip,rk3588-pwm","rockchip,rv1126-pwm"Item 2
Exact value (
const):"rockchip,rk3328-pwm"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Maximum number of items (maxItems): 2
#pwm-cells — not listed as required here #
Must be 2 (rk2928) or 3 (rk3288 and later). See pwm.yaml for a description of the cell format.
Required in this object (required): "compatible", "reg"
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)Allowed values (
enum):"rockchip,rk3328-pwm","rockchip,rv1108-pwm"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereArray item rules (
items)Item 1
Used to derive the functional clock for the device.
Item 2
Used as the APB bus clock.
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"pwm"Item 2
Exact value (
const):"pclk"When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— required hereMaximum number of items (
maxItems):1Used both to derive the functional clock for the device and as the bus clock.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3188-cru-common.h>
pwm0: pwm@20030000 {
compatible = "rockchip,rk2928-pwm";
reg = <0x20030000 0x10>;
clocks = <&cru PCLK_PWM01>;
#pwm-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0