aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt
blob: 131e8c11d26fc8b475660de96d3691835f95e6c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
TI SOC ECAP based APWM controller

Required properties:
- compatible: Must be "ti,am33xx-ecap"
- #pwm-cells: Should be 3. Number of cells being used to specify PWM property.
  First cell specifies the per-chip index of the PWM to use, the second
  cell is the period in nanoseconds and bit 0 in the third cell is used to
  encode the polarity of PWM output. Set bit 0 of the third in PWM specifier
  to 1 for inverse polarity & set to 0 for normal polarity.
- reg: physical base address and size of the registers map.

Optional properties:
- ti,hwmods: Name of the hwmod associated to the ECAP:
  "ecap<x>", <x> being the 0-based instance number from the HW spec

Example:

ecap0: ecap@0 {
	compatible = "ti,am33xx-ecap";
	#pwm-cells = <3>;
	reg = <0x48300100 0x80>;
	ti,hwmods = "ecap0";
};