Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp385418pxk; Sun, 30 Aug 2020 07:15:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuK7qVw80cQCXa1RPY/yo0tMWO+CUFi1coVVVluOvDn19KZ7zJQTeY2ThxhFCb80aOM+J2 X-Received: by 2002:aa7:dc0e:: with SMTP id b14mr240524edu.158.1598796939120; Sun, 30 Aug 2020 07:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598796939; cv=none; d=google.com; s=arc-20160816; b=X7TNEx3/KeLEy5NPDz8Y98jTFy3prpOJwjzFkcyWMsjYWIB9a+WDH1AmGF/oqxClDh X+MvwKTEWM/haEqtu4h/NQZdI4wp5iHWr+3SBaBQiItS9n2a92a0TuLv+eFFUA1LAYqm UR9ndyeE28KZtJyM8OswD2wwooOhEHYbHKdJnpou+o+c8Pq5Ap34uwwPWkVvH9Hg+wdL 5Q3TbsNsimruyM6Lz/0zI9e3hNcIfNUbK4Hxt9uAY2kIOBrYKSWV5XlzYOKEdtIbzBtd reG0xSYg0vrArhtdkmZ9LzsNxtwcRueWk1DndBG7AFaipS+UZ4JIaFXnikZOPhHptmYt eOZA== 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:dkim-signature; bh=6i9sQVM+ALu9Ye65UxuF/NrL/7Y1wKgJfPitXCPcev8=; b=zCcEqu8keDodrqju3q4ucAjzAecB1gjI1gd0qOL8VRoV6oT8bgM3g/57sxaJQVOVB9 ROCZjk93pmrCbdX9CQ+j8PRRR5VYUDD/qjmJgVkeDxWgpTU6OZHVgMCKqjelh7wBrMGq xVp0Vn431vS8cd2bPqEH4cLavsdefetcQ3uElJsckttQx8d673/gOWIbgrQJT9SsCFk9 X7izrG8KKrzz71C3dxRYhS9xx0Lb/hL5zKWru4mSL8VGEKNBPXiVTdFAoQxIhrBfL+3/ seQ7UKykMC/ar5PDNjZPoGz9DXKUavjvT+wQjwdnxnho5sBkpLj5LBR5bsJDBPNSgr94 PsyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=koAxN9ff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si3723103ejr.18.2020.08.30.07.15.16; Sun, 30 Aug 2020 07:15:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=koAxN9ff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726928AbgH3OOU (ORCPT + 99 others); Sun, 30 Aug 2020 10:14:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:55080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728904AbgH3NyQ (ORCPT ); Sun, 30 Aug 2020 09:54:16 -0400 Received: from localhost.localdomain (unknown [194.230.155.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 083D420EDD; Sun, 30 Aug 2020 13:54:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598795655; bh=niICbcBz2rtNi4SVKxMCoMeh3QFoGrH5fkVUjCceR1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=koAxN9ff5ZxZ4Vb+nonO9jNTMF2DJya09+pSQmV46xR9SXaz2tPC1Tv8R86QxasQ5 Gm5OVVXLPRC3sA9x/TwzN1hZ7fcJNZfyfHTcmOY88OtSHRDMxs1SM85tH8Z9kA/2O0 Uo0Pf8mmb4MP0vAvuRz0jky8khp3rll9hBxU17yM= From: Krzysztof Kozlowski To: Rob Herring , Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, "Denis GNUtoo Carikli" , Simon Shields Cc: Marek Szyprowski , Bartlomiej Zolnierkiewicz , Sylwester Nawrocki Subject: [PATCH 07/33] ARM: dts: exynos: Correct S3C RTC bindings in SMDKv310 Date: Sun, 30 Aug 2020 15:51:34 +0200 Message-Id: <20200830135200.24304-7-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200830135200.24304-1-krzk@kernel.org> References: <20200830135200.24304-1-krzk@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The S3C RTC requires 32768 Hz clock as input which is provided by PMIC. However there is no clock provided for the PMIC and the driver registers the clock as regulator. This is an old driver which will not be updated so add a workaround - a fixed-clock to fill missing clock phandle reference in S3C RTC. This allows to enable the S3C RTC and fixes dtbs_check warnings: arch/arm/boot/dts/exynos4210-smdkv310.dt.yaml: rtc@10070000: clocks: [[5, 346]] is too short arch/arm/boot/dts/exynos4210-smdkv310.dt.yaml: rtc@10070000: clock-names: ['rtc'] is too short Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4210-smdkv310.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/exynos4210-smdkv310.dts b/arch/arm/boot/dts/exynos4210-smdkv310.dts index 77fc11e593ad..0b0e86737b26 100644 --- a/arch/arm/boot/dts/exynos4210-smdkv310.dts +++ b/arch/arm/boot/dts/exynos4210-smdkv310.dts @@ -40,6 +40,13 @@ compatible = "samsung,clock-xusbxti"; clock-frequency = <24000000>; }; + + pmic_ap_clk: pmic-ap-clk { + /* Workaround for missing clock on PMIC */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; }; }; @@ -148,6 +155,11 @@ }; }; +&rtc { + clocks = <&clock CLK_RTC>, <&pmic_ap_clk>; + clock-names = "rtc", "rtc_src"; +}; + &sdhci_2 { bus-width = <4>; pinctrl-names = "default"; -- 2.17.1