From patchwork Sun Oct 25 12:34:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 1387198 X-Patchwork-Delegate: lokeshvutla@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=libero.it Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=libero.it header.i=@libero.it header.a=rsa-sha256 header.s=s2014 header.b=HQW1qvVo; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CJyD01HFCz9sTD for ; Sun, 25 Oct 2020 23:37:36 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 42A91824FC; Sun, 25 Oct 2020 13:35:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=libero.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=libero.it header.i=@libero.it header.b="HQW1qvVo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4951782490; Sun, 25 Oct 2020 13:35:14 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,FREEMAIL_FROM,SPF_HELO_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from libero.it (smtp-34.italiaonline.it [213.209.10.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C1C438249B for ; Sun, 25 Oct 2020 13:35:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=libero.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dariobin@libero.it Received: from passgat-Modern-14-A10M.homenet.telecomitalia.it ([79.31.32.113]) by smtp-34.iol.local with ESMTPA id WfEbkQj5cmMFTWfEpkuGdc; Sun, 25 Oct 2020 13:35:07 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1603629307; bh=y1FPGfx0EpuDUJNDKrW+oJ39G5GTmyfaguqAurq5EUI=; h=From; b=HQW1qvVovdFCOjlzV7Zc0Mnv/M/IXDmaLhG8wcSJ9MRViATyybh+3ZezVZf+8LD2c TZhY8HwvZuZdkWHb5ulH5dBZqgyY4LIEFRBYr7w+ExcN+CNlwRvCO2F9T8d8yQ0Ulr 8AJQbHMH2RC2yY5bv/p08rkuvhtwl5aa/HRfml86tVi/7lLOEOvL/DClcaS8MuXCVL JryyRIu7Ln+1OrrSrAEW8sWiTrh2bYaRIdcN5L8TUtxxz1vt+Q0FflO5IpCUYwA0a6 lDTf0XeoSxyeqyCYbouBlf5wxAAUfbVbeu4IdvKW/e/PqIY7szKelTaK58BKYLDa46 11Enmys8tnu3Q== X-CNFS-Analysis: v=2.4 cv=KetsDSUD c=1 sm=1 tr=0 ts=5f9570fb a=9myQFBeCGQ66/mXSe6vdPA==:117 a=9myQFBeCGQ66/mXSe6vdPA==:17 a=2aTzMDEd9m41SkjTN5YA:9 From: Dario Binacchi To: u-boot@lists.denx.de Cc: Dario Binacchi , Lokesh Vutla , Lukasz Majewski Subject: [PATCH v5 13/27] clk: ti: omap4: add clock manager driver Date: Sun, 25 Oct 2020 13:34:36 +0100 Message-Id: <20201025123451.17579-14-dariobin@libero.it> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201025123451.17579-1-dariobin@libero.it> References: <20201025123451.17579-1-dariobin@libero.it> X-CMAE-Envelope: MS4xfOV9d5MyA2cTXmn/GzcZcTHn3ANjaPcmuWTuc6XaiX6lchYXlV1UTPQ4yB4I8i32l02irBS3buNVsgwPMMyvETzfHZ7a+P56PADO3wbSfQg0ce+FzOle 9wKR23v/3piYq/lMv5sNU5YzEuZs/fnBeEJOnKVKt5yE18Co6dlb9FflC6HKtqNql+wPzyuuV3cXR9S52GK1VSHOg4dYciS/f19qpXIwROpTTuG5sxa9z+4u 2LGBDjzWhRgjkUEZg1lNU+LbGoStXHF6t/2Dt4xd2b7JAvcNd/5RyrCUA9B4gq/uGr6kbU9/wklArH/znYXwdQ== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean 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 --- (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 # -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 + */ + +#include +#include +#include + +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, +};