From patchwork Fri Mar 24 21:32:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 95972 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp236276qgd; Fri, 24 Mar 2017 14:33:24 -0700 (PDT) X-Received: by 10.98.11.144 with SMTP id 16mr11591327pfl.78.1490391204416; Fri, 24 Mar 2017 14:33:24 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si4209826pgf.246.2017.03.24.14.33.24; Fri, 24 Mar 2017 14:33:24 -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 S966906AbdCXVdA (ORCPT + 17 others); Fri, 24 Mar 2017 17:33:00 -0400 Received: from mail-lf0-f53.google.com ([209.85.215.53]:33054 "EHLO mail-lf0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753675AbdCXVcw (ORCPT ); Fri, 24 Mar 2017 17:32:52 -0400 Received: by mail-lf0-f53.google.com with SMTP id h125so884885lfe.0 for ; Fri, 24 Mar 2017 14:32:50 -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=srppc41qq3cjxRQHg7wVTxlsT8pX9vrn0RygjKl1YKo=; b=PekyvbZUNcRNhUyf1+3KVTpnfqbC5CpFjMjGSmZ1D2qDyX/4lVavJaDIP113/SnW4E c6Y+HM1OpGAp5KxhhoXuwoIyKNoKyEiwYKJPGYScZL1OQgxx3a2sy/n5O7Kp/1AGFRhA 6DFotNkrQTp67rnPheIwOeFfDuyq0wsojN9I4= 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=srppc41qq3cjxRQHg7wVTxlsT8pX9vrn0RygjKl1YKo=; b=hH2sJcyWCvlekKOfb3ygee23GIIEm3QmtQNvgn+sszbIdhDb5b+BDpOGUuz4j1B1JQ ocy7ya+xjbtNU21u/kxWxpQVqTfWH003nCQOnkdRrYZROcblhRRO9dvGkwCrcZgwzcwf Ul3eyrKH+dOiI1y2Jn5IWLMiijaMVPRQpPBkvHRm+N+2sVsdZsxw8cJvbHvcMthfHfCW jvO2Mr0Mj/CPMBCoS6xcQYercF3yZapWKE3vvw5mkeo5Nrux3aactVmPyTIO3vLJQs+U 2RRwaxaO8OmCUoJqq1GTLcMR6R/m2COUO8u+aQfFP6nKyv1kETw0z/nCXOnmtDNUK1DV 70/A== X-Gm-Message-State: AFeK/H2ENPv69cObIRTBYehIwO4Pcisxb+JEWt29GO2kZTFUp7CcygkP939Z/4Cmcn/KToL4 X-Received: by 10.25.199.135 with SMTP id x129mr5710159lff.42.1490391169862; Fri, 24 Mar 2017 14:32:49 -0700 (PDT) Received: from localhost.localdomain (c-357171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.53]) by smtp.gmail.com with ESMTPSA id i24sm561975lfk.50.2017.03.24.14.32.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Mar 2017 14:32:48 -0700 (PDT) From: Linus Walleij To: Daniel Lezcano , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Linus Walleij Subject: [PATCH 1/3] clocksource: Augment bindings for Faraday timer Date: Fri, 24 Mar 2017 22:32:33 +0100 Message-Id: <20170324213235.16119-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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. 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 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"; +};