forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'pwm/for-4.8-rc1' of git://git.kernel.org/pub/scm/linux/ker…
…nel/git/thierry.reding/linux-pwm Pull pwm updates from Thierry Reding: "This set of changes improve some aspects of the atomic API as well as make use of this new API in the regulator framework to allow properly dealing with critical regulators controlled by a PWM. Aside from that there's a bunch of updates and cleanups for existing drivers, as well as the addition of new drivers for the Broadcom iProc, STMPE and ChromeOS EC controllers" * tag 'pwm/for-4.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm: (44 commits) regulator: pwm: Document pwm-dutycycle-unit and pwm-dutycycle-range regulator: pwm: Support extra continuous mode cases pwm: Add ChromeOS EC PWM driver dt-bindings: pwm: Add binding for ChromeOS EC PWM mfd: cros_ec: Add EC_PWM function definitions mfd: cros_ec: Add cros_ec_cmd_xfer_status() helper pwm: atmel: Use of_device_get_match_data() pwm: atmel: Fix checkpatch warnings pwm: atmel: Fix disabling of PWM channels dt-bindings: pwm: Add R-Car H3 device tree bindings pwm: rcar: Use ARCH_RENESAS pwm: tegra: Add support for Tegra186 dt-bindings: pwm: tegra: Add compatible string for Tegra186 pwm: tegra: Avoid overflow when calculating duty cycle pwm: tegra: Allow 100 % duty cycle pwm: tegra: Add support for reset control pwm: tegra: Rename mmio_base to regs pwm: tegra: Remove useless padding pwm: tegra: Drop NUM_PWM macro pwm: lpc32xx: Set PWM_PIN_LEVEL bit to default value ...
- Loading branch information
Showing
29 changed files
with
1,561 additions
and
283 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -77,3 +77,12 @@ Description: | |
Enable/disable the PWM signal. | ||
0 is disabled | ||
1 is enabled | ||
|
||
What: /sys/class/pwm/pwmchipN/pwmX/capture | ||
Date: June 2016 | ||
KernelVersion: 4.8 | ||
Contact: Lee Jones <[email protected]> | ||
Description: | ||
Capture information about a PWM signal. The output format is a | ||
pair unsigned integers (period and duty cycle), separated by a | ||
single space. |
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,21 @@ | ||
Broadcom iProc PWM controller device tree bindings | ||
|
||
This controller has 4 channels. | ||
|
||
Required Properties : | ||
- compatible: must be "brcm,iproc-pwm" | ||
- reg: physical base address and length of the controller's registers | ||
- clocks: phandle + clock specifier pair for the external clock | ||
- #pwm-cells: Should be 3. See pwm.txt in this directory for a | ||
description of the cells format. | ||
|
||
Refer to clocks/clock-bindings.txt for generic clock consumer properties. | ||
|
||
Example: | ||
|
||
pwm: pwm@18031000 { | ||
compatible = "brcm,iproc-pwm"; | ||
reg = <0x18031000 0x28>; | ||
clocks = <&osc>; | ||
#pwm-cells = <3>; | ||
}; |
23 changes: 23 additions & 0 deletions
23
Documentation/devicetree/bindings/pwm/google,cros-ec-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,23 @@ | ||
* PWM controlled by ChromeOS EC | ||
|
||
Google's ChromeOS EC PWM is a simple PWM attached to the Embedded Controller | ||
(EC) and controlled via a host-command interface. | ||
|
||
An EC PWM node should be only found as a sub-node of the EC node (see | ||
Documentation/devicetree/bindings/mfd/cros-ec.txt). | ||
|
||
Required properties: | ||
- compatible: Must contain "google,cros-ec-pwm" | ||
- #pwm-cells: Should be 1. The cell specifies the PWM index. | ||
|
||
Example: | ||
cros-ec@0 { | ||
compatible = "google,cros-ec-spi"; | ||
|
||
... | ||
|
||
cros_ec_pwm: ec-pwm { | ||
compatible = "google,cros-ec-pwm"; | ||
#pwm-cells = <1>; | ||
}; | ||
}; |
12 changes: 8 additions & 4 deletions
12
Documentation/devicetree/bindings/pwm/nvidia,tegra20-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
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
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,18 @@ | ||
== ST STMPE PWM controller == | ||
|
||
This is a PWM block embedded in the ST Microelectronics STMPE | ||
(ST Multi-Purpose Expander) chips. The PWM is registered as a | ||
subdevices of the STMPE MFD device. | ||
|
||
Required properties: | ||
- compatible: should be: | ||
- "st,stmpe-pwm" | ||
- #pwm-cells: should be 2. See pwm.txt in this directory for a description of | ||
the cells format. | ||
|
||
Example: | ||
|
||
pwm0: pwm { | ||
compatible = "st,stmpe-pwm"; | ||
#pwm-cells = <2>; | ||
}; |
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
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
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
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
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
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
Oops, something went wrong.