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