[PATCH v3 1/6] clk: sunxi-ng: a20: Register regmap for sun7i CCU

2020-04-30 Thread Priit Laes
device to probe the same resource with proper device node. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/ccu-sun4i-a10.c | 62 +++- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun4i-a10.c b/drivers/clk/sunxi-ng/ccu-sun4i-a10

[PATCH v3 3/6] net: stmmac: dwmac-sunxi: Implement syscon-based clock handling

2020-04-30 Thread Priit Laes
-by: Priit Laes --- .../net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 130 -- 1 file changed, 122 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c index 0e1ca2cba3c7..206398f7a2af 100644

[PATCH v3 6/6] ARM: dts: sun6i: Use syscon-based implementation for gmac

2020-04-30 Thread Priit Laes
Use syscon-based approach to access gmac clock configuration register instead of relying on a custom clock driver. As a bonus, we can now drop the custom clock implementation and the dummy clocks. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun6i-a31.dtsi | 35

[PATCH v3 5/6] ARM: dts: sun7i: Use syscon-based implementation for gmac

2020-04-30 Thread Priit Laes
Use syscon-based approach to access gmac clock configuration register, instead of relying on a custom clock driver. As a bonus, we can now drop the custom clock implementation and dummy clocks making sun7i fully CCU-compatible. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20.dtsi

[PATCH v3 4/6] dt-bindings: net: sun7i-gmac: Add syscon support

2020-04-30 Thread Priit Laes
Now that driver supports syscon-based regmap access, document also the devicetree binding. Signed-off-by: Priit Laes --- .../bindings/net/allwinner,sun7i-a20-gmac.yaml| 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net

[PATCH v2 0/6] ARM: sunxi: Clean up sun7i-a20-gmac-clk usage

2020-04-30 Thread Priit Laes
n dwmac-sunxi driver. * Make sure we don't mess with the RX/TX delay settings when updating clock registers. * Update devicetree bindings * Add sun6i-A31 support. (not tested due to lack of hardware) Priit Laes (6): clk: sunxi-ng: a20: Register regmap for sun7i CCU clk: sunxi-ng: a31: Register

[PATCH v3 2/6] clk: sunxi-ng: a31: Register regmap for sun6i CCU

2020-04-30 Thread Priit Laes
device to probe the same resource with device node. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/ccu-sun6i-a31.c | 62 +++- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun6i-a31.c b/drivers/clk/sunxi-ng/ccu-sun6i-a31.c

Re: [PATCH v2 2/6] clk: sunxi-ng: a31: Register regmap for sun6i CCU

2020-04-30 Thread Priit Laes
On Wed, Apr 29, 2020 at 11:46:08PM +0300, Priit Laes wrote: I somehow messed up this patch when preparing the patchset, so I'll resend the fixed patch with v3. > On sun6i, the gmac clock is handled by the dwmac-sunxi driver, but > its configuration register is located in the CCU register

Re: [PATCH 1/4] clk: sunxi-ng: a10/a20: rewrite init code to a platform driver

2020-04-30 Thread Priit Laes
On Wed, Apr 29, 2020 at 04:35:10PM +0200, Maxime Ripard wrote: > Hi, > > On Mon, Apr 20, 2020 at 08:32:28PM +0000, Priit Laes wrote: > > On Mon, Apr 20, 2020 at 02:49:35PM +0200, Maxime Ripard wrote: > > > On Sat, Apr 18, 2020 at 01:17:27AM +0300, Priit Laes wrote: >

[PATCH v2 2/6] clk: sunxi-ng: a31: Register regmap for sun6i CCU

2020-04-29 Thread Priit Laes
device to probe the same resource with device node. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/ccu-sun6i-a31.c | 60 +++- 1 file changed, 58 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun6i-a31.c b/drivers/clk/sunxi-ng/ccu-sun6i-a31.c

[PATCH v2 1/6] clk: sunxi-ng: a20: Register regmap for sun7i CCU

2020-04-29 Thread Priit Laes
device to probe the same resource with proper device node. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/ccu-sun4i-a10.c | 60 +++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun4i-a10.c b/drivers/clk/sunxi-ng/ccu-sun4i-a10

[PATCH v2 6/6] ARM: dts: sun6i: Use syscon-based implementation for gmac

2020-04-29 Thread Priit Laes
Use syscon-based approach to access gmac clock configuration register instead of relying on a custom clock driver. As a bonus, we can now drop the custom clock implementation and the dummy clocks. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun6i-a31.dtsi | 35

[PATCH v2 4/6] dt-bindings: net: sun7i-gmac: Add syscon support

2020-04-29 Thread Priit Laes
Now that driver supports syscon-based regmap access, document also the devicetree binding. Signed-off-by: Priit Laes --- .../bindings/net/allwinner,sun7i-a20-gmac.yaml| 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net

[PATCH v2 3/6] net: stmmac: dwmac-sunxi: Implement syscon-based clock handling

2020-04-29 Thread Priit Laes
-by: Priit Laes --- .../net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 130 -- 1 file changed, 122 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c index 0e1ca2cba3c7..206398f7a2af 100644

[PATCH v2 0/6] ARM: sunxi: Convert A20/A31 GMAC driver to use CCU

2020-04-29 Thread Priit Laes
egacy" in dwmac-sunxi driver. * Make sure we don't mess with the RX/TX delay settings when updating clock registers. * Update devicetree bindings * Add sun6i-A31 support. (not tested due to lack of hardware) Priit Laes (6): clk: sunxi-ng: a20: Register regmap for sun7i CCU clk: sunxi-ng: a31

[PATCH v2 5/6] ARM: dts: sun7i: Use syscon-based implementation for gmac

2020-04-29 Thread Priit Laes
Use syscon-based approach to access gmac clock configuration register, instead of relying on a custom clock driver. As a bonus, we can now drop the custom clock implementation and dummy clocks making sun7i fully CCU-compatible. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20.dtsi

[BUG] sun4i: axp209: no atomic i2c transfer handler

2019-09-20 Thread Priit Laes
Heya! I have seen following warning message for few times when shutting down the machine (Olinuxino Lime2-emmc) running the mainline kernel. [snip] WARNING: CPU: 0 PID: 1 at drivers/i2c/i2c-core.h:41 i2c_transfer+0xe8/0xf4 No atomic I2C transfer handler for 'i2c-1' Modules linked in: enc28j60

Re: [linux-sunxi] [RESEND PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies

2019-05-28 Thread Priit Laes
On Tue, May 28, 2019 at 02:58:57PM +0200, Paul Kocialkowski wrote: > Hi, > > On Tue, 2019-05-28 at 09:35 +0300, Priit Laes wrote: > > Lime2 has battery connector so enable these supplies. > > Out of curiosity, what is reported to userspace when no battery is > attache

[RESEND PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies

2019-05-28 Thread Priit Laes
Lime2 has battery connector so enable these supplies. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts

[PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies

2019-05-16 Thread Priit Laes
Lime2 has battery connector so enable these supplies. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts

[RESEND PATCH] drm/sun4i: hdmi: Improve compatibility with hpd-less HDMI displays

2019-03-04 Thread Priit Laes
From: Priit Laes Even though HDMI connector features hotplug detect pin (HPD), there are older devices which do not support it. For these devices fall back to additional check on I2C bus to probe for EDID data. One known example is HDMI/DVI display with following edid: $ xxd -p display.edid

[PATCH] ARM: dts: sun7i: olimex-lime2: Add regulators for GPIO banks

2019-02-26 Thread Priit Laes
From: Priit Laes Make sure that A20 Olimex Lime2 pin bank regulators are properly represented. While pin banks A, B and F are connected to 3.3V static regulator, pin banks E and G tied with LDO3 and LDO4 regulators with 2.8V reference. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i

Re: [RFC PATCH] clk: sunxi-ng: sun4i: Use CLK_SET_RATE_PARENT for mmc2 clock

2019-02-12 Thread Priit Laes
On Mon, Feb 11, 2019 at 04:34:02PM +0100, Maxime Ripard wrote: > On Mon, Feb 11, 2019 at 02:35:52PM +0000, Priit Laes wrote: > > On Wed, Feb 06, 2019 at 04:52:27PM +0100, Maxime Ripard wrote: > > > Hi, > > > > > > On Wed, Feb 06, 2019 at 10:03:09AM +000

Re: [RFC PATCH] clk: sunxi-ng: sun4i: Use CLK_SET_RATE_PARENT for mmc2 clock

2019-02-11 Thread Priit Laes
On Wed, Feb 06, 2019 at 04:52:27PM +0100, Maxime Ripard wrote: > Hi, > > On Wed, Feb 06, 2019 at 10:03:09AM +0000, Priit Laes wrote: > > > > I'm concerned for other users of the PLL-PERIPH clock. AFAIK > > > > all of them, except the HRTIMER, expect the cl

Re: [linux-sunxi] [RFT PATCH 7/9] mfd: axp20x: add USB power supply mfd cell to AXP813

2019-02-07 Thread Priit Laes
On Thu, Feb 07, 2019 at 02:45:33PM +0800, Chen-Yu Tsai wrote: > From: Quentin Schulz > > The AXP813 has a VBUS power input. Now that the axp20x_usb_power driver > supports this variant, we can add an mfd cell for it to use it. > > Signed-off-by: Quentin Schulz > [w...@csie.org: add commit

Re: [RFC PATCH] clk: sunxi-ng: sun4i: Use CLK_SET_RATE_PARENT for mmc2 clock

2019-02-06 Thread Priit Laes
On Wed, Feb 06, 2019 at 10:20:00AM +0100, Maxime Ripard wrote: > On Tue, Feb 05, 2019 at 09:44:02PM +0800, Chen-Yu Tsai wrote: > > On Tue, Feb 5, 2019 at 5:45 PM Maxime Ripard > > wrote: > > > > > > On Sat, Feb 02, 2019 at 05:52:09PM +0200, Priit Laes wrote: >

[RFC PATCH] clk: sunxi-ng: sun4i: Use CLK_SET_RATE_PARENT for mmc2 clock

2019-02-02 Thread Priit Laes
Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/ccu-sun4i-a10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun4i-a10.c b/drivers/clk/sunxi-ng/ccu-sun4i-a10.c index 129ebd2588fd..605e13b4ef90 100644 --- a/drivers/clk/sunxi-ng/ccu-sun4i-a10.c +++

[PATCH] drm/sun4i: hdmi: Improve compatibility with hpd-less HDMI displays

2019-01-22 Thread Priit Laes
From: Priit Laes Even though HDMI connector features hotplug detect pin (HPD), there are older devices which do not support it. For these devices fall back to additional check on I2C bus to probe for EDID data. One known example is HDMI/DVI display with following edid: $ xxd -p display.edid

[PATCH] drm/sun4i: hdmi: Fix usage of TMDS clock

2019-01-21 Thread Priit Laes
From: Priit Laes Although TMDS clock is required for HDMI to properly function, nobody called clk_prepare_enable(). This fixes reference counting issues and makes sure clock is running when it needs to be running. Due to TDMS clock being parent clock for DDC clock, TDMS clock was turned on/off

Re: [linux-sunxi] [PATCH v3 02/28] clk: sunxi-ng: Adjust MP clock parent rate when allowed

2019-01-21 Thread Priit Laes
On Mon, Jan 21, 2019 at 08:37:29AM +, Priit Laes wrote: > On Fri, Jan 18, 2019 at 10:51:10PM +0100, Jernej Škrabec wrote: > > Dne četrtek, 17. januar 2019 ob 08:24:02 CET je Priit Laes napisal(a): > > > On Wed, Jan 16, 2019 at 06:00:32PM +0100, Jernej Škrabec wrote: >

Re: [linux-sunxi] [PATCH v3 02/28] clk: sunxi-ng: Adjust MP clock parent rate when allowed

2019-01-21 Thread Priit Laes
On Fri, Jan 18, 2019 at 10:51:10PM +0100, Jernej Škrabec wrote: > Dne četrtek, 17. januar 2019 ob 08:24:02 CET je Priit Laes napisal(a): > > On Wed, Jan 16, 2019 at 06:00:32PM +0100, Jernej Škrabec wrote: > > > Dne sreda, 16. januar 2019 ob 13:09:58 CET je Priit Laes napisal(

Re: [linux-sunxi] [PATCH v3 02/28] clk: sunxi-ng: Adjust MP clock parent rate when allowed

2019-01-16 Thread Priit Laes
On Wed, Jan 16, 2019 at 06:00:32PM +0100, Jernej Škrabec wrote: > Dne sreda, 16. januar 2019 ob 13:09:58 CET je Priit Laes napisal(a): > > On Thu, Jan 10, 2019 at 06:10:59PM +0100, Jernej Škrabec wrote: > > > Dne četrtek, 10. januar 2019 ob 10:15:48 CET je Priit Laes napisal(

Re: [linux-sunxi] [PATCH v3 02/28] clk: sunxi-ng: Adjust MP clock parent rate when allowed

2019-01-16 Thread Priit Laes
On Thu, Jan 10, 2019 at 06:10:59PM +0100, Jernej Škrabec wrote: > Dne četrtek, 10. januar 2019 ob 10:15:48 CET je Priit Laes napisal(a): > > On Sun, Nov 04, 2018 at 07:26:39PM +0100, Jernej Skrabec wrote: > > > Currently MP clocks don't consider adjusting parent rate even if they

Re: [linux-sunxi] [PATCH v3 02/28] clk: sunxi-ng: Adjust MP clock parent rate when allowed

2019-01-10 Thread Priit Laes
On Sun, Nov 04, 2018 at 07:26:39PM +0100, Jernej Skrabec wrote: > Currently MP clocks don't consider adjusting parent rate even if they > are allowed to do so. Such behaviour considerably lowers amount of > possible rates, which is very inconvenient when such clock is used for > pixel clock, for

Re: [linux-sunxi] Re: [PATCH v2 1/8] mfd: axp20x: name voltage ramping define properly

2018-12-21 Thread Priit Laes
On Fri, Dec 21, 2018 at 09:26:58AM +, Lee Jones wrote: > On Fri, 21 Dec 2018, Priit Laes wrote: > > > On Fri, Dec 21, 2018 at 08:39:27AM +, Lee Jones wrote: > > > On Tue, 11 Dec 2018, Priit Laes wrote: > > > > > > > From: Olliver Schinagl

Re: [linux-sunxi] Re: [PATCH v2 1/8] mfd: axp20x: name voltage ramping define properly

2018-12-21 Thread Priit Laes
On Fri, Dec 21, 2018 at 08:39:27AM +, Lee Jones wrote: > On Tue, 11 Dec 2018, Priit Laes wrote: > > > From: Olliver Schinagl > > > > The current axp20x names the ramping register 'scal' which probably > > means scaling. Since the register really has

[PATCH] regulator: axp20x: fix set_ramp_delay for AXP209/dcdc2

2018-12-14 Thread Priit Laes
Initial commit of set_ramp_delay feature was missing an assignment which should have populated slew_rate table for dcdc2 regulator. Add it. Fixes: d29f54df8b16 ("regulator: axp20x: add support for set_ramp_delay for AXP209") Signed-off-by: Priit Laes --- drivers/regulator/axp20x-r

Re: Applied "regulator: axp20x: add support for set_ramp_delay for AXP209" to the regulator tree

2018-12-14 Thread Priit Laes
t 0.7 V, > the ramp delay property is properly applied. If however, the bootloader > leaves the power off, no ramp delay is applied when the power is > enabled by the regulator framework. > > Signed-off-by: Olliver Schinagl > Signed-off-by: Priit Laes > Si

Re: [linux-sunxi] [PATCH 2/8] regulator: axp20x: add support for set_ramp_delay for AXP209

2018-12-12 Thread Priit Laes
On Wed, Dec 12, 2018 at 12:14:57AM +1100, Julian Calaby wrote: > Hi Priit and Olliver, > > On Tue, Dec 11, 2018 at 5:42 AM Priit Laes wrote: > > > > From: Olliver Schinagl > > > > The AXP209 supports ramping up voltages on several regulators such as > >

[PATCH v2 0/8] regulator: axp20x: Stop AXP209 from crashing when enabling LDO3

2018-12-11 Thread Priit Laes
This is a second edition of a series that implements voltage ramping for AXP209 DCDC2 and LDO3 regulators and software based soft-start for AXP209 LDO3 regulator. Both features are needed to work around a PMIC shutdown when toggling LDO3 on certain boards with high capacitance on the LDO3 output.

[PATCH v2 2/8] regulator: axp20x: add support for set_ramp_delay for AXP209

2018-12-11 Thread Priit Laes
the power is enabled by the regulator framework. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/regulator/axp20x-regulator.c | 85 +- 1 file changed, 85 insertions(+) diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x

[PATCH v2 7/8] mfd: axp20x: Clean up included headers

2018-12-11 Thread Priit Laes
From: Olliver Schinagl Add the bitops.h header as we need it, alphabetize header order. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-for-MFD-by: Lee Jones --- drivers/mfd/axp20x.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mfd

[PATCH v2 3/8] dt-bindings: mfd: axp20x: add support for regulator-ramp-delay for AXP209

2018-12-11 Thread Priit Laes
the power is enabled by the regulator framework. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/axp20x.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/axp20x.txt b

[PATCH v2 6/8] regulator: dts: enable soft-start and ramp delay for the OLinuXino Lime2

2018-12-11 Thread Priit Laes
regulator. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts index 55c9086..4e1c590

[PATCH v2 8/8] mfd: axp20x: use explicit bit defines

2018-12-11 Thread Priit Laes
From: Olliver Schinagl The AXP20X_OFF define is an actual specific bit, define it as such. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-for-MFD-by: Lee Jones --- drivers/mfd/axp20x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c

[PATCH v2 1/8] mfd: axp20x: name voltage ramping define properly

2018-12-11 Thread Priit Laes
From: Olliver Schinagl The current axp20x names the ramping register 'scal' which probably means scaling. Since the register really has nothing to do with scaling, but really is the voltage ramp we rename it appropriately. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked

[PATCH v2 5/8] dt-bindings: mfd: axp20x: Add software based soft_start for AXP209 LDO3

2018-12-11 Thread Priit Laes
that, we can set the requested voltage as usual. Combining this setting with the regulator-ramp-delay allows LDO3 to come up slowly and staggered, potentially reducing overall inrush current. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- Documentation/devicetree/bindings/mfd

[PATCH v2 4/8] regulator: axp20x: add software based soft_start for AXP209 LDO3

2018-12-11 Thread Priit Laes
as usual. Combining this setting with the regulator-ramp-delay allows LDO3 to enable voltage slowly and staggered, potentially reducing overall inrush current. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/regulator/axp20x-regulator.c | 57 - 1 file

Re: [linux-sunxi] [PATCH 0/8] This is a second edition of a series that implements voltage

2018-12-10 Thread Priit Laes
On Mon, Dec 10, 2018 at 08:42:11PM +0200, Priit Laes wrote: > ramping for AXP209 DCDC2 and LDO3 regulators and software > based soft-start for AXP209 LDO3 regulator. Ugh.. managed to botch this series. I'll send a fixed one today. > > Both features are needed to work around a PMIC s

[PATCH 1/8] mfd: axp20x: name voltage ramping define properly

2018-12-10 Thread Priit Laes
From: Olliver Schinagl The current axp20x names the ramping register 'scal' which probably means scaling. Since the register really has nothing to do with scaling, but really is the voltage ramp we rename it appropriately. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked

[PATCH 5/8] dt-bindings: mfd: axp20x: Add software based soft_start for AXP209 LDO3

2018-12-10 Thread Priit Laes
that, we can set the requested voltage as usual. Combining this setting with the regulator-ramp-delay allows LDO3 to come up slowly and staggered, potentially reducing overall inrush current. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- Documentation/devicetree/bindings/mfd

[PATCH 4/8] regulator: axp20x: add software based soft_start for AXP209 LDO3

2018-12-10 Thread Priit Laes
as usual. Combining this setting with the regulator-ramp-delay allows LDO3 to enable voltage slowly and staggered, potentially reducing overall inrush current. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/regulator/axp20x-regulator.c | 57 - 1 file

[PATCH 2/8] regulator: axp20x: add support for set_ramp_delay for AXP209

2018-12-10 Thread Priit Laes
the power is enabled by the regulator framework. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/regulator/axp20x-regulator.c | 85 +- 1 file changed, 85 insertions(+) diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x

[PATCH 7/8] mfd: axp20x: Clean up included headers

2018-12-10 Thread Priit Laes
From: Olliver Schinagl Add the bitops.h header as we need it, alphabetize header order. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-for-MFD-by: Lee Jones --- drivers/mfd/axp20x.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mfd

[PATCH 6/8] regulator: dts: enable soft-start and ramp delay for the OLinuXino Lime2

2018-12-10 Thread Priit Laes
regulator. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts index 55c9086..4e1c590

[PATCH 8/8] mfd: axp20x: use explicit bit defines

2018-12-10 Thread Priit Laes
From: Olliver Schinagl The AXP20X_OFF define is an actual specific bit, define it as such. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-for-MFD-by: Lee Jones --- drivers/mfd/axp20x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c

[PATCH 0/8] This is a second edition of a series that implements voltage

2018-12-10 Thread Priit Laes
ramping for AXP209 DCDC2 and LDO3 regulators and software based soft-start for AXP209 LDO3 regulator. Both features are needed to work around a PMIC shutdown when toggling LDO3 on certain boards with high capacitance on the LDO3 output. Similar features (or workarounds) have been also

[PATCH 3/8] dt-bindings: mfd: axp20x: add support for regulator-ramp-delay for AXP209

2018-12-10 Thread Priit Laes
the power is enabled by the regulator framework. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/axp20x.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/axp20x.txt b

Re: [PATCH 09/14] regulator: dts: add full voltage range to LDO4 on the Lime2

2018-12-04 Thread Priit Laes
On Wed, Nov 28, 2018 at 10:56:39AM +0100, Maxime Ripard wrote: > On Tue, Nov 27, 2018 at 10:38:52AM +0100, Maxime Ripard wrote: > > On Mon, Nov 26, 2018 at 05:27:50PM +0200, Priit Laes wrote: > > > From: Olliver Schinagl > > > > > > With commit b43776d65a33

Re: [PATCH 09/14] regulator: dts: add full voltage range to LDO4 on the Lime2

2018-12-04 Thread Priit Laes
On Wed, Nov 28, 2018 at 10:56:39AM +0100, Maxime Ripard wrote: > On Tue, Nov 27, 2018 at 10:38:52AM +0100, Maxime Ripard wrote: > > On Mon, Nov 26, 2018 at 05:27:50PM +0200, Priit Laes wrote: > > > From: Olliver Schinagl > > > > > > With commit b43776d65a33

Re: [PATCH 06/14] regulator: axp20x: add software based soft_start for AXP209 LDO3

2018-12-04 Thread Priit Laes
On Tue, Nov 27, 2018 at 10:36:19AM +0100, Maxime Ripard wrote: > On Mon, Nov 26, 2018 at 05:27:47PM +0200, Priit Laes wrote: > > From: Olliver Schinagl > > > > In the past, there have been words on various lists that if LDO3 is > > disabled in u-boot, but enabled in

Re: [PATCH 06/14] regulator: axp20x: add software based soft_start for AXP209 LDO3

2018-12-04 Thread Priit Laes
On Tue, Nov 27, 2018 at 10:36:19AM +0100, Maxime Ripard wrote: > On Mon, Nov 26, 2018 at 05:27:47PM +0200, Priit Laes wrote: > > From: Olliver Schinagl > > > > In the past, there have been words on various lists that if LDO3 is > > disabled in u-boot, but enabled in

[PATCH 04/14] regulator: axp20x: add support for set_ramp_delay for AXP209

2018-11-26 Thread Priit Laes
the power is enabled by the regulator framework. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/regulator/axp20x-regulator.c | 85 +- 1 file changed, 85 insertions(+) diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x

[PATCH 04/14] regulator: axp20x: add support for set_ramp_delay for AXP209

2018-11-26 Thread Priit Laes
the power is enabled by the regulator framework. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/regulator/axp20x-regulator.c | 85 +- 1 file changed, 85 insertions(+) diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x

[PATCH 02/14] regulator: axp20x: name voltage ramping define properly

2018-11-26 Thread Priit Laes
From: Olliver Schinagl The current axp20x names the ramping register 'scal' which probably means scaling. Since the register really has nothing to do with scaling, but really is the voltage ramp we rename it appropriately. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- include

[PATCH 03/14] regulator: core: enable power when setting up constraints

2018-11-26 Thread Priit Laes
ensure all constraints for the regulator are followed. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/regulator/core.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index

[PATCH 02/14] regulator: axp20x: name voltage ramping define properly

2018-11-26 Thread Priit Laes
From: Olliver Schinagl The current axp20x names the ramping register 'scal' which probably means scaling. Since the register really has nothing to do with scaling, but really is the voltage ramp we rename it appropriately. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- include

[PATCH 03/14] regulator: core: enable power when setting up constraints

2018-11-26 Thread Priit Laes
ensure all constraints for the regulator are followed. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/regulator/core.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index

[PATCH 07/14] dt-bindings: mfd: axp20x: Add software based soft_start for AXP209 LDO3

2018-11-26 Thread Priit Laes
that, we can set the requested voltage as usual. Combining this setting with the regulator-ramp-delay allows LDO3 to come up slowly and staggered, potentially reducing overall inrush current. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- Documentation/devicetree/bindings/mfd

[PATCH 01/14] regulator: axp20x: use defines for masks

2018-11-26 Thread Priit Laes
From: Olliver Schinagl The AXP20X driver currently has several masks defined throughout the code. Use nice defines to make them clean and more descriptive. Additionally include bitops.h, which was missing before, and sort headers. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes

[PATCH 07/14] dt-bindings: mfd: axp20x: Add software based soft_start for AXP209 LDO3

2018-11-26 Thread Priit Laes
that, we can set the requested voltage as usual. Combining this setting with the regulator-ramp-delay allows LDO3 to come up slowly and staggered, potentially reducing overall inrush current. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- Documentation/devicetree/bindings/mfd

[PATCH 01/14] regulator: axp20x: use defines for masks

2018-11-26 Thread Priit Laes
From: Olliver Schinagl The AXP20X driver currently has several masks defined throughout the code. Use nice defines to make them clean and more descriptive. Additionally include bitops.h, which was missing before, and sort headers. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes

[PATCH 12/14] mfd: axp20x: use explicit bit defines

2018-11-26 Thread Priit Laes
From: Olliver Schinagl The AXP20X_OFF define is an actual specific bit, define it as such. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/mfd/axp20x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index

[PATCH 12/14] mfd: axp20x: use explicit bit defines

2018-11-26 Thread Priit Laes
From: Olliver Schinagl The AXP20X_OFF define is an actual specific bit, define it as such. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/mfd/axp20x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index

[PATCH 13/14] power: supply: axp20x: add missing include bitops.h

2018-11-26 Thread Priit Laes
From: Olliver Schinagl The axp20x_usb_power driver uses BIT() operations but lacks the include for it. Include the bitops.h header file. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/power/supply/axp20x_usb_power.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 10/14] regulator: dts: set proper lradc vref on OLinuXino Lime2

2018-11-26 Thread Priit Laes
From: Olliver Schinagl The lradc's analog reference voltage is set to 3.0 volt in the hardware. This is more or less set in copper for at least lradc0. Set the property in the dts to ensure the lradc is referenced properly. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- arch

[PATCH 08/14] regulator: dts: enable soft-start and ramp delay for the OLinuXino Lime2

2018-11-26 Thread Priit Laes
regulator. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts index b828677..ffafe97

[PATCH 00/14] regulator: axp20x: Stop AXP209 from crashing when enabling LDO3

2018-11-26 Thread Priit Laes
This series implements voltage ramping for AXP209 DCDC2 and LDO3 regulators and software based soft-start for AXP209 LDO3 regulator. Both features are needed to work around a PMIC shutdown when toggling LDO3 on certain boards with high capacitance on the LDO3 output. Similar features (or

[PATCH 09/14] regulator: dts: add full voltage range to LDO4 on the Lime2

2018-11-26 Thread Priit Laes
ulator-min-microvolt = <330>; regulator-max-microvolt = <330>; }; While doing this the same way results in the same solution currently, we force the hack into the final devicetree rather then having it wrong at the board level. Signed-off-by: Olliver Schinagl Signed-off-by: Pri

[PATCH 11/14] mfd: axp20x: Clean up included headers

2018-11-26 Thread Priit Laes
From: Olliver Schinagl Add the bitops.h header as we need it, alphabetize header order. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/mfd/axp20x.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd

[PATCH 05/14] dt-bindings: mfd: axp20x: add support for regulator-ramp-delay for AXP209

2018-11-26 Thread Priit Laes
the power is enabled by the regulator framework. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- Documentation/devicetree/bindings/mfd/axp20x.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/axp20x.txt b/Documentation/devicetree

[PATCH 13/14] power: supply: axp20x: add missing include bitops.h

2018-11-26 Thread Priit Laes
From: Olliver Schinagl The axp20x_usb_power driver uses BIT() operations but lacks the include for it. Include the bitops.h header file. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/power/supply/axp20x_usb_power.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 10/14] regulator: dts: set proper lradc vref on OLinuXino Lime2

2018-11-26 Thread Priit Laes
From: Olliver Schinagl The lradc's analog reference voltage is set to 3.0 volt in the hardware. This is more or less set in copper for at least lradc0. Set the property in the dts to ensure the lradc is referenced properly. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- arch

[PATCH 08/14] regulator: dts: enable soft-start and ramp delay for the OLinuXino Lime2

2018-11-26 Thread Priit Laes
regulator. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts index b828677..ffafe97

[PATCH 00/14] regulator: axp20x: Stop AXP209 from crashing when enabling LDO3

2018-11-26 Thread Priit Laes
This series implements voltage ramping for AXP209 DCDC2 and LDO3 regulators and software based soft-start for AXP209 LDO3 regulator. Both features are needed to work around a PMIC shutdown when toggling LDO3 on certain boards with high capacitance on the LDO3 output. Similar features (or

[PATCH 09/14] regulator: dts: add full voltage range to LDO4 on the Lime2

2018-11-26 Thread Priit Laes
ulator-min-microvolt = <330>; regulator-max-microvolt = <330>; }; While doing this the same way results in the same solution currently, we force the hack into the final devicetree rather then having it wrong at the board level. Signed-off-by: Olliver Schinagl Signed-off-by: Pri

[PATCH 11/14] mfd: axp20x: Clean up included headers

2018-11-26 Thread Priit Laes
From: Olliver Schinagl Add the bitops.h header as we need it, alphabetize header order. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/mfd/axp20x.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd

[PATCH 05/14] dt-bindings: mfd: axp20x: add support for regulator-ramp-delay for AXP209

2018-11-26 Thread Priit Laes
the power is enabled by the regulator framework. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- Documentation/devicetree/bindings/mfd/axp20x.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/axp20x.txt b/Documentation/devicetree

[PATCH 06/14] regulator: axp20x: add software based soft_start for AXP209 LDO3

2018-11-26 Thread Priit Laes
as usual. Combining this setting with the regulator-ramp-delay allows LDO3 to enable voltage slowly and staggered, potentially reducing overall inrush current. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/regulator/axp20x-regulator.c | 57 - 1 file

[PATCH 06/14] regulator: axp20x: add software based soft_start for AXP209 LDO3

2018-11-26 Thread Priit Laes
as usual. Combining this setting with the regulator-ramp-delay allows LDO3 to enable voltage slowly and staggered, potentially reducing overall inrush current. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/regulator/axp20x-regulator.c | 57 - 1 file

[PATCH 14/14] power: supply: axp288: use the BIT() macro

2018-11-26 Thread Priit Laes
From: Olliver Schinagl Make use of the recommended BIT() macro for bit defines. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/power/supply/axp288_charger.c | 35 ++-- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/drivers/power

[PATCH 14/14] power: supply: axp288: use the BIT() macro

2018-11-26 Thread Priit Laes
From: Olliver Schinagl Make use of the recommended BIT() macro for bit defines. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- drivers/power/supply/axp288_charger.c | 35 ++-- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/drivers/power

Re: [PATCH v3 3/3] b43: Use cordic algorithm from kernel library

2018-11-19 Thread Priit Laes
On Sun, Nov 18, 2018 at 01:35:57PM -0600, Larry Finger wrote: > On 11/18/18 2:23 AM, Priit Laes wrote: > > On Sat, Nov 17, 2018 at 09:31:35PM -0600, Larry Finger wrote: > > > On 11/14/18 12:27 PM, Priit Laes wrote: > > > > Kernel library has a common cordi

Re: [PATCH v3 3/3] b43: Use cordic algorithm from kernel library

2018-11-19 Thread Priit Laes
On Sun, Nov 18, 2018 at 01:35:57PM -0600, Larry Finger wrote: > On 11/18/18 2:23 AM, Priit Laes wrote: > > On Sat, Nov 17, 2018 at 09:31:35PM -0600, Larry Finger wrote: > > > On 11/14/18 12:27 PM, Priit Laes wrote: > > > > Kernel library has a common cordi

Re: [PATCH v3 3/3] b43: Use cordic algorithm from kernel library

2018-11-19 Thread Priit Laes
On Mon, Nov 19, 2018 at 12:43:32PM +0200, Kalle Valo wrote: > Larry Finger writes: > > @@ -1570,10 +1571,10 @@ static u16 b43_nphy_gen_load_samples(struct > b43_wldev *dev, u32 freq, u16 max, > angle = 0; > for (i = 0; i < len; i++) { > -

Re: [PATCH v3 3/3] b43: Use cordic algorithm from kernel library

2018-11-19 Thread Priit Laes
On Mon, Nov 19, 2018 at 12:43:32PM +0200, Kalle Valo wrote: > Larry Finger writes: > > @@ -1570,10 +1571,10 @@ static u16 b43_nphy_gen_load_samples(struct > b43_wldev *dev, u32 freq, u16 max, > angle = 0; > for (i = 0; i < len; i++) { > -

[PATCH v2 0/3] wireless: Use common cordic algorithm for b43 driver

2018-11-05 Thread Priit Laes
is only compile-tested, as I do not have access to the hardware. Changes: - Merged brcmsmac driver patches into single patch - Merged b43 driver patches into single patch Priit Laes (3): lib: cordic: Move cordic macros and defines to header file brcmsmac: Use cordic-related macros from common

[PATCH v2 2/3] brcmsmac: Use cordic-related macros from common cordic library

2018-11-05 Thread Priit Laes
Current driver includes macro that is available from general cordic library. Use that and drop unused duplicate and unneeded internal definitions. Signed-off-by: Priit Laes --- v2: Use single patch instead of change/removal patches. --- drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy

[PATCH v2 1/3] lib: cordic: Move cordic macros and defines to header file

2018-11-05 Thread Priit Laes
Also append CORDIC_ prefix to nonprefixed macros. Signed-off-by: Priit Laes --- include/linux/cordic.h | 9 + lib/cordic.c | 23 +++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/include/linux/cordic.h b/include/linux/cordic.h index

[PATCH v2 0/3] wireless: Use common cordic algorithm for b43 driver

2018-11-05 Thread Priit Laes
is only compile-tested, as I do not have access to the hardware. Changes: - Merged brcmsmac driver patches into single patch - Merged b43 driver patches into single patch Priit Laes (3): lib: cordic: Move cordic macros and defines to header file brcmsmac: Use cordic-related macros from common

  1   2   3   4   5   >