From patchwork Thu Apr 5 11:52:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 10324475 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 346FD60541 for ; Thu, 5 Apr 2018 11:52:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2480928BF4 for ; Thu, 5 Apr 2018 11:52:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 194F228DDA; Thu, 5 Apr 2018 11:52:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9186928BF4 for ; Thu, 5 Apr 2018 11:52:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XfduBrJLTPYpuRmRPAE6TvHBeKBJ4BA11sI5PHaqVLo=; b=m/DdT3BLXvk7cG 74Imd8DDZjD4qpppW5GVeAM6Gr8ofC0FBQpq8Xwh9ygZXC0qPQwnZjSqZsAN7xhSOpxaQFpmvmyEb UvdQieXLwM/t8XuLXymsDNDvkffAhI/vfFymdyZwGhi8O7lRzNSMVQYY7g3fJ7vYxJqmILCjqP8Yz 7TvU/IqQ0XMbybEH+UUupa5nGQDoqbdIiHh5UpqvkFyDAW55X3SVpZUs6Lcm2hLfWWYqdYMucTJSE NcdcX5z7JaueXVuP1lyH/kmQ7ipN2gyZBEy+HS9wTbC/U6vUnRdwU7FuWWKXtnqa2tXAYb+wMTuAL rEwzdrhc9vZwET9NVMCg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f43Rl-000334-Ng; Thu, 05 Apr 2018 11:52:53 +0000 Received: from fllnx209.ext.ti.com ([198.47.19.16]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f43Rc-0002wn-0m for linux-arm-kernel@lists.infradead.org; Thu, 05 Apr 2018 11:52:50 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w35BqPFI000624; Thu, 5 Apr 2018 06:52:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1522929145; bh=qLKVk+1Q3/FXkZYHh4bsj9Zbn3iQGaOwYTjIxAfUNu8=; h=From:To:CC:Subject:Date; b=fjhZ8rflf6QmntxGolSTmhrDzCdAAAbh5xrDkdHgvHuiSzq2ncUBF+eMRqEz6Vot5 Ic7f9MZ4p6Eu91QMeYufPoFehh4en3dsygnXMsaTCrxHKVl6itXKuez3EBXIFizOYU UPhFVv9yhOkGGaDbY49nqYFGiDPLuME0XHbgtVpI= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w35BqOLi004164; Thu, 5 Apr 2018 06:52:24 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 5 Apr 2018 06:52:24 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 5 Apr 2018 06:52:24 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w35BqMr1027475; Thu, 5 Apr 2018 06:52:22 -0500 From: Peter Ujfalusi To: Subject: [PATCH] ARM: dts: omap3-beagle-xm: Add fixed 26MHz clock as fck for twl Date: Thu, 5 Apr 2018 14:52:39 +0300 Message-ID: <20180405115239.17370-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180405_045244_210436_796B596F X-CRM114-Status: GOOD ( 19.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-omap@vger.kernel.org, bcousson@baylibre.com, linux-arm-kernel@lists.infradead.org, hns@goldelico.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The board uses 26MHz oscillator for the twl4030 HFCLK. This way we will not depend on the bootloader to configure the CFG_BOOT:HFCLK_FREQ Signed-off-by: Peter Ujfalusi --- Hi, there might be other boards (all omap3 boards with twl4030?) which uses the same setup, but I only have schematics for beagle-xm. In order for the driver to actually use the clock the [PATCH] mfd: twl-core: Fix clock initialization need to be applied. W/o the twl-core patch the clock is just ignored. Regards, Peter arch/arm/boot/dts/omap3-beagle-xm.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/omap3-beagle-xm.dts b/arch/arm/boot/dts/omap3-beagle-xm.dts index 0349fcc9dc26..d80587de0bbf 100644 --- a/arch/arm/boot/dts/omap3-beagle-xm.dts +++ b/arch/arm/boot/dts/omap3-beagle-xm.dts @@ -30,6 +30,13 @@ ethernet = ðernet; }; + /* fixed 26MHz oscillator */ + hfclk_26m: oscillator { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <26000000>; + }; + leds { compatible = "gpio-leds"; @@ -274,6 +281,9 @@ interrupts = <7>; /* SYS_NIRQ cascaded to intc */ interrupt-parent = <&intc>; + clocks = <&hfclk_26m>; + clock-names = "fck"; + twl_audio: audio { compatible = "ti,twl4030-audio"; codec {