Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1321893ybd; Sun, 23 Jun 2019 05:03:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzy4kWraeLkDSiYXM1zQjX8FztAIwl7oNiOH7FBrBqR+bmJsS7iklsibvdwPqfnRMZtvsQ5 X-Received: by 2002:a17:902:ab90:: with SMTP id f16mr139171668plr.262.1561291437810; Sun, 23 Jun 2019 05:03:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561291437; cv=none; d=google.com; s=arc-20160816; b=SC423Ph/Z9MnFLHxDG/TNAl9/2rTsrtufJoAhMVJ0j7MHvfmUgr75yP/hnjkqUOR9r ASCpRFTA7aCgLC2dCiAcdP4fVtKV0WPNfV92NVBE7oAvakSRdycQLXo2R7c08Zg+pAFg q6D48W3WxQyp4JvuiKTOGR0r+VxX2TKbdWs3MckF0VwIecT8sopUhSOK+/RGSQSvTRFe ew7K8nXpvVSD9iCWlpMctonz6Q9z2HT5o8bfkWutka9TAkvh0yH20d4r152ntxKId3Xg rfcrPrCZRfeSbXz3qr1b9/PK4YIUnwt63SFLaSCRT5xFBv9cXBBcCHtEocQ9UKWlI6FG OyQQ== 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=QsTCibWKreZPKB4RexCQIsNcwLoUOGrJou0MwNmQDdROeNqTSE/8KSWEZzIDaquZki R9uodeIdDcKmCH4lxeDzT4yF538uYVz16dyu+cWX49CP/NVuptxbhxzOHXYJ7vgVhPkl V9LttIC4eW8ADqzdk8et9T5LIrx0JL66HeKd5ncmhe3wjVuqMVjR4PZ9o71vLQimbu+6 73PpqSpMn8seTpOrGcUPDWtKAIUMnXM4YLiP75JDHZRhh9sxCel3VQs2fyebp3qFJ8ME mFKcu7ddUFoYunDZrfxflbVwGlZ8t9ODcn883hlorNCw8gqekqAGwrZGaFUZgn5nVT7A ssNw== 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 b5si8029602pfd.273.2019.06.23.05.03.42; Sun, 23 Jun 2019 05:03:57 -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 S1726567AbfFWMCw (ORCPT + 99 others); Sun, 23 Jun 2019 08:02:52 -0400 Received: from inva021.nxp.com ([92.121.34.21]:54140 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726502AbfFWMCw (ORCPT ); Sun, 23 Jun 2019 08:02:52 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1B1FA2003C4; Sun, 23 Jun 2019 14:02:50 +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 2B8E8200133; Sun, 23 Jun 2019 14:02:41 +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 3C2FD402CF; Sun, 23 Jun 2019 20:02:30 +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 V2 1/3] clocksource/drivers/sysctr: Add optional clock-frequency property Date: Sun, 23 Jun 2019 20:04:32 +0800 Message-Id: <20190623120434.19556-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