Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/clock/gpio-mux-clock.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Simple GPIO clock multiplexer
0008 
0009 maintainers:
0010   - Sergej Sawazki <ce3a@gmx.de>
0011 
0012 properties:
0013   compatible:
0014     const: gpio-mux-clock
0015 
0016   clocks:
0017     items:
0018       - description: First parent clock
0019       - description: Second parent clock
0020 
0021   '#clock-cells':
0022     const: 0
0023 
0024   select-gpios:
0025     description: GPIO reference for selecting the parent clock.
0026     maxItems: 1
0027 
0028 required:
0029   - compatible
0030   - clocks
0031   - '#clock-cells'
0032   - select-gpios
0033 
0034 additionalProperties: false
0035 
0036 examples:
0037   - |
0038     #include <dt-bindings/gpio/gpio.h>
0039 
0040     clock {
0041             compatible = "gpio-mux-clock";
0042             clocks = <&parentclk1>, <&parentclk2>;
0043             #clock-cells = <0>;
0044             select-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
0045     };