Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1348177ybd; Sun, 23 Jun 2019 05:37:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyy3CdVZCCZWK/unFIQVzREGlyomUBHiE4HRKVG+dI0tiNjK4AhRbbM9XZvyWj/ArAJ15jx X-Received: by 2002:a17:90a:2525:: with SMTP id j34mr19077511pje.11.1561293450262; Sun, 23 Jun 2019 05:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561293450; cv=none; d=google.com; s=arc-20160816; b=OoPbti7LQRiDOwJT+ZJLbqpN8d/qMGZFUj0u2wreBIn3LTrF6PBcikdGMmOKwy8OT/ KokIEg3G6T7ZN0OtR4Z+V0cD8M3vDsipqpsjO2AjDbXS+WMgBQz97PnjGEMiWtd/kfZ4 h8ZLLTH9gGVeuo5BUbzlDZArkVdufOdJBYXZCfTzVnwPYyjNXCPnPvvhWQ1BlPOPnPB4 nFR9+74OCcOftsVm0H3cgINpuA8HAYQeUSsDEvyQu9L7amSrcK/t/4gnx6eh5sBzEc1H VhKzQYaT3FbhVIzwANcV0wOZk4lIawILKHIwFBJDd9jJd8uMYHJYHEB6EPodP+9qA83+ B8eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=7h/rIsL70MbsaU77tkH+LuM74MlaC53vhB0ONv6Q7mg=; b=oyw/FQ7fMsxzHQoNpVk7pKQbbEAkuYn96fvcWTCYLmiRIYnXcRaWagfq1pJsQV2eNi 5+iI2/rhNK3b9+ypjT3TsNtNvLoVlhxHxnGCRErN+TJWerr2V6o55KRbJ7tu4lyg+U36 gDKcP93fpablgJeQ1yUQo8NBnqETWbGj+mtarGEz3CB/6a52RpGBTsd4oFNGBn/H6xEF rmKQiEjP+qJxXp2y+VFRT6kmwaZ5MINxuA5FcK3FcLQMtDcsgc8qqZp6D/8d6jtDv8au YfBQE/ZC88N5o2VhVbhElZwKsffBEseoMHIXCfYNtDpihWS0y0LvS0gMmu0wbDwSNwUV xJSA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l24si7965958pff.185.2019.06.23.05.37.14; Sun, 23 Jun 2019 05:37:30 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726610AbfFWMhJ (ORCPT + 99 others); Sun, 23 Jun 2019 08:37:09 -0400 Received: from inva021.nxp.com ([92.121.34.21]:43100 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726386AbfFWMhH (ORCPT ); Sun, 23 Jun 2019 08:37:07 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1D0242003D1; Sun, 23 Jun 2019 14:37:05 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2D7CC20012B; Sun, 23 Jun 2019 14:36:56 +0200 (CEST) Received: from mega.ap.freescale.net (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 3EA8C4030C; Sun, 23 Jun 2019 20:36:45 +0800 (SGT) From: Anson.Huang@nxp.com To: daniel.lezcano@linaro.org, tglx@linutronix.de, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, l.stach@pengutronix.de, abel.vesa@nxp.com, ccaione@baylibre.com, angus@akkea.ca, andrew.smirnov@gmail.com, agx@sigxcpu.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Linux-imx@nxp.com Subject: [PATCH RESEND V2 1/3] clocksource/drivers/sysctr: Add optional clock-frequency property Date: Sun, 23 Jun 2019 20:38:48 +0800 Message-Id: <20190623123850.22584-1-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang Systems which use platform driver model for clock driver require the clock frequency to be supplied via device tree when system counter driver is enabled. This is necessary as in the platform driver model the of_clk operations do not work correctly because system counter driver is initialized in early phase of system boot up, and clock driver using platform driver model is NOT ready at that time, it will cause system counter driver initialization failed. Add the optinal clock-frequency to the device tree bindings of the NXP system counter, so the frequency can be handed in and the of_clk operations can be skipped. Signed-off-by: Anson Huang --- Changes since V1: - improve commit log, no content change. --- Documentation/devicetree/bindings/timer/nxp,sysctr-timer.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.txt b/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.txt index d576599..c9907a0 100644 --- a/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.txt +++ b/Documentation/devicetree/bindings/timer/nxp,sysctr-timer.txt @@ -14,6 +14,11 @@ Required properties: - clocks : Specifies the counter clock. - clock-names: Specifies the clock's name of this module +Optional properties: + +- clock-frequency : Specifies system counter clock frequency and indicates system + counter driver to skip clock operations. + Example: system_counter: timer@306a0000 { @@ -22,4 +27,5 @@ Example: clocks = <&clk_8m>; clock-names = "per"; interrupts = ; + clock-frequency = <8333333>; }; -- 2.7.4