xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pwm/img-pwm.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun*Imagination Technologies PWM DAC driver
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun  - compatible: Should be "img,pistachio-pwm"
5*4882a593Smuzhiyun  - reg: Should contain physical base address and length of pwm registers.
6*4882a593Smuzhiyun  - clocks: Must contain an entry for each entry in clock-names.
7*4882a593Smuzhiyun	See ../clock/clock-bindings.txt for details.
8*4882a593Smuzhiyun  - clock-names: Must include the following entries.
9*4882a593Smuzhiyun    - pwm: PWM operating clock.
10*4882a593Smuzhiyun    - sys: PWM system interface clock.
11*4882a593Smuzhiyun  - #pwm-cells: Should be 2. See pwm.yaml in this directory for the
12*4882a593Smuzhiyun	description of the cells format.
13*4882a593Smuzhiyun  - img,cr-periph: Must contain a phandle to the peripheral control
14*4882a593Smuzhiyun	syscon node which contains PWM control registers.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunExample:
17*4882a593Smuzhiyun	pwm: pwm@18101300 {
18*4882a593Smuzhiyun		compatible = "img,pistachio-pwm";
19*4882a593Smuzhiyun		reg = <0x18101300 0x100>;
20*4882a593Smuzhiyun		clocks = <&pwm_clk>, <&system_clk>;
21*4882a593Smuzhiyun		clock-names = "pwm", "sys";
22*4882a593Smuzhiyun		#pwm-cells = <2>;
23*4882a593Smuzhiyun		img,cr-periph = <&cr_periph>;
24*4882a593Smuzhiyun	};
25