linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] clk: imx: imx7d: add the Keypad Port module clock
@ 2018-02-27 16:05 Stefan Agner
  2018-02-27 16:05 ` [PATCH 2/2] ARM: dts: imx7s: add Keypad Port module Stefan Agner
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Agner @ 2018-02-27 16:05 UTC (permalink / raw)
  To: linux-arm-kernel

According to the i.MX7D Reference Manual, the Keypad Port module
(KPP) requires this clock gate to be enabled.

Signed-off-by: Stefan Agner <stefan@agner.ch>
---
 drivers/clk/imx/clk-imx7d.c             | 1 +
 include/dt-bindings/clock/imx7d-clock.h | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c
index f34f1ecc4690..6b6e8851eabb 100644
--- a/drivers/clk/imx/clk-imx7d.c
+++ b/drivers/clk/imx/clk-imx7d.c
@@ -858,6 +858,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node)
 	clks[IMX7D_WDOG2_ROOT_CLK] = imx_clk_gate4("wdog2_root_clk", "wdog_post_div", base + 0x49d0, 0);
 	clks[IMX7D_WDOG3_ROOT_CLK] = imx_clk_gate4("wdog3_root_clk", "wdog_post_div", base + 0x49e0, 0);
 	clks[IMX7D_WDOG4_ROOT_CLK] = imx_clk_gate4("wdog4_root_clk", "wdog_post_div", base + 0x49f0, 0);
+	clks[IMX7D_KPP_ROOT_CLK] = imx_clk_gate4("kpp_root_clk", "ipg_root_clk", base + 0x4aa0, 0);
 	clks[IMX7D_CSI_MCLK_ROOT_CLK] = imx_clk_gate4("csi_mclk_root_clk", "csi_mclk_post_div", base + 0x4490, 0);
 	clks[IMX7D_AUDIO_MCLK_ROOT_CLK] = imx_clk_gate4("audio_mclk_root_clk", "audio_mclk_post_div", base + 0x4790, 0);
 	clks[IMX7D_WRCLK_ROOT_CLK] = imx_clk_gate4("wrclk_root_clk", "wrclk_post_div", base + 0x47a0, 0);
diff --git a/include/dt-bindings/clock/imx7d-clock.h b/include/dt-bindings/clock/imx7d-clock.h
index dc51904435d8..7653c8536b64 100644
--- a/include/dt-bindings/clock/imx7d-clock.h
+++ b/include/dt-bindings/clock/imx7d-clock.h
@@ -453,5 +453,6 @@
 #define IMX7D_NAND_RAWNAND_CLK		440
 #define IMX7D_NAND_USDHC_BUS_RAWNAND_CLK 441
 #define IMX7D_SNVS_CLK			442
-#define IMX7D_CLK_END			443
+#define IMX7D_KPP_ROOT_CLK		443
+#define IMX7D_CLK_END			444
 #endif /* __DT_BINDINGS_CLOCK_IMX7D_H */
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: dts: imx7s: add Keypad Port module
  2018-02-27 16:05 [PATCH 1/2] clk: imx: imx7d: add the Keypad Port module clock Stefan Agner
@ 2018-02-27 16:05 ` Stefan Agner
  2018-02-28  6:55 ` [PATCH 1/2] clk: imx: imx7d: add the Keypad Port module clock Shawn Guo
  2018-03-05 22:22 ` Rob Herring
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Agner @ 2018-02-27 16:05 UTC (permalink / raw)
  To: linux-arm-kernel

Add the Keypad Port module. Add it disabled by default since
only some boards use it. Boards which do need to specify
additional properties as documented in the device tree bindings.

Signed-off-by: Stefan Agner <stefan@agner.ch>
---
 arch/arm/boot/dts/imx7s.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi
index 097b066ed23c..46400ba2217a 100644
--- a/arch/arm/boot/dts/imx7s.dtsi
+++ b/arch/arm/boot/dts/imx7s.dtsi
@@ -499,6 +499,14 @@
 				status = "disabled";
 			};
 
+			kpp: kpp at 30320000 {
+				compatible = "fsl,imx7d-kpp", "fsl,imx21-kpp";
+				reg = <0x30320000 0x10000>;
+				interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&clks IMX7D_KPP_ROOT_CLK>;
+				status = "disabled";
+			};
+
 			iomuxc: iomuxc at 30330000 {
 				compatible = "fsl,imx7d-iomuxc";
 				reg = <0x30330000 0x10000>;
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 1/2] clk: imx: imx7d: add the Keypad Port module clock
  2018-02-27 16:05 [PATCH 1/2] clk: imx: imx7d: add the Keypad Port module clock Stefan Agner
  2018-02-27 16:05 ` [PATCH 2/2] ARM: dts: imx7s: add Keypad Port module Stefan Agner
@ 2018-02-28  6:55 ` Shawn Guo
  2018-03-05 22:22 ` Rob Herring
  2 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2018-02-28  6:55 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Feb 27, 2018 at 05:05:43PM +0100, Stefan Agner wrote:
> According to the i.MX7D Reference Manual, the Keypad Port module
> (KPP) requires this clock gate to be enabled.
> 
> Signed-off-by: Stefan Agner <stefan@agner.ch>

Applied both.  But for future i.MX clock patches, please also copy
clk maintainers to give them chance to comment.

Michael Turquette <mturquette@baylibre.com>
Stephen Boyd <sboyd@kernel.org>

I will eventually need to send i.MX clock patches to them.

Shawn

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] clk: imx: imx7d: add the Keypad Port module clock
  2018-02-27 16:05 [PATCH 1/2] clk: imx: imx7d: add the Keypad Port module clock Stefan Agner
  2018-02-27 16:05 ` [PATCH 2/2] ARM: dts: imx7s: add Keypad Port module Stefan Agner
  2018-02-28  6:55 ` [PATCH 1/2] clk: imx: imx7d: add the Keypad Port module clock Shawn Guo
@ 2018-03-05 22:22 ` Rob Herring
  2 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2018-03-05 22:22 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Feb 27, 2018 at 05:05:43PM +0100, Stefan Agner wrote:
> According to the i.MX7D Reference Manual, the Keypad Port module
> (KPP) requires this clock gate to be enabled.
> 
> Signed-off-by: Stefan Agner <stefan@agner.ch>
> ---
>  drivers/clk/imx/clk-imx7d.c             | 1 +
>  include/dt-bindings/clock/imx7d-clock.h | 3 ++-
>  2 files changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-05 22:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-27 16:05 [PATCH 1/2] clk: imx: imx7d: add the Keypad Port module clock Stefan Agner
2018-02-27 16:05 ` [PATCH 2/2] ARM: dts: imx7s: add Keypad Port module Stefan Agner
2018-02-28  6:55 ` [PATCH 1/2] clk: imx: imx7d: add the Keypad Port module clock Shawn Guo
2018-03-05 22:22 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).