dt-bindings: soc: tegra-pmc: Add ID for Tegra PMC 32 kHz blink clock
authorSowjanya Komatineni <skomatineni@nvidia.com>
Tue, 14 Jan 2020 07:24:14 +0000 (23:24 -0800)
committerThierry Reding <treding@nvidia.com>
Mon, 17 Feb 2020 09:09:19 +0000 (10:09 +0100)
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>
Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.yaml
include/dt-bindings/soc/tegra-pmc.h

index 5b5c42a00264cde114747695f5898537c987736c..f17bb353f65ea8cf1ddb1a25c7c0c932c6b7aa40 100644 (file)
@@ -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
index f7c8664044561c7ea01e7746a2ec1011bdbb7184..a99a457471ee630125934be2f09b4dd1de611e36 100644 (file)
@@ -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 */