From patchwork Tue Nov 27 23:23:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Derek Basehore X-Patchwork-Id: 10701623 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 09E2617D5 for ; Tue, 27 Nov 2018 23:40:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECD872C9EA for ; Tue, 27 Nov 2018 23:40:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E04102C9F1; Tue, 27 Nov 2018 23:40:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8B0AD2C9EA for ; Tue, 27 Nov 2018 23:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LS3B+SsAtgl0v5SbzuGKZAMHIugKlHiVcFP7oHIrFJg=; b=gx/mKm7lAdxbgv BsyXQCRmJJso+7cflrQhuwGaOCagJ8NKuqtoAT/w8hrJf5tCzN5x4sjhg3osxPZ8vD3Crsap4Otm/ xV7tdZtlldOF6QdD8u97aDBuUHNcmyVuYVsYjDn5XySdKZ9ZGju1Y4XeAi/UrrnHoEC8bXWIy5X2/ U+CzjoH7I1e2pXDNohbX86Aqz4RaE1jOHSTZNLi1QuwMFzFZn2JLfi2ZPGhmxj5rpepTpG+LRVR6h 0w+q/thYLhYWYIcVu2l785hJ1PnU9dppgco1IBVC6/YYN/dre3cqI2ga249DgkJF5Z1DTRqnzt2kk 9mxkkgmr1CYEWNFRLOPw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRmxu-0000aM-K1; Tue, 27 Nov 2018 23:40:26 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRmxt-0000X3-5S for linux-arm-kernel@bombadil.infradead.org; Tue, 27 Nov 2018 23:40:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2Xfx8ZewVdmrTUz9BIWUKVGbJfsFKHUDz2o+BqWwEEU=; b=JRLyzZmhaYOC9cXGtMgWc7IuSr EMJjp74nzQPv++jGgFbWu1UhCl2jw7bG8pGAeBjK+3DQwEkWPpsvn5oxAb1hHjk77c3RsKI25O+89 NpT/9TwfU7BtVcI10uYBnIcfa348ihjbZ7iM0JtCVXYeYMXhNvGM22eKdHdHFhn6xzf3YEM0o+/Dd PfcO9ox/c++HZbVgPUD7KLu+dNoF2p6xhTfOXg7LQ6MgXGIQDMzLLQ53iNAga1vUeUfolFIo/9maO d7izNyfP8aiy3magxZbT/oe1iEbtik3te+Q6Rfu/j6Fn9S7zMZCJajjmy4+KbBRbJMQYLBE6RfKFP MTVeph4Q==; Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRmho-00050q-Fa for linux-arm-kernel@lists.infradead.org; Tue, 27 Nov 2018 23:23:50 +0000 Received: by mail-pf1-x442.google.com with SMTP id g62so9149569pfd.12 for ; Tue, 27 Nov 2018 15:23:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2Xfx8ZewVdmrTUz9BIWUKVGbJfsFKHUDz2o+BqWwEEU=; b=nY/fJC3orJvzPlKkTcBYu2YA0qwRxxPRvYQQsbxm4wCi0euZwpIs8wNjfKSKPNRf58 FVSIJbHvfTagHqSKuondv962L4Xqdt6kgz+EL0ekiStn7EK4McyaJgSeWOymqA7Vye+A PSy1UfkbI9N88WSed8lQNtc8qG2NlZl09XsO0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2Xfx8ZewVdmrTUz9BIWUKVGbJfsFKHUDz2o+BqWwEEU=; b=rPySKaTXBo7/tIY/KU0w+fUwffDNyG7idrjRUIyjJrk3P//LZCd1CRtM7/dxquEr0S Dw7hjPI7Mily5MdwcE9LrjmGpuxP1BYCGE94+u15lNtylNMIoTcjmlwT3Atue6EjRYcF P56V2KD2lN3F1akwiQqJ29OvgdFMrpTKuWMJ9pZGU4AmT62fDUg6hCO44QKlyYzF/xEy 7Cyd644JC1xVHB055i97xrsVmmvb2tC1nBlC9oGQCZBKSjtsFw2LqTVwT46SpK1cv6Ol 4cFMaaAWWZ+GBQEbg/PonBMZ9wzbz7vemDmMCYXh/7pAEM5lVdByTm5dYoZs0xwwCSVK 97Nw== X-Gm-Message-State: AA+aEWbCEN4WgF4LoQMFjT9z/tLw2zHd+K2f18QlXWZY/3DYHpj3rUqw s7tbvzlvxbYXRIsLqBTgtHbuflfuWTo= X-Google-Smtp-Source: AFSGD/XK8+grlxxuwoykk/HC4/5a9SI4M8JjDohx7JwD6H4dowUbSNE8OxifxU8mTOEGo0xIPWeqiA== X-Received: by 2002:a63:4246:: with SMTP id p67mr30776662pga.335.1543361016552; Tue, 27 Nov 2018 15:23:36 -0800 (PST) Received: from exogeni.mtv.corp.google.com ([2620:15c:202:1:db8d:8e3f:2514:5db8]) by smtp.gmail.com with ESMTPSA id 73-v6sm6484042pfl.142.2018.11.27.15.23.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 15:23:35 -0800 (PST) From: Derek Basehore To: linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: rockchip: Add 32k clk on rk3399-gru Date: Tue, 27 Nov 2018 15:23:31 -0800 Message-Id: <20181127232331.49628-1-dbasehore@chromium.org> X-Mailer: git-send-email 2.20.0.rc0.387.gc7a69e6b6c-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181127_232348_524129_B5585785 X-CRM114-Status: GOOD ( 14.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Derek Basehore , briannorris@chromium.org, heiko@sntech.de, ayaka@soulik.info, dianders@chromium.org, enric.balletbo@collabora.com, linux-rockchip@lists.infradead.org, nickey.yang@rock-chips.com, tony.xie@rock-chips.com, klaus.goger@theobroma-systems.com, zyw@rock-chips.com, robh+dt@kernel.org, zhengsq@rock-chips.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds the 32k clock to the RK3399 Gru board file. Even though it's not directly used, muxes will end up traversing the entire clk tree on calls to determine_rate if it doesn't exist. This is because the 32k clk is listed as a possible parent on some clks. Since the clk doesn't know about the 32k clk (it was never registered), it triggers a global search for it. This can happen about 40 times per second, which isn't great for power. Signed-off-by: Derek Basehore Reviewed-by: Douglas Anderson --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index ca07f6032200..a07aa4c570c0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi @@ -14,6 +14,13 @@ stdout-path = "serial2:115200n8"; }; + ap_rtc_clk: ap-rtc-clk { + compatible = "fixed-clock"; + clock-frequency = <32768>; + clock-output-names = "xin32k"; + #clock-cells = <0>; + }; + /* * Power Tree *