From patchwork Tue May 30 07:53:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 100695 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp97094qge; Tue, 30 May 2017 00:53:58 -0700 (PDT) X-Received: by 10.98.196.18 with SMTP id y18mr21922296pff.49.1496130838571; Tue, 30 May 2017 00:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496130838; cv=none; d=google.com; s=arc-20160816; b=fC4P8IzG7F3cpg7HJb9inL0n1XHQ0FUTvmQ+H5BRhmeCKUSIiTT9vUdUfexW/Hyjep V4rpOdUAIf0W5NCpyAB2oDvyrawfBdH8QQiwiCCw4/ZdceSkHLxqGEL/Kzq3Nfr2G57K ma6oViipmd1yD63PZ9UtYAfdhtVs8oJd+Iq/vbxKiJ1cuuJXcwx8qsquNbi1YgALW9Si rAV5DQlk8pmRCcq74x5tUaBpyZQc5lWCCYUASg1lR+/bZgi8r7g5mqYKCmbBdwVUs7Z1 auIWjHDhKHk8iz940FX8MQ9CnKp3RF+1gL0ZxESaG1IAiyOTz2WezhLmNzMY/wocbv8X 9UbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=mMP10s92+xXrk0JBjbMXS7QJXwgqG7OEk5yY2i0KIlM=; b=g925lbtbjyuk4tTjKDBi91p4IaMTBq3V9vY9WNZT+LXh1MnFBw19g8MEe85gVLYNrD n20y/DSbNHsq3elGhFXFOTURkiSa9iNlfnYmb1a2GvN1BS8EsCYj9AGJe5rxj0LJ6x42 9EzbMZ8b5zq1Afm8jrGYCk29h3aT4IvuEZJA5gLkIyPCf9hwCbkBOHfT3+x3RQlpIF94 d4IpunYgNWTlIdZgweLkMhJrMMLs0zDEwhQ3pqc9SAfSDOKlbAxTokU4Y3S2Qwbj9gAw cDdwbZHdnv/YFvOT0TXZB1zgFM/qoCMg9zjeIqhuqJapAOPRz/rdIXRlBKo8r3AuhNeI NO1Q== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k19si13209668pgf.230.2017.05.30.00.53.58; Tue, 30 May 2017 00:53:58 -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 S1750839AbdE3Hx5 (ORCPT + 7 others); Tue, 30 May 2017 03:53:57 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:35667 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750811AbdE3Hx5 (ORCPT ); Tue, 30 May 2017 03:53:57 -0400 Received: by mail-lf0-f50.google.com with SMTP id a5so44496757lfh.2 for ; Tue, 30 May 2017 00:53:56 -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=E/n9OyP9Xksckz4KuzIv5vO2VZ2wuJgklWx310eSi8k=; b=a/f2/XzqfVVH65meuSDp3gApkopMupXySPs6o3qSakhAuv+aGpSfwlna1NYMUTxYxE Ug987eqbLqdxvcdxO9XPEHHg9gDJ7SK4y6HhcikitEeZP5AeFuYkFK2leim1V2+ixrxW Qa/d58BCnYG2mj1CRuLuMyAmzTqZgKvv67RTA= 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=E/n9OyP9Xksckz4KuzIv5vO2VZ2wuJgklWx310eSi8k=; b=KUhQb+8pEGbLmszc11podBEMoEaFup90wdb7emrl+fWbuoZim9j2zi9sFbhhYUAIDv Rh2pjdWUVcUT8FPMhM1NuvVZpBQQvkX2fh1+nCcm0zsElgKweP4f04Y2m4gY/3buQRms kkXlk/JQx6PYA9LffxZY0vXHQdJOHgztE7zHN3z2l36tW65T7X/DKZVrD7AYNKOuvQBK kN1ARIPsCUkuEeOKutjGJtYL0m2k0J6UpKEFaAnfWTm5NxslUYJ0WkRvrXS0Yv9mlhGO ETkVH5+idFYy9Ds4iuJpjSJvXkhG2mdwxwD5pYowKvPRIaRh9AoYInKgdJMCvJWoLmEj 9EVA== X-Gm-Message-State: AODbwcDrD9oWPlfWoTrLE454gn+btMj+E+vYVDbqDwWGzIsYGejm+RpG KEOduZ4b5YHuTdew X-Received: by 10.25.225.199 with SMTP id l68mr5380551lfk.128.1496130835567; Tue, 30 May 2017 00:53:55 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-9d7e71d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.126.157]) by smtp.gmail.com with ESMTPSA id x24sm2445285ljd.5.2017.05.30.00.53.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 May 2017 00:53:54 -0700 (PDT) From: Linus Walleij To: Alessandro Zummo , Alexandre Belloni Cc: rtc-linux@googlegroups.com, Linus Walleij , devicetree@vger.kernel.org, Po-Yu Chuang Subject: [PATCH 2/3 v2] rtc: gemini: Augment DT bindings for Faraday Date: Tue, 30 May 2017 09:53:31 +0200 Message-Id: <20170530075332.3740-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170530075332.3740-1-linus.walleij@linaro.org> References: <20170530075332.3740-1-linus.walleij@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Gemini RTC is actually a standard IP block from Faraday Technology called FTRTC010. Rename the bindings, add the generic compatible string and add definitions for the two available clocks. Cc: devicetree@vger.kernel.org Cc: Po-Yu Chuang Acked-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Add Rob's ACK. --- .../devicetree/bindings/rtc/cortina,gemini.txt | 14 ----------- .../devicetree/bindings/rtc/faraday,ftrtc010.txt | 28 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 14 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/cortina,gemini.txt create mode 100644 Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt -- 2.9.4 -- 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 diff --git a/Documentation/devicetree/bindings/rtc/cortina,gemini.txt b/Documentation/devicetree/bindings/rtc/cortina,gemini.txt deleted file mode 100644 index 4ce4e794ddbb..000000000000 --- a/Documentation/devicetree/bindings/rtc/cortina,gemini.txt +++ /dev/null @@ -1,14 +0,0 @@ -* Cortina Systems Gemini RTC - -Gemini SoC real-time clock. - -Required properties: -- compatible : Should be "cortina,gemini-rtc" - -Examples: - -rtc@45000000 { - compatible = "cortina,gemini-rtc"; - reg = <0x45000000 0x100>; - interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; -}; diff --git a/Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt b/Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt new file mode 100644 index 000000000000..e3938f5e0b6c --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/faraday,ftrtc010.txt @@ -0,0 +1,28 @@ +* Faraday Technology FTRTC010 Real Time Clock + +This RTC appears in for example the Storlink Gemini family of +SoCs. + +Required properties: +- compatible : Should be one of: + "faraday,ftrtc010" + "cortina,gemini-rtc", "faraday,ftrtc010" + +Optional properties: +- clocks: when present should contain clock references to the + PCLK and EXTCLK clocks. Faraday calls the later CLK1HZ and + says the clock should be 1 Hz, but implementers actually seem + to choose different clocks here, like Cortina who chose + 32768 Hz (a typical low-power clock). +- clock-names: should name the clocks "PCLK" and "EXTCLK" + respectively. + +Examples: + +rtc@45000000 { + compatible = "cortina,gemini-rtc"; + reg = <0x45000000 0x100>; + interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&foo 0>, <&foo 1>; + clock-names = "PCLK", "EXTCLK"; +};