1af0ba001SPhilip, AvinashTI SOC based PWM Subsystem
2af0ba001SPhilip, Avinash
3af0ba001SPhilip, AvinashRequired properties:
496d5a545SFranklin S Cooper Jr- compatible: Must be "ti,<soc>-pwmss".
596d5a545SFranklin S Cooper Jr  for am33xx  - compatible = "ti,am33xx-pwmss";
696d5a545SFranklin S Cooper Jr  for am4372  - compatible = "ti,am4372-pwmss","ti,am33xx-pwmss";
734370142SVignesh R  for dra746 - compatible = "ti,dra746-pwmss", "ti,am33xx-pwmss"
896d5a545SFranklin S Cooper Jr
9af0ba001SPhilip, Avinash- reg: physical base address and size of the registers map.
10af0ba001SPhilip, Avinash- address-cells: Specify the number of u32 entries needed in child nodes.
11af0ba001SPhilip, Avinash		  Should set to 1.
12af0ba001SPhilip, Avinash- size-cells: specify number of u32 entries needed to specify child nodes size
13af0ba001SPhilip, Avinash		in reg property. Should set to 1.
14af0ba001SPhilip, Avinash- ranges: describes the address mapping of a memory-mapped bus. Should set to
15af0ba001SPhilip, Avinash	   physical address map of child's base address, physical address within
16af0ba001SPhilip, Avinash	   parent's address  space and length of the address map. For am33xx,
17af0ba001SPhilip, Avinash	   3 set of child register maps present, ECAP register space, EQEP
18af0ba001SPhilip, Avinash	   register space, EHRPWM register space.
19af0ba001SPhilip, Avinash
20af0ba001SPhilip, AvinashAlso child nodes should also populated under PWMSS DT node.
21af0ba001SPhilip, Avinash
22af0ba001SPhilip, AvinashExample:
2396d5a545SFranklin S Cooper Jrepwmss0: epwmss@48300000 { /* PWMSS for am33xx */
24af0ba001SPhilip, Avinash	compatible = "ti,am33xx-pwmss";
25af0ba001SPhilip, Avinash	reg = <0x48300000 0x10>;
26af0ba001SPhilip, Avinash	ti,hwmods = "epwmss0";
27af0ba001SPhilip, Avinash	#address-cells = <1>;
28af0ba001SPhilip, Avinash	#size-cells = <1>;
29af0ba001SPhilip, Avinash	ranges = <0x48300100 0x48300100 0x80   /* ECAP */
30af0ba001SPhilip, Avinash		  0x48300180 0x48300180 0x80   /* EQEP */
31af0ba001SPhilip, Avinash		  0x48300200 0x48300200 0x80>; /* EHRPWM */
32af0ba001SPhilip, Avinash
33af0ba001SPhilip, Avinash	/* child nodes go here */
34af0ba001SPhilip, Avinash};
3596d5a545SFranklin S Cooper Jr
3696d5a545SFranklin S Cooper Jrepwmss0: epwmss@48300000 { /* PWMSS for am4372 */
3796d5a545SFranklin S Cooper Jr	compatible = "ti,am4372-pwmss","ti,am33xx-pwmss"
3896d5a545SFranklin S Cooper Jr	reg = <0x48300000 0x10>;
3996d5a545SFranklin S Cooper Jr	ti,hwmods = "epwmss0";
4096d5a545SFranklin S Cooper Jr	#address-cells = <1>;
4196d5a545SFranklin S Cooper Jr	#size-cells = <1>;
4296d5a545SFranklin S Cooper Jr	ranges = <0x48300100 0x48300100 0x80   /* ECAP */
4396d5a545SFranklin S Cooper Jr		  0x48300180 0x48300180 0x80   /* EQEP */
4496d5a545SFranklin S Cooper Jr		  0x48300200 0x48300200 0x80>; /* EHRPWM */
4596d5a545SFranklin S Cooper Jr
4696d5a545SFranklin S Cooper Jr	/* child nodes go here */
4796d5a545SFranklin S Cooper Jr};
4834370142SVignesh R
4934370142SVignesh Repwmss0: epwmss@4843e000 { /* PWMSS for DRA7xx */
5034370142SVignesh R	compatible = "ti,dra746-pwmss", "ti,am33xx-pwmss";
5134370142SVignesh R	reg = <0x4843e000 0x30>;
5234370142SVignesh R	ti,hwmods = "epwmss0";
5334370142SVignesh R	#address-cells = <1>;
5434370142SVignesh R	#size-cells = <1>;
5534370142SVignesh R	ranges;
5634370142SVignesh R
5734370142SVignesh R	/* child nodes go here */
5834370142SVignesh R};
59