From patchwork Fri Apr 7 21:55:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 97047 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp468593qgd; Fri, 7 Apr 2017 14:55:23 -0700 (PDT) X-Received: by 10.84.228.215 with SMTP id y23mr40510054pli.85.1491602123150; Fri, 07 Apr 2017 14:55:23 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4si6260623plk.335.2017.04.07.14.55.22; Fri, 07 Apr 2017 14:55:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755553AbdDGVzW (ORCPT + 7 others); Fri, 7 Apr 2017 17:55:22 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:35972 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751170AbdDGVzV (ORCPT ); Fri, 7 Apr 2017 17:55:21 -0400 Received: by mail-lf0-f50.google.com with SMTP id s141so12825297lfe.3 for ; Fri, 07 Apr 2017 14:55:20 -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; bh=A+Fy3Se9Sgpqq6f/lL3EFZKu0Fwbn+FM9EdEBD7PZ4Y=; b=fAK/d1VQW603aFbmmAFJ09WT3MruUnl9xMFhJqc7CeT0VTr3sWQv9LUC6hiXEMcs0O ADUPU+oFsUdrP5dKJq4R7b9Wr34gdNl8WWE4TkrZBpuwOJUnt4ukkYMTuLsCqfCYEhxv omcNYCmypzDvBh1KL8MhnWgvN8u60ixzlNuYA= 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; bh=A+Fy3Se9Sgpqq6f/lL3EFZKu0Fwbn+FM9EdEBD7PZ4Y=; b=AhEucsyEn8MFjflfCcjAK1bcIILxu/k3JZZa0x/S9IJrhT8b34pSL/4msqxs14IaRs PlZfBIkcm2Yvvz1HkTlgnsT4V5WwDxUpu8BE0ewRl481x+BpW+1bXKKT5JU4m8Zdu0Cu 39N+F9yo1sHhFm1li9Ggw2YzZzPAKb4f/TZm5oNpcYO3pbp6yS6jX5zB7TiKDT95+SpW QLcOVD5ODzLRt+NyesW+s53TH0aefTA9/61hb7xuDMpp92nwSnaVUvY/mt9gwqSki5MG o4zHfDWjB1j/0yBL6t/OTxwejEN77B5XzS6xyYWbCftmqH6ePTTmFJphF6lIpVD3oGXe RB5g== X-Gm-Message-State: AFeK/H3onmpMAoPOIp9EmM0Fxl2L2IrnZQG8IA6h+4e99254ssyuBUeaSdpn5zb32Hd2GA1Z X-Received: by 10.46.21.13 with SMTP id s13mr11133124ljd.112.1491602119324; Fri, 07 Apr 2017 14:55:19 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-7a7871d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.120.122]) by smtp.gmail.com with ESMTPSA id 191sm1180964lfz.44.2017.04.07.14.55.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 14:55:18 -0700 (PDT) From: Linus Walleij To: Daniel Lezcano , Thomas Gleixner , Rob Herring , devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Linus Walleij Subject: [PATCH 1/3 RESEND] clocksource: Augment bindings for Faraday timer Date: Fri, 7 Apr 2017 23:55:13 +0200 Message-Id: <20170407215513.25706-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- .../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.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Rob Herring 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 16ea1d3b2e9e..000000000000 --- 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 000000000000..b73ca6cd07f8 --- /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"; +};