forked from torvalds/linux
-
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.
Merge tag 'pwm/for-5.14-rc1' of git://git.kernel.org/pub/scm/linux/ke…
…rnel/git/thierry.reding/linux-pwm Pull pwm updates from Thierry Reding: "This contains mostly various fixes, cleanups and some conversions to the atomic API. One noteworthy change is that PWM consumers can now pass a hint to the PWM core about the PWM usage, enabling PWM providers to implement various optimizations. There's also a fair bit of simplification here with the addition of some device-managed helpers as well as unification between the DT and ACPI firmware interfaces" * tag 'pwm/for-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm: (50 commits) pwm: Remove redundant assignment to pointer pwm pwm: ep93xx: Fix read of uninitialized variable ret pwm: ep93xx: Prepare clock before using it pwm: ep93xx: Unfold legacy callbacks into ep93xx_pwm_apply() pwm: ep93xx: Implement .apply callback pwm: vt8500: Only unprepare the clock after the pwmchip was removed pwm: vt8500: Drop if with an always false condition pwm: tegra: Assert reset only after the PWM was unregistered pwm: tegra: Don't needlessly enable and disable the clock in .remove() pwm: tegra: Don't modify HW state in .remove callback pwm: tegra: Drop an if block with an always false condition pwm: core: Simplify some devm_*pwm*() functions pwm: core: Remove unused devm_pwm_put() pwm: core: Unify fwnode checks in the module pwm: core: Reuse fwnode_to_pwmchip() in ACPI case pwm: core: Convert to use fwnode for matching docs: firmware-guide: ACPI: Add a PWM example dt-bindings: pwm: pwm-tiecap: Add compatible string for AM64 SoC dt-bindings: pwm: pwm-tiecap: Convert to json schema pwm: sprd: Don't check the return code of pwmchip_remove() ...
- Loading branch information
Showing
50 changed files
with
710 additions
and
642 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,64 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/pwm/pwm-tiecap.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: TI SOC ECAP based APWM controller | ||
|
||
maintainers: | ||
- Vignesh R <[email protected]> | ||
|
||
allOf: | ||
- $ref: pwm.yaml# | ||
|
||
properties: | ||
compatible: | ||
oneOf: | ||
- const: ti,am3352-ecap | ||
- items: | ||
- enum: | ||
- ti,da850-ecap | ||
- ti,am4372-ecap | ||
- ti,dra746-ecap | ||
- ti,k2g-ecap | ||
- ti,am654-ecap | ||
- ti,am64-ecap | ||
- const: ti,am3352-ecap | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
"#pwm-cells": | ||
const: 3 | ||
description: | | ||
See pwm.yaml in this directory for a description of the cells format. | ||
The only third cell flag supported by this binding is PWM_POLARITY_INVERTED. | ||
clock-names: | ||
const: fck | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
power-domains: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#pwm-cells" | ||
- clocks | ||
- clock-names | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
ecap0: pwm@48300100 { /* ECAP on am33xx */ | ||
compatible = "ti,am3352-ecap"; | ||
#pwm-cells = <3>; | ||
reg = <0x48300100 0x80>; | ||
clocks = <&l4ls_gclk>; | ||
clock-names = "fck"; | ||
}; |
This file was deleted.
Oops, something went wrong.
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,65 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/pwm/pwm-tiehrpwm.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: TI SOC EHRPWM based PWM controller | ||
|
||
maintainers: | ||
- Vignesh R <[email protected]> | ||
|
||
allOf: | ||
- $ref: pwm.yaml# | ||
|
||
properties: | ||
compatible: | ||
oneOf: | ||
- const: ti,am3352-ehrpwm | ||
- items: | ||
- enum: | ||
- ti,da850-ehrpwm | ||
- ti,am4372-ehrpwm | ||
- ti,dra746-ehrpwm | ||
- ti,am654-ehrpwm | ||
- ti,am64-epwm | ||
- const: ti,am3352-ehrpwm | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
"#pwm-cells": | ||
const: 3 | ||
description: | | ||
See pwm.yaml in this directory for a description of the cells format. | ||
The only third cell flag supported by this binding is PWM_POLARITY_INVERTED. | ||
clock-names: | ||
items: | ||
- const: tbclk | ||
- const: fck | ||
|
||
clocks: | ||
maxItems: 2 | ||
|
||
power-domains: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#pwm-cells" | ||
- clocks | ||
- clock-names | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
ehrpwm0: pwm@48300200 { /* EHRPWM on am33xx */ | ||
compatible = "ti,am3352-ehrpwm"; | ||
#pwm-cells = <3>; | ||
reg = <0x48300200 0x100>; | ||
clocks = <&ehrpwm0_tbclk>, <&l4ls_gclk>; | ||
clock-names = "tbclk", "fck"; | ||
}; |
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.