1*4882a593SmuzhiyunBinding for an external clock signal driven by a PWM pin. 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThis binding uses the common clock binding[1] and the common PWM binding[2]. 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun[1] Documentation/devicetree/bindings/clock/clock-bindings.txt 6*4882a593Smuzhiyun[2] Documentation/devicetree/bindings/pwm/pwm.txt 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunRequired properties: 9*4882a593Smuzhiyun- compatible : shall be "pwm-clock". 10*4882a593Smuzhiyun- #clock-cells : from common clock binding; shall be set to 0. 11*4882a593Smuzhiyun- pwms : from common PWM binding; this determines the clock frequency 12*4882a593Smuzhiyun via the period given in the PWM specifier. 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunOptional properties: 15*4882a593Smuzhiyun- clock-output-names : From common clock binding. 16*4882a593Smuzhiyun- clock-frequency : Exact output frequency, in case the PWM period 17*4882a593Smuzhiyun is not exact but was rounded to nanoseconds. 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunExample: 20*4882a593Smuzhiyun clock { 21*4882a593Smuzhiyun compatible = "pwm-clock"; 22*4882a593Smuzhiyun #clock-cells = <0>; 23*4882a593Smuzhiyun clock-frequency = <25000000>; 24*4882a593Smuzhiyun clock-output-names = "mipi_mclk"; 25*4882a593Smuzhiyun pwms = <&pwm2 0 40>; /* 1 / 40 ns = 25 MHz */ 26*4882a593Smuzhiyun }; 27