From patchwork Wed Jun 27 15:01:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Jarzmik X-Patchwork-Id: 10491925 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 5622D601A0 for ; Wed, 27 Jun 2018 15:02:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7814B2922A for ; Wed, 27 Jun 2018 15:02:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C824292C7; Wed, 27 Jun 2018 15:02:35 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI 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 1DB572922A for ; Wed, 27 Jun 2018 15:02:34 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=YcAV+ysE5GoH4NFM49ysTeFtogjxGZw8jFDP20vHvQU=; b=KgQuqWMvASjOulOO1oU6GfnT2Z aGhPe+sK6FzgFfxdF9d0yzOaJ+jgcrs3a2Z6NDnRz9DsGl2ufIRul5niNz3Y1tct1lAnD4S2+sqkL kua56uGb+A+0IWwqUyPynlt97mL0VCs3rvaHqO/6YkIqYKlIBOQdRx2Jw9YWAqDMn5tilZo3L8Kpz yqDGH5BZtwrW3+ZL1FoB9f5NExXlfKaAeIaYtpEcz2KJGRF0s7dvUkqz0hm/NiZMcmp1rOedAOCS0 l2FxZBFkoi83TNiGy6FvMGYDucXv5PF1LVYdXwiz1nOLcimAUpRmXqvhZmFRSSgZeXruYMaqGBXrQ CLu0qPQg==; 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 1fYBxf-0006Cw-Jx; Wed, 27 Jun 2018 15:02:23 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYBxd-0006Ce-Hz for linux-arm-kernel@bombadil.infradead.org; Wed, 27 Jun 2018 15:02:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=X4c4g1IV07O/fsZPYaCE2dUii1u5dhPRVC7rzVDjxz0=; b=VpVEB86gq8rfXne3uJqw/hAsb NdtRL0tul4L0MyK9+ReD+oXHA6PGcBvmSeGH/yBHz8JEfam6TwHE2OPhSdj7ZQ2odC79ktVQoQyPm l0LoGUN7SfdLcXLHMBnFbOBB7smkRc3Koqn3oH2bsGs5ib71V9WEi+i/RRxv1Mm/mZ7b0M/W3rRno 1blt27W7QzPTzybsHvYU4Z2u70X00W3HXEMDLyn9sRbzOSMKtvGNGJ5M7De89lYAhKiY6F13APM5k Qs2rFAT6zvIYmr0keWX5eOnhiKD+Ktxj6bApsa5GQ+HC2PrIf1zb6gmgwzyJ6cMvfhaljU1+xOhz8 iXlzrM6gw==; Received: from smtp07.smtpout.orange.fr ([80.12.242.129] helo=smtp.smtpout.orange.fr) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fYBxZ-00056r-Cp for linux-arm-kernel@lists.infradead.org; Wed, 27 Jun 2018 15:02:19 +0000 Received: from belgarion.home ([90.55.203.186]) by mwinf5d42 with ME id 3r1s1y00A41oiFu03r24uj; Wed, 27 Jun 2018 17:02:05 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Wed, 27 Jun 2018 17:02:05 +0200 X-ME-IP: 90.55.203.186 From: Robert Jarzmik To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Rob Herring , Mark Rutland , Michael Turquette , Stephen Boyd Subject: [PATCH v3 2/2] ARM: dts: pxa: fix the rtc controller Date: Wed, 27 Jun 2018 17:01:50 +0200 Message-Id: <20180627150150.23951-2-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180627150150.23951-1-robert.jarzmik@free.fr> References: <20180627150150.23951-1-robert.jarzmik@free.fr> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180627_160217_477189_DE24E127 X-CRM114-Status: GOOD ( 17.52 ) 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-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org MIME-Version: 1.0 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 RTC controller is fed by an external fixed 32kHz clock. Yet the driver wants to acquire this clock, even though it doesn't make any use of it, ie. doesn't get the rate to make calculation. Therefore, use the exported 32.768kHz clock in the PXA clock tree to make the driver happy and working. Signed-off-by: Robert Jarzmik --- Since v1: change the dummy clock by the actual 32.768kHz --- arch/arm/boot/dts/pxa25x.dtsi | 4 ++++ arch/arm/boot/dts/pxa27x.dtsi | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/pxa25x.dtsi b/arch/arm/boot/dts/pxa25x.dtsi index 95d59be97213..78a413ea0e88 100644 --- a/arch/arm/boot/dts/pxa25x.dtsi +++ b/arch/arm/boot/dts/pxa25x.dtsi @@ -80,6 +80,10 @@ #pwm-cells = <1>; clocks = <&clks CLK_PWM1>; }; + + rtc@40900000 { + clocks = <&clks CLK_OSC32k768>>; + }; }; timer@40a00000 { diff --git a/arch/arm/boot/dts/pxa27x.dtsi b/arch/arm/boot/dts/pxa27x.dtsi index 747f750f675d..2ab6986433c8 100644 --- a/arch/arm/boot/dts/pxa27x.dtsi +++ b/arch/arm/boot/dts/pxa27x.dtsi @@ -113,6 +113,10 @@ status = "disabled"; }; + + rtc@40900000 { + clocks = <&clks CLK_OSC32k768>; + }; }; clocks {