Skip to content

Commit

Permalink
dt-bindings: soc: tegra-pmc: Add ID for Tegra PMC 32 kHz blink clock
Browse files Browse the repository at this point in the history
Tegra PMC has blink functionality that allows 32 kHz clock out to
blink pin of the Tegra.

This patch adds id for this blink clock to use for enabling or
disabling blink output through device tree.

Tested-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Sowjanya Komatineni authored and Thierry Reding committed Feb 17, 2020
1 parent f85fa31 commit cd88f16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ properties:
const: 1
description:
Tegra PMC has clk_out_1, clk_out_2, and clk_out_3.
PMC also has blink control which allows 32Khz clock output to
Tegra blink pad.
Consumer of PMC clock should specify the desired clock by having
the clock ID in its "clocks" phandle cell with pmc clock provider.
See include/dt-bindings/soc/tegra-pmc.h for the list of Tegra PMC
Expand Down
3 changes: 2 additions & 1 deletion include/dt-bindings/soc/tegra-pmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#define TEGRA_PMC_CLK_OUT_1 0
#define TEGRA_PMC_CLK_OUT_2 1
#define TEGRA_PMC_CLK_OUT_3 2
#define TEGRA_PMC_CLK_BLINK 3

#define TEGRA_PMC_CLK_MAX 3
#define TEGRA_PMC_CLK_MAX 4

#endif /* _DT_BINDINGS_SOC_TEGRA_PMC_H */

0 comments on commit cd88f16

Please sign in to comment.