From patchwork Thu May 18 21:56:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 100138 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp40214qge; Thu, 18 May 2017 14:56:55 -0700 (PDT) X-Received: by 10.99.115.14 with SMTP id o14mr6566436pgc.31.1495144615021; Thu, 18 May 2017 14:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495144615; cv=none; d=google.com; s=arc-20160816; b=kxQ+3VJu1KGWrLsj2Qnj8IcYJ0eg8VfR/sfmBQmlHur3cc9OsuHaxOKvv3/tyku2KP 3FvkLPff9+410F8D3G+M7ov+RinhfBjUMLuKA7Ne0aUkidWfcqdeH38rzUVGs6s9Cb5R vYtfxln6qp+gItYUHb2lvqMvCRBC4HfXOCtDgNosGzxlcuzxJbxULEulr0+BWyeUTvOr 7TiTTvMkCcr3U33G9kZxtLuW8A/ijn4bVzRjy1SUWW4SGhckTQTTzSpnBGzJ5EHa/U8b H93kbsBTANsIHUm0ARjHGNaYigrS2KENO6gMQTgjvnnsidJUxCGfRWgWSlBh/+VZpj1Q p5XQ== 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=YslSF1gmqT8sMWMBBjdDpZu6He/BTUs+yrX9iThk3dY=; b=h6DF0PCBIa4Vz7R/7aF0LPGdZJ5Xrn+B555gga8pxjGOwvtoLmSew7qvTsSaDaHB9x lSHE+Ewe8Fy2iZ4oOYV8OoASFQBkT/IL0FGVQmrNt4ZP1h+ddry7NCPSluLAg5OzmgF2 ryde7+H9VNxSJufpigZvd1DxMjh/yKHVRVEA8+iRqLwHMH+7/b1POavIjFs5fO1LDgOd K3q9nIF9IobF49NfFjOl0KD01U34HLk/1hOFPS6w/DvY06cYOlCI3nGNZAs11BfQfemQ XQ5pAMNEIXEiitC1j/4iH6S/ICJFEfx3xpPvCTjNiDlPd0qQH9vWYW9mY3cjYsU5lFQx BA5Q== 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 1si6276539pgp.311.2017.05.18.14.56.54; Thu, 18 May 2017 14:56:55 -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 S1754297AbdERV4x (ORCPT + 7 others); Thu, 18 May 2017 17:56:53 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:37051 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754872AbdERV4w (ORCPT ); Thu, 18 May 2017 17:56:52 -0400 Received: by mail-wm0-f44.google.com with SMTP id d127so67247271wmf.0 for ; Thu, 18 May 2017 14:56:52 -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=ZLjSHJTgDRFV2caG5JAwbz6K/TWzryaQBceGwbhfpkw=; b=QsnUMMr3ftmxkRHWLcXmspXn7tOjVBgAHm+5u4KvrN3uiohrrKJA17gfWO88u9qgrk IiIM0KJAew8nDQ9wnBXnvG9tDJUlARgEJzi2x7+XV9wL5mFdLJ1arvYyfBDpgzlGA8ZI Iao0fkAyH8aHOtK05DJ0hYheAjmYp59DfWzJE= 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=ZLjSHJTgDRFV2caG5JAwbz6K/TWzryaQBceGwbhfpkw=; b=mYj32Oste1CefD/ByQMaEGlMhNakuOCllQY6UFsSiV17mo/aLK+g5AlQizCtni1/KX wEc8Xgv4THXaSM/D1ag7Dr4+AMVLT4Zomzw4w/tNX1phR1+XQ39JryIJn3rBBTHmuYqr CgRe70AT9v83Z7cGL8y8CTWLrnWDyRpeWW1OAm5j4K729CepU+FmW6TbEAbiyFMAwIzb C3FuspbfkbhNv3Wl5Qr6QVL9iLdUPdw9DmsY/51CYe9+6AWtfpvXBD/sm1ZXqNeyE5H1 xhMGnbeVsoT6UHN2TCAC75r0mQd02Ru4Y5NSsVqMNh5BOreB2igDGnffddhpsAcGwA98 vyEg== X-Gm-Message-State: AODbwcAq5xa/KY/4zAjXYKC2kdyiN6i/k1l1nAnU1AnroJVGSzx3Jjlg fZeUULa79Rw5Q1pz X-Received: by 10.25.150.130 with SMTP id y124mr39906lfd.115.1495144611351; Thu, 18 May 2017 14:56:51 -0700 (PDT) Received: from fabina.bredbandsbolaget.se (c-787571d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.117.120]) by smtp.gmail.com with ESMTPSA id q186sm576721ljb.31.2017.05.18.14.56.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 14:56:50 -0700 (PDT) From: Linus Walleij To: Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org Cc: Janos Laube , Paulius Zaleckas , linux-arm-kernel@lists.infradead.org, Hans Ulli Kroll , Florian Fainelli , Linus Walleij , devicetree@vger.kernel.org, Po-Yu Chuang Subject: [PATCH 2/3] rtc: gemini: Augment DT bindings for Faraday Date: Thu, 18 May 2017 23:56:34 +0200 Message-Id: <20170518215635.13505-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170518215635.13505-1-linus.walleij@linaro.org> References: <20170518215635.13505-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 Signed-off-by: Linus Walleij --- .../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.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/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"; +};