* [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver @ 2017-06-20 7:09 Oleksij Rempel 2017-06-20 7:09 ` [PATCH v7 1/3] nvmem: dt: document SNVS LPGPR binding Oleksij Rempel ` (3 more replies) 0 siblings, 4 replies; 13+ messages in thread From: Oleksij Rempel @ 2017-06-20 7:09 UTC (permalink / raw) To: devicetree, kernel, linux-arm-kernel, linux-kernel, Mark Rutland, Maxime Ripard, Rob Herring, Shawn Guo, Srinivas Kandagatla, Guy Shapiro, Stefan Wahren Cc: Oleksij Rempel changes v7: - split imx6ul patch and squash it with with main patches. - spell fixes in the binding documentation - return regmap_bulk_read directly. changes v6: - check if device is writable by reading GPR_SL and GPR_HL bits - use regmap_bulk_* functions instead of while() { regmap_read/write } - add patch for imx6ul changes v5: - use dcfg->offset instead of priv->offset. changes v4: - change dependencies in Kconfig - remove unused includes and order them alphabetically - set MODULE_LICENSE = GPL v2 - remove unused int err variable changes v3: - remove regmap and offset properties. changes v2: - correct typos: Registe, parrent... Oleksij Rempel (3): nvmem: dt: document SNVS LPGPR binding nvmem: add snvs_lpgpr driver ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl,imx6q-snvs-lpgpr" node .../devicetree/bindings/nvmem/snvs-lpgpr.txt | 20 +++ arch/arm/boot/dts/imx6qdl.dtsi | 4 + arch/arm/boot/dts/imx6ul.dtsi | 4 + drivers/nvmem/Kconfig | 10 ++ drivers/nvmem/Makefile | 2 + drivers/nvmem/snvs_lpgpr.c | 155 +++++++++++++++++++++ 6 files changed, 195 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt create mode 100644 drivers/nvmem/snvs_lpgpr.c -- 2.11.0 ^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v7 1/3] nvmem: dt: document SNVS LPGPR binding 2017-06-20 7:09 [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver Oleksij Rempel @ 2017-06-20 7:09 ` Oleksij Rempel 2017-06-23 21:45 ` Rob Herring 2017-06-20 7:09 ` [PATCH v7 2/3] nvmem: add snvs_lpgpr driver Oleksij Rempel ` (2 subsequent siblings) 3 siblings, 1 reply; 13+ messages in thread From: Oleksij Rempel @ 2017-06-20 7:09 UTC (permalink / raw) To: devicetree, kernel, linux-arm-kernel, linux-kernel, Mark Rutland, Maxime Ripard, Rob Herring, Shawn Guo, Srinivas Kandagatla, Guy Shapiro, Stefan Wahren Cc: Oleksij Rempel Documentation bindings for the Low Power General Purpose Register available on i.MX6 SoCs in the Secure Non-Volatile Storage. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> --- .../devicetree/bindings/nvmem/snvs-lpgpr.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt diff --git a/Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt b/Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt new file mode 100644 index 000000000000..20bc49b49799 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt @@ -0,0 +1,20 @@ +Device tree bindings for Low Power General Purpose Register found in i.MX6Q/D +Secure Non-Volatile Storage. + +This DT node should be represented as a sub-node of a "syscon", +"simple-mfd" node. + +Required properties: +- compatible: should be one of the fallowing variants: + "fsl,imx6q-snvs-lpgpr" for Freescale i.MX6Q/D/DL/S + "fsl,imx6ul-snvs-lpgpr" for Freescale i.MX6UL + +Example: +snvs: snvs@020cc000 { + compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd"; + reg = <0x020cc000 0x4000>; + + snvs_lpgpr: snvs-lpgpr { + compatible = "fsl,imx6q-snvs-lpgpr"; + }; +}; -- 2.11.0 ^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH v7 1/3] nvmem: dt: document SNVS LPGPR binding 2017-06-20 7:09 ` [PATCH v7 1/3] nvmem: dt: document SNVS LPGPR binding Oleksij Rempel @ 2017-06-23 21:45 ` Rob Herring 0 siblings, 0 replies; 13+ messages in thread From: Rob Herring @ 2017-06-23 21:45 UTC (permalink / raw) To: Oleksij Rempel Cc: devicetree, kernel, linux-arm-kernel, linux-kernel, Mark Rutland, Maxime Ripard, Shawn Guo, Srinivas Kandagatla, Guy Shapiro, Stefan Wahren On Tue, Jun 20, 2017 at 09:09:30AM +0200, Oleksij Rempel wrote: > Documentation bindings for the Low Power General Purpose Register > available on i.MX6 SoCs in the Secure Non-Volatile Storage. > > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> > --- > .../devicetree/bindings/nvmem/snvs-lpgpr.txt | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > create mode 100644 Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt Acked-by: Rob Herring <robh@kernel.org> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v7 2/3] nvmem: add snvs_lpgpr driver 2017-06-20 7:09 [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver Oleksij Rempel 2017-06-20 7:09 ` [PATCH v7 1/3] nvmem: dt: document SNVS LPGPR binding Oleksij Rempel @ 2017-06-20 7:09 ` Oleksij Rempel 2017-06-20 7:09 ` [PATCH v7 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl,imx6q-snvs-lpgpr" node Oleksij Rempel 2017-07-18 4:52 ` [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver Oleksij Rempel 3 siblings, 0 replies; 13+ messages in thread From: Oleksij Rempel @ 2017-06-20 7:09 UTC (permalink / raw) To: devicetree, kernel, linux-arm-kernel, linux-kernel, Mark Rutland, Maxime Ripard, Rob Herring, Shawn Guo, Srinivas Kandagatla, Guy Shapiro, Stefan Wahren Cc: Oleksij Rempel This is a driver for Low Power General Purpose Register (LPGPR) available on i.MX6 SoCs in Secure Non-Volatile Storage (SNVS) of this chip. It is a 32-bit read/write register located in the low power domain. Since LPGPR is located in the battery-backed power domain, LPGPR can be used by any application for retaining data during an SoC power-down mode. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> --- drivers/nvmem/Kconfig | 10 +++ drivers/nvmem/Makefile | 2 + drivers/nvmem/snvs_lpgpr.c | 155 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 167 insertions(+) create mode 100644 drivers/nvmem/snvs_lpgpr.c diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index 101ced4c84be..ea3044c5d6ee 100644 --- a/drivers/nvmem/Kconfig +++ b/drivers/nvmem/Kconfig @@ -144,4 +144,14 @@ config MESON_EFUSE This driver can also be built as a module. If so, the module will be called nvmem_meson_efuse. +config NVMEM_SNVS_LPGPR + tristate "Support for Low Power General Purpose Register" + depends on SOC_IMX6 || COMPILE_TEST + help + This is a driver for Low Power General Purpose Register (LPGPR) available on + i.MX6 SoCs in Secure Non-Volatile Storage (SNVS) of this chip. + + This driver can also be built as a module. If so, the module + will be called nvmem-snvs-lpgpr. + endif diff --git a/drivers/nvmem/Makefile b/drivers/nvmem/Makefile index 173140658693..4c589184acee 100644 --- a/drivers/nvmem/Makefile +++ b/drivers/nvmem/Makefile @@ -30,3 +30,5 @@ obj-$(CONFIG_NVMEM_VF610_OCOTP) += nvmem-vf610-ocotp.o nvmem-vf610-ocotp-y := vf610-ocotp.o obj-$(CONFIG_MESON_EFUSE) += nvmem_meson_efuse.o nvmem_meson_efuse-y := meson-efuse.o +obj-$(CONFIG_NVMEM_SNVS_LPGPR) += nvmem_snvs_lpgpr.o +nvmem_snvs_lpgpr-y := snvs_lpgpr.o diff --git a/drivers/nvmem/snvs_lpgpr.c b/drivers/nvmem/snvs_lpgpr.c new file mode 100644 index 000000000000..2aef5ff80d1e --- /dev/null +++ b/drivers/nvmem/snvs_lpgpr.c @@ -0,0 +1,155 @@ +/* + * Copyright (c) 2015 Pengutronix, Steffen Trumtrar <kernel@pengutronix.de> + * Copyright (c) 2017 Pengutronix, Oleksij Rempel <kernel@pengutronix.de> + * + * 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 published by the Free Software Foundation. + */ + +#include <linux/mfd/syscon.h> +#include <linux/module.h> +#include <linux/nvmem-provider.h> +#include <linux/of_device.h> +#include <linux/regmap.h> + +#define IMX6Q_SNVS_HPLR 0x00 +#define IMX6Q_GPR_SL BIT(5) +#define IMX6Q_SNVS_LPLR 0x34 +#define IMX6Q_GPR_HL BIT(5) +#define IMX6Q_SNVS_LPGPR 0x68 + +struct snvs_lpgpr_cfg { + int offset; + int offset_hplr; + int offset_lplr; +}; + +struct snvs_lpgpr_priv { + struct device_d *dev; + struct regmap *regmap; + struct nvmem_config cfg; + const struct snvs_lpgpr_cfg *dcfg; +}; + +static const struct snvs_lpgpr_cfg snvs_lpgpr_cfg_imx6q = { + .offset = IMX6Q_SNVS_LPGPR, + .offset_hplr = IMX6Q_SNVS_HPLR, + .offset_lplr = IMX6Q_SNVS_LPLR, +}; + +static int snvs_lpgpr_write(void *context, unsigned int offset, void *val, + size_t bytes) +{ + struct snvs_lpgpr_priv *priv = context; + const struct snvs_lpgpr_cfg *dcfg = priv->dcfg; + unsigned int lock_reg; + int ret; + + ret = regmap_read(priv->regmap, dcfg->offset_hplr, &lock_reg); + if (ret < 0) + return ret; + + if (lock_reg & IMX6Q_GPR_SL) + return -EPERM; + + ret = regmap_read(priv->regmap, dcfg->offset_lplr, &lock_reg); + if (ret < 0) + return ret; + + if (lock_reg & IMX6Q_GPR_HL) + return -EPERM; + + return regmap_bulk_write(priv->regmap, dcfg->offset + offset, val, + bytes / 4); +} + +static int snvs_lpgpr_read(void *context, unsigned int offset, void *val, + size_t bytes) +{ + struct snvs_lpgpr_priv *priv = context; + const struct snvs_lpgpr_cfg *dcfg = priv->dcfg; + + return regmap_bulk_read(priv->regmap, dcfg->offset + offset, + val, bytes / 4); +} + +static int snvs_lpgpr_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct device_node *node = dev->of_node; + struct device_node *syscon_node; + struct snvs_lpgpr_priv *priv; + struct nvmem_config *cfg; + struct nvmem_device *nvmem; + const struct snvs_lpgpr_cfg *dcfg; + + if (!node) + return -ENOENT; + + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); + if (!priv) + return -ENOMEM; + + dcfg = of_device_get_match_data(dev); + if (!dcfg) + return -EINVAL; + + syscon_node = of_get_parent(node); + if (!syscon_node) + return -ENODEV; + + priv->regmap = syscon_node_to_regmap(syscon_node); + of_node_put(syscon_node); + if (IS_ERR(priv->regmap)) + return PTR_ERR(priv->regmap); + + priv->dcfg = dcfg; + + cfg = &priv->cfg; + cfg->priv = priv; + cfg->name = dev_name(dev); + cfg->dev = dev; + cfg->stride = 4, + cfg->word_size = 4, + cfg->size = 4, + cfg->owner = THIS_MODULE, + cfg->reg_read = snvs_lpgpr_read, + cfg->reg_write = snvs_lpgpr_write, + + nvmem = nvmem_register(cfg); + if (IS_ERR(nvmem)) + return PTR_ERR(nvmem); + + platform_set_drvdata(pdev, nvmem); + + return 0; +} + +static int snvs_lpgpr_remove(struct platform_device *pdev) +{ + struct nvmem_device *nvmem = platform_get_drvdata(pdev); + + return nvmem_unregister(nvmem); +} + +static const struct of_device_id snvs_lpgpr_dt_ids[] = { + { .compatible = "fsl,imx6q-snvs-lpgpr", .data = &snvs_lpgpr_cfg_imx6q }, + { .compatible = "fsl,imx6ul-snvs-lpgpr", .data = &snvs_lpgpr_cfg_imx6q }, + { }, +}; +MODULE_DEVICE_TABLE(of, snvs_lpgpr_dt_ids); + +static struct platform_driver snvs_lpgpr_driver = { + .probe = snvs_lpgpr_probe, + .remove = snvs_lpgpr_remove, + .driver = { + .name = "snvs_lpgpr", + .of_match_table = snvs_lpgpr_dt_ids, + }, +}; +module_platform_driver(snvs_lpgpr_driver); + +MODULE_AUTHOR("Oleksij Rempel <o.rempel@pengutronix.de>"); +MODULE_DESCRIPTION("Low Power General Purpose Register in i.MX6 Secure Non-Volatile Storage"); +MODULE_LICENSE("GPL v2"); -- 2.11.0 ^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH v7 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl,imx6q-snvs-lpgpr" node 2017-06-20 7:09 [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver Oleksij Rempel 2017-06-20 7:09 ` [PATCH v7 1/3] nvmem: dt: document SNVS LPGPR binding Oleksij Rempel 2017-06-20 7:09 ` [PATCH v7 2/3] nvmem: add snvs_lpgpr driver Oleksij Rempel @ 2017-06-20 7:09 ` Oleksij Rempel 2017-12-11 22:31 ` [v7, 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl, imx6q-snvs-lpgpr" node Maciej S. Szmigiero 2017-07-18 4:52 ` [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver Oleksij Rempel 3 siblings, 1 reply; 13+ messages in thread From: Oleksij Rempel @ 2017-06-20 7:09 UTC (permalink / raw) To: devicetree, kernel, linux-arm-kernel, linux-kernel, Mark Rutland, Maxime Ripard, Rob Herring, Shawn Guo, Srinivas Kandagatla, Guy Shapiro, Stefan Wahren Cc: Oleksij Rempel This node is for Low Power General Purpose Register which can be used as Non-Volatile Storage. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> --- arch/arm/boot/dts/imx6qdl.dtsi | 4 ++++ arch/arm/boot/dts/imx6ul.dtsi | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index e426faa9c243..94e992558238 100644 --- a/arch/arm/boot/dts/imx6qdl.dtsi +++ b/arch/arm/boot/dts/imx6qdl.dtsi @@ -769,6 +769,10 @@ mask = <0x60>; status = "disabled"; }; + + snvs_lpgpr: snvs-lpgpr { + compatible = "fsl,imx6q-snvs-lpgpr"; + }; }; epit1: epit@020d0000 { /* EPIT1 */ diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index b9d7d2d09402..df870abc28f5 100644 --- a/arch/arm/boot/dts/imx6ul.dtsi +++ b/arch/arm/boot/dts/imx6ul.dtsi @@ -624,6 +624,10 @@ linux,keycode = <KEY_POWER>; wakeup-source; }; + + snvs_lpgpr: snvs-lpgpr { + compatible = "fsl,imx6ul-snvs-lpgpr"; + }; }; epit1: epit@020d0000 { -- 2.11.0 ^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [v7, 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl, imx6q-snvs-lpgpr" node 2017-06-20 7:09 ` [PATCH v7 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl,imx6q-snvs-lpgpr" node Oleksij Rempel @ 2017-12-11 22:31 ` Maciej S. Szmigiero 2017-12-15 15:07 ` Stefan Wahren 2017-12-20 2:46 ` Shawn Guo 0 siblings, 2 replies; 13+ messages in thread From: Maciej S. Szmigiero @ 2017-12-11 22:31 UTC (permalink / raw) To: Oleksij Rempel Cc: devicetree, kernel, linux-arm-kernel, linux-kernel, Mark Rutland, Maxime Ripard, Rob Herring, Shawn Guo, Srinivas Kandagatla, Guy Shapiro, Stefan Wahren On 20.06.2017 09:09, Oleksij Rempel wrote: > This node is for Low Power General Purpose Register which can > be used as Non-Volatile Storage. > > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> > --- > arch/arm/boot/dts/imx6qdl.dtsi | 4 ++++ > arch/arm/boot/dts/imx6ul.dtsi | 4 ++++ > 2 files changed, 8 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi > index e426faa9c243..94e992558238 100644 (..) FYI: It looks to me that while the driver itself from this series was picked up and eventually reached Linus' tree this DT change was forgotten, since I can't find in any tree (or am I not looking at the right place?). Maciej ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [v7, 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl, imx6q-snvs-lpgpr" node 2017-12-11 22:31 ` [v7, 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl, imx6q-snvs-lpgpr" node Maciej S. Szmigiero @ 2017-12-15 15:07 ` Stefan Wahren 2017-12-20 2:46 ` Shawn Guo 1 sibling, 0 replies; 13+ messages in thread From: Stefan Wahren @ 2017-12-15 15:07 UTC (permalink / raw) To: Maciej S. Szmigiero, Oleksij Rempel Cc: Mark Rutland, devicetree, Guy Shapiro, linux-kernel, Rob Herring, Srinivas Kandagatla, kernel, Maxime Ripard, Shawn Guo, linux-arm-kernel Hi Maciej, Am 11.12.2017 um 23:31 schrieb Maciej S. Szmigiero: > On 20.06.2017 09:09, Oleksij Rempel wrote: >> This node is for Low Power General Purpose Register which can >> be used as Non-Volatile Storage. >> >> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> >> --- >> arch/arm/boot/dts/imx6qdl.dtsi | 4 ++++ >> arch/arm/boot/dts/imx6ul.dtsi | 4 ++++ >> 2 files changed, 8 insertions(+) >> >> diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi >> index e426faa9c243..94e992558238 100644 > (..) > > FYI: It looks to me that while the driver itself from this series was > picked up and eventually reached Linus' tree this DT change was > forgotten, since I can't find in any tree (or am I not looking at the > right place?). thanks for the reminder. It's possible that this patch won't apply anymore and needs a resend. > > Maciej > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [v7, 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl, imx6q-snvs-lpgpr" node 2017-12-11 22:31 ` [v7, 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl, imx6q-snvs-lpgpr" node Maciej S. Szmigiero 2017-12-15 15:07 ` Stefan Wahren @ 2017-12-20 2:46 ` Shawn Guo 1 sibling, 0 replies; 13+ messages in thread From: Shawn Guo @ 2017-12-20 2:46 UTC (permalink / raw) To: Maciej S. Szmigiero Cc: Oleksij Rempel, devicetree, kernel, linux-arm-kernel, linux-kernel, Mark Rutland, Maxime Ripard, Rob Herring, Srinivas Kandagatla, Guy Shapiro, Stefan Wahren On Mon, Dec 11, 2017 at 11:31:52PM +0100, Maciej S. Szmigiero wrote: > On 20.06.2017 09:09, Oleksij Rempel wrote: > > This node is for Low Power General Purpose Register which can > > be used as Non-Volatile Storage. > > > > Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> > > --- > > arch/arm/boot/dts/imx6qdl.dtsi | 4 ++++ > > arch/arm/boot/dts/imx6ul.dtsi | 4 ++++ > > 2 files changed, 8 insertions(+) > > > > diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi > > index e426faa9c243..94e992558238 100644 > (..) > > FYI: It looks to me that while the driver itself from this series was > picked up and eventually reached Linus' tree this DT change was > forgotten, since I can't find in any tree (or am I not looking at the > right place?). Thanks for reminding. I just updated the subject as below and applied the patch. ARM: dts: imx6: add snvs-lpgpr node Shawn ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver 2017-06-20 7:09 [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver Oleksij Rempel ` (2 preceding siblings ...) 2017-06-20 7:09 ` [PATCH v7 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl,imx6q-snvs-lpgpr" node Oleksij Rempel @ 2017-07-18 4:52 ` Oleksij Rempel 2017-07-26 9:01 ` Srinivas Kandagatla 3 siblings, 1 reply; 13+ messages in thread From: Oleksij Rempel @ 2017-07-18 4:52 UTC (permalink / raw) To: Oleksij Rempel, devicetree, kernel, linux-arm-kernel, linux-kernel, Mark Rutland, Maxime Ripard, Rob Herring, Shawn Guo, Srinivas Kandagatla, Guy Shapiro, Stefan Wahren Hallo all, Here Gentle Ping to the Old King ;) DT is already ACKed. On 20.06.2017 09:09, Oleksij Rempel wrote: > changes v7: > - split imx6ul patch and squash it with with main patches. > - spell fixes in the binding documentation > - return regmap_bulk_read directly. > > changes v6: > - check if device is writable by reading GPR_SL and GPR_HL bits > - use regmap_bulk_* functions instead of while() { regmap_read/write } > - add patch for imx6ul > > changes v5: > - use dcfg->offset instead of priv->offset. > > changes v4: > - change dependencies in Kconfig > - remove unused includes and order them alphabetically > - set MODULE_LICENSE = GPL v2 > - remove unused int err variable > > changes v3: > - remove regmap and offset properties. > > changes v2: > - correct typos: Registe, parrent... > > Oleksij Rempel (3): > nvmem: dt: document SNVS LPGPR binding > nvmem: add snvs_lpgpr driver > ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl,imx6q-snvs-lpgpr" node > > .../devicetree/bindings/nvmem/snvs-lpgpr.txt | 20 +++ > arch/arm/boot/dts/imx6qdl.dtsi | 4 + > arch/arm/boot/dts/imx6ul.dtsi | 4 + > drivers/nvmem/Kconfig | 10 ++ > drivers/nvmem/Makefile | 2 + > drivers/nvmem/snvs_lpgpr.c | 155 +++++++++++++++++++++ > 6 files changed, 195 insertions(+) > create mode 100644 Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt > create mode 100644 drivers/nvmem/snvs_lpgpr.c > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver 2017-07-18 4:52 ` [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver Oleksij Rempel @ 2017-07-26 9:01 ` Srinivas Kandagatla 2017-09-17 7:35 ` Guy Shapiro 0 siblings, 1 reply; 13+ messages in thread From: Srinivas Kandagatla @ 2017-07-26 9:01 UTC (permalink / raw) To: Oleksij Rempel, Oleksij Rempel, devicetree, kernel, linux-arm-kernel, linux-kernel, Mark Rutland, Maxime Ripard, Rob Herring, Shawn Guo, Guy Shapiro, Stefan Wahren On 18/07/17 05:52, Oleksij Rempel wrote: > Hallo all, > > Here Gentle Ping to the Old King ;) > > DT is already ACKed. Thanks for patience, As this is a new driver it will be queued for 4.14 just before 4.13-rc5 is released. thanks, srini > > On 20.06.2017 09:09, Oleksij Rempel wrote: >> changes v7: >> - split imx6ul patch and squash it with with main patches. >> - spell fixes in the binding documentation >> - return regmap_bulk_read directly. >> >> changes v6: >> - check if device is writable by reading GPR_SL and GPR_HL bits >> - use regmap_bulk_* functions instead of while() { regmap_read/write } >> - add patch for imx6ul >> >> changes v5: >> - use dcfg->offset instead of priv->offset. >> >> changes v4: >> - change dependencies in Kconfig >> - remove unused includes and order them alphabetically >> - set MODULE_LICENSE = GPL v2 >> - remove unused int err variable >> >> changes v3: >> - remove regmap and offset properties. >> >> changes v2: >> - correct typos: Registe, parrent... >> >> Oleksij Rempel (3): >> nvmem: dt: document SNVS LPGPR binding >> nvmem: add snvs_lpgpr driver >> ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl,imx6q-snvs-lpgpr" node >> >> .../devicetree/bindings/nvmem/snvs-lpgpr.txt | 20 +++ >> arch/arm/boot/dts/imx6qdl.dtsi | 4 + >> arch/arm/boot/dts/imx6ul.dtsi | 4 + >> drivers/nvmem/Kconfig | 10 ++ >> drivers/nvmem/Makefile | 2 + >> drivers/nvmem/snvs_lpgpr.c | 155 >> +++++++++++++++++++++ >> 6 files changed, 195 insertions(+) >> create mode 100644 >> Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt >> create mode 100644 drivers/nvmem/snvs_lpgpr.c >> ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver 2017-07-26 9:01 ` Srinivas Kandagatla @ 2017-09-17 7:35 ` Guy Shapiro 2017-09-17 10:29 ` Stefan Wahren 2017-09-17 10:37 ` Srinivas Kandagatla 0 siblings, 2 replies; 13+ messages in thread From: Guy Shapiro @ 2017-09-17 7:35 UTC (permalink / raw) To: Srinivas Kandagatla, Oleksij Rempel, Oleksij Rempel, kernel, linux-kernel, Mark Rutland, Maxime Ripard, Rob Herring, Shawn Guo, Stefan Wahren Cc: devicetree, linux-arm-kernel On 26/07/2017 12:01, Srinivas Kandagatla wrote: > > On 18/07/17 05:52, Oleksij Rempel wrote: >> Hallo all, >> >> Here Gentle Ping to the Old King ;) >> >> DT is already ACKed. > > Thanks for patience, As this is a new driver it will be queued for 4.14 just before 4.13-rc5 is released. > > thanks, > srini Looks like this patchset is not included in 4.14-rc1. Is it still on someone's queue? >> >> On 20.06.2017 09:09, Oleksij Rempel wrote: >>> changes v7: >>> - split imx6ul patch and squash it with with main patches. >>> - spell fixes in the binding documentation >>> - return regmap_bulk_read directly. >>> >>> changes v6: >>> - check if device is writable by reading GPR_SL and GPR_HL bits >>> - use regmap_bulk_* functions instead of while() { regmap_read/write } >>> - add patch for imx6ul >>> >>> changes v5: >>> - use dcfg->offset instead of priv->offset. >>> >>> changes v4: >>> - change dependencies in Kconfig >>> - remove unused includes and order them alphabetically >>> - set MODULE_LICENSE = GPL v2 >>> - remove unused int err variable >>> >>> changes v3: >>> - remove regmap and offset properties. >>> >>> changes v2: >>> - correct typos: Registe, parrent... >>> >>> Oleksij Rempel (3): >>> nvmem: dt: document SNVS LPGPR binding >>> nvmem: add snvs_lpgpr driver >>> ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl,imx6q-snvs-lpgpr" node >>> >>> .../devicetree/bindings/nvmem/snvs-lpgpr.txt | 20 +++ >>> arch/arm/boot/dts/imx6qdl.dtsi | 4 + >>> arch/arm/boot/dts/imx6ul.dtsi | 4 + >>> drivers/nvmem/Kconfig | 10 ++ >>> drivers/nvmem/Makefile | 2 + >>> drivers/nvmem/snvs_lpgpr.c | 155 +++++++++++++++++++++ >>> 6 files changed, 195 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt >>> create mode 100644 drivers/nvmem/snvs_lpgpr.c >>> ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver 2017-09-17 7:35 ` Guy Shapiro @ 2017-09-17 10:29 ` Stefan Wahren 2017-09-17 10:37 ` Srinivas Kandagatla 1 sibling, 0 replies; 13+ messages in thread From: Stefan Wahren @ 2017-09-17 10:29 UTC (permalink / raw) To: Srinivas Kandagatla, Oleksij Rempel, kernel, linux-kernel, Rob Herring, Oleksij Rempel, Shawn Guo, Maxime Ripard, Mark Rutland, Guy Shapiro Cc: linux-arm-kernel, devicetree Hi Guy, > Guy Shapiro <guy.shapiro@mobi-wize.com> hat am 17. September 2017 um 09:35 geschrieben: > > > On 26/07/2017 12:01, Srinivas Kandagatla wrote: > > > > On 18/07/17 05:52, Oleksij Rempel wrote: > >> Hallo all, > >> > >> Here Gentle Ping to the Old King ;) > >> > >> DT is already ACKed. > > > > Thanks for patience, As this is a new driver it will be queued for 4.14 just before 4.13-rc5 is released. > > > > thanks, > > srini > Looks like this patchset is not included in 4.14-rc1. > Is it still on someone's queue? i think you better resend the last version and add Greg Kroah-Hartman into CC, because it goes this through his char-misc tree. Regards Stefan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver 2017-09-17 7:35 ` Guy Shapiro 2017-09-17 10:29 ` Stefan Wahren @ 2017-09-17 10:37 ` Srinivas Kandagatla 1 sibling, 0 replies; 13+ messages in thread From: Srinivas Kandagatla @ 2017-09-17 10:37 UTC (permalink / raw) To: Guy Shapiro, Oleksij Rempel, Oleksij Rempel, kernel, linux-kernel, Mark Rutland, Maxime Ripard, Rob Herring, Shawn Guo, Stefan Wahren Cc: devicetree, linux-arm-kernel On 17/09/17 08:35, Guy Shapiro wrote: > On 26/07/2017 12:01, Srinivas Kandagatla wrote: >> >> On 18/07/17 05:52, Oleksij Rempel wrote: >>> Hallo all, >>> >>> Here Gentle Ping to the Old King ;) >>> >>> DT is already ACKed. >> >> Thanks for patience, As this is a new driver it will be queued for 4.14 just before 4.13-rc5 is released. >> >> thanks, >> srini > Looks like this patchset is not included in 4.14-rc1. > Is it still on someone's queue? Not sure Why I missed this patch..!!Sorry about that !! Just sent them to Greg Now to pick it up for 4.14 next rc.. thanks, srini >>> >>> On 20.06.2017 09:09, Oleksij Rempel wrote: >>>> changes v7: >>>> - split imx6ul patch and squash it with with main patches. >>>> - spell fixes in the binding documentation >>>> - return regmap_bulk_read directly. >>>> >>>> changes v6: >>>> - check if device is writable by reading GPR_SL and GPR_HL bits >>>> - use regmap_bulk_* functions instead of while() { regmap_read/write } >>>> - add patch for imx6ul >>>> >>>> changes v5: >>>> - use dcfg->offset instead of priv->offset. >>>> >>>> changes v4: >>>> - change dependencies in Kconfig >>>> - remove unused includes and order them alphabetically >>>> - set MODULE_LICENSE = GPL v2 >>>> - remove unused int err variable >>>> >>>> changes v3: >>>> - remove regmap and offset properties. >>>> >>>> changes v2: >>>> - correct typos: Registe, parrent... >>>> >>>> Oleksij Rempel (3): >>>> nvmem: dt: document SNVS LPGPR binding >>>> nvmem: add snvs_lpgpr driver >>>> ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl,imx6q-snvs-lpgpr" node >>>> >>>> .../devicetree/bindings/nvmem/snvs-lpgpr.txt | 20 +++ >>>> arch/arm/boot/dts/imx6qdl.dtsi | 4 + >>>> arch/arm/boot/dts/imx6ul.dtsi | 4 + >>>> drivers/nvmem/Kconfig | 10 ++ >>>> drivers/nvmem/Makefile | 2 + >>>> drivers/nvmem/snvs_lpgpr.c | 155 +++++++++++++++++++++ >>>> 6 files changed, 195 insertions(+) >>>> create mode 100644 Documentation/devicetree/bindings/nvmem/snvs-lpgpr.txt >>>> create mode 100644 drivers/nvmem/snvs_lpgpr.c >>>> > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2017-12-20 2:46 UTC | newest] Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-06-20 7:09 [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver Oleksij Rempel 2017-06-20 7:09 ` [PATCH v7 1/3] nvmem: dt: document SNVS LPGPR binding Oleksij Rempel 2017-06-23 21:45 ` Rob Herring 2017-06-20 7:09 ` [PATCH v7 2/3] nvmem: add snvs_lpgpr driver Oleksij Rempel 2017-06-20 7:09 ` [PATCH v7 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl,imx6q-snvs-lpgpr" node Oleksij Rempel 2017-12-11 22:31 ` [v7, 3/3] ARM: dts: imx6qdl.dtsi/imx6ul.dtsi: add "fsl, imx6q-snvs-lpgpr" node Maciej S. Szmigiero 2017-12-15 15:07 ` Stefan Wahren 2017-12-20 2:46 ` Shawn Guo 2017-07-18 4:52 ` [PATCH v7 0/3] nvmem: upstream snvs_lpgpr driver Oleksij Rempel 2017-07-26 9:01 ` Srinivas Kandagatla 2017-09-17 7:35 ` Guy Shapiro 2017-09-17 10:29 ` Stefan Wahren 2017-09-17 10:37 ` Srinivas Kandagatla
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).