Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3319346pxk; Mon, 7 Sep 2020 09:24:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLudytUNQPXr8aU5pjNaTQaFnSf/AIeoT8Cj7AA6vvFZ9YrFN73ug+tBefe1BfOWhEtmdr X-Received: by 2002:a05:6402:445:: with SMTP id p5mr7902012edw.214.1599495899492; Mon, 07 Sep 2020 09:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599495899; cv=none; d=google.com; s=arc-20160816; b=qNiBqNNF06mbgFvh/myW83MTJEW3xCwTAF2NX8MyK5UxkJ3lfW1RaoDJ8Kbp0EnZVo fM1ikC1j4YtnRUki+Uv6mUB+IyJMhcQG2UxUYBXbhP7lZm2oqX/N0AzFg5cK4MGsgOM9 G9mJgbXmI8xzFqrC2RW74PnPbtZ7wBzdtjUNcC+b5LykTshiJOsyF8j5E5+UVRBZpiHl f2eLr6fDJwndtVp7l+QjkGIJ1PZtXYV55ObnXCImUmZC4+n0o/icRHxAz/XBy3vKhdc+ MilBMI3+SdEoygpWFIu92jwmmd6UusQO6NisnaWico5/2hcj2TmTaPnH8QlGx86rHFbZ x5YA== 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:to:from:dkim-signature; bh=F4m3CONpVyaikfogCZyb/L4J4J+AqKXvqhFVWsOGgKE=; b=JliDbkUanthQEtrimABbwmLVYEwaBJzs7fBibcCMRiHFxLX2MxtGzEqG107j2bTB/X T1tD2Tgoql3mV4B7o0LLRyeeJeMKUx13XHWMH/JfHXEfHOItTPbUCxzir64ybkp+1jgh dK/nbpkmbMOofHqubiyEfEpzeEDBa9Vk1QOgvr6mq8g7BU/CExv3v0TzWdT5qvOTY9Nt V1bPdaaWEKJ8sg9Rvr0MFmC0FW0N2PzP3gcQXRxwuAmdB85+IcEb+ZY7AHrtxatFz0SB hN+B0JJBfLtL0y37yWbvkwOl01L0uWy7E0fqHRLef9zysOpM4D1cHgwIsfSwOL2kavkl nVvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AvZnRTKZ; 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 i25si1269193eds.204.2020.09.07.09.24.37; Mon, 07 Sep 2020 09:24:59 -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=AvZnRTKZ; 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 S1730423AbgIGQYH (ORCPT + 99 others); Mon, 7 Sep 2020 12:24:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:33292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729937AbgIGQNS (ORCPT ); Mon, 7 Sep 2020 12:13:18 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 39503207DE; Mon, 7 Sep 2020 16:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495197; bh=yx/xrKwi3d342OuVJ6+t5DVvoWKbXVtqclPlrgpbk3Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AvZnRTKZawYE3HQooBh8Fj2d4hN/5dCV9Kt4ZgIPQouJdeq/+bazDiPaEgGeCW4V2 ZAPxuKbRNKpo88YfNvxNxs0DB2HO8xoKg2K9Yvv9rJ/EMc0EeuadiOKjDZxKkZJb3v EoDlBPgID3PfgjjKpnCeqwOFOa7Y0cgpEF6mPfNc= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Bakker , =?UTF-8?q?Pawe=C5=82=20Chmiel?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 12/25] ARM: dts: s5pv210: add RTC 32 KHz clock in Goni Date: Mon, 7 Sep 2020 18:11:28 +0200 Message-Id: <20200907161141.31034-13-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907161141.31034-1-krzk@kernel.org> References: <20200907161141.31034-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 such clock provider but rather a regulator driver which registers the clock as a 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 fixes dtbs_check warnings: rtc@e2800000: clocks: [[2, 145]] is too short rtc@e2800000: clock-names: ['rtc'] is too short Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-goni.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210-goni.dts b/arch/arm/boot/dts/s5pv210-goni.dts index fbbd93707404..c8714bf0b6e4 100644 --- a/arch/arm/boot/dts/s5pv210-goni.dts +++ b/arch/arm/boot/dts/s5pv210-goni.dts @@ -33,6 +33,13 @@ 0x50000000 0x08000000>; }; + pmic_ap_clk: clock-0 { + /* Workaround for missing clock on PMIC */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>; @@ -224,6 +231,11 @@ regulator-max-microvolt = <1200000>; regulator-always-on; }; + + ap32khz_reg: EN32KHz-AP { + regulator-name = "32KHz AP"; + regulator-always-on; + }; }; }; }; @@ -308,6 +320,11 @@ status = "okay"; }; +&rtc { + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; + clock-names = "rtc", "rtc_src"; +}; + &sdhci0 { bus-width = <4>; non-removable; -- 2.17.1