Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3319083pxk; Mon, 7 Sep 2020 09:24:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0oQ+XcGSmNbVHM5QJ4FXjT13Ocvewz1PRmRF9w2lhzvHL1VSyWap+x5naQcaSv+MzZnOb X-Received: by 2002:a05:6402:1558:: with SMTP id p24mr21851375edx.194.1599495871993; Mon, 07 Sep 2020 09:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599495871; cv=none; d=google.com; s=arc-20160816; b=HRiByiguAXBi9YHvMZgWuM++24KA4ZXFedIN0HB5Kq8dTbhjrsPUGAdZVy033wTRw2 W6ciLjbwfmmplEjGWcJK92E2EkiLeMBTJL4BTGZaB6koumux1EISPlrYzvQEAGeTwdfJ nZAjP2ETem93yR8dfHt3TkZN2mGxhHPMGeMngCKZt31fbouUI9JFwHaqTKX+utA9cX2h b9D7hO4Ea05XRVyaL+JTI10vpdCY8pvq0yPsKVzYPfFenLJg25Op/WReimfgfKYqjGwR tGSoAmSgbYDpd0D3zeejeaFD+tGsLOz4TnnsgB/Te3J5QYOgWb+xdLfLvmNRR3k1f4FU PVnA== 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=9CHqEBeg4h21yr5EQ1jKYaE9SWyjoVLITgLuVBSAsrk=; b=Afp/ZTObbVH7TQe8zlAZcmpJl7FyK8cRxVNIlpEc71BYF5ce31gd9x/2M58FAd3ggw seeY++XseijnGNvh1wT6J/7S+zvw7/4eUnrLFLb6JyFj+eeS0tXJwUaacbFCg/L/2svs rgaLvkWhACQFN8iv3sXm60aM8ABIQ7n2ypuR9/dOFu927FdyIO6KsdwUo3LeVhvLfQS0 GxDdv9iNXivaXV7+pzYdN5yAYYLEdIVRHRXM1cOY9kpA4wcO7CJKYlubgQ1Tuku/LYCE GdLtxvZRFcDRRDzfvdIShSf7veFDIdAuKz3DXHuqGA2LlFeCvRf0d+To93g2A2m6P3VK /Tjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nNkR14er; 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.24.09; Mon, 07 Sep 2020 09:24:31 -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=nNkR14er; 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 S1730420AbgIGQWI (ORCPT + 99 others); Mon, 7 Sep 2020 12:22:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:33378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730389AbgIGQNV (ORCPT ); Mon, 7 Sep 2020 12:13:21 -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 DEDE921897; Mon, 7 Sep 2020 16:13:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599495201; bh=ejtq/VIVsktLn4Dgw4vy86y+KtXeh8BqyiiI41C0oYM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nNkR14erhjM+1VUXixXRp1KJe6Zdmr2ez4f0PwcJ4p8eEzRNgNJ6DjxDty7fxYr+l 8fMvogRLvor3RRwwLPnT8HOvXMOTIYpMGsB37OvspsErCVf788XlVeXWIDYezWyeKm 0/5E7+5HVT2HJdrjsMXM7xpv07bIXaLPLVml5rjA= 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 13/25] ARM: dts: s5pv210: add RTC 32 KHz clock in SMDKC110 Date: Mon, 7 Sep 2020 18:11:29 +0200 Message-Id: <20200907161141.31034-14-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-smdkc110.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210-smdkc110.dts b/arch/arm/boot/dts/s5pv210-smdkc110.dts index e5aec6c526fb..0c623b78af72 100644 --- a/arch/arm/boot/dts/s5pv210-smdkc110.dts +++ b/arch/arm/boot/dts/s5pv210-smdkc110.dts @@ -30,6 +30,13 @@ device_type = "memory"; reg = <0x20000000 0x20000000>; }; + + pmic_ap_clk: clock-0 { + /* Workaround for missing PMIC and its clock */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; }; &xusbxti { @@ -54,6 +61,8 @@ &rtc { status = "okay"; + clocks = <&clocks CLK_RTC>, <&pmic_ap_clk>; + clock-names = "rtc", "rtc_src"; }; &i2c0 { -- 2.17.1