* [PATCH v2 4/5] clk: meson-gxbb: Expose GP0 dt-bindings clock id
2017-03-22 10:32 [PATCH v2 0/5] clk: meson: Fix GXBB and GXL/GXM GP0 PLL Neil Armstrong
@ 2017-03-22 10:32 ` Neil Armstrong
2017-03-22 10:32 ` [PATCH v2 5/5] dt-bindings: clock: gxbb-clkc: Add GXL compatible variant Neil Armstrong
2017-03-27 20:02 ` [PATCH v2 0/5] clk: meson: Fix GXBB and GXL/GXM GP0 PLL Michael Turquette
2 siblings, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2017-03-22 10:32 UTC (permalink / raw)
To: mturquette, sboyd, carlo, khilman
Cc: Neil Armstrong, linux-clk, linux-amlogic, linux-arm-kernel,
linux-kernel, devicetree
This patch exposes the GP0 PLL clock id in the dt bindings.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
drivers/clk/meson/gxbb.h | 2 +-
include/dt-bindings/clock/gxbb-clkc.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/meson/gxbb.h b/drivers/clk/meson/gxbb.h
index b710e06..9d94924 100644
--- a/drivers/clk/meson/gxbb.h
+++ b/drivers/clk/meson/gxbb.h
@@ -179,7 +179,7 @@
/* CLKID_FCLK_DIV4 */
#define CLKID_FCLK_DIV5 7
#define CLKID_FCLK_DIV7 8
-#define CLKID_GP0_PLL 9
+/* CLKID_GP0_PLL */
#define CLKID_MPEG_SEL 10
#define CLKID_MPEG_DIV 11
/* CLKID_CLK81 */
diff --git a/include/dt-bindings/clock/gxbb-clkc.h b/include/dt-bindings/clock/gxbb-clkc.h
index ef7d6b7..cce6cb5 100644
--- a/include/dt-bindings/clock/gxbb-clkc.h
+++ b/include/dt-bindings/clock/gxbb-clkc.h
@@ -10,6 +10,7 @@
#define CLKID_FCLK_DIV2 4
#define CLKID_FCLK_DIV3 5
#define CLKID_FCLK_DIV4 6
+#define CLKID_GP0_PLL 9
#define CLKID_CLK81 12
#define CLKID_MPLL2 15
#define CLKID_SPI 34
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 5/5] dt-bindings: clock: gxbb-clkc: Add GXL compatible variant
2017-03-22 10:32 [PATCH v2 0/5] clk: meson: Fix GXBB and GXL/GXM GP0 PLL Neil Armstrong
2017-03-22 10:32 ` [PATCH v2 4/5] clk: meson-gxbb: Expose GP0 dt-bindings clock id Neil Armstrong
@ 2017-03-22 10:32 ` Neil Armstrong
2017-03-27 20:02 ` [PATCH v2 0/5] clk: meson: Fix GXBB and GXL/GXM GP0 PLL Michael Turquette
2 siblings, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2017-03-22 10:32 UTC (permalink / raw)
To: mturquette, sboyd, carlo, khilman
Cc: Neil Armstrong, linux-clk, linux-amlogic, linux-arm-kernel,
linux-kernel, devicetree
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt
index ce06435..a09d627 100644
--- a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt
+++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt
@@ -5,7 +5,8 @@ controllers within the SoC.
Required Properties:
-- compatible: should be "amlogic,gxbb-clkc"
+- compatible: should be "amlogic,gxbb-clkc" for GXBB SoC,
+ or "amlogic,gxl-clkc" for GXL and GXM SoC.
- reg: physical base address of the clock controller and length of memory
mapped region.
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2 0/5] clk: meson: Fix GXBB and GXL/GXM GP0 PLL
2017-03-22 10:32 [PATCH v2 0/5] clk: meson: Fix GXBB and GXL/GXM GP0 PLL Neil Armstrong
2017-03-22 10:32 ` [PATCH v2 4/5] clk: meson-gxbb: Expose GP0 dt-bindings clock id Neil Armstrong
2017-03-22 10:32 ` [PATCH v2 5/5] dt-bindings: clock: gxbb-clkc: Add GXL compatible variant Neil Armstrong
@ 2017-03-27 20:02 ` Michael Turquette
2 siblings, 0 replies; 4+ messages in thread
From: Michael Turquette @ 2017-03-27 20:02 UTC (permalink / raw)
To: sboyd, carlo, khilman
Cc: devicetree, Neil Armstrong, linux-kernel, linux-amlogic,
linux-clk, linux-arm-kernel
Hi Neil,
Quoting Neil Armstrong (2017-03-22 03:32:22)
> This patchset fixes support for the Amlogic GXBB then GXL/GXM embedded GP0 PLL.
>
> The current support is done via a very generic interface where only the
> N/M/OD parameters are changed in the control registers.
>
> But unlike the Fixed PLL, this PLL is not initialized by the bootloader or
> firmware, and needs some parameters to initialize and lock correctly.
>
> This patchset also adds the GXL variant compatible string which is already
> supported by the GXL and GXM DT nodes.
>
> Changes since v1 at [1]:
> - Rebase on the Mali clocks patchset at [2]
> - also depends on v2 Audio Clocks patchset from Jerome Brunet at [3]
> - Add match table and separate tables for gxl
> - Switch to probe function to use match table data only
> - Rename unreset_for_lock to clear_reset_for_lock
Thanks for the quick changes. Applied to clk-meson, a stable branch,
which was merged into clk-next.
Best regards,
Mike
>
> [1] http://lkml.kernel.org/r/1489411604-18700-1-git-send-email-narmstrong@baylibre.com
> [2] http://lkml.kernel.org/r/1490177935-9646-1-git-send-email-narmstrong@baylibre.com
> [3] http://lkml.kernel.org/r/20170309104154.28295-1-jbrunet@baylibre.com
>
> Neil Armstrong (5):
> clk: meson: Add support for parameters for specific PLLs
> clk: meson-gxbb: Add GP0 PLL init parameters
> clk: meson-gxbb: Add GXL/GXM GP0 Variant
> clk: meson-gxbb: Expose GP0 dt-bindings clock id
> dt-bindings: clock: gxbb-clkc: Add GXL compatible variant
>
> .../bindings/clock/amlogic,gxbb-clkc.txt | 3 +-
> drivers/clk/meson/clk-pll.c | 53 +++-
> drivers/clk/meson/clkc.h | 23 ++
> drivers/clk/meson/gxbb.c | 314 +++++++++++++++++++--
> drivers/clk/meson/gxbb.h | 4 +-
> include/dt-bindings/clock/gxbb-clkc.h | 1 +
> 6 files changed, 366 insertions(+), 32 deletions(-)
>
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 4+ messages in thread