1*c66ec88fSEmmanuel VadotBinding for simple gpio gated clock. 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-gate-clock". 9*c66ec88fSEmmanuel Vadot- #clock-cells : from common clock binding; shall be set to 0. 10*c66ec88fSEmmanuel Vadot- enable-gpios : GPIO reference for enabling and disabling the clock. 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel VadotOptional properties: 13*c66ec88fSEmmanuel Vadot- clocks: Maximum of one parent clock is supported. 14*c66ec88fSEmmanuel Vadot 15*c66ec88fSEmmanuel VadotExample: 16*c66ec88fSEmmanuel Vadot clock { 17*c66ec88fSEmmanuel Vadot compatible = "gpio-gate-clock"; 18*c66ec88fSEmmanuel Vadot clocks = <&parentclk>; 19*c66ec88fSEmmanuel Vadot #clock-cells = <0>; 20*c66ec88fSEmmanuel Vadot enable-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; 21*c66ec88fSEmmanuel Vadot }; 22