18c2ecf20Sopenharmony_ciBinding for an external clock signal driven by a PWM pin. 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThis binding uses the common clock binding[1] and the common PWM binding[2]. 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci[1] Documentation/devicetree/bindings/clock/clock-bindings.txt 68c2ecf20Sopenharmony_ci[2] Documentation/devicetree/bindings/pwm/pwm.txt 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciRequired properties: 98c2ecf20Sopenharmony_ci- compatible : shall be "pwm-clock". 108c2ecf20Sopenharmony_ci- #clock-cells : from common clock binding; shall be set to 0. 118c2ecf20Sopenharmony_ci- pwms : from common PWM binding; this determines the clock frequency 128c2ecf20Sopenharmony_ci via the period given in the PWM specifier. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciOptional properties: 158c2ecf20Sopenharmony_ci- clock-output-names : From common clock binding. 168c2ecf20Sopenharmony_ci- clock-frequency : Exact output frequency, in case the PWM period 178c2ecf20Sopenharmony_ci is not exact but was rounded to nanoseconds. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciExample: 208c2ecf20Sopenharmony_ci clock { 218c2ecf20Sopenharmony_ci compatible = "pwm-clock"; 228c2ecf20Sopenharmony_ci #clock-cells = <0>; 238c2ecf20Sopenharmony_ci clock-frequency = <25000000>; 248c2ecf20Sopenharmony_ci clock-output-names = "mipi_mclk"; 258c2ecf20Sopenharmony_ci pwms = <&pwm2 0 40>; /* 1 / 40 ns = 25 MHz */ 268c2ecf20Sopenharmony_ci }; 27