Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5536960imm; Tue, 26 Jun 2018 13:04:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKxtbebJcXkrdmXxlxC31xkoJQpdck0Jvfz86GzVPOCE9/CY8h5C1fFMx81J0Gr8I1hOVQa X-Received: by 2002:a17:902:ac88:: with SMTP id h8-v6mr3015267plr.17.1530043484074; Tue, 26 Jun 2018 13:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530043484; cv=none; d=google.com; s=arc-20160816; b=Wpe98z+hwPcYNa45CLo9Qv0aUW/bf3qyMI8L5VyHLUpy7shiNqJSHi844SCWSjX3FT ty+G54csib/6kp9kkG4nhgO+ucbbxkC9Eil4XbqCNj9MG1+mdRShjbjUwplnY9vY16kH 7fyOLbypvZS9D98dm3e+WTqwtVGVomSCLhrOqs/Fn+owM3iUmi+rM/Z5cLRbvmbwv3Bj b5bHmdO+haAYKnjruFQXrYO+tFfTTY8B9hrVoMh7CiZfZ5Ci02GnjMNUg2OHWy72ma0l nohNiPdwJFJanz4cykGBu2pMDtK91/pxaOMFkp/0TOxi8a2ycpH2vIU5+az/awS6sGON Rkew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=X4c4g1IV07O/fsZPYaCE2dUii1u5dhPRVC7rzVDjxz0=; b=NlBAC1oKE8vDIvMrtZOwJjSh6vjB+vPf/Txo123MQWfa4bpDrqq+FNSclT6pcnvk4c aKQej1zgX8sFYY5Naka/tKKzTWNENSav93jbFz3vCbtzeYCzD+nVcXsPEr9Fpx7X+OIw emSdB6ymTY3TqaGbSU04LKVrOoE6F26rVbm4lNFlI9fYDjDUSzTAkBMPzdG157PDWzg9 BQipQabRJSHSQJMoIR1UNJBFK92Qs9PdT1EKJ6xx5unQduFCZZ3uzvfx5f6GX+wdzB9/ oq4YbZNDZ5Iff76C5shs12aFG2quLf5vFoUbRfi2RuxxReg+Q9u9eR9xjRaWzEfH1QmU 05bw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v127-v6si1893455pgv.212.2018.06.26.13.04.26; Tue, 26 Jun 2018 13:04:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753056AbeFZUDn (ORCPT + 99 others); Tue, 26 Jun 2018 16:03:43 -0400 Received: from smtp08.smtpout.orange.fr ([80.12.242.130]:26211 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752161AbeFZUDl (ORCPT ); Tue, 26 Jun 2018 16:03:41 -0400 Received: from belgarion.home ([90.55.203.186]) by mwinf5d15 with ME id 3Y3J1y00841oiFu03Y3fpo; Tue, 26 Jun 2018 22:03:40 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Tue, 26 Jun 2018 22:03:40 +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 Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v2 2/2] ARM: dts: pxa: fix the rtc controller Date: Tue, 26 Jun 2018 22:03:08 +0200 Message-Id: <20180626200308.16192-2-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180626200308.16192-1-robert.jarzmik@free.fr> References: <20180626200308.16192-1-robert.jarzmik@free.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 { -- 2.11.0