aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/patches-4.4/8125-rtc-pcf2127-add-pcf2129-device-id.patch
diff options
context:
space:
mode:
authorYutang Jiang <yutang.jiang@nxp.com>2016-12-08 00:07:42 +0800
committerJohn Crispin <john@phrozen.org>2016-12-12 09:57:40 +0100
commitad907e1c03a3a1a236f4836cee085d085f280c8d (patch)
tree6280b4318cb40d6e567a23a250f0d9f564787761 /target/linux/layerscape/patches-4.4/8125-rtc-pcf2127-add-pcf2129-device-id.patch
parent76fa771a784312f789f5de3d2216c1765a901818 (diff)
downloadupstream-ad907e1c03a3a1a236f4836cee085d085f280c8d.tar.gz
upstream-ad907e1c03a3a1a236f4836cee085d085f280c8d.tar.bz2
upstream-ad907e1c03a3a1a236f4836cee085d085f280c8d.zip
layerscape: add 64b/32b target for ls1046ardb device
Add support for NXP layerscape ls1046ardb 64b/32b Dev board. LS1046ARDB Specification: ------------------------- Memory subsystem: * 8GByte DDR4 SDRAM (64bit bus) * 512 Mbyte NAND flash * Two 64 Mbyte high-speed SPI flash * SD connector to interface with the SD memory card * On-board 4G eMMC Ethernet: * Two XFI 10G ports * Two SGMII ports * Two RGMII ports PCIe: * PCIe1 (SerDes2 Lane0) to miniPCIe slot * PCIe2 (SerDes2 Lane1) to x2 PCIe slot * PCIe3 (SerDes2 Lane2) to x4 PCIe slot * USB 3.0: one super speed USB 3.0 type A port, one Micro-AB port * UART: supports two UARTs up to 115200 bps for console Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
Diffstat (limited to 'target/linux/layerscape/patches-4.4/8125-rtc-pcf2127-add-pcf2129-device-id.patch')
-rw-r--r--target/linux/layerscape/patches-4.4/8125-rtc-pcf2127-add-pcf2129-device-id.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/target/linux/layerscape/patches-4.4/8125-rtc-pcf2127-add-pcf2129-device-id.patch b/target/linux/layerscape/patches-4.4/8125-rtc-pcf2127-add-pcf2129-device-id.patch
new file mode 100644
index 0000000000..6ece59771a
--- /dev/null
+++ b/target/linux/layerscape/patches-4.4/8125-rtc-pcf2127-add-pcf2129-device-id.patch
@@ -0,0 +1,63 @@
+From 228d15f0c525d1d62540539ebb8d311feddb79f5 Mon Sep 17 00:00:00 2001
+From: Akinobu Mita <akinobu.mita@gmail.com>
+Date: Mon, 26 Sep 2016 11:26:11 +0800
+Subject: [PATCH 125/141] rtc: pcf2127: add pcf2129 device id
+
+commit e8bf83a7f9454ed1026f100139ebd10eace0e280
+[context adjustment]
+
+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 <akinobu.mita@gmail.com>
+Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
+Signed-off-by: Shaohui Xie <Shaohui.Xie@nxp.com>
+Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>
+---
+ drivers/rtc/rtc-pcf2127.c | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+--- a/drivers/rtc/rtc-pcf2127.c
++++ b/drivers/rtc/rtc-pcf2127.c
+@@ -1,12 +1,12 @@
+ /*
+- * An I2C driver for the NXP PCF2127 RTC
++ * An I2C and SPI driver for the NXP PCF2127/29 RTC
+ * Copyright 2013 Til-Technologies
+ *
+ * Author: Renaud Cerrato <r.cerrato@til-technologies.fr>
+ *
+ * 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
+@@ -216,6 +216,7 @@ static int pcf2127_probe(struct i2c_clie
+
+ static const struct i2c_device_id pcf2127_id[] = {
+ { "pcf2127", 0 },
++ { "pcf2129", 0 },
+ { }
+ };
+ MODULE_DEVICE_TABLE(i2c, pcf2127_id);
+@@ -223,6 +224,7 @@ MODULE_DEVICE_TABLE(i2c, pcf2127_id);
+ #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);
+@@ -240,5 +242,5 @@ static struct i2c_driver pcf2127_driver
+ module_i2c_driver(pcf2127_driver);
+
+ MODULE_AUTHOR("Renaud Cerrato <r.cerrato@til-technologies.fr>");
+-MODULE_DESCRIPTION("NXP PCF2127 RTC driver");
++MODULE_DESCRIPTION("NXP PCF2127/29 RTC driver");
+ MODULE_LICENSE("GPL v2");