Simple GPIO clock multiplexer

Schema identifier ($id): "http://devicetree.org/schemas/clock/gpio-mux-clock.yaml#"

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

Maintainers (maintainers): "Sergej Sawazki <ce3a@gmx.de>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "gpio-mux-clock"

clocks — required here #

Array item rules (items) #

Item 1

First parent clock

Item 2

Second parent clock

#clock-cells — required here #

Exact value (const): 0

select-gpios — required here #

GPIO reference for selecting the parent clock.

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks", "#clock-cells", "select-gpios"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

clock {
        compatible = "gpio-mux-clock";
        clocks = <&parentclk1>, <&parentclk2>;
        #clock-cells = <0>;
        select-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page