[PATCH RFC 1/3] DT: add binding for MXS regulator

2014-09-07 Thread Stefan Wahren
This patch adds the Device tree bindings for the Freescale MXS on-chip regulators. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- .../bindings/regulator/mxs-regulator.txt | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 Documentation

[PATCH RFC 3/3] DT: ARM: mxs: enable regulator support for i.MX28

2014-09-07 Thread Stefan Wahren
This patch enables the regulator support for i.MX28. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- arch/arm/boot/dts/imx28.dtsi | 50 +++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot

[PATCH RFC 0/3] ARM: regulator: add Freescale MXS regulator driver

2014-09-07 Thread Stefan Wahren
=imx_2.6.35_maintain [3] - http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/mach-mx28/power.c?h=imx_2.6.35_maintain Stefan Wahren (3): DT: add binding for MXS regulator ARM: regulator: add Freescale MXS regulator driver DT: ARM: mxs: enable regulator support for i.MX28

[PATCH RFC 2/3] ARM: regulator: add Freescale MXS regulator driver

2014-09-07 Thread Stefan Wahren
This patch adds driver support for Freescale i.MX23, i.MX28 on-chip regulators. There are 4 voltage regulators: vddd, vdda, vddio, vddmem and 1 overall current regulator. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile

Re: [PATCH 1/2] DT: add binding for mxs regulator

2014-10-03 Thread Stefan Wahren
Hi Mark, hi Fabio, Mark Rutland mark.rutl...@arm.com hat am 29. September 2014 um 15:23 geschrieben: I would prefer a top level node for the subsystem that is not a simple-bus. Give it a compatible string and a well-defined set of base properties (looks like you just need the reg for

Regulator: Questions about constraints

2014-10-06 Thread Stefan Wahren
Hi, currently i'm porting a regulator driver and i've two question about regulator constraints and DT binding: Should a regulator driver rely on DT regulator constraints or not? In case the constraints are not set by DT, what is the recommend behavior of a regulator driver? Best regards

Re: [PATCH 2/2] regulator: add mxs regulator driver

2014-09-30 Thread Stefan Wahren
Am 29.09.2014 um 19:13 schrieb Mark Brown: On Mon, Sep 29, 2014 at 08:38:51AM +0200, Stefan Wahren wrote: I'm searching for a good regulator implementation example. Does it apply to ti-abb-regulator.c and twl-regulator.c? Possibly. But bear in mind that it's important to understand

Re: [PATCH 2/2] regulator: add mxs regulator driver

2014-10-01 Thread Stefan Wahren
Hi Mark, Mark Brown broo...@kernel.org hat am 29. September 2014 um 19:13 geschrieben: This really needs a comment to explain what on earth is going on here - the whole thing with writing the same thing twice with two delays is more than a little odd. It looks like the driver is

Re: [PATCH RFC 1/3] DT: add binding for MXS regulator

2014-09-09 Thread Stefan Wahren
Hi Mark, Am 09.09.2014 19:59, schrieb Mark Rutland: On Sun, Sep 07, 2014 at 12:37:47PM +0100, Stefan Wahren wrote: This patch adds the Device tree bindings for the Freescale MXS on-chip regulators. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- .../bindings/regulator/mxs

Re: [PATCH RFC 2/3] ARM: regulator: add Freescale MXS regulator driver

2014-09-09 Thread Stefan Wahren
Hi, Am 09.09.2014 20:22, schrieb Mark Rutland: [...] + regs = (__raw_readl(sreg-base_addr) ~BM_POWER_LEVEL_TRG); I suspect you should be using the *_relaxed accessors rather than the __raw_* accessors. [...] +static int mxs_regulator_probe(struct platform_device *pdev) +{ +

Re: [PATCH RFC 2/3] ARM: regulator: add Freescale MXS regulator driver

2014-09-10 Thread Stefan Wahren
Hi, Am 10.09.2014 16:18, schrieb Mark Rutland: [...] + of_property_read_u32(np, mxs-default-microvolt, + val); + + if (val) + mxs_set_voltage(rdev, val, val, NULL); As I mentioned in my comments on the binding, I'd like to know why

Re: [PATCH RFC 2/3] ARM: regulator: add Freescale MXS regulator driver

2014-09-10 Thread Stefan Wahren
Hi Mark, Am 10.09.2014 17:13, schrieb Mark Brown: On Wed, Sep 10, 2014 at 03:18:53PM +0100, Mark Rutland wrote: On Tue, Sep 09, 2014 at 08:17:17PM +0100, Stefan Wahren wrote: Ugh, this looks like it might be a regulator driver but since the subject line was ARM: I deleted it unread

Re: [PATCH RFC 2/3] ARM: regulator: add Freescale MXS regulator driver

2014-09-11 Thread Stefan Wahren
Hi Fabio, Am 10.09.2014 20:54, schrieb Fabio Estevam: Hi Stefan, On Wed, Sep 10, 2014 at 2:32 PM, Stefan Wahren i...@lategoodbye.de wrote: Hi Mark, Am 10.09.2014 17:13, schrieb Mark Brown: On Wed, Sep 10, 2014 at 03:18:53PM +0100, Mark Rutland wrote: On Tue, Sep 09, 2014 at 08:17:17PM

[PATCH 0/2] regulator: add support for mxs regulator

2014-09-26 Thread Stefan Wahren
-imx.git/tree/arch/arm/mach-mx28/power.c?h=imx_2.6.35_maintain Stefan Wahren (2): DT: add binding for mxs regulator regulator: add mxs regulator driver .../bindings/regulator/mxs-regulator.txt | 36 ++ drivers/regulator/Kconfig | 11 + drivers/regulator

[PATCH 2/2] regulator: add mxs regulator driver

2014-09-26 Thread Stefan Wahren
This patch adds driver support for Freescale i.MX23, i.MX28 on-chip regulators. The driver supports the following regulators: vddd, vdda and vddio. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- drivers/regulator/Kconfig | 11 ++ drivers/regulator/Makefile|1

[PATCH 1/2] DT: add binding for mxs regulator

2014-09-26 Thread Stefan Wahren
This patch adds the Device tree bindings for the Freescale MXS on-chip regulators. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- .../bindings/regulator/mxs-regulator.txt | 36 1 file changed, 36 insertions(+) create mode 100644 Documentation

Re: [PATCH 1/2] DT: add binding for mxs regulator

2014-09-29 Thread Stefan Wahren
Hi Mark, Am 28.09.2014 um 12:22 schrieb Mark Brown: On Sat, Sep 27, 2014 at 12:59:47AM +, Stefan Wahren wrote: This patch adds the Device tree bindings for the Freescale MXS on-chip regulators. Use subject lines matching the style for the subsystem. sorry i'm not sure what's wrong

Re: [PATCH 2/2] regulator: add mxs regulator driver

2014-09-29 Thread Stefan Wahren
, Stefan Wahren wrote: +pr_debug(%s: min_uV %d, max_uV %d, min %d, max %d\n, __func__, + min_uV, max_uV, con-min_uV, con-max_uV); + +if (max_uV con-min_uV || max_uV con-max_uV) +return -EINVAL; This is replicating checks done by the core. +val = (max_uV

Re: [PATCH 1/2] DT: add binding for mxs regulator

2014-09-29 Thread Stefan Wahren
Hi Mark, Am 29.09.2014 um 13:09 schrieb Mark Rutland: On Sat, Sep 27, 2014 at 01:59:47AM +0100, Stefan Wahren wrote: This patch adds the Device tree bindings for the Freescale MXS on-chip regulators. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- .../bindings/regulator/mxs

Re: [PATCH 1/2] DT: add binding for mxs regulator

2014-09-29 Thread Stefan Wahren
Hi, Am 29.09.2014 um 14:41 schrieb Mark Rutland: Well, the simple-bus will cause the children to be probed. But it looks like you care about properties of the parent. I don't think that simple-bus is appropriate because it's not being handled as a transparent bridge from the PoV of the

Re: [PATCH RFC v3 02/18] of: Add vendor prefix for Himax Technologies Inc.

2014-12-23 Thread Stefan Wahren
Hi Liu, Liu Ying ying@freescale.com hat am 23. Dezember 2014 um 04:46 geschrieben: Signed-off-by: Liu Ying ying@freescale.com --- v2-v3: * None. v1-v2: * None. Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH RFC v3 11/18] drm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver

2014-12-23 Thread Stefan Wahren
Hi Liu, Liu Ying ying@freescale.com hat am 23. Dezember 2014 um 04:46 geschrieben: This patch adds Synopsys DesignWare MIPI DSI host controller driver support. Currently, the driver supports the burst with sync pulses mode only. Signed-off-by: Liu Ying ying@freescale.com ---

[PATCH V2] clk: mxs: Fix invalid 32-bit access to frac registers

2014-12-28 Thread Stefan Wahren
imx28 init to avoid any clock glitches. The changes has been tested only with a i.MX28 board, because i don't have access to an i.MX23 board. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- Changes in V2: - use relaxed access operations in clk-ref drivers/clk/mxs/clk-imx23.c | 11

Re: [PATCHv3 9/9] net: fec: fix regression on i.MX28 introduced by rx_copybreak support

2014-11-03 Thread Stefan Wahren
Hi Lothar, Lothar Waßmann l...@karo-electronics.de hat am 28. Oktober 2014 um 14:23 geschrieben: commit 1b7bde6d659d (net: fec: implement rx_copybreak to improve rx performance) introduced a regression for i.MX28. The swap_buffer() function doing the endian conversion of the received data

[PATCH RFC] clk: mxs: Fix invalid 32-bit access to frac registers

2014-12-14 Thread Stefan Wahren
. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- drivers/clk/mxs/clk-imx23.c |8 +--- drivers/clk/mxs/clk-imx28.c | 14 -- drivers/clk/mxs/clk-ref.c | 19 ++- 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/drivers/clk/mxs/clk-imx23.c

Re: [PATCH RFC] clk: mxs: Fix invalid 32-bit access to frac registers

2014-12-14 Thread Stefan Wahren
Hi Marek, Marek Vasut ma...@denx.de hat am 14. Dezember 2014 um 17:12 geschrieben: static void __iomem *digctrl; #define DIGCTRL digctrl @@ -118,11 +119,12 @@ static void __init clk_misc_init(void) /* * 480 MHz seems too high to be ssp clock source directly, * so set frac0 to get

Re: [PATCH RFC] clk: mxs: Fix invalid 32-bit access to frac registers

2014-12-14 Thread Stefan Wahren
Hi, Am 14.12.2014 um 20:19 schrieb Marek Vasut: On Sunday, December 14, 2014 at 06:16:17 PM, Stefan Wahren wrote: [...] Also, it might be a good idea to zap the 0x3f mask and use HEX and DEC numbers consistently, but this is an idea for another patch. Yes. Btw i hope this patch also fixes

Re: [PATCH RFC] clk: mxs: Fix invalid 32-bit access to frac registers

2014-12-18 Thread Stefan Wahren
Hi Marek, Am 17.12.2014 um 17:00 schrieb Marek Vasut: On Wednesday, December 17, 2014 at 08:58:23 AM, Stefan Wahren wrote: Hi Fabio, Am 17.12.2014 um 03:44 schrieb Fabio Estevam: Hi Stefan, On Sun, Dec 14, 2014 at 3:16 PM, Stefan Wahren stefan.wah...@i2se.com wrote: Btw i hope

[PATCH] clk: mxs: Fix invalid 32-bit access to frac registers

2014-12-21 Thread Stefan Wahren
imx28 init to avoid any clock glitches. The changes has been tested only with a i.MX28 board, because i don't have access to an i.MX23 board. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- drivers/clk/mxs/clk-imx23.c | 11 --- drivers/clk/mxs/clk-imx28.c | 19

Re: [PATCH] clk: mxs: Fix invalid 32-bit access to frac registers

2014-12-21 Thread Stefan Wahren
Hi Marek, Marek Vasut ma...@denx.de hat am 21. Dezember 2014 um 22:50 geschrieben: On Sunday, December 21, 2014 at 02:46:39 PM, Stefan Wahren wrote: Hi! [...] diff --git a/drivers/clk/mxs/clk-ref.c b/drivers/clk/mxs/clk-ref.c index 4adeed6..bdecec1 100644 --- a/drivers/clk/mxs/clk

Re: [PATCH RFC] clk: mxs: Fix invalid 32-bit access to frac registers

2014-12-16 Thread Stefan Wahren
Hi Fabio, Am 17.12.2014 um 03:44 schrieb Fabio Estevam: Hi Stefan, On Sun, Dec 14, 2014 at 3:16 PM, Stefan Wahren stefan.wah...@i2se.com wrote: Btw i hope this patch also fixes a SPI communication issue with our hardware which forces us to bypass ref_io1 for ssp2. Does this patch fix

Re: [PATCH 0/2] rockchip: efuse: add driver to support rk3288 efuse

2014-12-01 Thread Stefan Wahren
Hi Jianqun, Jianqun Xu jay...@rock-chips.com hat am 1. Dezember 2014 um 08:34 geschrieben: In RK3288, there are two eFuse. One is organized as 32bits by 8 one-time programmable electrical fuses with random access interface, and the other is organized as 32bits by 32 one-time programmable

Re: [PATCH 2/2] rockchip: efuse: add efuse driver for rk3288 efuse

2014-12-01 Thread Stefan Wahren
Hi Jianqun, Jianqun Xu jay...@rock-chips.com hat am 1. Dezember 2014 um 08:34 geschrieben: Add driver for efuse found on rk3288 board based on rk3288 SoC. Driver will read fuse information of chip at the boot stage of kernel, this information new is for further usage. Signed-off-by:

Re: [PATCH V2] clk: mxs: Fix invalid 32-bit access to frac registers

2015-01-20 Thread Stefan Wahren
Hi, Marek Vasut ma...@denx.de hat am 28. Dezember 2014 um 19:30 geschrieben: On Sunday, December 28, 2014 at 11:26:42 AM, Stefan Wahren wrote: According to i.MX23 and i.MX28 reference manual the fractional clock control registers must be addressed by byte instructions. This patch

[PATCH 2/4 V2] dt-bindings: Add root properties for Raspberry Pi

2015-01-19 Thread Stefan Wahren
This patch adds root compatible properties for the following boards: - Raspberry Pi Model A - Raspberry Pi Model A+ - Raspberry Pi Model B - Raspberry Pi Model B (no P5) - Raspberry Pi Model B rev2 - Raspberry Pi Model B+ - Raspberry Pi Compute Module Signed-off-by: Stefan Wahren stefan.wah

Re: [PATCH 2/4 V2] dt-bindings: Add root properties for Raspberry Pi

2015-01-19 Thread Stefan Wahren
Hi Stephen, Stephen Warren swar...@wwwdotorg.org hat am 19. Januar 2015 um 18:13 geschrieben: On 01/19/2015 04:00 AM, Stefan Wahren wrote: This patch adds root compatible properties for the following boards: - Raspberry Pi Model A - Raspberry Pi Model A+ - Raspberry Pi Model B

[PATCH 3/4] ARM: bcm2835: Add header file for pinctrl constants

2015-01-16 Thread Stefan Wahren
This new header file defines pincontrol constants to use from bcm2835 DTS files for pincontrol properties option. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- include/dt-bindings/pinctrl/bcm2835.h | 27 +++ 1 file changed, 27 insertions(+) create mode 100644

[PATCH 1/4] dt-bindings: Add vendor prefix for Raspberry Pi

2015-01-16 Thread Stefan Wahren
Since the prefix is already in use, we need to add it in the vendor list. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- .../devicetree/bindings/vendor-prefixes.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b

[PATCH 0/4] ARM: bcm2835: DT improvements

2015-01-16 Thread Stefan Wahren
This patch series contains DT improvements for the Raspberry Pi. Patch 1,2: Add missing vendor prefix and root compatible properties Patch 3,4: Use constants for pin function instead of error-prone numbers Stefan Wahren (4): dt-bindings: Add vendor prefix for Raspberry Pi dt-bindings: Add

[PATCH 2/4] dt-bindings: Add root properties for Raspberry Pi B and B+

2015-01-16 Thread Stefan Wahren
This patch adds root compatible properties for the following boards: - Raspberry Pi Model B - Raspberry Pi Model B+ Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- Documentation/devicetree/bindings/arm/bcm2835.txt | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff

[PATCH 4/4] ARM: bcm2835: Use pinctrl header

2015-01-16 Thread Stefan Wahren
This patch converts all bcm2835 dts files to use the pinctrl header file. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- arch/arm/boot/dts/bcm2835-rpi-b-plus.dts |4 ++-- arch/arm/boot/dts/bcm2835-rpi-b.dts |4 ++-- arch/arm/boot/dts/bcm2835-rpi.dtsi |8

Re: [PATCH V2 RESEND] clk: mxs: Fix invalid 32-bit access to frac registers

2015-02-11 Thread Stefan Wahren
Hi Fabio, Fabio Estevam feste...@gmail.com hat am 11. Februar 2015 um 17:58 geschrieben: Hi Stefan, On Tue, Feb 10, 2015 at 7:24 PM, Stefan Wahren stefan.wah...@i2se.com wrote: Hi Fabio, Fabio Estevam feste...@gmail.com hat am 10. Februar 2015 um 16:06 geschrieben: Hi Stefan

Re: [PATCH V2 RESEND] clk: mxs: Fix invalid 32-bit access to frac registers

2015-02-16 Thread Stefan Wahren
Hi Fabio, Fabio Estevam feste...@gmail.com hat am 12. Februar 2015 um 20:08 geschrieben: Hi Stefan, On Thu, Feb 12, 2015 at 4:59 PM, Stefan Wahren stefan.wah...@i2se.com wrote: Hi Fabio, Fabio Estevam feste...@gmail.com hat am 11. Februar 2015 um 22:10 geschrieben: On Wed

Re: [PATCH V2 RESEND] clk: mxs: Fix invalid 32-bit access to frac registers

2015-02-12 Thread Stefan Wahren
Hi Fabio, Fabio Estevam feste...@gmail.com hat am 11. Februar 2015 um 22:10 geschrieben: On Wed, Feb 11, 2015 at 6:31 PM, Stefan Wahren stefan.wah...@i2se.com wrote: I always get 0x5e5b5513 with or without your patch. very strange. Do you have any idea why IO1_STABLE is permanent low

[PATCH] Revert clk: mxs: Fix invalid 32-bit access to frac registers

2015-02-12 Thread Stefan Wahren
Revert commit 039e59707507 (clk: mxs: Fix invalid 32-bit access to frac registers), because it leads to a faulty spi communication on mx28evk. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com Reported-by: Fabio Estevam fabio.este...@freescale.com --- drivers/clk/mxs/clk-imx23.c | 11

Re: [PATCH V2 RESEND] clk: mxs: Fix invalid 32-bit access to frac registers

2015-02-20 Thread Stefan Wahren
Hi Fabio, Stefan Wahren stefan.wah...@i2se.com hat am 11. Februar 2015 um 21:31 geschrieben: Hi Fabio, Fabio Estevam feste...@gmail.com hat am 11. Februar 2015 um 17:58 geschrieben: Hi Stefan, On Tue, Feb 10, 2015 at 7:24 PM, Stefan Wahren stefan.wah...@i2se.com wrote: Hi

Re: [PATCH V2] clk: mxs: Fix invalid 32-bit access to frac registers

2015-01-28 Thread Stefan Wahren
Hi, Am 28.01.2015 um 04:36 schrieb Zhi Li: On Tue, Jan 27, 2015 at 7:51 PM, Mike Turquette mturque...@linaro.org wrote: Quoting Marek Vasut (2015-01-21 15:39:01) On Wednesday, January 21, 2015 at 05:16:03 PM, Zhi Li wrote: On Sun, Dec 28, 2014 at 4:26 AM, Stefan Wahren stefan.wah...@i2se.com

Re: [PATCH V2] clk: mxs: Fix invalid 32-bit access to frac registers

2015-01-28 Thread Stefan Wahren
Hi, Am 28.01.2015 um 17:10 schrieb Zhi Li: On Wed, Jan 28, 2015 at 9:52 AM, Stefan Wahren stefan.wah...@i2se.com wrote: Hi, Am 28.01.2015 um 04:36 schrieb Zhi Li: On Tue, Jan 27, 2015 at 7:51 PM, Mike Turquette mturque...@linaro.org wrote: Quoting Marek Vasut (2015-01-21 15:39:01

[PATCH V2 RESEND] clk: mxs: Fix invalid 32-bit access to frac registers

2015-01-30 Thread Stefan Wahren
with a i.MX23 and a i.MX28 board. [1] - http://cache.freescale.com/files/dsp/doc/ref_manual/IMX23RM.pdf [2] - http://cache.freescale.com/files/dsp/doc/ref_manual/MCIMX28RM.pdf Signed-off-by: Stefan Wahren stefan.wah...@i2se.com Reviewed-by: Marek Vasut ma...@denx.de --- Changes in V2: - use relaxed

[PATCH V2 RESEND] clk: mxs: Fix invalid 32-bit access to frac registers

2015-01-30 Thread Stefan Wahren
with a i.MX23 and a i.MX28 board. [1] - http://cache.freescale.com/files/dsp/doc/ref_manual/IMX23RM.pdf [2] - http://cache.freescale.com/files/dsp/doc/ref_manual/MCIMX28RM.pdf Signed-off-by: Stefan Wahren stefan.wah...@i2se.com Reviewed-by: Marek Vasut ma...@denx.de --- Changes in V2: - use relaxed

Re: [PATCH v3 04/20] power_supply: sysfs: Use power_supply_*() API for accessing function attrs

2015-02-09 Thread Stefan Wahren
Hi Krzysztof, Krzysztof Kozlowski k.kozlow...@samsung.com hat am 30. Januar 2015 um 15:47 geschrieben: Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: -

Re: [PATCH V2 RESEND] clk: mxs: Fix invalid 32-bit access to frac registers

2015-02-10 Thread Stefan Wahren
Hi Fabio, Am 10.02.2015 um 14:09 schrieb Fabio Estevam: Hi Stefan, On Tue, Feb 10, 2015 at 11:05 AM, Stefan Wahren stefan.wah...@i2se.com wrote: sorry no. But i will try to get a mx28evk to reproduce the problem and Just a comment: mx28evk comes without SPI NOR flash from the factory. I

Re: [PATCH V2 RESEND] clk: mxs: Fix invalid 32-bit access to frac registers

2015-02-10 Thread Stefan Wahren
Hi Fabio, Fabio Estevam feste...@gmail.com hat am 10. Februar 2015 um 16:06 geschrieben: Hi Stefan, On Tue, Feb 10, 2015 at 11:55 AM, Stefan Wahren stefan.wah...@i2se.com wrote: Could you apply only the clk-imx28.c part of my patch and see what happens? If I apply only the clk-imx28

Re: [PATCH V2 RESEND] clk: mxs: Fix invalid 32-bit access to frac registers

2015-02-10 Thread Stefan Wahren
Hi Fabio, Am 10.02.2015 um 13:52 schrieb Fabio Estevam: Hi Stefan, On Fri, Jan 30, 2015 at 5:20 PM, Stefan Wahren stefan.wah...@i2se.com wrote: According to i.MX23 and i.MX28 reference manual [1],[2] the fractional clock control register is 32-bit wide, but is separated in 4 parts. So write

Re: parent/child hierarchy for regulator

2015-03-05 Thread Stefan Wahren
Hi Peter, Am 05.03.2015 um 11:35 schrieb Peter Chen: Hi lists, Any good ways at code/dts to show parent/child hierarchy for regulator? The related regulators at my platforms like below: PMIC (SWB 5v) -- Switch Chip (GPIO Regulator) -- USB VBUS PMIC has one 5V regulator (eg, swbst at

Re: [PATCH 3/7] drivers: Introduce new eFuse subsystem stub

2015-02-25 Thread Stefan Wahren
Hi, [adding devicetree list] Am 25.02.2015 um 12:45 schrieb Ezequiel Garcia: This commit introduces a new eFuse subsystem stub to hold all the eFuse-like device drivers. This will be used to host the currently supported Tegra eFuse driver, and will allow to add support for other platforms as

[PATCH RFC 3/3] clk: imx28: add DC-DC clock domain

2015-04-20 Thread Stefan Wahren
This patch adds the DC-DC clock domain into the i.MX28 clock driver. That enables consumers to change DC-DC clock frequency in order to avoid interferences without changing hardware. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- drivers/clk/mxs/clk-imx28.c | 33

[PATCH RFC 2/3] ARM: imx28: define PMU as clock consumer

2015-04-20 Thread Stefan Wahren
This patch defines the i.MX28 PMU as consumer of clock dcdc_sel. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- arch/arm/boot/dts/imx28.dtsi |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi index 02330f4..bdd087d 100644

[PATCH RFC 0/3] clk: imx28: add DC-DC clock domain

2015-04-20 Thread Stefan Wahren
/doc/ref_manual/MCIMX28RM.pdf i.MX28 Applications Processor Reference Manual, Rev. 2, 08/2013 11.12.10 DC-DC Miscellaneous Register (HW_POWER_MISC) [2] - http://marc.info/?l=linux-pmm=142698428606221w=2 [3] - https://github.com/lategoodbye/linux-mxs-power/tree/syscon Stefan Wahren (3

[PATCH RFC 1/3] DT: imx28-clock: add ids for DC-DC clock domain

2015-04-20 Thread Stefan Wahren
| / | | |/ | / +-+ dcdc_sel |/dcdc_div dcdc_pll Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- .../devicetree/bindings/clock/imx28-clock.txt |3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/imx28-clock.txt b/Documentation

Re: [PATCH v3 0/2] clk: improve handling of orphan clocks

2015-04-25 Thread Stefan Wahren
Hi Heiko, Heiko Stuebner he...@sntech.de hat am 22. April 2015 um 22:53 geschrieben: Using orphan clocks can introduce strange behaviour as they don't have rate information at all and also of course don't track [...] As this changes the behaviour for orphan clocks, it would of course

[PATCH RESEND] clk: Fix JSON output in debugfs

2015-04-29 Thread Stefan Wahren
key/value pairs in a JSON object must be separated by a comma. After adding the properties accuracy and phase the JSON output of /sys/kernel/debug/clk/clk_dump is invalid. So add the missing commas to fix it. Fixes: 5279fc4 (clk: add clk accuracy retrieval support) Signed-off-by: Stefan Wahren

Re: [PATCH] clk: add newline character after dumping all clocks

2015-05-02 Thread Stefan Wahren
Acked-by: Stefan Wahren stefan.wah...@i2se.com Stefan -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH RESEND] clk: Fix JSON output in debugfs

2015-04-30 Thread Stefan Wahren
Stephen Boyd sb...@codeaurora.org hat am 1. Mai 2015 um 02:37 geschrieben: On 04/29, Stefan Wahren wrote: key/value pairs in a JSON object must be separated by a comma. After adding the properties accuracy and phase the JSON output of /sys/kernel/debug/clk/clk_dump is invalid. So

Re: [PATCH 1/2] Regulator: mc34708: Add DT binding documentation

2015-05-01 Thread Stefan Wahren
Hi Martin, Martin Fuzzey mfuz...@parkeon.com hat am 28. April 2015 um 16:17 geschrieben: Signed-off-by: Martin Fuzzey mfuz...@parkeon.com a commit message would be nice and the subject should specify dt-bindings instead of regulator subsystem. Stefan -- To unsubscribe from this list: send

Re: [PATCH 0/2] regulator: Add regulator driver for the MC34708 PMIC

2015-05-01 Thread Stefan Wahren
Hi Martin, Martin Fuzzey mfuz...@parkeon.com hat am 28. April 2015 um 16:17 geschrieben: Add regulator driver and associated DT bindings for the regulators in the Freescale MC34708 PMIC. from my understanding this PMIC is used typically for i.MX50/53 SoCs. So in this case it would make

Re: [PATCH 2/2] Regulator: add driver for Freescale MC34708

2015-05-01 Thread Stefan Wahren
Hi Martin, Martin Fuzzey mfuz...@parkeon.com hat am 28. April 2015 um 16:17 geschrieben: [...] diff --git a/drivers/regulator/mc34708-regulator.c b/drivers/regulator/mc34708-regulator.c new file mode 100644 index 000..b5ff727 --- /dev/null +++

Re: [PATCH 1/2] Regulator: mc34708: Add DT binding documentation

2015-05-01 Thread Stefan Wahren
Hi Mark, Mark Brown broo...@kernel.org hat am 1. Mai 2015 um 13:01 geschrieben: On Fri, May 01, 2015 at 12:34:21PM +0200, Stefan Wahren wrote: a commit message would be nice and the subject should specify dt-bindings instead of regulator subsystem. No, it shouldn't. DT bindings

Re: [PATCH] dmaengine: bcm2835: Add slave dma support

2015-04-15 Thread Stefan Wahren
Hi Noralf, Am 15.04.2015 um 11:56 schrieb Noralf Trønnes: Add slave transfer capability to BCM2835 dmaengine driver. This patch is pulled from the bcm2708-dmaengine driver in the Raspberry Pi repo. The work was done by Gellert Weisz. Tested with the bcm2835-mmc driver from the same repo. why

Re: [PATCH] dmaengine: bcm2835: Add slave dma support

2015-04-17 Thread Stefan Wahren
Hi Noralf, Am 17.04.2015 um 00:09 schrieb Noralf Trønnes: Den 15.04.2015 21:00, skrev Stefan Wahren: Hi Noralf, Am 15.04.2015 um 11:56 schrieb Noralf Trønnes: Add slave transfer capability to BCM2835 dmaengine driver. This patch is pulled from the bcm2708-dmaengine driver in the Raspberry

[PATCH] regulator: core: fix constraints debug output

2015-05-20 Thread Stefan Wahren
In the case uV_offset is greater than 0 the debug output before is accidentally overwritten. So take care of the output count. Fixes: bf5892a8167e (regulator: Support voltage offsets to compensate for drops) CC: sta...@vger.kernel.org Signed-off-by: Stefan Wahren stefan.wah...@i2se.com

Re: [PATCH] regulator: core: fix constraints debug output

2015-05-21 Thread Stefan Wahren
Hi Joe, Joe Perches j...@perches.com hat am 20. Mai 2015 um 22:35 geschrieben: On Wed, 2015-05-20 at 20:17 +, Stefan Wahren wrote: In the case uV_offset is greater than 0 the debug output before is accidentally overwritten. So take care of the output count. If you are going to take

[PATCH V2] regulator: core: fix constraints debug output

2015-06-03 Thread Stefan Wahren
The line buffer for constraints debug isn't big enough to hold the output in all cases. So fix the possible buffer overflow by the usage of the scnprintf(). By the way this fixes that the debug output is overwritten when uV_offset is greater 0. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com

Re: [PATCH V2] regulator: core: fix constraints debug output

2015-06-09 Thread Stefan Wahren
Mark Brown broo...@kernel.org hat am 9. Juni 2015 um 20:00 geschrieben: On Wed, Jun 03, 2015 at 09:56:29PM +, Stefan Wahren wrote: The line buffer for constraints debug isn't big enough to hold the output in all cases. So fix the possible buffer overflow by the usage

[PATCH] regulator: core: fix constraints output buffer

2015-06-09 Thread Stefan Wahren
The buffer for condtraints debug isn't big enough to hold the output in all cases. So fix this issue by increasing the buffer. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com CC: sta...@vger.kernel.org --- drivers/regulator/core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] regulator: core: fix constraints output buffer

2015-06-09 Thread Stefan Wahren
Mark Brown broo...@kernel.org hat am 10. Juni 2015 um 01:22 geschrieben: On Tue, Jun 09, 2015 at 08:09:42PM +, Stefan Wahren wrote: The buffer for condtraints debug isn't big enough to hold the output in all cases. So fix this issue by increasing the buffer. Applied, thanks

[PATCH V3] regulator: core: replace sprintf with scnprintf

2015-06-10 Thread Stefan Wahren
In order to avoid potential overflows in print_constraints we better replace sprintf() with scnprintf(). Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- drivers/regulator/core.c | 43 --- 1 file changed, 24 insertions(+), 19 deletions(-) Changes

Re: [RFC PATCH v6 2/2] nvmem: Add Vybrid OCOTP and OCROM support

2015-06-23 Thread Stefan Wahren
Hi Sanchayan, Sanchayan Maity maitysancha...@gmail.com hat am 23. Juni 2015 um 15:44 geschrieben: The patch adds support for the On Chip One Time Programmable Peripheral (OCOTP) and On Chip ROM (OCROM) support. On Vybrid OCOTP contain data like SoC ID, MAC address and OCROM has the

Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap.

2015-06-23 Thread Stefan Wahren
Hi Srinivas, Srinivas Kandagatla srinivas.kandaga...@linaro.org hat am 23. Juni 2015 um 01:07 geschrieben: [...] Device Tree: /* Provider */ qfprom: qfprom@0070 { ... /* Data cells */ tsens_calibration: calib@404 { reg = 0x404 0x10; }; tsens_calibration_bckp: calib_bckp@504

Re: [PATCH v6 8/9] nvmem: sunxi: Move the SID driver to the nvmem framework

2015-06-23 Thread Stefan Wahren
Srinivas Kandagatla srinivas.kandaga...@linaro.org hat am 23. Juni 2015 um 01:09 geschrieben: From: Maxime Ripard maxime.rip...@free-electrons.com Now that we have the nvmem framework, we can consolidate the common driver code. Move the driver to the framework, and hopefully, it will fix

Re: [PATCH v6 3/9] nvmem: Add nvmem_device based consumer apis.

2015-06-23 Thread Stefan Wahren
Srinivas Kandagatla srinivas.kandaga...@linaro.org hat am 23. Juni 2015 um 01:08 geschrieben: This patch adds read/write apis which are based on nvmem_device. It is common that the drivers like omap cape manager or qcom cpr driver to access bytes directly at particular offset in the eeprom

Re: [PATCH v6 1/9] nvmem: Add a simple NVMEM framework for nvmem providers

2015-06-23 Thread Stefan Wahren
Hi Srinivas, sorry for the messed up indention. Srinivas Kandagatla srinivas.kandaga...@linaro.org hat am 23. Juni 2015 um 01:08 geschrieben: [...] --- /dev/null +++ b/drivers/nvmem/Kconfig @@ -0,0 +1,10 @@ +menuconfig NVMEM + tristate NVMEM Support + select REGMAP + help + Support

Re: [PATCH v6 4/9] nvmem: Add bindings for simple nvmem framework

2015-06-23 Thread Stefan Wahren
Srinivas Kandagatla srinivas.kandaga...@linaro.org hat am 23. Juni 2015 um 01:08 geschrieben: This patch adds bindings for simple nvmem framework which allows nvmem consumers to talk to nvmem providers to get access to nvmem cell data. Signed-off-by: Maxime Ripard

Re: [PATCH v6 2/9] nvmem: Add a simple NVMEM framework for consumers

2015-06-23 Thread Stefan Wahren
Srinivas Kandagatla srinivas.kandaga...@linaro.org hat am 23. Juni 2015 um 01:08 geschrieben: [...] --- /dev/null +++ b/include/linux/nvmem-consumer.h @@ -0,0 +1,75 @@ +/* + * nvmem framework consumer. + * + * Copyright (C) 2015 Srinivas Kandagatla srinivas.kandaga...@linaro.org + *

Re: [RFC PATCH v6 2/2] nvmem: Add Vybrid OCOTP and OCROM support

2015-06-24 Thread Stefan Wahren
Hi Sanchayan, Am 24.06.2015 um 07:19 schrieb maitysancha...@gmail.com: On 15-06-23 21:31:41, Stefan Wahren wrote: Hi Sanchayan, Sanchayan Maity maitysancha...@gmail.com hat am 23. Juni 2015 um 15:44 geschrieben: The patch adds support for the On Chip One Time Programmable Peripheral

Re: [RFC PATCH v6 2/2] nvmem: Add Vybrid OCOTP and OCROM support

2015-06-24 Thread Stefan Wahren
Hi Srinivas, Am 24.06.2015 um 12:45 schrieb maitysancha...@gmail.com: Hello Stefan, On 15-06-24 11:56:14, Stefan Wahren wrote: Hi Sanchayan, Am 24.06.2015 um 07:19 schrieb maitysancha...@gmail.com: On 15-06-23 21:31:41, Stefan Wahren wrote: Hi Sanchayan, Sanchayan Maity maitysancha

Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap.

2015-06-24 Thread Stefan Wahren
Hi Srinivas, Am 24.06.2015 um 11:46 schrieb Srinivas Kandagatla: On 23/06/15 20:47, Stefan Wahren wrote: 0001000 i want to port OCOTP driver for MXS, which hasn't MMIO. From my understanding That's cool. hexdump would readout the complete register range defined in provider DT node

Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap.

2015-06-24 Thread Stefan Wahren
Hi Srinivas, Srinivas Kandagatla srinivas.kandaga...@linaro.org hat am 24. Juni 2015 um 15:03 geschrieben: On 24/06/15 13:30, Stefan Wahren wrote: If the question is just about hexdump, then hexdump itself can read file from given offset and size. yes, this is my question at first

Re: [PATCH v2 0/3] Add the efuse driver on rockchip platform

2015-06-18 Thread Stefan Wahren
Hi Srinivas, Am 16.06.2015 um 12:54 schrieb Srinivas Kandagatla: On 16/06/15 11:06, Caesar Wang wrote: Hi Srinivas, 在 2015年06月16日 17:21, Srinivas Kandagatla 写道: Hi Stefan, On 16/06/15 09:52, Stefan Wahren wrote: Hi Caesar, [add Maxime and Srinivas] Am 16.06.2015 um 09:27 schrieb

Re: [PATCH 2/3] watchdog: bcm2835: Add poweroff code for the Raspberry Pi

2015-06-12 Thread Stefan Wahren
Hi Noralf, Am 09.06.2015 um 12:21 schrieb Noralf Trønnes: This adds a new poweroff function to the watchdog driver for the Raspberry Pi. Currently poweroff/halt results in a reboot. [...] +static void rpi_power_off(void) +{ + struct device_node *np = +

Re: [PATCH v2 0/3] Add the efuse driver on rockchip platform

2015-06-16 Thread Stefan Wahren
Hi Caesar, [add Maxime and Srinivas] Am 16.06.2015 um 09:27 schrieb Caesar Wang: The original driver is uploaded by Jianqun. Here is his patchs: https://patchwork.kernel.org/patch/5410341/ https://patchwork.kernel.org/patch/5410351/ Jianqun, nevermind! I check-pick it and

Re: [RFC PATCH v6 3/3] drivers: nvmem: Add Vybrid OCOTP support

2015-07-06 Thread Stefan Wahren
Hi Sanchayan, Sanchayan Maity maitysancha...@gmail.com hat am 29. Juni 2015 um 13:22 geschrieben: The patch adds support for the On Chip One Time Programmable Peripheral (OCOTP) on the Vybrid platform. please provide a changelog in your cover letter and a new version after changes. I

Re: [PATCH RFC] eeprom: at24: extend driver to plug into the NVMEM framework

2015-08-16 Thread Stefan Wahren
Hi Andrew, Andrew Lunn and...@lunn.ch hat am 16. August 2015 um 04:54 geschrieben: Add a read only regmap for accessing the EEPROM, and then use that with the NVMEM framework. Signed-off-by: Andrew Lunn and...@lunn.ch --- drivers/misc/eeprom/at24.c | 65

Re: [PATCH RFC] eeprom: at24: extend driver to plug into the NVMEM framework

2015-08-16 Thread Stefan Wahren
Hi Andrew, Andrew Lunn and...@lunn.ch hat am 16. August 2015 um 15:11 geschrieben: On Sun, Aug 16, 2015 at 10:28:06AM +0200, Stefan Wahren wrote: Hi Andrew, Andrew Lunn and...@lunn.ch hat am 16. August 2015 um 04:54 geschrieben: Add a read only regmap for accessing the EEPROM

Re: [PATCH v2 1/7] drm/vc4: Add devicetree bindings for VC4.

2015-08-19 Thread Stefan Wahren
Hi Eric, Am 18.08.2015 um 23:54 schrieb Eric Anholt: VC4 is the GPU (display and 3D) subsystem present on the 2835 and some other Broadcom SoCs. This binding follows the model of msm, imx, sti, and others, where there is a subsystem node for the whole GPU, with nodes for the individual HW

Re: [PATCH v2 3/7] drm/vc4: Add KMS support for Raspberry Pi.

2015-08-19 Thread Stefan Wahren
Hi Eric, only a few nits. Am 18.08.2015 um 23:54 schrieb Eric Anholt: This is the start of a full VC4 driver. Right now this just supports configuring the display using a pre-existing video mode (because changing the pixel clock isn't available yet, and doesn't work when it is). However,

[PATCH RFC 2/2] staging: fbtft: fix 9-bit SPI support detection

2015-08-24 Thread Stefan Wahren
Since bits_per_word isn't usually checked during SPI setup the 9-bit support must be checked manually. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- drivers/staging/fbtft/fbtft-core.c |7 +++ drivers/staging/fbtft/flexfb.c |7 +++ 2 files changed, 14 insertions

[PATCH RFC 1/2] staging: fbtft: replace master-setup() with spi_setup()

2015-08-24 Thread Stefan Wahren
Calling the setup of the SPI master directly causes a NULL pointer dereference with master drivers without a separate setup function. This problem is reproduceable on ARM MXS platform. So fix this issue by using spi_setup() instead. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com

[PATCH RFC 0/2] staging: fbtft: fix 9-bit SPI support

2015-08-24 Thread Stefan Wahren
This patch series fixes the 9-bit SPI support of fbtft. Stefan Wahren (2): staging: fbtft: replace master-setup() with spi_setup() staging: fbtft: fix 9-bit SPI support detection drivers/staging/fbtft/fb_uc1611.c|2 +- drivers/staging/fbtft/fb_watterott.c |4 ++-- drivers

Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap.

2015-06-30 Thread Stefan Wahren
Hi Srinivas, Srinivas Kandagatla srinivas.kandaga...@linaro.org hat am 24. Juni 2015 um 20:50 geschrieben: On 24/06/15 18:47, Stefan Wahren wrote: Hi Srinivas, Srinivas Kandagatla srinivas.kandaga...@linaro.org hat am 24. Juni 2015 um 15:03 geschrieben: On 24/06/15 13

  1   2   3   4   5   6   >