From patchwork Sun Apr 16 20:27:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 97476 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp1087106qgf; Sun, 16 Apr 2017 13:29:45 -0700 (PDT) X-Received: by 10.84.224.73 with SMTP id a9mr11443035plt.38.1492374585730; Sun, 16 Apr 2017 13:29:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si8908550pgc.224.2017.04.16.13.29.45; Sun, 16 Apr 2017 13:29:45 -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; dkim=pass header.i=@linaro.org; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757194AbdDPU3S (ORCPT + 15 others); Sun, 16 Apr 2017 16:29:18 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:34788 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757136AbdDPU3H (ORCPT ); Sun, 16 Apr 2017 16:29:07 -0400 Received: by mail-wm0-f48.google.com with SMTP id r190so3173090wme.1 for ; Sun, 16 Apr 2017 13:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DQtHm1Tmme/TIoOAI+zEqixlXmRYleHGzfKEskSMf1s=; b=kVAtcwtnh7yNH6sja+KmP5EF1vKZAIK57Nmn11/WF9XDyOFeLwaoADh6FV0KgAYjLv fmBHGLkuRBnI8YhBEs+16OOxmADvPoS3gdBxVkGLWs2O2ltQWIMl/kSChyGzw6ewEwMC mfaFl4gLl5fI2zBJAsXFg6f6j9fSnQkA/a24A= 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:in-reply-to :references; bh=DQtHm1Tmme/TIoOAI+zEqixlXmRYleHGzfKEskSMf1s=; b=nzI3faO5PlrWmshMJQb0VYsP1baWXzAKQnzTnV4NQmkpsax1cFAmhi+Ayax20Ku1Zm LwvdAu+/z0/LBLwqwO7J4YtAn4YqiS1jNS5rjSeL8GlRco9o8v2GiJO7Db/QmxnRO5Pn VxV1CHYndMz5q/k56ONB2QsjMh0+zh+uAt7Yacx3OhnGfWjO9yv4eH5fB8uKzPRy0sdD hOrQOQPffiOQF9oEvdFPXF4m2Zcs17o5JfkcKg2ht1heFzoV9YOjLJh5QCZKkDFAecb+ 9hD0QfU7jHFgyDuwFdhlyoOugi4RoEcLrq8qU6xFDdbIHOXuxORFYgjKdV9/GVm2cLBj cyBQ== X-Gm-Message-State: AN3rC/6k+w8ueUkdlekE6P0vhomlTHD8EOVUQ4883WGNk32YlcqQOXh8 1WNCvuwhZcdKOvqc X-Received: by 10.28.128.68 with SMTP id b65mr6742250wmd.140.1492374536089; Sun, 16 Apr 2017 13:28:56 -0700 (PDT) Received: from mai.lan ([2001:41d0:fe90:b800:20c0:6248:a385:db35]) by smtp.gmail.com with ESMTPSA id 81sm7732196wmj.9.2017.04.16.13.28.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 16 Apr 2017 13:28:55 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Linus Walleij , Rob Herring , Rob Herring , Mark Rutland , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH 27/29] clocksource: Augment bindings for Faraday timer Date: Sun, 16 Apr 2017 22:27:17 +0200 Message-Id: <1492374441-23336-27-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1492374441-23336-1-git-send-email-daniel.lezcano@linaro.org> References: <20170416202542.GV2078@mai> <1492374441-23336-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Walleij It turns out that the Cortina Gemini timer block is just a standard IP block from Faraday Technology named FTTMR010. In order to make things clear and understandable, we rename the bindings with a Faraday compatible as primary and the Cortina gemini as a more specific case. For the plain Faraday timer we require two clock references, while the Gemini can keep it's syscon lookup pattern. Signed-off-by: Linus Walleij Signed-off-by: Daniel Lezcano Acked-by: Rob Herring --- .../bindings/timer/cortina,gemini-timer.txt | 22 --------------- .../devicetree/bindings/timer/faraday,fttmr010.txt | 33 ++++++++++++++++++++++ 2 files changed, 33 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/timer/cortina,gemini-timer.txt create mode 100644 Documentation/devicetree/bindings/timer/faraday,fttmr010.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/timer/cortina,gemini-timer.txt b/Documentation/devicetree/bindings/timer/cortina,gemini-timer.txt deleted file mode 100644 index 16ea1d3..0000000 --- a/Documentation/devicetree/bindings/timer/cortina,gemini-timer.txt +++ /dev/null @@ -1,22 +0,0 @@ -Cortina Systems Gemini timer - -This timer is embedded in the Cortina Systems Gemini SoCs. - -Required properties: - -- compatible : Must be "cortina,gemini-timer" -- reg : Should contain registers location and length -- interrupts : Should contain the three timer interrupts with - flags for rising edge -- syscon : a phandle to the global Gemini system controller - -Example: - -timer@43000000 { - compatible = "cortina,gemini-timer"; - reg = <0x43000000 0x1000>; - interrupts = <14 IRQ_TYPE_EDGE_RISING>, /* Timer 1 */ - <15 IRQ_TYPE_EDGE_RISING>, /* Timer 2 */ - <16 IRQ_TYPE_EDGE_RISING>; /* Timer 3 */ - syscon = <&syscon>; -}; diff --git a/Documentation/devicetree/bindings/timer/faraday,fttmr010.txt b/Documentation/devicetree/bindings/timer/faraday,fttmr010.txt new file mode 100644 index 0000000..b73ca6c --- /dev/null +++ b/Documentation/devicetree/bindings/timer/faraday,fttmr010.txt @@ -0,0 +1,33 @@ +Faraday Technology timer + +This timer is a generic IP block from Faraday Technology, embedded in the +Cortina Systems Gemini SoCs and other designs. + +Required properties: + +- compatible : Must be one of + "faraday,fttmr010" + "cortina,gemini-timer" +- reg : Should contain registers location and length +- interrupts : Should contain the three timer interrupts usually with + flags for falling edge + +Optionally required properties: + +- clocks : a clock to provide the tick rate for "faraday,fttmr010" +- clock-names : should be "EXTCLK" and "PCLK" for the external tick timer + and peripheral clock respectively, for "faraday,fttmr010" +- syscon : a phandle to the global Gemini system controller if the compatible + type is "cortina,gemini-timer" + +Example: + +timer@43000000 { + compatible = "faraday,fttmr010"; + reg = <0x43000000 0x1000>; + interrupts = <14 IRQ_TYPE_EDGE_FALLING>, /* Timer 1 */ + <15 IRQ_TYPE_EDGE_FALLING>, /* Timer 2 */ + <16 IRQ_TYPE_EDGE_FALLING>; /* Timer 3 */ + clocks = <&extclk>, <&pclk>; + clock-names = "EXTCLK", "PCLK"; +};