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