* [PATCH v2 1/3] dt-bindings: clk: meson: add ao controller clock inputs
2018-12-03 13:18 [PATCH v2 0/3] arm64: dts: meson: add clock controllers input clocks Jerome Brunet
@ 2018-12-03 13:18 ` Jerome Brunet
2018-12-03 14:10 ` Jerome Brunet
2018-12-03 13:18 ` [PATCH v2 2/3] dt-bindings: clk: meson: add main controller clock input Jerome Brunet
2018-12-03 13:18 ` [PATCH v2 3/3] arm64: dts: meson: add clock controller clock inputs Jerome Brunet
2 siblings, 1 reply; 5+ messages in thread
From: Jerome Brunet @ 2018-12-03 13:18 UTC (permalink / raw)
To: Neil Armstrong, Carlo Caione, Kevin Hilman
Cc: linux-amlogic, devicetree, linux-clk, linux-kernel, Jerome Brunet
Add the clock inputs of amlogic AO clock controller
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
.../devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt b/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt
index 3a880528030e..c480db8f4793 100644
--- a/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt
+++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt
@@ -11,6 +11,11 @@ Required Properties:
- GXM (S912) : "amlogic,meson-gxm-aoclkc"
- AXG (A113D, A113X) : "amlogic,meson-axg-aoclkc"
followed by the common "amlogic,meson-gx-aoclkc"
+- clocks: list of clock phandle, one for each entry clock-names.
+- clock-names: should contain the following:
+ * "xtal" : the platform xtal
+ * "mpeg-clk" : the main clock controller mother clock (aka clk81)
+ * "ext-32k" : external 32kHz reference if any (optional)
- #clock-cells: should be 1.
@@ -40,8 +45,9 @@ ao_sysctrl: sys-ctrl@0 {
compatible = "amlogic,meson-gxbb-aoclkc", "amlogic,meson-gx-aoclkc";
#clock-cells = <1>;
#reset-cells = <1>;
+ clocks = <&xtal>, <&clkc CLKID_CLK81>;
+ clock-names = "xtal", "mpeg-clk";
};
-};
Example: UART controller node that consumes the clock and reset generated
by the clock controller:
--
2.19.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH v2 1/3] dt-bindings: clk: meson: add ao controller clock inputs
2018-12-03 13:18 ` [PATCH v2 1/3] dt-bindings: clk: meson: add ao controller clock inputs Jerome Brunet
@ 2018-12-03 14:10 ` Jerome Brunet
0 siblings, 0 replies; 5+ messages in thread
From: Jerome Brunet @ 2018-12-03 14:10 UTC (permalink / raw)
To: Neil Armstrong, Carlo Caione, Kevin Hilman
Cc: linux-amlogic, linux-clk, linux-kernel, devicetree
On Mon, 2018-12-03 at 14:18 +0100, Jerome Brunet wrote:
> Add the clock inputs of amlogic AO clock controller
>
> Reviewed-by: Stephen Boyd <sboyd@kernel.org>
> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
> ---
> .../devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt
> b/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt
> index 3a880528030e..c480db8f4793 100644
> --- a/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt
> +++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-aoclkc.txt
> @@ -11,6 +11,11 @@ Required Properties:
> - GXM (S912) : "amlogic,meson-gxm-aoclkc"
> - AXG (A113D, A113X) : "amlogic,meson-axg-aoclkc"
> followed by the common "amlogic,meson-gx-aoclkc"
> +- clocks: list of clock phandle, one for each entry clock-names.
> +- clock-names: should contain the following:
> + * "xtal" : the platform xtal
> + * "mpeg-clk" : the main clock controller mother clock (aka clk81)
> + * "ext-32k" : external 32kHz reference if any (optional)
While chip like the AXG have only 1 external 32k input, the gx family appears
to have 3 :( I missed that detail when preparing this patchset. Please hold
on, I'll send a v3
>
> - #clock-cells: should be 1.
>
> @@ -40,8 +45,9 @@ ao_sysctrl: sys-ctrl@0 {
> compatible = "amlogic,meson-gxbb-aoclkc", "amlogic,meson-gx-
> aoclkc";
> #clock-cells = <1>;
> #reset-cells = <1>;
> + clocks = <&xtal>, <&clkc CLKID_CLK81>;
> + clock-names = "xtal", "mpeg-clk";
> };
> -};
>
> Example: UART controller node that consumes the clock and reset generated
> by the clock controller:
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/3] dt-bindings: clk: meson: add main controller clock input
2018-12-03 13:18 [PATCH v2 0/3] arm64: dts: meson: add clock controllers input clocks Jerome Brunet
2018-12-03 13:18 ` [PATCH v2 1/3] dt-bindings: clk: meson: add ao controller clock inputs Jerome Brunet
@ 2018-12-03 13:18 ` Jerome Brunet
2018-12-03 13:18 ` [PATCH v2 3/3] arm64: dts: meson: add clock controller clock inputs Jerome Brunet
2 siblings, 0 replies; 5+ messages in thread
From: Jerome Brunet @ 2018-12-03 13:18 UTC (permalink / raw)
To: Neil Armstrong, Carlo Caione, Kevin Hilman
Cc: linux-amlogic, devicetree, linux-clk, linux-kernel, Jerome Brunet
Add the clock input of the main clock controller
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
.../devicetree/bindings/clock/amlogic,gxbb-clkc.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt
index e950599566a9..a6871953bf04 100644
--- a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt
+++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt
@@ -9,6 +9,9 @@ Required Properties:
"amlogic,gxbb-clkc" for GXBB SoC,
"amlogic,gxl-clkc" for GXL and GXM SoC,
"amlogic,axg-clkc" for AXG SoC.
+- clocks : list of clock phandle, one for each entry clock-names.
+- clock-names : should contain the following:
+ * "xtal": the platform xtal
- #clock-cells: should be 1.
@@ -31,6 +34,8 @@ sysctrl: system-controller@0 {
clkc: clock-controller {
#clock-cells = <1>;
compatible = "amlogic,gxbb-clkc";
+ clocks = <&xtal>;
+ clock-names = "xtal";
};
};
--
2.19.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH v2 3/3] arm64: dts: meson: add clock controller clock inputs
2018-12-03 13:18 [PATCH v2 0/3] arm64: dts: meson: add clock controllers input clocks Jerome Brunet
2018-12-03 13:18 ` [PATCH v2 1/3] dt-bindings: clk: meson: add ao controller clock inputs Jerome Brunet
2018-12-03 13:18 ` [PATCH v2 2/3] dt-bindings: clk: meson: add main controller clock input Jerome Brunet
@ 2018-12-03 13:18 ` Jerome Brunet
2 siblings, 0 replies; 5+ messages in thread
From: Jerome Brunet @ 2018-12-03 13:18 UTC (permalink / raw)
To: Neil Armstrong, Carlo Caione, Kevin Hilman
Cc: linux-amlogic, devicetree, linux-clk, linux-kernel, Jerome Brunet
Add the clock inputs of the clock controllers
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 4 ++++
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 4 ++++
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 4 ++++
3 files changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
index 5f512c91471e..5f3ac275f1ab 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi
@@ -1089,6 +1089,8 @@
clkc: clock-controller {
compatible = "amlogic,axg-clkc";
#clock-cells = <1>;
+ clocks = <&xtal>;
+ clock-names = "xtal";
};
};
};
@@ -1334,6 +1336,8 @@
compatible = "amlogic,meson-axg-aoclkc";
#clock-cells = <1>;
#reset-cells = <1>;
+ clocks = <&xtal>, <&clkc CLKID_CLK81>;
+ clock-names = "xtal", "mpeg-clk";
};
};
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
index 6796d250985a..a7b883ced0a8 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
@@ -299,6 +299,8 @@
&clkc_AO {
compatible = "amlogic,meson-gxbb-aoclkc", "amlogic,meson-gx-aoclkc";
+ clocks = <&xtal>, <&clkc CLKID_CLK81>;
+ clock-names = "xtal", "mpeg-clk";
};
&efuse {
@@ -334,6 +336,8 @@
clkc: clock-controller {
compatible = "amlogic,gxbb-clkc";
#clock-cells = <1>;
+ clocks = <&xtal>;
+ clock-names = "xtal";
};
};
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi
index ed278097825b..d5c3d78aafeb 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi
@@ -260,6 +260,8 @@
&clkc_AO {
compatible = "amlogic,meson-gxl-aoclkc", "amlogic,meson-gx-aoclkc";
+ clocks = <&xtal>, <&clkc CLKID_CLK81>;
+ clock-names = "xtal", "mpeg-clk";
};
&gpio_intc {
@@ -284,6 +286,8 @@
clkc: clock-controller {
compatible = "amlogic,gxl-clkc";
#clock-cells = <1>;
+ clocks = <&xtal>;
+ clock-names = "xtal";
};
};
--
2.19.1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
^ permalink raw reply [flat|nested] 5+ messages in thread