X-Powers AC100

Schema identifier ($id): "http://devicetree.org/schemas/mfd/x-powers,ac100.yaml#"

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "x-powers,ac100"

reg — required here #

Maximum number of items (maxItems): 1

codec — required here #

Value type (type): "object"

Properties and child nodes (properties) #

#clock-cells — required here

Exact value (const): 0

compatible — required here

Exact value (const): "x-powers,ac100-codec"

interrupts — required here

Maximum number of items (maxItems): 1

clock-output-names — required here

Maximum number of items (maxItems): 1

Name of the 4M_adda clock exposed by the codec

Required in this object (required): "#clock-cells", "compatible", "interrupts", "clock-output-names"

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

false

Not allowed by this rule.

rtc — required here #

Value type (type): "object"

Properties and child nodes (properties) #

#clock-cells — required here

Exact value (const): 1

compatible — required here

Exact value (const): "x-powers,ac100-rtc"

interrupts — required here

Maximum number of items (maxItems): 1

clocks — required here

Maximum number of items (maxItems): 1

A phandle to the codec's "4M_adda" clock

clock-output-names — required here

Maximum number of items (maxItems): 3

Name of the cko1, cko2 and cko3 clocks exposed by the codec

Required in this object (required): "#clock-cells", "compatible", "interrupts", "clocks", "clock-output-names"

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "codec", "rtc"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

rsb {
    #address-cells = <1>;
    #size-cells = <0>;

    codec@e89 {
        compatible = "x-powers,ac100";
        reg = <0xe89>;

        ac100_codec: codec {
            compatible = "x-powers,ac100-codec";
            interrupt-parent = <&r_pio>;
            interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */
            #clock-cells = <0>;
            clock-output-names = "4M_adda";
        };

        ac100_rtc: rtc {
            compatible = "x-powers,ac100-rtc";
            interrupt-parent = <&nmi_intc>;
            interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
            clocks = <&ac100_codec>;
            #clock-cells = <1>;
            clock-output-names = "cko1_rtc", "cko2_rtc", "cko3_rtc";
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page