linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Add EPSON RX-8571 RTC support
@ 2019-02-21  9:40 Biju Das
  2019-02-21  9:40 ` [PATCH 1/5] rtc: rx8581: Add rx8571 compatible Biju Das
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Biju Das @ 2019-02-21  9:40 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni, Rob Herring, Mark Rutland
  Cc: Biju Das, linux-rtc, devicetree, Simon Horman,
	Geert Uytterhoeven, Chris Paterson, Fabrizio Castro,
	linux-renesas-soc

This patch set aims to add support for EPSON RX-8571 real-time clock.
EPSON RX-8571 rtc is compatible with EPSON RX-8581 rtc except that
former has 16 bytes additional RAM.

1 byte of nvmem is supported on both RX-8581 and RX-8571. It is
exposed through sysfs along with  support for 16 bytes additional RAM
present only on EPSON RX-8571.

This patch series is tested against renesas-dev and linux-next.

Biju Das (5):
  rtc: rx8581: Add rx8571 compatible
  rtc: rx8581: Add support for rx8571 RTC
  rtc: rx8581: Add support for Epson rx8571 RTC
  arm64: defconfig: enable RX-8581 config option
  arm64: dts: renesas: r8a774c0-cat874: add RTC support

 Documentation/devicetree/bindings/rtc/rtc.txt   |   1 +
 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts |  18 ++++
 arch/arm64/configs/defconfig                    |   1 +
 drivers/rtc/Kconfig                             |   5 +-
 drivers/rtc/rtc-rx8581.c                        | 114 ++++++++++++++++++++++--
 5 files changed, 128 insertions(+), 11 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH 1/5] rtc: rx8581: Add rx8571 compatible
  2019-02-21  9:40 [PATCH 0/5] Add EPSON RX-8571 RTC support Biju Das
@ 2019-02-21  9:40 ` Biju Das
  2019-02-21  9:40 ` [PATCH 2/5] rtc: rx8581: Add support for rx8571 RTC Biju Das
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 13+ messages in thread
From: Biju Das @ 2019-02-21  9:40 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni, Rob Herring, Mark Rutland
  Cc: Biju Das, linux-rtc, devicetree, Simon Horman,
	Geert Uytterhoeven, Chris Paterson, Fabrizio Castro,
	linux-renesas-soc

The Epson rx8571 is compatible with the Epson rx8581 RTC.

The difference between the rx8571 and rx8581 RTC is that the former has
16 bytes more RAM. This renders them incompatible from a DT point of view.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
 Documentation/devicetree/bindings/rtc/rtc.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/rtc/rtc.txt b/Documentation/devicetree/bindings/rtc/rtc.txt
index 3e6a215..0bc687e 100644
--- a/Documentation/devicetree/bindings/rtc/rtc.txt
+++ b/Documentation/devicetree/bindings/rtc/rtc.txt
@@ -47,6 +47,7 @@ dallas,ds1374		I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and
 dallas,ds1672		Dallas DS1672 Real-time Clock
 dallas,ds3232		Extremely Accurate I²C RTC with Integrated Crystal and SRAM
 epson,rx8010		I2C-BUS INTERFACE REAL TIME CLOCK MODULE
+epson,rx8571		I2C-BUS INTERFACE REAL TIME CLOCK MODULE with Battery Backed RAM
 epson,rx8581		I2C-BUS INTERFACE REAL TIME CLOCK MODULE
 emmicro,em3027		EM Microelectronic EM3027 Real-time Clock
 isil,isl1208		Intersil ISL1208 Low Power RTC with Battery Backed SRAM
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 2/5] rtc: rx8581: Add support for rx8571 RTC
  2019-02-21  9:40 [PATCH 0/5] Add EPSON RX-8571 RTC support Biju Das
  2019-02-21  9:40 ` [PATCH 1/5] rtc: rx8581: Add rx8571 compatible Biju Das
@ 2019-02-21  9:40 ` Biju Das
  2019-02-21  9:40 ` [PATCH 3/5] rtc: rx8581: Add support for Epson " Biju Das
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 13+ messages in thread
From: Biju Das @ 2019-02-21  9:40 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni
  Cc: Biju Das, linux-rtc, Simon Horman, Geert Uytterhoeven,
	Chris Paterson, Fabrizio Castro, linux-renesas-soc

The Epson rx8571 RTC is compatible with the Epson rx8581 RTC.

The difference between the rx8571 and rx8581 RTC is that the former has
16 bytes more RAM.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
 drivers/rtc/Kconfig | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 7c7a5da..bdbcc5c 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -601,9 +601,10 @@ config RTC_DRV_RX8010
 	  will be called rtc-rx8010.
 
 config RTC_DRV_RX8581
-	tristate "Epson RX-8581"
+	tristate "Epson RX-8571/RX-8581"
 	help
-	  If you say yes here you will get support for the Epson RX-8581.
+	  If you say yes here you will get support for the Epson RX-8571/
+	  RX-8581.
 
 	  This driver can also be built as a module. If so the module
 	  will be called rtc-rx8581.
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 3/5] rtc: rx8581: Add support for Epson rx8571 RTC
  2019-02-21  9:40 [PATCH 0/5] Add EPSON RX-8571 RTC support Biju Das
  2019-02-21  9:40 ` [PATCH 1/5] rtc: rx8581: Add rx8571 compatible Biju Das
  2019-02-21  9:40 ` [PATCH 2/5] rtc: rx8581: Add support for rx8571 RTC Biju Das
@ 2019-02-21  9:40 ` Biju Das
  2019-02-21  9:40 ` [PATCH 4/5] arm64: defconfig: enable RX-8581 config option Biju Das
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 13+ messages in thread
From: Biju Das @ 2019-02-21  9:40 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni
  Cc: Biju Das, linux-rtc, Simon Horman, Geert Uytterhoeven,
	Chris Paterson, Fabrizio Castro, linux-renesas-soc

Add support for Epson rx8571 real-time clock. rx8571 rtc is compatible
with rx8581,except that rx8571 has additional 16 bytes of RAM.

16 bytes of nvmem is supported and exposed in sysfs (# is the instance
number,starting with 0): /sys/bus/nvmem/devices/rx8571-#/nvmem

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
 drivers/rtc/rtc-rx8581.c | 114 +++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 105 insertions(+), 9 deletions(-)

diff --git a/drivers/rtc/rtc-rx8581.c b/drivers/rtc/rtc-rx8581.c
index eac8821..d962b87 100644
--- a/drivers/rtc/rtc-rx8581.c
+++ b/drivers/rtc/rtc-rx8581.c
@@ -15,6 +15,8 @@
 #include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/bcd.h>
+#include <linux/of.h>
+#include <linux/of_device.h>
 #include <linux/regmap.h>
 #include <linux/rtc.h>
 #include <linux/log2.h>
@@ -51,11 +53,19 @@
 #define RX8581_CTRL_STOP	0x02 /* STOP bit */
 #define RX8581_CTRL_RESET	0x01 /* RESET bit */
 
+#define RX8571_USER_RAM		0x10
+#define RX8571_NVRAM_SIZE	0x10
+
 struct rx8581 {
 	struct regmap		*regmap;
 	struct rtc_device	*rtc;
 };
 
+struct rx85x1_config {
+	struct regmap_config regmap;
+	unsigned int num_nvram;
+};
+
 /*
  * In the routines that deal directly with the rx8581 hardware, we use
  * rtc_time -- month 0-11, hour 0-23, yr = calendar year-epoch.
@@ -181,25 +191,103 @@ static const struct rtc_class_ops rx8581_rtc_ops = {
 	.set_time	= rx8581_rtc_set_time,
 };
 
-static int rx8581_probe(struct i2c_client *client,
-			const struct i2c_device_id *id)
+static int rx8571_nvram_read(void *priv, unsigned int offset, void *val,
+			       size_t bytes)
 {
-	struct rx8581	  *rx8581;
-	static const struct regmap_config config = {
+	struct rx8581 *rx8581 = priv;
+
+	return regmap_bulk_read(rx8581->regmap, RX8571_USER_RAM + offset,
+				val, bytes);
+}
+
+static int rx8571_nvram_write(void *priv, unsigned int offset, void *val,
+				size_t bytes)
+{
+	struct rx8581 *rx8581 = priv;
+
+	return regmap_bulk_write(rx8581->regmap, RX8571_USER_RAM + offset,
+				 val, bytes);
+}
+
+static int rx85x1_nvram_read(void *priv, unsigned int offset, void *val,
+			       size_t bytes)
+{
+	struct rx8581 *rx8581 = priv;
+	unsigned int tmp_val;
+	int ret;
+
+	ret = regmap_read(rx8581->regmap, RX8581_REG_RAM, &tmp_val);
+	(*(unsigned char *) val) = (unsigned char) tmp_val;
+
+	return ret;
+}
+
+static int rx85x1_nvram_write(void *priv, unsigned int offset, void *val,
+				size_t bytes)
+{
+	struct rx8581 *rx8581 = priv;
+	unsigned char tmp_val;
+
+	tmp_val = *((unsigned char *)val);
+	return regmap_write(rx8581->regmap, RX8581_REG_RAM,
+				(unsigned int)tmp_val);
+}
+
+static const struct rx85x1_config rx8581_config = {
+	.regmap = {
 		.reg_bits = 8,
 		.val_bits = 8,
 		.max_register = 0xf,
+	},
+	.num_nvram = 1
+};
+
+static const struct rx85x1_config rx8571_config = {
+	.regmap = {
+		.reg_bits = 8,
+		.val_bits = 8,
+		.max_register = 0x1f,
+	},
+	.num_nvram = 2
+};
+
+static int rx8581_probe(struct i2c_client *client,
+			const struct i2c_device_id *id)
+{
+	struct rx8581 *rx8581;
+	const struct rx85x1_config *config = &rx8581_config;
+	const void *data = of_device_get_match_data(&client->dev);
+	static struct nvmem_config nvmem_cfg[] = {
+		{
+			.name = "rx85x1-",
+			.word_size = 1,
+			.stride = 1,
+			.size = 1,
+			.reg_read = rx85x1_nvram_read,
+			.reg_write = rx85x1_nvram_write,
+		}, {
+			.name = "rx8571-",
+			.word_size = 1,
+			.stride = 1,
+			.size = RX8571_NVRAM_SIZE,
+			.reg_read = rx8571_nvram_read,
+			.reg_write = rx8571_nvram_write,
+		},
 	};
+	int ret, i;
 
 	dev_dbg(&client->dev, "%s\n", __func__);
 
+	if (data)
+		config = data;
+
 	rx8581 = devm_kzalloc(&client->dev, sizeof(struct rx8581), GFP_KERNEL);
 	if (!rx8581)
 		return -ENOMEM;
 
 	i2c_set_clientdata(client, rx8581);
 
-	rx8581->regmap = devm_regmap_init_i2c(client, &config);
+	rx8581->regmap = devm_regmap_init_i2c(client, &config->regmap);
 	if (IS_ERR(rx8581->regmap))
 		return PTR_ERR(rx8581->regmap);
 
@@ -213,7 +301,14 @@ static int rx8581_probe(struct i2c_client *client,
 	rx8581->rtc->start_secs = 0;
 	rx8581->rtc->set_start_time = true;
 
-	return rtc_register_device(rx8581->rtc);
+	ret = rtc_register_device(rx8581->rtc);
+
+	for (i = 0; i < config->num_nvram; i++) {
+		nvmem_cfg[i].priv = rx8581;
+		rtc_nvmem_register(rx8581->rtc, &nvmem_cfg[i]);
+	}
+
+	return ret;
 }
 
 static const struct i2c_device_id rx8581_id[] = {
@@ -223,8 +318,9 @@ static const struct i2c_device_id rx8581_id[] = {
 MODULE_DEVICE_TABLE(i2c, rx8581_id);
 
 static const struct of_device_id rx8581_of_match[] = {
-	{ .compatible = "epson,rx8581" },
-	{ }
+	{ .compatible = "epson,rx8571", .data = &rx8571_config },
+	{ .compatible = "epson,rx8581", .data = &rx8581_config },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, rx8581_of_match);
 
@@ -240,5 +336,5 @@ static struct i2c_driver rx8581_driver = {
 module_i2c_driver(rx8581_driver);
 
 MODULE_AUTHOR("Martyn Welch <martyn.welch@ge.com>");
-MODULE_DESCRIPTION("Epson RX-8581 RTC driver");
+MODULE_DESCRIPTION("Epson RX-8571/RX-8581 RTC driver");
 MODULE_LICENSE("GPL");
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 4/5] arm64: defconfig: enable RX-8581 config option
  2019-02-21  9:40 [PATCH 0/5] Add EPSON RX-8571 RTC support Biju Das
                   ` (2 preceding siblings ...)
  2019-02-21  9:40 ` [PATCH 3/5] rtc: rx8581: Add support for Epson " Biju Das
@ 2019-02-21  9:40 ` Biju Das
  2019-03-01 10:35   ` Geert Uytterhoeven
  2019-02-21  9:40 ` [PATCH 5/5] arm64: dts: renesas: r8a774c0-cat874: add RTC support Biju Das
  2019-03-02 21:07 ` [PATCH 0/5] Add EPSON RX-8571 " Alexandre Belloni
  5 siblings, 1 reply; 13+ messages in thread
From: Biju Das @ 2019-02-21  9:40 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon
  Cc: Biju Das, Simon Horman, Andy Gross, Heiko Stuebner,
	Arnd Bergmann, Bjorn Andersson, Jagan Teki,
	Enric Balletbo i Serra, Marc Gonzalez, Olof Johansson,
	linux-arm-kernel, Simon Horman, Geert Uytterhoeven,
	Chris Paterson, Fabrizio Castro, linux-renesas-soc

Enable support for RX-8571/RX-8581 RTC by turning on
CONFIG_RTC_DRV_RX8581 as module.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 2d9c390..c5ec86c 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -605,6 +605,7 @@ CONFIG_EDAC_GHES=y
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_MAX77686=y
 CONFIG_RTC_DRV_RK808=m
+CONFIG_RTC_DRV_RX8581=m
 CONFIG_RTC_DRV_S5M=y
 CONFIG_RTC_DRV_DS3232=y
 CONFIG_RTC_DRV_EFI=y
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 5/5] arm64: dts: renesas: r8a774c0-cat874: add RTC support
  2019-02-21  9:40 [PATCH 0/5] Add EPSON RX-8571 RTC support Biju Das
                   ` (3 preceding siblings ...)
  2019-02-21  9:40 ` [PATCH 4/5] arm64: defconfig: enable RX-8581 config option Biju Das
@ 2019-02-21  9:40 ` Biju Das
  2019-03-01 10:29   ` Geert Uytterhoeven
  2019-03-02 21:07 ` [PATCH 0/5] Add EPSON RX-8571 " Alexandre Belloni
  5 siblings, 1 reply; 13+ messages in thread
From: Biju Das @ 2019-02-21  9:40 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland
  Cc: Biju Das, Simon Horman, Magnus Damm, linux-renesas-soc,
	devicetree, Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

This patch adds Epson RX-8571 real time clock support.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts b/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
index 96ee0d2c..18ff79c 100644
--- a/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
+++ b/arch/arm64/boot/dts/renesas/r8a774c0-cat874.dts
@@ -56,6 +56,19 @@
 	clock-frequency = <48000000>;
 };
 
+&i2c1 {
+	pinctrl-0 = <&i2c1_pins>;
+	pinctrl-names = "default";
+
+	status = "okay";
+	clock-frequency = <400000>;
+
+	rtc@32 {
+		compatible = "epson,rx8571";
+		reg = <0x32>;
+	};
+};
+
 &pcie_bus_clk {
 	clock-frequency = <100000000>;
 };
@@ -66,6 +79,11 @@
 };
 
 &pfc {
+	i2c1_pins: i2c1 {
+		groups = "i2c1_b";
+		function = "i2c1";
+	};
+
 	scif2_pins: scif2 {
 		groups = "scif2_data_a";
 		function = "scif2";
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH 5/5] arm64: dts: renesas: r8a774c0-cat874: add RTC support
  2019-02-21  9:40 ` [PATCH 5/5] arm64: dts: renesas: r8a774c0-cat874: add RTC support Biju Das
@ 2019-03-01 10:29   ` Geert Uytterhoeven
  2019-03-04  9:56     ` Simon Horman
  0 siblings, 1 reply; 13+ messages in thread
From: Geert Uytterhoeven @ 2019-03-01 10:29 UTC (permalink / raw)
  To: Biju Das
  Cc: Rob Herring, Mark Rutland, Simon Horman, Magnus Damm,
	Linux-Renesas,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

On Thu, Feb 21, 2019 at 10:46 AM Biju Das <biju.das@bp.renesas.com> wrote:
> This patch adds Epson RX-8571 real time clock support.
>
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 4/5] arm64: defconfig: enable RX-8581 config option
  2019-02-21  9:40 ` [PATCH 4/5] arm64: defconfig: enable RX-8581 config option Biju Das
@ 2019-03-01 10:35   ` Geert Uytterhoeven
  2019-03-01 10:46     ` Biju Das
  0 siblings, 1 reply; 13+ messages in thread
From: Geert Uytterhoeven @ 2019-03-01 10:35 UTC (permalink / raw)
  To: Biju Das
  Cc: Catalin Marinas, Will Deacon, Simon Horman, Andy Gross,
	Heiko Stuebner, Arnd Bergmann, Bjorn Andersson, Jagan Teki,
	Enric Balletbo i Serra, Marc Gonzalez, Olof Johansson, Linux ARM,
	Simon Horman, Geert Uytterhoeven, Chris Paterson,
	Fabrizio Castro, Linux-Renesas

On Thu, Feb 21, 2019 at 10:46 AM Biju Das <biju.das@bp.renesas.com> wrote:
> Enable support for RX-8571/RX-8581 RTC by turning on
> CONFIG_RTC_DRV_RX8581 as module.
>
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Probably you want to enable this in (local) renesas_defconfig, too?

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [PATCH 4/5] arm64: defconfig: enable RX-8581 config option
  2019-03-01 10:35   ` Geert Uytterhoeven
@ 2019-03-01 10:46     ` Biju Das
  2019-03-04  9:52       ` Simon Horman
  0 siblings, 1 reply; 13+ messages in thread
From: Biju Das @ 2019-03-01 10:46 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Catalin Marinas, Will Deacon, Simon Horman, Andy Gross,
	Heiko Stuebner, Arnd Bergmann, Bjorn Andersson, Jagan Teki,
	Enric Balletbo i Serra, Marc Gonzalez, Olof Johansson, Linux ARM,
	Simon Horman, Geert Uytterhoeven, Chris Paterson,
	Fabrizio Castro, Linux-Renesas

Hi Geert,

Thanks for the feedback.

> Subject: Re: [PATCH 4/5] arm64: defconfig: enable RX-8581 config option
>
> On Thu, Feb 21, 2019 at 10:46 AM Biju Das <biju.das@bp.renesas.com>
> wrote:
> > Enable support for RX-8571/RX-8581 RTC by turning on
> > CONFIG_RTC_DRV_RX8581 as module.
> >
> > Signed-off-by: Biju Das <biju.das@bp.renesas.com>
>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
>
> Probably you want to enable this in (local) renesas_defconfig, too?

Yes. Will send another patch to enable this in renesas_defconfig as well.

Regards,
Biju




Renesas Electronics Europe GmbH,Geschaeftsfuehrer/President : Michael Hannawald, Sitz der Gesellschaft/Registered office: Duesseldorf, Arcadiastrasse 10, 40472 Duesseldorf, Germany,Handelsregister/Commercial Register: Duesseldorf, HRB 3708 USt-IDNr./Tax identification no.: DE 119353406 WEEE-Reg.-Nr./WEEE reg. no.: DE 14978647

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 0/5] Add EPSON RX-8571 RTC support
  2019-02-21  9:40 [PATCH 0/5] Add EPSON RX-8571 RTC support Biju Das
                   ` (4 preceding siblings ...)
  2019-02-21  9:40 ` [PATCH 5/5] arm64: dts: renesas: r8a774c0-cat874: add RTC support Biju Das
@ 2019-03-02 21:07 ` Alexandre Belloni
  2019-03-04  7:36   ` Biju Das
  5 siblings, 1 reply; 13+ messages in thread
From: Alexandre Belloni @ 2019-03-02 21:07 UTC (permalink / raw)
  To: Biju Das
  Cc: Alessandro Zummo, Rob Herring, Mark Rutland, linux-rtc,
	devicetree, Simon Horman, Geert Uytterhoeven, Chris Paterson,
	Fabrizio Castro, linux-renesas-soc

On 21/02/2019 09:40:43+0000, Biju Das wrote:
> This patch set aims to add support for EPSON RX-8571 real-time clock.
> EPSON RX-8571 rtc is compatible with EPSON RX-8581 rtc except that
> former has 16 bytes additional RAM.
> 
> 1 byte of nvmem is supported on both RX-8581 and RX-8571. It is
> exposed through sysfs along with  support for 16 bytes additional RAM
> present only on EPSON RX-8571.
> 
> This patch series is tested against renesas-dev and linux-next.
> 
> Biju Das (5):
>   rtc: rx8581: Add rx8571 compatible
>   rtc: rx8581: Add support for rx8571 RTC
>   rtc: rx8581: Add support for Epson rx8571 RTC

Applied 1-3. Note that I squashed 2 and 3 as 2 didn't make much sense
without 3.


-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [PATCH 0/5] Add EPSON RX-8571 RTC support
  2019-03-02 21:07 ` [PATCH 0/5] Add EPSON RX-8571 " Alexandre Belloni
@ 2019-03-04  7:36   ` Biju Das
  0 siblings, 0 replies; 13+ messages in thread
From: Biju Das @ 2019-03-04  7:36 UTC (permalink / raw)
  To: Alexandre Belloni
  Cc: Alessandro Zummo, Rob Herring, Mark Rutland, linux-rtc,
	devicetree, Simon Horman, Geert Uytterhoeven, Chris Paterson,
	Fabrizio Castro, linux-renesas-soc

Hi Alexandre,

> -----Original Message-----
> From: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Sent: 02 March 2019 21:08
> To: Biju Das <biju.das@bp.renesas.com>
> Cc: Alessandro Zummo <a.zummo@towertech.it>; Rob Herring
> <robh+dt@kernel.org>; Mark Rutland <mark.rutland@arm.com>; linux-
> rtc@vger.kernel.org; devicetree@vger.kernel.org; Simon Horman
> <horms@verge.net.au>; Geert Uytterhoeven <geert+renesas@glider.be>;
> Chris Paterson <Chris.Paterson2@renesas.com>; Fabrizio Castro
> <fabrizio.castro@bp.renesas.com>; linux-renesas-soc@vger.kernel.org
> Subject: Re: [PATCH 0/5] Add EPSON RX-8571 RTC support
>
> On 21/02/2019 09:40:43+0000, Biju Das wrote:
> > This patch set aims to add support for EPSON RX-8571 real-time clock.
> > EPSON RX-8571 rtc is compatible with EPSON RX-8581 rtc except that
> > former has 16 bytes additional RAM.
> >
> > 1 byte of nvmem is supported on both RX-8581 and RX-8571. It is
> > exposed through sysfs along with  support for 16 bytes additional RAM
> > present only on EPSON RX-8571.
> >
> > This patch series is tested against renesas-dev and linux-next.
> >
> > Biju Das (5):
> >   rtc: rx8581: Add rx8571 compatible
> >   rtc: rx8581: Add support for rx8571 RTC
> >   rtc: rx8581: Add support for Epson rx8571 RTC
>
> Applied 1-3. Note that I squashed 2 and 3 as 2 didn't make much sense
> without 3.

Thanks.

Regards,
Biju


Renesas Electronics Europe GmbH,Geschaeftsfuehrer/President : Michael Hannawald, Sitz der Gesellschaft/Registered office: Duesseldorf, Arcadiastrasse 10, 40472 Duesseldorf, Germany,Handelsregister/Commercial Register: Duesseldorf, HRB 3708 USt-IDNr./Tax identification no.: DE 119353406 WEEE-Reg.-Nr./WEEE reg. no.: DE 14978647

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 4/5] arm64: defconfig: enable RX-8581 config option
  2019-03-01 10:46     ` Biju Das
@ 2019-03-04  9:52       ` Simon Horman
  0 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2019-03-04  9:52 UTC (permalink / raw)
  To: Biju Das
  Cc: Geert Uytterhoeven, Catalin Marinas, Will Deacon, Andy Gross,
	Heiko Stuebner, Arnd Bergmann, Bjorn Andersson, Jagan Teki,
	Enric Balletbo i Serra, Marc Gonzalez, Olof Johansson, Linux ARM,
	Geert Uytterhoeven, Chris Paterson, Fabrizio Castro,
	Linux-Renesas

On Fri, Mar 01, 2019 at 10:46:00AM +0000, Biju Das wrote:
> Hi Geert,
> 
> Thanks for the feedback.
> 
> > Subject: Re: [PATCH 4/5] arm64: defconfig: enable RX-8581 config option
> >
> > On Thu, Feb 21, 2019 at 10:46 AM Biju Das <biju.das@bp.renesas.com>
> > wrote:
> > > Enable support for RX-8571/RX-8581 RTC by turning on
> > > CONFIG_RTC_DRV_RX8581 as module.
> > >
> > > Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> >
> > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >
> > Probably you want to enable this in (local) renesas_defconfig, too?
> 
> Yes. Will send another patch to enable this in renesas_defconfig as well.

Thanks, I see that.

I have gone ahead and applied this patch for v5.2.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 5/5] arm64: dts: renesas: r8a774c0-cat874: add RTC support
  2019-03-01 10:29   ` Geert Uytterhoeven
@ 2019-03-04  9:56     ` Simon Horman
  0 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2019-03-04  9:56 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Biju Das, Rob Herring, Mark Rutland, Magnus Damm, Linux-Renesas,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Geert Uytterhoeven, Chris Paterson, Fabrizio Castro

On Fri, Mar 01, 2019 at 11:29:21AM +0100, Geert Uytterhoeven wrote:
> On Thu, Feb 21, 2019 at 10:46 AM Biju Das <biju.das@bp.renesas.com> wrote:
> > This patch adds Epson RX-8571 real time clock support.
> >
> > Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> 
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Thanks, applied for v5.2.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-03-04  9:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-21  9:40 [PATCH 0/5] Add EPSON RX-8571 RTC support Biju Das
2019-02-21  9:40 ` [PATCH 1/5] rtc: rx8581: Add rx8571 compatible Biju Das
2019-02-21  9:40 ` [PATCH 2/5] rtc: rx8581: Add support for rx8571 RTC Biju Das
2019-02-21  9:40 ` [PATCH 3/5] rtc: rx8581: Add support for Epson " Biju Das
2019-02-21  9:40 ` [PATCH 4/5] arm64: defconfig: enable RX-8581 config option Biju Das
2019-03-01 10:35   ` Geert Uytterhoeven
2019-03-01 10:46     ` Biju Das
2019-03-04  9:52       ` Simon Horman
2019-02-21  9:40 ` [PATCH 5/5] arm64: dts: renesas: r8a774c0-cat874: add RTC support Biju Das
2019-03-01 10:29   ` Geert Uytterhoeven
2019-03-04  9:56     ` Simon Horman
2019-03-02 21:07 ` [PATCH 0/5] Add EPSON RX-8571 " Alexandre Belloni
2019-03-04  7:36   ` Biju Das

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).