Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp383970pxk; Sun, 30 Aug 2020 07:12:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykHAvBU/JOeffzRDCSRxZaDT/aMnzHs8mN2ZSIz6Spgdmq181Thxqa8sm6fZ9BIwfgaQWa X-Received: by 2002:a17:906:b2c3:: with SMTP id cf3mr8137614ejb.387.1598796761172; Sun, 30 Aug 2020 07:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598796761; cv=none; d=google.com; s=arc-20160816; b=I91YebLr3HM67DQIvGLX9FUtOlhyn9L/kQjWyt11YP4XL31tc1QCNsCDW0jC0i3dbq qPFa7KE/dB2ODTHuCEvGPHgIf1aeh0uIjc5g9WsI9C9gt9QEbkjIi37J7P497LG3GDXq etzJZ9mybIW6ChZLTtB+y78t2EdQnOgx7e9NC9RhbcNT3IAmgq9y7W/03OnO6GBHr7pq 8DyZ3jy2siGfZlCV/8fos5BAq26Nq2MuslOBd+aeFqjX9HLvZhqWHrodCE8E3xFgD1Tl xWhHHV7nllKuNuNu0rTm3TndCnyewrxzM53ZbpIpz/nhUKr7u6oXcDnYl4cSt3+gQvl0 wqMg== 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=U6NG3dtrenSiaDFAr+/Ht0cPCuOHDILJz8AtlFzlEjU=; b=RquwMSCE5BONYXtg+WpP+Vr88aR1QeyeH/omJtPXRQ98R7a3753KOCYhkYGuMTcSbJ H0v3YWvQFWS/MH8Fza7DWGfwJSDtjuxstVr02cJd6cuTGI3i+RO3AFhAYicZOa62qB3L 3DwlB1MKRmcW2pa+xHiHCCSzmqOwxtLGvbH3FuvBucZRNLVMcLrQGtSyRuh8GIkn7WLi rbNZKW3s9N291kDTlCxI6ppsPpKbaZ1U4XoHcdUygtd6fcUGxSGFN86m3XGLUShn9e+u B0KWcOTHSAy1/R7mVzfNygS0YC39sCGFKNlPsScq0+dneSrMcut0rJ075g5X+jNVZjcY SrvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dPorNLpJ; 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 eb13si4283744edb.446.2020.08.30.07.12.18; Sun, 30 Aug 2020 07:12:41 -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=dPorNLpJ; 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 S1728916AbgH3Nyj (ORCPT + 99 others); Sun, 30 Aug 2020 09:54:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:54822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728887AbgH3NyE (ORCPT ); Sun, 30 Aug 2020 09:54:04 -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 D8C302087D; Sun, 30 Aug 2020 13:54:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598795643; bh=BJu2ygEsYuHqBLXUZVb62si7DnFLg02WRfhJZMLE0UI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dPorNLpJOPZEfol6g1uhSKyL6ir4bsR56fQH0IekTnhwGqn+NC2t98/ep8mo0ssRn vuWC9pqPgKt1iChhUQOFz2QG6c0erlx0bdoSNisEtKH+G4eag7uHF4kwvCwVOZ2vvB ambJwAqajcYm44zGT5ayAqcCIGKEGfr3nvhCVC5U= 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 03/33] ARM: dts: exynos: Correct S3C RTC bindings and enable it in Galaxy I9100 Date: Sun, 30 Aug 2020 15:51:30 +0200 Message-Id: <20200830135200.24304-3-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 (Maxim MAX8997). 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: 1. Enable the "clock" regulator in PMIC, 2. Add 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-i9100.dt.yaml: rtc@10070000: clocks: [[5, 346]] is too short arch/arm/boot/dts/exynos4210-i9100.dt.yaml: rtc@10070000: clock-names: ['rtc'] is too short Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4210-i9100.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/exynos4210-i9100.dts b/arch/arm/boot/dts/exynos4210-i9100.dts index 6fa57d1fa1d7..d63274c8539d 100644 --- a/arch/arm/boot/dts/exynos4210-i9100.dts +++ b/arch/arm/boot/dts/exynos4210-i9100.dts @@ -209,6 +209,13 @@ compatible = "samsung,clock-xusbxti"; clock-frequency = <24000000>; }; + + pmic_ap_clk: pmic-ap-clk { + /* Workaround for missing clock on max8997 PMIC */ + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + }; }; thermal-zones { @@ -568,6 +575,11 @@ regulator-max-microvolt = <4100000>; regulator-always-on; }; + + EN32KHZ_AP { + regulator-name = "EN32KHZ_AP"; + regulator-always-on; + }; }; }; }; @@ -688,6 +700,12 @@ }; }; +&rtc { + status = "okay"; + clocks = <&clock CLK_RTC>, <&pmic_ap_clk>; + clock-names = "rtc", "rtc_src"; +}; + &sdhci_0 { status = "okay"; -- 2.17.1