xref: /freebsd/sys/contrib/device-tree/Bindings/clock/gpio-mux-clock.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotBinding for simple gpio clock multiplexer.
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis binding uses the common clock binding[1].
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel Vadot[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotRequired properties:
8*c66ec88fSEmmanuel Vadot- compatible : shall be "gpio-mux-clock".
9*c66ec88fSEmmanuel Vadot- clocks: list of two references to parent clocks.
10*c66ec88fSEmmanuel Vadot- #clock-cells : from common clock binding; shall be set to 0.
11*c66ec88fSEmmanuel Vadot- select-gpios : GPIO reference for selecting the parent clock.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotExample:
14*c66ec88fSEmmanuel Vadot	clock {
15*c66ec88fSEmmanuel Vadot		compatible = "gpio-mux-clock";
16*c66ec88fSEmmanuel Vadot		clocks = <&parentclk1>, <&parentclk2>;
17*c66ec88fSEmmanuel Vadot		#clock-cells = <0>;
18*c66ec88fSEmmanuel Vadot		select-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
19*c66ec88fSEmmanuel Vadot	};
20