From patchwork Fri Mar 11 16:22:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 596346 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pa0-x239.google.com (mail-pa0-x239.google.com [IPv6:2607:f8b0:400e:c03::239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 01D371401AF for ; Sat, 12 Mar 2016 03:22:40 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=Y138AcXB; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ti0cW6kb; dkim-atps=neutral Received: by mail-pa0-x239.google.com with SMTP id hj7sf20790596pac.0 for ; Fri, 11 Mar 2016 08:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=+c4diLH551mJ7NKEp4ORVMDor8EHR9KfvwSMIXLJYTw=; b=Y138AcXBOP5ZYcYcyOhahrAPB13zCpGSFQ+Y1/RbryNDP+3MD7UHq8FG8j/tNAD7un G9Rnf8egu8kdKqyUsVFfZbWM4+laWrTu30Hg8gYqMd4iyqRheEQBVqdlskrsbNWf5Nhj yCn/hrzj87JjEeyQFixzfQzRVRFdHUKLsJ93XFhROJy33h83F9L7nIMJZVv61gJGJu8s +RRNVhe+P/+3kYps0g5xXWoVHVR7CMnSwS69oruOQVbi04E7Zgi0zX4idlDGjw5Qdpm/ 1aC7ydmS2+msHyka1nNB8rN/3SiATduOLUynmB7GfmoSxE9hwgUchSK9nyEHq8ydS406 Mi4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=+c4diLH551mJ7NKEp4ORVMDor8EHR9KfvwSMIXLJYTw=; b=ti0cW6kbMnsQJ2s6W4DoqLyScM/5MqR1HfGIAVAq3rjJwFC+gC58VJsBogxLG36zQi DUVGivYG3FFXx6CkC32gKMxwSrOqNbZwQaUYhcoWJYnb405qQPrdIy58IInbVfoqp6Df bU8NIP8CYo+EwSiDphYfv9QouI5tH3k24YofC/Ywm9WgSfOorvOHFQyLKD+81yZrziVG pXt41plMEPozS1vmbwsmLJSlmWgaXwKgWWxoZgrou2H/Vgl3SxyfvAjRQhkymOfYsL7R kuFwUyDJBKH7Ym0WiLasdccr7fjvQ3BieO3tbNd9KwEm1lLPLFLCqUChILP6mUZY/fxc q7/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe; bh=+c4diLH551mJ7NKEp4ORVMDor8EHR9KfvwSMIXLJYTw=; b=A80E6pVKioxMbkig8RkJNp2drsCTTNlkoWRxVcDv6KA8QJsDAPGxC4padncI97jWaA P8Z5Prjv9Y/4JOJAzATSb0Y2qpqacBPbJoDJ7ZrCZ7ejBwLcqOXxoduxJfe8BJrgj62l 9YubvZR5tdAAhApSJksnDmvUAHHIxrXe60sk4/uu0+M1v9hXMgPuFKh5tIteYLUY6nhu uJNMtaaL23EkCk15Q/1TmHnmlpLYXd1N9Us3NnfwP2Pe7wkyKTF6hviCKahhyuC0JIyU lspxNJOM7RzyaWTBChfxc2TCYJeDQ/w4kHEytw9tcSneAhTPcsgZdjgNM2unQmD/XsT5 IR7g== X-Gm-Message-State: AD7BkJKbsTlQoJoDbADCfO1RQmQh62dXJ+Ud10iEbdncBNqExowKI76w9l2UthCGrZTByA== X-Received: by 10.140.20.66 with SMTP id 60mr282316qgi.0.1457713358155; Fri, 11 Mar 2016 08:22:38 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.140.84.232 with SMTP id l95ls2639310qgd.43.gmail; Fri, 11 Mar 2016 08:22:37 -0800 (PST) X-Received: by 10.31.52.207 with SMTP id b198mr7640340vka.5.1457713357591; Fri, 11 Mar 2016 08:22:37 -0800 (PST) Received: from mail-pa0-x22c.google.com (mail-pa0-x22c.google.com. [2607:f8b0:400e:c03::22c]) by gmr-mx.google.com with ESMTPS id ui7si1463890pab.0.2016.03.11.08.22.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Mar 2016 08:22:37 -0800 (PST) Received-SPF: pass (google.com: domain of akinobu.mita@gmail.com designates 2607:f8b0:400e:c03::22c as permitted sender) client-ip=2607:f8b0:400e:c03::22c; Received: by mail-pa0-x22c.google.com with SMTP id tt10so102462448pab.3 for ; Fri, 11 Mar 2016 08:22:37 -0800 (PST) X-Received: by 10.66.154.233 with SMTP id vr9mr16869302pab.66.1457713357417; Fri, 11 Mar 2016 08:22:37 -0800 (PST) Received: from localhost.localdomain (KD113159139091.ppp-bb.dion.ne.jp. [113.159.139.91]) by smtp.gmail.com with ESMTPSA id b4sm14031490pas.19.2016.03.11.08.22.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Mar 2016 08:22:36 -0800 (PST) From: Akinobu Mita To: rtc-linux@googlegroups.com Cc: Akinobu Mita , Alessandro Zummo , Alexandre Belloni , Renaud Cerrato Subject: [rtc-linux] [PATCH 3/3] rtc: pcf2127: add pcf2129 device id Date: Sat, 12 Mar 2016 01:22:16 +0900 Message-Id: <1457713336-24262-3-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1457713336-24262-1-git-send-email-akinobu.mita@gmail.com> References: <1457713336-24262-1-git-send-email-akinobu.mita@gmail.com> X-Original-Sender: Akinobu.Mita@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of akinobu.mita@gmail.com designates 2607:f8b0:400e:c03::22c as permitted sender) smtp.mailfrom=akinobu.mita@gmail.com; dkim=pass header.i=@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , There are only a few differences between PCF2127 and PCF2129 (PCF2127 has 512 bytes of general purpose SRAM and count-down timer). The rtc-pcf2127 driver currently doesn't use the PCF2127 specific functionality and Kconfig help text already says this driver supports PCF2127/29, so we can simply add pcf2129 to device id list. Signed-off-by: Akinobu Mita Cc: Alessandro Zummo Cc: Alexandre Belloni Cc: Renaud Cerrato --- drivers/rtc/rtc-pcf2127.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-pcf2127.c b/drivers/rtc/rtc-pcf2127.c index 5729ee9..2dc1690 100644 --- a/drivers/rtc/rtc-pcf2127.c +++ b/drivers/rtc/rtc-pcf2127.c @@ -1,12 +1,12 @@ /* - * An I2C and SPI driver for the NXP PCF2127 RTC + * An I2C and SPI driver for the NXP PCF2127/29 RTC * Copyright 2013 Til-Technologies * * Author: Renaud Cerrato * * based on the other drivers in this same directory. * - * http://www.nxp.com/documents/data_sheet/PCF2127AT.pdf + * Datasheet: http://cache.nxp.com/documents/data_sheet/PCF2127.pdf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -196,6 +196,7 @@ static int pcf2127_probe(struct device *dev, struct regmap *regmap, #ifdef CONFIG_OF static const struct of_device_id pcf2127_of_match[] = { { .compatible = "nxp,pcf2127" }, + { .compatible = "nxp,pcf2129" }, {} }; MODULE_DEVICE_TABLE(of, pcf2127_of_match); @@ -297,6 +298,7 @@ static int pcf2127_i2c_probe(struct i2c_client *client, static const struct i2c_device_id pcf2127_i2c_id[] = { { "pcf2127", 0 }, + { "pcf2129", 0 }, { } }; MODULE_DEVICE_TABLE(i2c, pcf2127_i2c_id); @@ -359,6 +361,7 @@ static int pcf2127_spi_probe(struct spi_device *spi) static const struct spi_device_id pcf2127_spi_id[] = { { "pcf2127", 0 }, + { "pcf2129", 0 }, { } }; MODULE_DEVICE_TABLE(spi, pcf2127_spi_id); @@ -423,5 +426,5 @@ static void __exit pcf2127_exit(void) module_exit(pcf2127_exit) MODULE_AUTHOR("Renaud Cerrato "); -MODULE_DESCRIPTION("NXP PCF2127 RTC driver"); +MODULE_DESCRIPTION("NXP PCF2127/29 RTC driver"); MODULE_LICENSE("GPL v2");