1feb29cc7SGeert Uytterhoeven# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2feb29cc7SGeert Uytterhoeven%YAML 1.2 3feb29cc7SGeert Uytterhoeven--- 4feb29cc7SGeert Uytterhoeven$id: http://devicetree.org/schemas/clock/gpio-mux-clock.yaml# 5feb29cc7SGeert Uytterhoeven$schema: http://devicetree.org/meta-schemas/core.yaml# 6feb29cc7SGeert Uytterhoeven 7feb29cc7SGeert Uytterhoeventitle: Simple GPIO clock multiplexer 8feb29cc7SGeert Uytterhoeven 9feb29cc7SGeert Uytterhoevenmaintainers: 10feb29cc7SGeert Uytterhoeven - Sergej Sawazki <ce3a@gmx.de> 11feb29cc7SGeert Uytterhoeven 12feb29cc7SGeert Uytterhoevenproperties: 13feb29cc7SGeert Uytterhoeven compatible: 14feb29cc7SGeert Uytterhoeven const: gpio-mux-clock 15feb29cc7SGeert Uytterhoeven 16feb29cc7SGeert Uytterhoeven clocks: 17feb29cc7SGeert Uytterhoeven items: 18feb29cc7SGeert Uytterhoeven - description: First parent clock 19feb29cc7SGeert Uytterhoeven - description: Second parent clock 20feb29cc7SGeert Uytterhoeven 21feb29cc7SGeert Uytterhoeven '#clock-cells': 22feb29cc7SGeert Uytterhoeven const: 0 23feb29cc7SGeert Uytterhoeven 24feb29cc7SGeert Uytterhoeven select-gpios: 25feb29cc7SGeert Uytterhoeven description: GPIO reference for selecting the parent clock. 26feb29cc7SGeert Uytterhoeven maxItems: 1 27feb29cc7SGeert Uytterhoeven 28feb29cc7SGeert Uytterhoevenrequired: 29feb29cc7SGeert Uytterhoeven - compatible 30feb29cc7SGeert Uytterhoeven - clocks 31feb29cc7SGeert Uytterhoeven - '#clock-cells' 32feb29cc7SGeert Uytterhoeven - select-gpios 33feb29cc7SGeert Uytterhoeven 34feb29cc7SGeert UytterhoevenadditionalProperties: false 35feb29cc7SGeert Uytterhoeven 36feb29cc7SGeert Uytterhoevenexamples: 37feb29cc7SGeert Uytterhoeven - | 38feb29cc7SGeert Uytterhoeven #include <dt-bindings/gpio/gpio.h> 39feb29cc7SGeert Uytterhoeven 40feb29cc7SGeert Uytterhoeven clock { 41feb29cc7SGeert Uytterhoeven compatible = "gpio-mux-clock"; 42feb29cc7SGeert Uytterhoeven clocks = <&parentclk1>, <&parentclk2>; 43feb29cc7SGeert Uytterhoeven #clock-cells = <0>; 44feb29cc7SGeert Uytterhoeven select-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; 45feb29cc7SGeert Uytterhoeven }; 46