Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6588244imm; Wed, 27 Jun 2018 09:55:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLSO/b6f3EUhD4D0GgSu+oIeTSCKq4zU2jewlOhRHvS/nVi/BYluJnN0sFD2siXgnK7/CD2 X-Received: by 2002:a17:902:c3:: with SMTP id a61-v6mr6995828pla.149.1530118539078; Wed, 27 Jun 2018 09:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530118539; cv=none; d=google.com; s=arc-20160816; b=WObArXmrmCwTlFEMG8GJrsu2MGNi2KGGGR8UflX9iNHzSqgjUfXoMT9a00OfOMqSOZ BfhfNHns2iDQ/twC6MaRvLOQJpYixG9OrvDRXpqslhn+IwLDrMCLR4oDMt4y0wWngC7y aW9jZ/KkguR3qd7p31n+22+Z8A9og3yKD8dCFPhwrz2vFp9nZpH+LxwKVu7wP6getRmT Tv2cXmGv3TpsQ/sfvDzns2D/yVqmIXNQIM8+8hl+8lSkcHNjDQePedl2+2cYttrBq5IG Pprhh/SD5YIX0MUTK4wZnKcJe1K5x8jkzVlypV8pli4UlnitEJvCgJh+FHOCWb3w0AM2 ZDAQ== 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=uH41YlzkqGB3MZRL4HYeRWHYHTbxCF4hcu0OwRWSQ4yezsmOJk4TYhaHXMvXNybIK6 JDRLNIEp4y42POb9id+VlZvLBSxEwUCq1hyTVxnR2xZTvshkeUsGLlZ/gZ7SGnBAtJ6F r+VpOsMKhsMBvLy7ANNtQlX6pdzZiwESE0FGA7jrPU+YR70+CLhSC2Abg/IHyqI9MtyM Qeii3NoozCRNSG3ekMQfYEUW420nzzgYaxEowsult2lQ+FdJZI/oJ6lhFV3sNBah54ee zXij2dx/bBf37lNEWV4XkbMVWGCXYnHCMLLPERTv80PrILBxWOGhKOjGhDTpGzVELwvF VXlQ== 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 x1-v6si4061686pgx.60.2018.06.27.09.55.23; Wed, 27 Jun 2018 09:55:39 -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 S965559AbeF0PCL (ORCPT + 99 others); Wed, 27 Jun 2018 11:02:11 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:42511 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965543AbeF0PCH (ORCPT ); Wed, 27 Jun 2018 11:02:07 -0400 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 Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org 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> 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