PWM Nexus node properties

Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-nexus-node.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Platforms can have a standardized connector/expansion slot that exposes PWMs signals to expansion boards. A nexus node allows to remap a phandle list in a consumer node through a connector node in a generic way. With this remapping, the consumer node needs to know only about the nexus node. Resources behind the nexus node are decoupled by the nexus node itself.

Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"

Automatic schema selection (select) #

true

This selection rule always matches.

Properties and child nodes (properties) #

#pwm-cells — not listed as required here #

true — No constraints added by this property rule.

pwm-map — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix

pwm-map-mask — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

pwm-map-pass-thru — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Requirements triggered by another property (dependentRequired): { pwm-map: "#pwm-cells", pwm-map-mask: "pwm-map", pwm-map-pass-thru: "pwm-map" }

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Examples (examples) #

pwm1: pwm@100 {
    reg = <0x100 0x10>;
    #pwm-cells = <3>;
};

pwm2: pwm@200 {
    reg = <0x200 0x10>;
    #pwm-cells = <3>;
};

connector: connector {
    #pwm-cells = <3>;
    pwm-map = <0 0 0 &pwm1 1 0 0>,
              <1 0 0 &pwm2 4 0 0>,
              <2 0 0 &pwm1 3 0 0>;
    pwm-map-mask = <0xffffffff 0x0 0x0>;
    pwm-map-pass-thru = <0x0 0xffffffff 0xffffffff>;
};

device {
    pwms = <&connector 1 57000 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page