-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pwm: jz4740: Add support for devicetree
Add support for probing the pwm-jz4740 directly from devicetree. Signed-off-by: Paul Cercueil <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
- Loading branch information
1 parent
174dcc8
commit cc20173
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
Documentation/devicetree/bindings/pwm/ingenic,jz47xx-pwm.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Ingenic JZ47xx PWM Controller | ||
============================= | ||
|
||
Required properties: | ||
- compatible: One of: | ||
* "ingenic,jz4740-pwm" | ||
* "ingenic,jz4770-pwm" | ||
* "ingenic,jz4780-pwm" | ||
- #pwm-cells: Should be 3. See pwm.txt in this directory for a description | ||
of the cells format. | ||
- clocks : phandle to the external clock. | ||
- clock-names : Should be "ext". | ||
|
||
|
||
Example: | ||
|
||
pwm: pwm@10002000 { | ||
compatible = "ingenic,jz4740-pwm"; | ||
reg = <0x10002000 0x1000>; | ||
|
||
#pwm-cells = <3>; | ||
|
||
clocks = <&ext>; | ||
clock-names = "ext"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters