1*7ef62cebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*7ef62cebSEmmanuel Vadot%YAML 1.2 3*7ef62cebSEmmanuel Vadot--- 4*7ef62cebSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/gpio-gate-clock.yaml# 5*7ef62cebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*7ef62cebSEmmanuel Vadot 7*7ef62cebSEmmanuel Vadottitle: Simple GPIO clock gate 8*7ef62cebSEmmanuel Vadot 9*7ef62cebSEmmanuel Vadotmaintainers: 10*7ef62cebSEmmanuel Vadot - Jyri Sarha <jsarha@ti.com> 11*7ef62cebSEmmanuel Vadot 12*7ef62cebSEmmanuel Vadotproperties: 13*7ef62cebSEmmanuel Vadot compatible: 14*7ef62cebSEmmanuel Vadot const: gpio-gate-clock 15*7ef62cebSEmmanuel Vadot 16*7ef62cebSEmmanuel Vadot clocks: 17*7ef62cebSEmmanuel Vadot maxItems: 1 18*7ef62cebSEmmanuel Vadot 19*7ef62cebSEmmanuel Vadot '#clock-cells': 20*7ef62cebSEmmanuel Vadot const: 0 21*7ef62cebSEmmanuel Vadot 22*7ef62cebSEmmanuel Vadot enable-gpios: 23*7ef62cebSEmmanuel Vadot description: GPIO reference for enabling and disabling the clock. 24*7ef62cebSEmmanuel Vadot maxItems: 1 25*7ef62cebSEmmanuel Vadot 26*7ef62cebSEmmanuel Vadotrequired: 27*7ef62cebSEmmanuel Vadot - compatible 28*7ef62cebSEmmanuel Vadot - '#clock-cells' 29*7ef62cebSEmmanuel Vadot - enable-gpios 30*7ef62cebSEmmanuel Vadot 31*7ef62cebSEmmanuel VadotadditionalProperties: false 32*7ef62cebSEmmanuel Vadot 33*7ef62cebSEmmanuel Vadotexamples: 34*7ef62cebSEmmanuel Vadot - | 35*7ef62cebSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 36*7ef62cebSEmmanuel Vadot 37*7ef62cebSEmmanuel Vadot clock { 38*7ef62cebSEmmanuel Vadot compatible = "gpio-gate-clock"; 39*7ef62cebSEmmanuel Vadot clocks = <&parentclk>; 40*7ef62cebSEmmanuel Vadot #clock-cells = <0>; 41*7ef62cebSEmmanuel Vadot enable-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; 42*7ef62cebSEmmanuel Vadot }; 43