Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3316468pxk; Mon, 7 Sep 2020 09:20:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygpIlNPv0VgxC0uQBVJOczJ9ukh/ZSorQoPpYJ5H/0nE6AyzqesnWIxUjege7v5QoviYaC X-Received: by 2002:a05:6402:8:: with SMTP id d8mr1053505edu.15.1599495621012; Mon, 07 Sep 2020 09:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599495621; cv=none; d=google.com; s=arc-20160816; b=cDhxUpoXBSoRMacFbncmnlonRufy424zb43tC95OJ+dBKTmTG1lGR5AEpjRLHgSmU6 L8ZAsrv/8W9gWDpS75lMUe7MzYwR+6mPUiGtbqR1Ems0+8l7yiosQS7kEizp7lQQqRiJ kmm1uSLgXOWJ5zFCpXUZaog/l9t/TLcKIBGhvoPgLdYib3ELHor3dJ1LZl/TfG5xMvpk R0PbuM/T30kToP2nkdoJcw9/V+Z/dvtaJlIHWyH7P1VeHI87voP4YeMdYVs1kbdWSGoQ EqLA4XOnlwIEqki+s4gUTEdRKXVJz4c1ClZym8+dA0BM36GJ9BzKEjNZplEkLOMT2XwC qoog== 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=sFDwU8g4p8vJCmIi+OZgOAbw3DUKyMdpLcgz+U4glkY=; b=wnHwmjG6iJ3/xpPWBfZF1085ogxl30tjbkWBVaF2VD5QoMAZhU+E6N+RAu6FUE7yHj Chtd74OadE9Fw2RG9Nh3xPO/XKXzq1vYW1UIRn+RJGsscoE/IlgWXoImXTgO+x73tj2P CcceBZ4oSs1UC0euOj6s0Uy6K4YhuK4YDw+5lw5Quq4LhZGLuDwwlLvJHdSuPz8uW5sc GvTBHl/SEOYa8WRVoM5dXP/3lQGM1KzF1UyK9X10AwW70z5JVSN0dmXaDgPxcem66zTA d4RK8CS3sWSIXGsE7DdLvv5obq33Cnhit+0KDFDk+KAtiuzO2gDyBPXEWKEYCO+70IJG j9yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="11vf3Va/"; 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 lr25si3043253ejb.42.2020.09.07.09.19.58; Mon, 07 Sep 2020 09:20:20 -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="11vf3Va/"; 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 S1730434AbgIGQNw (ORCPT + 99 others); Mon, 7 Sep 2020 12:13:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:33540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730318AbgIGQN3 (ORCPT ); Mon, 7 Sep 2020 12:13:29 -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 8245A21919; Mon, 7 Sep 2020 16:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495208; bh=hCa1lfqQh5Q/rKTvpN58exv+OgW3HLbegrw+Jx02Gwk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=11vf3Va/Vc9DRGOMYZamRit9H9IEaPFZlD4LAQsKbOuFnIgs5e3GtwewKW1I2oeKQ Rv1+ghFjyP0D0KoS1Nh6hWQQkny+TSvbF+7I929kpmq7paymYBltUWHIJYWoTfPDYZ o7meOrUnNo8D2v0hoBc360jr9zQY0BXQj10xehOU= 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 14/25] ARM: dts: s5pv210: add RTC 32 KHz clock in SMDKV210 Date: Mon, 7 Sep 2020 18:11:30 +0200 Message-Id: <20200907161141.31034-15-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 the PMIC is not described in DTS at all so at least add a workaround to model its clock with a fixed-clock. 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-smdkv210.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210-smdkv210.dts b/arch/arm/boot/dts/s5pv210-smdkv210.dts index 84b38f185199..1f20622da719 100644 --- a/arch/arm/boot/dts/s5pv210-smdkv210.dts +++ b/arch/arm/boot/dts/s5pv210-smdkv210.dts @@ -31,6 +31,13 @@ reg = <0x20000000 0x40000000>; }; + pmic_ap_clk: clock-0 { + /* Workaround for missing PMIC and its clock */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; + ethernet@18000000 { compatible = "davicom,dm9000"; reg = <0xA8000000 0x2 0xA8000002 0x2>; @@ -147,6 +154,8 @@ &rtc { status = "okay"; + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; + clock-names = "rtc", "rtc_src"; }; &sdhci0 { -- 2.17.1