Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp462355imu; Tue, 27 Nov 2018 15:24:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/XTMchMeYUjS6BkBoSolAxtP3gFBBeJDvLeH+yqqrG3rrlVmXfXfmvzIm86aFg7LRVQhWwk X-Received: by 2002:a63:1d1d:: with SMTP id d29mr29842729pgd.49.1543361094567; Tue, 27 Nov 2018 15:24:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543361094; cv=none; d=google.com; s=arc-20160816; b=JYMQ6UgUOGfjFDwRjbQIxg2yl32p3wxw7MdMq8kjz6Hac+uJUDNDHc7aSTD9+OBVoq xoyVQvEOvKFHOg8KKrUsGiZ34bqi6lKJcPCJEvFiZnU+olm2+f1EIxCTZOAU+g5SdEZx oO3qt5NVTkadY+EGIx0OcySGyea8w24beeYaMm2KZn2IU/GtFIZm9KCIY0EMlYMaaE8N bMM8N7+jncI0txbPRPcKQOUituUVk6/ptYgYxaG0yBjkG0sFTF8RoZa1bPU94oy2dlYV kq9poTiYUwDkgQvmX1EzuIFf7gBkKw9MeN4V8cIuP9wGX+xm2jhk8sjU8c2jRk14tkH1 FRtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2Xfx8ZewVdmrTUz9BIWUKVGbJfsFKHUDz2o+BqWwEEU=; b=lbAbl2wi8rwd8Pe4pT4I+7GD6easlUkZrSzt3qPuJyDSgyMIcrqzM4e6JEbRVaNSuI 7tlQSbeSSxF8aRHRwqnrJHkMswdxpa59T6PjHVyLYqph9Vq7bLOPAx/4E/8BJyiwT/f0 UwZTqxOXoIPiaSpsjCdsE6HyGeIP3Rb2VgvrveHqV9uv5ZMjvHFWxPxEKB0KSQmIS0ig U0pFF02x5MhCy+q5nXF8kUKns0bDQr5mFujD2HhVezFden9HfKkWd/ac7Q5lROg1Ln6r JQ/Sx9RqZbb7AICgX7Warutv6y169SccbxGyiiIXfQObpH7XgkD2orz7OHZvsNCEbDgX 0OVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="nY/fJC3o"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si4978680pgs.94.2018.11.27.15.24.39; Tue, 27 Nov 2018 15:24:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="nY/fJC3o"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726425AbeK1KXH (ORCPT + 99 others); Wed, 28 Nov 2018 05:23:07 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45015 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbeK1KXH (ORCPT ); Wed, 28 Nov 2018 05:23:07 -0500 Received: by mail-pf1-f194.google.com with SMTP id u6so9159147pfh.11 for ; Tue, 27 Nov 2018 15:23:37 -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=CIhRx3oCwO/W5pSw5GCv1Aw8tj3CBQgP9vPigfemr0Cv1958RFu2+6MrO40nzoe9MF N/BEGBBR7TqxxDmDSiDukkHwREKUQtlN8VToGjKWfq69hh5FX5YAcF3F4aP8r75WNBH1 37T+rGUQaL8OxlZhK6G8P5/3qpj0x2VX/LeO16QKj9FXwmv2erEDBs9YWc82pBwuZr8o L5ozpQPr6fWkqpkawy3OKQ8l5YZU4TkakrwkoTAR9UiZqudgLxKnCb2UFefaqmjHNjQw JQ6BdTpuzMsLVWNfUTvSXygDxV7q/+IFqFmWYWBEFS21xyBRWy6EjTFZXr32X4SVYBi4 j90A== X-Gm-Message-State: AA+aEWZraZgYpuS2D2B1KgWwRQywz1DbX2XYpdkpr7dembGcU2IUIA3A PRMban2x70DjR8e4bA59NExs6+NZL6M= 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 Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, tony.xie@rock-chips.com, zyw@rock-chips.com, ayaka@soulik.info, nickey.yang@rock-chips.com, zhengsq@rock-chips.com, klaus.goger@theobroma-systems.com, dianders@chromium.org, briannorris@chromium.org, enric.balletbo@collabora.com, heiko@sntech.de, mark.rutland@arm.com, robh+dt@kernel.org, Derek Basehore 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 * -- 2.20.0.rc0.387.gc7a69e6b6c-goog