Skip to content

Commit 2d0c08f

Browse files
Sandipan Patrathierryreding
authored andcommitted
pwm: tegra: Add support for Tegra194
Tegra194 has multiple PWM controllers with each having only one output. Also the maxmimum frequency is higher than earlier SoCs. Add support for Tegra194 and specify the number of PWM outputs and maximum supported frequency using device tree match data. Signed-off-by: Sandipan Patra <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Acked-by: Laxman Dewangan <[email protected]> Acked-by: Rob Herring <[email protected]> Acked-by: Jon Hunter <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent e96c0ff commit 2d0c08f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Documentation/devicetree/bindings/pwm/nvidia,tegra20-pwm.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Required properties:
99
- "nvidia,tegra132-pwm", "nvidia,tegra20-pwm": for Tegra132
1010
- "nvidia,tegra210-pwm", "nvidia,tegra20-pwm": for Tegra210
1111
- "nvidia,tegra186-pwm": for Tegra186
12+
- "nvidia,tegra194-pwm": for Tegra194
1213
- reg: physical base address and length of the controller's registers
1314
- #pwm-cells: should be 2. See pwm.yaml in this directory for a description of
1415
the cells format.

drivers/pwm/pwm-tegra.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,15 @@ static const struct tegra_pwm_soc tegra186_pwm_soc = {
282282
.max_frequency = 102000000UL,
283283
};
284284

285+
static const struct tegra_pwm_soc tegra194_pwm_soc = {
286+
.num_channels = 1,
287+
.max_frequency = 408000000UL,
288+
};
289+
285290
static const struct of_device_id tegra_pwm_of_match[] = {
286291
{ .compatible = "nvidia,tegra20-pwm", .data = &tegra20_pwm_soc },
287292
{ .compatible = "nvidia,tegra186-pwm", .data = &tegra186_pwm_soc },
293+
{ .compatible = "nvidia,tegra194-pwm", .data = &tegra194_pwm_soc },
288294
{ }
289295
};
290296
MODULE_DEVICE_TABLE(of, tegra_pwm_of_match);

0 commit comments

Comments
 (0)