All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 14/28] clk: ti: omap4: add clock manager driver
@ 2020-12-24  7:33 Dario Binacchi
  2020-12-24  7:33 ` [PATCH v7 15/28] arm: dts: am335x: enable prcm_clocks auto binding Dario Binacchi
                   ` (13 more replies)
  0 siblings, 14 replies; 16+ messages in thread
From: Dario Binacchi @ 2020-12-24  7:33 UTC (permalink / raw)
  To: u-boot

This minimal driver is only used to bind child devices.

For DT binding details see Linux doc:
- Documentation/devicetree/bindings/arm/omap/prcm.txt

Signed-off-by: Dario Binacchi <dariobin@libero.it>

---

(no changes since v3)

Changes in v3:
- doc/device-tree-bindings/arm/omap,prcm.txt.
- Add to commit message the references to linux kernel dt binding
  documentation.

 drivers/clk/ti/Makefile   |  2 +-
 drivers/clk/ti/omap4-cm.c | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 drivers/clk/ti/omap4-cm.c

diff --git a/drivers/clk/ti/Makefile b/drivers/clk/ti/Makefile
index ed45f18311..dbd343069c 100644
--- a/drivers/clk/ti/Makefile
+++ b/drivers/clk/ti/Makefile
@@ -3,7 +3,7 @@
 # Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
 #
 
-obj-$(CONFIG_ARCH_OMAP2PLUS) += clk.o
+obj-$(CONFIG_ARCH_OMAP2PLUS) += clk.o omap4-cm.o
 
 obj-$(CONFIG_CLK_TI_AM3_DPLL) += clk-am3-dpll.o clk-am3-dpll-x2.o
 obj-$(CONFIG_CLK_TI_CTRL) += clk-ctrl.o
diff --git a/drivers/clk/ti/omap4-cm.c b/drivers/clk/ti/omap4-cm.c
new file mode 100644
index 0000000000..3cdc9b2888
--- /dev/null
+++ b/drivers/clk/ti/omap4-cm.c
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * OMAP4 clock manager (cm)
+ *
+ * Copyright (C) 2020 Dario Binacchi <dariobin@libero.it>
+ */
+
+#include <common.h>
+#include <dm.h>
+#include <dm/lists.h>
+
+static const struct udevice_id ti_omap4_cm_ids[] = {
+	{.compatible = "ti,omap4-cm"},
+	{}
+};
+
+U_BOOT_DRIVER(ti_omap4_cm) = {
+	.name = "ti_omap4_cm",
+	.id = UCLASS_SIMPLE_BUS,
+	.of_match = ti_omap4_cm_ids,
+	.bind = dm_scan_fdt_dev,
+};
-- 
2.17.1

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

end of thread, other threads:[~2020-12-29  6:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-24  7:33 [PATCH v7 14/28] clk: ti: omap4: add clock manager driver Dario Binacchi
2020-12-24  7:33 ` [PATCH v7 15/28] arm: dts: am335x: enable prcm_clocks auto binding Dario Binacchi
2020-12-24  7:33 ` [PATCH v7 16/28] clk: move clk-ti-sci driver to 'ti' directory Dario Binacchi
2020-12-24  7:33 ` [PATCH v7 17/28] fdt: translate address if #size-cells = <0> Dario Binacchi
2020-12-24  7:33 ` [PATCH v7 18/28] omap: timer: fix the rate setting Dario Binacchi
2020-12-24  7:33 ` [PATCH v7 19/28] arm: dts: am335x: enable scm_clocks auto binding Dario Binacchi
2020-12-24  7:33 ` [PATCH v7 20/28] pwm: ti: am33xx: add enhanced pwm driver Dario Binacchi
2020-12-24  7:33 ` [PATCH v7 21/28] bus: ti: am33xx: add pwm subsystem driver Dario Binacchi
2020-12-24  7:34 ` [PATCH v7 22/28] dm: core: add a function to decode display timings Dario Binacchi
2020-12-24  7:34 ` [PATCH v7 23/28] video: omap: add panel driver Dario Binacchi
2020-12-29  6:10   ` Lokesh Vutla
2020-12-24  7:34 ` [PATCH v7 24/28] video: omap: drop domain clock enabling by SOC api Dario Binacchi
2020-12-24  7:34 ` [PATCH v7 25/28] video: omap: set LCD clock rate through DM API Dario Binacchi
2020-12-24  7:34 ` [PATCH v7 26/28] video: omap: split the legacy code from the DM code Dario Binacchi
2020-12-24  7:34 ` [PATCH v7 27/28] video: omap: move drivers to 'ti' directory Dario Binacchi
2020-12-24  7:34 ` [PATCH v7 28/28] board: ti: am335x-ice: get CDCE913 clock device Dario Binacchi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.