From patchwork Mon Mar 14 14:45:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 597061 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ob0-x23b.google.com (mail-ob0-x23b.google.com [IPv6:2607:f8b0:4003:c01::23b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qP0sv2WNkz9sR9 for ; Tue, 15 Mar 2016 01:45:39 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=OYl2/fgP; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=HQMeIia7; dkim-atps=neutral Received: by mail-ob0-x23b.google.com with SMTP id e7sf20600740obv.0 for ; Mon, 14 Mar 2016 07:45:39 -0700 (PDT) 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=JjWslLMaxiFa2bU3kIdJT41I/jNuvss3JvK0+ODvL0Y=; b=OYl2/fgPDu0iB2ZjBYYPZ94FObD+ciawPf3zivLF9YVWV9PTXwDZd0fIuQCPResrYO P3JBKeIodTJdZlL++VgqVSca3KQHRe/0V4+8D9zA8s8dBG1vnjctGXrcLkRXzH8ANIYl JzeMRMHNU6UE5O9uvyrHju1qAf6GF6UnMEjlvo6ga3rMqjWwGQ2OOqMOsQJBvMKBdz+I zN6Eas0EZceEBv+DkBPQ6t6XOIqWTQ50uV2l1+lAwCkg+nwVX4XGF0swh9wtU9mHLQxD gH4VzrsNzYlw2BaLL3o7cL8s2VEqvI2xs02pV2s5mHcAn4as5wPi8RlddtaywxuCZV1u sMHA== 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=JjWslLMaxiFa2bU3kIdJT41I/jNuvss3JvK0+ODvL0Y=; b=HQMeIia7z+IGkDXmi2x8vdWo+CFCcPzCx2ebwLdQQ94f77ptNEFvbV6zcNq5667dTR 31R4wHTwGlHzvRM+INPC7Ki+oLLf3bYhhnKY2dFhrqS47zQ+Kmt5t8wf8EHkxmIzhQpi KUxtQv+mmmObqu8CTC/bM4JhIwGYwhcuQI3o96Zct4uHEcPxe+u0F25Jyp5NcMw1v1lX +f8uAiU6Wl+3biAyqaF443QntIM0H97aLmkFbTSLg9ccSSvLVUUcfTXoizWJyd9VVuZE RT8OkJCTi2XTFA7rwtQL9fQCWo+wnwFgfuhfy+hX+NIWdz3ZX5jrqSt1MSVtkbK8dXsz urGA== 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=JjWslLMaxiFa2bU3kIdJT41I/jNuvss3JvK0+ODvL0Y=; b=Uffu7uoJMIGsshItpXgXDUe8zoEnCf1HejmUcihaPQAqy7w9p5bh9MhCFK3Rx7ew4/ sTWgUEstOiInDG20BqWHuP94Tj+HxhEGNCfiLzOPEJtT0ghNvB29RS6ykMxA/qydoiaN T0Cuz2svf5TGwq0SvE16EnLQekcl60AnwrUIgfzaz1vLBEqJUpjiDdwUv/HP+rFwNoH/ BPMmZFL1jGBPCqdtKuXed8bhozuQx+0Y1ON/JJuqmsPm6eNg30U5nnt/bXZmrBLFUg/K jnq57plgGWdPGRYlcQdbPxM7LiB+f5YsjJCx9I/q7Gom0FYI/xKqAskmIYKGXnr5bNpe JBcg== X-Gm-Message-State: AD7BkJJRNp52haRwQHt3+jRtom3bJotFfjJPcLyyi9nMzbbdLxIYXmQz3HpYMEHJr6E1Nw== X-Received: by 10.140.104.15 with SMTP id z15mr516014qge.19.1457966737434; Mon, 14 Mar 2016 07:45:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.140.95.43 with SMTP id h40ls3611679qge.39.gmail; Mon, 14 Mar 2016 07:45:37 -0700 (PDT) X-Received: by 10.140.104.72 with SMTP id z66mr18520057qge.22.1457966737047; Mon, 14 Mar 2016 07:45:37 -0700 (PDT) Received: from mail-pf0-x243.google.com (mail-pf0-x243.google.com. [2607:f8b0:400e:c00::243]) by gmr-mx.google.com with ESMTPS id sf5si3328105pac.1.2016.03.14.07.45.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Mar 2016 07:45:37 -0700 (PDT) Received-SPF: pass (google.com: domain of akinobu.mita@gmail.com designates 2607:f8b0:400e:c00::243 as permitted sender) client-ip=2607:f8b0:400e:c00::243; Received: by mail-pf0-x243.google.com with SMTP id n5so7998572pfn.1 for ; Mon, 14 Mar 2016 07:45:36 -0700 (PDT) X-Received: by 10.98.74.17 with SMTP id x17mr30696605pfa.14.1457966736887; Mon, 14 Mar 2016 07:45:36 -0700 (PDT) Received: from localhost.localdomain (KD113159139091.ppp-bb.dion.ne.jp. [113.159.139.91]) by smtp.gmail.com with ESMTPSA id wx3sm32909754pab.25.2016.03.14.07.45.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Mar 2016 07:45:35 -0700 (PDT) From: Akinobu Mita To: rtc-linux@googlegroups.com Cc: Akinobu Mita , Alessandro Zummo , Alexandre Belloni Subject: [rtc-linux] [PATCH v2 3/3] rtc: pcf2127: add pcf2129 device id Date: Mon, 14 Mar 2016 23:45:01 +0900 Message-Id: <1457966701-6532-3-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1457966701-6532-1-git-send-email-akinobu.mita@gmail.com> References: <1457966701-6532-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:c00::243 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 --- * No changes from v1 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 194c440..2bfdf63 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); @@ -302,6 +303,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); @@ -364,6 +366,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); @@ -428,5 +431,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");