Re: [PATCH v5 08/11] spi: imx: allow only WML aligned transfers to use DMA

2015-12-07 Thread Sascha Hauer
On Tue, Dec 08, 2015 at 01:33:18AM +0100, Anton Bondarenko wrote: > > > On 2015-12-07 10:42, Sascha Hauer wrote: > >On Sat, Dec 05, 2015 at 05:57:06PM +0100, Anton Bondarenko wrote: > >>RX DMA tail data handling doesn't work correctly in many cases with current &

Re: [PATCH v5 08/11] spi: imx: allow only WML aligned transfers to use DMA

2015-12-07 Thread Sascha Hauer
On Sat, Dec 05, 2015 at 05:57:06PM +0100, Anton Bondarenko wrote: > RX DMA tail data handling doesn't work correctly in many cases with current > implementation. It happens because SPI core was setup to generates both RX > and RX TAIL events. And RX TAIL event does not work correctly. > This can be

Re: [PATCH v5 06/11] spi: imx: return error from dma channel request

2015-12-07 Thread Sascha Hauer
On Sat, Dec 05, 2015 at 05:57:04PM +0100, Anton Bondarenko wrote: > On SDMA initialization return exactly the same error, which is > reported by dma_request_slave_channel_reason(), it is a preceding > change to defer SPI DMA initialization, if SDMA module is not yet > available. > > Signed-off-by:

Re: [PATCH v5 05/11] spi: imx: Add support for loopback for ECSPI controllers

2015-12-07 Thread Sascha Hauer
On Sat, Dec 05, 2015 at 05:57:03PM +0100, Anton Bondarenko wrote: > Support for ECSPI loopback for IMX51, IMX53 and IMX6Q using TEST register. > > Signed-off-by: Mohsin Kazmi > Signed-off-by: Anton Bondarenko > --- > drivers/spi/spi-imx.c | 19 --- > 1 file changed, 16 insertion

[PATCH 3/3] ARM64: dts: mt8173: Add thermal/auxadc device nodes

2015-11-30 Thread Sascha Hauer
This adds the thermal controller and auxadc nodes to the Mediatek MT8173 dtsi file. Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi

[PATCH 1/3] dt-bindings: thermal: Add binding document for Mediatek thermal controller

2015-11-30 Thread Sascha Hauer
This adds the device tree binding documentation for the mediatek thermal controller found on Mediatek MT8173 and other SoCs. Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz Acked-by: Rob Herring --- .../bindings/thermal/mediatek-thermal.txt | 43 ++ 1 file

[PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-11-30 Thread Sascha Hauer
using AHB bus accesses, so we need the APMIXEDSYS physical address aswell. Signed-off-by: Sascha Hauer --- drivers/thermal/Kconfig | 8 + drivers/thermal/Makefile | 1 + drivers/thermal/mtk_thermal.c | 623 ++ 3 files changed, 632 insertions

[PATCH v12] Add Mediatek thermal support

2015-11-30 Thread Sascha Hauer
This series adds support for the thermal sensors included in the MT8173 SoC. Currently only basic temperature reading is supported without any interrupt support. The cpufreq driver for MT8173 is currently under review, so there's no real cooling device available in mainline. Until this is availabl

Re: [PATCH v4 1/7] spi: imx: Fix DMA transfer

2015-11-30 Thread Sascha Hauer
On Sat, Nov 28, 2015 at 12:15:59AM +0100, Anton Bondarenko wrote: > RX DMA tail data handling doesn't work correctly in many cases with > current implementation. It happens because SPI core was setup > to generates both RX watermark level and RX DATA TAIL events > incorrectly. SPI transfer triggeri

[PATCH 2/2] dt-bindings: iio: adc: Update mcp342x binding for the mcp3421

2015-11-27 Thread Sascha Hauer
The mcp3421 is the single channel variant of the mcp342x family and can be supported by the mcp342x driver. Signed-off-by: Sascha Hauer Cc: devicet...@vger.kernel.org --- Documentation/devicetree/bindings/iio/adc/mcp3422.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[PATCH] iio: adc: Add mcp3421 support

2015-11-27 Thread Sascha Hauer
This adds support for the mcp3421 adc as part of the mcp342x driver. Not much needs to be done, only add the compatible entry and add the array with the correct number of channels. Sascha Hauer (2): iio: adc: mcp3422: Add

[PATCH 1/2] iio: adc: mcp3422: Add mcp3421 support

2015-11-27 Thread Sascha Hauer
The mcp3421 is the single channel variant of the mcp342x family. Support is straight forward, only the channels array has to be added for this chip. Signed-off-by: Sascha Hauer --- drivers/iio/adc/mcp3422.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/iio/adc/mcp3422.c b

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-11-23 Thread Sascha Hauer
On Tue, Nov 24, 2015 at 02:06:09PM +0800, dawei chien wrote: > Hi Sascha, > > > +static int mtk_thermal_get_calibration_data(struct device *dev, struct > > mtk_thermal *mt) > > +{ > > + struct nvmem_cell *cell; > > + u32 *buf; > > + size_t len; > > + int i, ret; > > + /* Start with defa

[PATCH 3/3] ARM64: dts: mt8173: Add thermal/auxadc device nodes

2015-11-18 Thread Sascha Hauer
This adds the thermal controller and auxadc nodes to the Mediatek MT8173 dtsi file. Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi

[PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-11-18 Thread Sascha Hauer
using AHB bus accesses, so we need the APMIXEDSYS physical address aswell. Signed-off-by: Sascha Hauer --- drivers/thermal/Kconfig | 8 + drivers/thermal/Makefile | 1 + drivers/thermal/mtk_thermal.c | 623 ++ 3 files changed, 632 insertions

[PATCH v11] Add Mediatek thermal support

2015-11-18 Thread Sascha Hauer
9ukZYSeOAXGgYGQWsP0VyZWohvm+bH7FX455eHyX FLd+b3CpUEyxT3yL7ZpuJeiwzpnpsOgbqSu5Djzd5KpgUNnl4QCRAFAv4L9BqKZM L1ugFAhFJFcBIhjhgthws5WLhAY/hEI2gDaesYq2Wu5GgXiqZNIJyp7D1EA9RRpO RQjaXpX7u47O5HgQpfBA =4rKu -END PGP SIGNATURE- commit 53fcb89e372f49218e33889286a1812595e38cf3 Author: Sascha Hauer Date: Tue May 1

[PATCH 1/3] dt-bindings: thermal: Add binding document for Mediatek thermal controller

2015-11-18 Thread Sascha Hauer
This adds the device tree binding documentation for the mediatek thermal controller found on Mediatek MT8173 and other SoCs. Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz Acked-by: Rob Herring --- .../bindings/thermal/mediatek-thermal.txt | 43 ++ 1 file

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-11-18 Thread Sascha Hauer
On Fri, Nov 13, 2015 at 11:26:37AM +, Javi Merino wrote: > On Fri, Nov 13, 2015 at 11:09:12AM +0100, Sascha Hauer wrote: > > On Wed, Nov 11, 2015 at 08:27:47AM +0100, Sascha Hauer wrote: > > > On Tue, Nov 10, 2015 at 10:26:30AM -0800, Eduardo Valentin wrote: > > > &

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-11-18 Thread Sascha Hauer
On Mon, Nov 09, 2015 at 04:39:37PM +0200, Andy Shevchenko wrote: > On Mon, Nov 9, 2015 at 12:13 PM, Sascha Hauer wrote: > > This adds support for the Mediatek thermal controller found on MT8173 > > and likely other SoCs. > > The controller is a bit special. It does not have

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-11-13 Thread Sascha Hauer
On Wed, Nov 11, 2015 at 08:27:47AM +0100, Sascha Hauer wrote: > On Tue, Nov 10, 2015 at 10:26:30AM -0800, Eduardo Valentin wrote: > > On Tue, Nov 10, 2015 at 12:05:54PM +, Javi Merino wrote: > > > On Mon, Nov 09, 2015 at 11:13:32AM +0100,

Re: [PATCH v3 2/7] spi: imx: replace fixed timeout with calculated one

2015-11-11 Thread Sascha Hauer
On Tue, Nov 10, 2015 at 09:20:06PM +0100, Anton Bondarenko wrote: > > > On 05.11.2015 09:47, Sascha Hauer wrote: > >>@@ -890,12 +891,40 @@ static void spi_imx_dma_tx_callback(void *cookie) > >>complete(&spi_imx->dma_tx_completion); > >> } >

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-11-10 Thread Sascha Hauer
On Tue, Nov 10, 2015 at 10:26:30AM -0800, Eduardo Valentin wrote: > On Tue, Nov 10, 2015 at 12:05:54PM +, Javi Merino wrote: > > On Mon, Nov 09, 2015 at 11:13:32AM +0100, Sascha Hauer wrote: > > > > > > + > > > +/* > > > + * The MT8173 thermal

Re: regulator: build warning in regulator_lock_supply()

2015-11-09 Thread Sascha Hauer
t it's not our fault that mutex_lock_nested() doesn't use the variable, so maybe it should rather be a static inline function instead of a define? Sascha -8<--- >From cacf0a5ae54b5255dfd895d32e74611c6cbeee3f Mon Sep

[PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-11-09 Thread Sascha Hauer
using AHB bus accesses, so we need the APMIXEDSYS physical address aswell. Signed-off-by: Sascha Hauer --- drivers/thermal/Kconfig | 8 + drivers/thermal/Makefile | 1 + drivers/thermal/mtk_thermal.c | 619 ++ 3 files changed, 628 insertions

[PATCH 1/3] dt-bindings: thermal: Add binding document for Mediatek thermal controller

2015-11-09 Thread Sascha Hauer
This adds the device tree binding documentation for the mediatek thermal controller found on Mediatek MT8173 and other SoCs. Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- .../bindings/thermal/mediatek-thermal.txt | 43 ++ 1 file changed, 43 insertions

[PATCH v10] Add Mediatek thermal support

2015-11-09 Thread Sascha Hauer
This series adds support for the thermal sensors included in the MT8173 SoC. Currently only basic temperature reading is supported without any interrupt support. The cpufreq driver for MT8173 is currently under review, so there's no real cooling device available in mainline. Until this is availab

[PATCH 3/3] ARM64: dts: mt8173: Add thermal/auxadc device nodes

2015-11-09 Thread Sascha Hauer
This adds the thermal controller and auxadc nodes to the Mediatek MT8173 dtsi file. Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi

Re: [PATCH v3 7/7] spi: imx: defer spi initialization, if DMA engine is pending

2015-11-05 Thread Sascha Hauer
On Sun, Nov 01, 2015 at 03:41:41PM +0100, Anton Bondarenko wrote: > From: Anton Bondarenko > > If SPI device supports DMA mode, but DMA controller is not yet > available due to e.g. a delay in the corresponding kernel module > initialization, retry to initialize SPI driver later on instead of > f

Re: [PATCH v3 6/7] spi: imx: return error from dma channel request

2015-11-05 Thread Sascha Hauer
On Sun, Nov 01, 2015 at 03:41:40PM +0100, Anton Bondarenko wrote: > From: Anton Bondarenko > > On SDMA initialization return exactly the same error, which is > reported by dma_request_slave_channel_reason(), it is a preceding > change to defer SPI DMA initialization, if SDMA module is not yet > a

Re: [PATCH v3 2/7] spi: imx: replace fixed timeout with calculated one

2015-11-05 Thread Sascha Hauer
On Sun, Nov 01, 2015 at 03:41:36PM +0100, Anton Bondarenko wrote: > From: Anton Bondarenko > > Fixed timeout value can fire while transaction is ongoing. This may happen > because there are no strict requirements on SPI transaction duration. > Dynamic timeout value is generated based on SCLK and

Re: [PATCH v3 1/7] spi: imx: Fix DMA transfer

2015-11-05 Thread Sascha Hauer
On Sun, Nov 01, 2015 at 03:41:35PM +0100, Anton Bondarenko wrote: > From: Anton Bondarenko > > RX DMA tail data handling doesn't work correctly in many cases with > current implementation. It happens because SPI core was setup > to generates both RX watermark level and RX DATA TAIL events > incor

Re: [PATCH 2/3] nvmem: mediatek: Add Mediatek EFUSE driver

2015-10-26 Thread Sascha Hauer
On Mon, Oct 26, 2015 at 09:56:24AM +, Srinivas Kandagatla wrote: > >+.val_bits = 32, > >+.reg_stride = 4, > >+}; > >+ > >+static int mtk_efuse_probe(struct platform_device *pdev) > >+{ > >+struct device *dev = &pdev->dev; > >+struct resource *res; > >+struct nvmem_device *nv

Re: [PATCH 1/3] dt-bindings: add document of mediatek efuse driver

2015-10-26 Thread Sascha Hauer
On Mon, Oct 26, 2015 at 09:56:14AM +, Srinivas Kandagatla wrote: > > > On 16/10/15 09:39, andrew-ct.c...@mediatek.com wrote: > >From: Andrew-CT Chen > > > >Add Mediatek MT8173 EFUSE Devicetree binding file > > > >Signed-off-by: Andrew-CT Chen > > Looks good to me, minor comment below. > >

[PATCH v3] regulator: Propagate voltage changes to supply regulators

2015-10-20 Thread Sascha Hauer
Until now changing the voltage of a regulator only ever effected the regulator itself, but never its supplies. It's a common pattern though to put LDO regulators behind switching regulators. The switching regulators efficiently drop the input voltage but have a high ripple on their output. The outp

[PATCH 2/3] regulator: core: Propagate voltage changes to supply regulators

2015-10-20 Thread Sascha Hauer
t decrease the supply voltage after changing the current regulators voltage. Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 54 ++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/co

[PATCH 3/3] ARM: i.MX6 Phytec PFLA02: Add supplies for the SoC internal regulators

2015-10-20 Thread Sascha Hauer
The SoC internal regulators for the CPU and the SoC come from the DA9063 vdd_core and vdd_soc. Add this relationship to the device tree so that the voltage drop on the SoC internal LDO regulators can be minimized. Signed-off-by: Sascha Hauer Acked-by: Mark Brown --- arch/arm/boot/dts/imx6qdl

[PATCH 1/3] regulator: core: Factor out regulator_map_voltage

2015-10-20 Thread Sascha Hauer
_regulator_call_set_voltage has code to translate a minimum/maximum voltage pair into a selector. This code is useful for others aswell, so create a regulator_map_voltage function. Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 35 ++- 1 file changed

Re: [PATCH 5/8] regulator: introduce regulator_get_voltage_floor

2015-10-20 Thread Sascha Hauer
On Fri, Oct 16, 2015 at 05:50:23PM +0100, Mark Brown wrote: > On Tue, Oct 13, 2015 at 12:45:28PM +0200, Sascha Hauer wrote: > > > + num_voltages = regulator_count_voltages(regulator); > > + if (num_voltages < 0) > > + return num_voltages; > > >

Re: [PATCH 0/3] Mediatek EFUSE Support

2015-10-18 Thread Sascha Hauer
one who motivated using nvmem for the efuses and having reviewed the first internal version of this driver, this version looks ok to me. Reviewed-by: Sascha Hauer Sascha -- Pengutronix e.K. | | Industrial Linux Solutions

Re: [RESEND PATCH] pwm-backlight: fix the panel power sequence

2015-10-16 Thread Sascha Hauer
On Fri, Oct 16, 2015 at 09:37:34AM +0800, YH Huang wrote: > In order to match the panel power sequence, disable the enable_gpio > in the probe function. Also, reorder the code in the power_on and > power_off function to match the timing. > @@ -241,8 +242,7 @@ static int pwm_backlight_probe(struct p

Re: [PATCH 3/4] mmc: mediatek: Add tune support

2015-10-14 Thread Sascha Hauer
On Thu, Oct 15, 2015 at 10:46:20AM +0800, Chaotian Jing wrote: > On Wed, 2015-10-14 at 12:05 +0200, Ulf Hansson wrote: > > On 13 October 2015 at 11:37, Chaotian Jing > > wrote: > > > Add CMD19/CMD21 support for EMMC/SD/SDIO tuning > > > Add HS400 mode support > > > > > > Signed-off-by: Chaotian J

Re: [PATCH 3/4] mmc: mediatek: Add tune support

2015-10-14 Thread Sascha Hauer
Hi, On Tue, Oct 13, 2015 at 05:37:57PM +0800, Chaotian Jing wrote: > @@ -1260,6 +1547,16 @@ static int msdc_drv_probe(struct platform_device *pdev) > goto host_free; > } > > + host->src_clk_parent = clk_get_parent(host->src_clk); > + host->hs400_src = devm_clk_get(&pd

Re: [PATCH 5/5] arm64: dts: spi bus dts support multiple devices

2015-10-13 Thread Sascha Hauer
On Wed, Oct 14, 2015 at 11:23:35AM +0800, Leilk Liu wrote: > This patch support multiple devices for MT8173. The subject of this patch and also the above sentence should contain the board name this patch is changing so that the reader knows this is about a single board, and not arm64 in general.

[PATCH 2/8] regulator: core: create unlocked version of regulator_set_voltage

2015-10-13 Thread Sascha Hauer
The unlocked version will be needed when we start propagating voltage changes to the supply regulators. Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 57 +--- 1 file changed, 34 insertions(+), 23 deletions(-) diff --git a/drivers

[PATCH 4/8] regulator: core: introduce function to lock regulators and its supplies

2015-10-13 Thread Sascha Hauer
o optimize the supply voltages. Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index b814451..bd66097 100644 --- a/drivers/regulator/core.c

[PATCH v2] regulator: Propagate voltage changes to supply regulators

2015-10-13 Thread Sascha Hauer
In-Reply-To: Until now changing the voltage of a regulator only ever effected the regulator itself, but never its supplies. It's a common pattern though to put LDO regulators behind switching regulators. The switching regulators efficiently drop the input voltage but have a high ripple on their o

[PATCH 8/8] ARM: i.MX6 Phytec PFLA02: Add supplies for the SoC internal regulators

2015-10-13 Thread Sascha Hauer
The SoC internal regulators for the CPU and the SoC come from the DA9063 vdd_core and vdd_soc. Add this relationship to the device tree so that the voltage drop on the SoC internal LDO regulators can be minimized. Signed-off-by: Sascha Hauer Acked-by: Mark Brown --- arch/arm/boot/dts/imx6qdl

[PATCH 3/8] regulator: introduce min_dropout_uv

2015-10-13 Thread Sascha Hauer
Linear voltage Regulators need a input voltage that is higher than the output voltage. Allow to specify a minimum dropout voltage which will be used later to find the best input voltage for regulators. Signed-off-by: Sascha Hauer --- include/linux/regulator/driver.h | 2 ++ 1 file changed, 2

[PATCH 5/8] regulator: introduce regulator_get_voltage_floor

2015-10-13 Thread Sascha Hauer
minimum voltage a regulator supports which is higher than a given minimum voltage. Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index bd66097

[PATCH 6/8] regulator: core: Propagate voltage changes to supply regulators

2015-10-13 Thread Sascha Hauer
r does not support the desired minimum voltage, but only a higher one. This means we have to figure out the lowest voltage supported by the regulator that is higher than the minimum desired voltage. For this regulator_get_voltage_floor is used. Signed-off-by: Sascha Hauer --- drivers/regulator/c

[PATCH 1/8] regulator: core: create unlocked version of regulator_list_voltage

2015-10-13 Thread Sascha Hauer
The unlocked version will be needed when we start propagating voltage changes to the supply regulators. Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 62 +++- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/drivers

[PATCH 7/8] regulator: i.MX anatop: Allow supply regulator

2015-10-13 Thread Sascha Hauer
The anatop regulators are SoC internal LDO regulators usually supplied by an external PMIC. This patch adds support for specifying the supply from the device tree using the vin-supply property. Signed-off-by: Sascha Hauer --- Documentation/devicetree/bindings/regulator/anatop-regulator.txt | 1

Re: [PATCH 4/6] regulator: core: Propagate voltage changes to supply regulators

2015-10-13 Thread Sascha Hauer
On Mon, Oct 12, 2015 at 03:07:37PM +0100, Mark Brown wrote: > On Mon, Oct 12, 2015 at 01:42:59PM +0200, Sascha Hauer wrote: > > On Fri, Oct 02, 2015 at 06:32:56PM +0100, Mark Brown wrote: > > > > One change I think we need here is only doing the propagation if either >

Re: [PATCH 00/37] ARM: dts: Fix fixed regulators enable GPIO polarity

2015-10-12 Thread Sascha Hauer
> This patch series fixes those issues in all the DT sources after locating the > errors using the following script. Nice. For the i.MX boards: Reviewed-by: Sascha Hauer Sascha -- Pengutronix e.K. | | Industrial Linux Solutions

Re: [PATCH 4/6] regulator: core: Propagate voltage changes to supply regulators

2015-10-12 Thread Sascha Hauer
Hi Mark, On Fri, Oct 02, 2015 at 06:32:56PM +0100, Mark Brown wrote: > On Wed, Sep 30, 2015 at 04:05:44PM +0200, Sascha Hauer wrote: > > > A new min_dropout_uv field is added to struct regulator_desc. Regulators > > can specify the minimun dropout voltage they need for proper

Re: [PATCH] regulator: core: mark lock functions as __maybe_unused

2015-10-07 Thread Sascha Hauer
On Wed, Oct 07, 2015 at 11:24:07AM +0100, Mark Brown wrote: > On Wed, Oct 07, 2015 at 12:12:09PM +0200, Arnd Bergmann wrote: > > > The best way to avoid these would be to add the code that will > > use these functions. If that still takes a while, this patch > > at least shuts up the compiler by m

Re: [PATCH] regulator: core: Handle probe deferral from DT when resolving supplies

2015-09-30 Thread Sascha Hauer
fic issue. > > Reported-by: Sascha Hauer > Signed-off-by: Mark Brown > --- > > Tested with my famous "I need to leave the house right now so haven't > even tried building this yet" test plan - please let me know how this > works for you. Yes, this works as

Re: [PATCH 1/6] Revert "regulator: core: Handle full constraints systems when resolving supplies"

2015-09-30 Thread Sascha Hauer
On Wed, Sep 30, 2015 at 07:02:13PM +0100, Mark Brown wrote: > On Wed, Sep 30, 2015 at 03:57:49PM +0200, Sascha Hauer wrote: > > This reverts commit 9f7e25edb1575a6d2363dc003f9cc09d840657e2. > > > > When a regulator A is registered and is supplied by regulator B which is &

[RFC] regulator: Propagate voltage changes to supply regulators

2015-09-30 Thread Sascha Hauer
Until now changing the voltage of a regulator only ever effected the regulator itself, but never its supplies. It's a common pattern though to put LDO regulators behind switching regulators. The switching regulators efficiently drop the input voltage but have a high ripple on their output. The outp

[PATCH 4/6] regulator: core: Propagate voltage changes to supply regulators

2015-09-30 Thread Sascha Hauer
igned-off-by: Sascha Hauer --- drivers/regulator/core.c | 136 --- include/linux/regulator/driver.h | 2 + 2 files changed, 116 insertions(+), 22 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index d148545..36da924 1

Re: [RFC] regulator: Propagate voltage changes to supply regulators

2015-09-30 Thread Sascha Hauer
Please do not answer to this series, it contains a wrong address for the linux-arm-kernel list. I just resent this with the correct addres. Sorry for the noise. Sascha On Wed, Sep 30, 2015 at 03:57:48PM +0200, Sascha Hauer wrote: > Until now changing the voltage of a regulator only ever effec

[PATCH 3/6] regulator: core: create unlocked version of regulator_list_voltage

2015-09-30 Thread Sascha Hauer
The unlocked version will be needed when we start propagating voltage changes to the supply regulators. Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 62 +++- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/drivers

[PATCH 5/6] regulator: i.MX anatop: Allow supply regulator

2015-09-30 Thread Sascha Hauer
The anatop regulators are SoC internal LDO regulators usually supplied by an external PMIC. This patch adds support for specifying the supply from the device tree using the vin-supply property. Signed-off-by: Sascha Hauer --- Documentation/devicetree/bindings/regulator/anatop-regulator.txt | 1

[PATCH 6/6] ARM: i.MX6 Phytec PFLA02: Add supplies for the SoC internal regulators

2015-09-30 Thread Sascha Hauer
The SoC internal regulators for the CPU and the SoC come from the DA9063 vdd_core and vdd_soc. Add this relationship to the device tree so that the voltage drop on the SoC internal LDO regulators can be minimized. Signed-off-by: Sascha Hauer --- arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 12

[PATCH 2/6] regulator: core: introduce function to lock regulators and its supplies

2015-09-30 Thread Sascha Hauer
o optimize the supply voltages. Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index bd9db70..e5de3d9 100644 --- a/drivers/regulator/core.c

[PATCH 1/6] Revert "regulator: core: Handle full constraints systems when resolving supplies"

2015-09-30 Thread Sascha Hauer
as done without this patch. Of course reverting this patch brings back the issue it fixed, so this is not a solution, but what is the correct solution? Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers

[RFC] regulator: Propagate voltage changes to supply regulators

2015-09-30 Thread Sascha Hauer
Until now changing the voltage of a regulator only ever effected the regulator itself, but never its supplies. It's a common pattern though to put LDO regulators behind switching regulators. The switching regulators efficiently drop the input voltage but have a high ripple on their output. The outp

[PATCH 5/6] regulator: i.MX anatop: Allow supply regulator

2015-09-30 Thread Sascha Hauer
The anatop regulators are SoC internal LDO regulators usually supplied by an external PMIC. This patch adds support for specifying the supply from the device tree using the vin-supply property. Signed-off-by: Sascha Hauer --- Documentation/devicetree/bindings/regulator/anatop-regulator.txt | 1

[PATCH 4/6] regulator: core: Propagate voltage changes to supply regulators

2015-09-30 Thread Sascha Hauer
igned-off-by: Sascha Hauer --- drivers/regulator/core.c | 136 --- include/linux/regulator/driver.h | 2 + 2 files changed, 116 insertions(+), 22 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index d148545..36da924 1

[PATCH 2/6] regulator: core: introduce function to lock regulators and its supplies

2015-09-30 Thread Sascha Hauer
o optimize the supply voltages. Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index bd9db70..e5de3d9 100644 --- a/drivers/regulator/core.c

[PATCH 1/6] Revert "regulator: core: Handle full constraints systems when resolving supplies"

2015-09-30 Thread Sascha Hauer
as done without this patch. Of course reverting this patch brings back the issue it fixed, so this is not a solution, but what is the correct solution? Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH 3/6] regulator: core: create unlocked version of regulator_list_voltage

2015-09-30 Thread Sascha Hauer
The unlocked version will be needed when we start propagating voltage changes to the supply regulators. Signed-off-by: Sascha Hauer --- drivers/regulator/core.c | 62 +++- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/drivers

[PATCH 6/6] ARM: i.MX6 Phytec PFLA02: Add supplies for the SoC internal regulators

2015-09-30 Thread Sascha Hauer
The SoC internal regulators for the CPU and the SoC come from the DA9063 vdd_core and vdd_soc. Add this relationship to the device tree so that the voltage drop on the SoC internal LDO regulators can be minimized. Signed-off-by: Sascha Hauer --- arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 12

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-09-30 Thread Sascha Hauer
Hi Punit, On Wed, Sep 30, 2015 at 10:36:14AM +0100, Punit Agrawal wrote: > Hi Sascha, > > Re-posting a comment from v7. Perhaps you missed it... Uh, sorry. In fact I didn't miss it and I thought I have answered it. Appearantly I haven't. > > + struct mtk_thermal *mt = bank->mt; > > + int te

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-09-29 Thread Sascha Hauer
Hi Vladimir, On Wed, Sep 23, 2015 at 09:31:12PM +0300, Vladimir Zapolskiy wrote: > Hi Sascha, > > in case of OF_DYNAMIC enabled of_parse_phandle() requires of_node_put(), > which is fine to place right here. > > > + if (auxadc_phys_base == OF_BAD_ADDR) { > > + dev_err(&pdev->dev, "Ca

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-09-29 Thread Sascha Hauer
Hi Eduardo, On Tue, Sep 29, 2015 at 04:04:40PM -0700, Eduardo Valentin wrote: > On Wed, Sep 23, 2015 at 03:37:42PM +0200, Sascha Hauer wrote: > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include >

Re: Voltage setting on chained regulators, how?

2015-09-29 Thread Sascha Hauer
On Fri, Sep 25, 2015 at 09:47:26AM -0700, Mark Brown wrote: > On Fri, Sep 25, 2015 at 11:07:24AM +0200, Sascha Hauer wrote: > > > Any idea how such a scenario could be implemented? The regulator > > framework already has some idea of supply regulators, but it only takes > &

Voltage setting on chained regulators, how?

2015-09-25 Thread Sascha Hauer
Hi, On i.MX6 we have the situation that the CPU is supplied by a SoC internal linear regulator which in turn is supplied by an external switching regulator: ---> Switching regulator ---> LDO ---> CPU For energy efficiency reasons we want to minimize the dropout voltage on the LDO. Any idea how

Re: [PATCH] ASoC: mediatek: Increase periods_min in capture

2015-09-24 Thread Sascha Hauer
On Thu, Sep 24, 2015 at 10:11:53AM -0700, Mark Brown wrote: > On Thu, Sep 24, 2015 at 09:39:49AM +0800, Koro Chen wrote: > > > OK thank you, now I see the patch is already in the tree, but I am sure > > I didn't get the mail titled "Applied xxx to the asoc tree", so I didn't > > know the patch sta

Re: [PATCH v2] soc: mediatek: Move the initial setting of pmic wrap interrupt before requesting irq.

2015-09-23 Thread Sascha Hauer
wrap > is uninitialized. > > Signed-off-by: Henry Chen Acked-by: Sascha Hauer > --- > Chandes since v1: > Modify the commit log and code comments to make it easy to understand > the issue and solution. > --- > drivers/soc/mediatek/mtk-pmic-wrap.c | 10 ++ > 1 fil

[PATCH 1/3] dt-bindings: thermal: Add binding document for Mediatek thermal controller

2015-09-23 Thread Sascha Hauer
This adds the device tree binding documentation for the mediatek thermal controller found on Mediatek MT8173 and other SoCs. Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- .../bindings/thermal/mediatek-thermal.txt | 38 ++ include/dt-bindings/thermal

[PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-09-23 Thread Sascha Hauer
using AHB bus accesses, so we need the APMIXEDSYS physical address aswell. Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- drivers/thermal/Kconfig | 8 + drivers/thermal/Makefile | 1 + drivers/thermal/mtk_thermal.c | 537 ++ 3

[PATCH v9] Add Mediatek thermal support

2015-09-23 Thread Sascha Hauer
CNVAcdkMsEwpNWT1lf8+18ng brXWYXcDCniwr1Ye31NuakGdkWLzSolbpmWS5ValUtA/K9flfZBcnqJ5obF8ooD1 cMnyq4FMpYozhgRYoPVD3pooIBl+yqKNmNtphBftyozZKgPfdOjhPkoCx0hlpBuH 270RN+jva0dOJWk+FXGR =bcx6 -END PGP SIGNATURE- commit de42d22304311e6d5d711b85e66a281fe1035ba2 Author: Sascha Hauer Date: Tue May 12

[PATCH 3/3] ARM64: dts: mt8173: Add thermal/auxadc device nodes

2015-09-23 Thread Sascha Hauer
Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index d18ee42..3b18f37 100644 --- a/arch

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-09-22 Thread Sascha Hauer
On Tue, Sep 22, 2015 at 03:30:47PM +0800, Daniel Kurtz wrote: > On Mon, Sep 14, 2015 at 3:32 PM, Daniel Kurtz wrote: > > > > Hi Sascha, > > > > On Mon, Aug 31, 2015 at 3:34 PM, Sascha Hauer > > wrote: > > > This adds support for the Mediatek thermal c

Re: [PATCH 0/5] New Atmel PIO4 pinctrl/gpio driver

2015-09-15 Thread Sascha Hauer
Hi Ludovic, On Mon, Sep 07, 2015 at 03:12:10PM +0200, Ludovic Desroches wrote: > Hi Sascha, > > Any comments about this version? Maybe you missed it since you answered > me on the RFC version. Of course I'll do the changes you requested for > the next version (remove gpio_request_*() stuff and ad

Re: [PATCH 2/5] pinctrl: dt-binding: Add DT binding documentation for Atmel PIO4

2015-09-15 Thread Sascha Hauer
nc.h file to get the > +right representation of the pin. > + > +Optional properties: > +- GENERIC_PINCONFIG: generic pinconfig options to use, bias-disable, > +bias-pull-down, bias-pull-up, drive-open-drain, input-schmitt-enable, > +input-debounce, output-low, output-high

Re: [PATCH 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-09-08 Thread Sascha Hauer
On Tue, Sep 08, 2015 at 05:49:55PM +0800, Bayi Cheng wrote: > add spi nor flash driver for mediatek controller > > Signed-off-by: Bayi Cheng > --- > drivers/mtd/spi-nor/Kconfig | 7 + > drivers/mtd/spi-nor/Makefile | 1 + > drivers/mtd/spi-nor/mtk_nor.c | 533 > ++

Re: [PATCH 1/3] doc: dt: add documentation for Mediatek spi-nor controller

2015-09-08 Thread Sascha Hauer
On Tue, Sep 08, 2015 at 05:49:54PM +0800, Bayi Cheng wrote: > Add device tree binding documentation for serial flash with > Mediatek serial flash controller > > Signed-off-by: Bayi Cheng > --- > Documentation/devicetree/bindings/mtd/mtk_nor.txt | 25 > +++ > 1 file changed,

Re: [PATCH] soc: mediatek: Move the initial setting of pmic wrap interrupt before requesting irq.

2015-09-06 Thread Sascha Hauer
On Fri, Sep 04, 2015 at 12:05:12PM +0800, Henry Chen wrote: > Seperate the initialization of pmic wrap interrupt from pmic wrap init to > make sure setting is correct before requesting irq. It seems the problem this patch solves is the missing watchdog initialization when the pwrap is already ini

Re: [PATCH 1/3] dt-bindings: thermal: Add binding document for Mediatek thermal controller

2015-08-31 Thread Sascha Hauer
On Mon, Aug 31, 2015 at 09:34:04AM +0200, Sascha Hauer wrote: > Signed-off-by: Sascha Hauer > Reviewed-by: Daniel Kurtz Uh, still forgot the commit log. Will add something like: This adds the device tree binding documentation for the mediatek thermal controller found on Mediatek MT81

[PATCH v8] Add Mediatek thermal support

2015-08-31 Thread Sascha Hauer
This series adds support for the thermal sensors included in the MT8173 SoC. Currently only basic temperature reading is supported without any interrupt support. The cpufreq driver for MT8173 is currently under review, so there's no real cooling device available in mainline. Until this is availabl

[PATCH 1/3] dt-bindings: thermal: Add binding document for Mediatek thermal controller

2015-08-31 Thread Sascha Hauer
Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- .../bindings/thermal/mediatek-thermal.txt | 38 ++ include/dt-bindings/thermal/mt8173.h | 13 2 files changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-08-31 Thread Sascha Hauer
using AHB bus accesses, so we need the APMIXEDSYS physical address aswell. Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- drivers/thermal/Kconfig | 8 + drivers/thermal/Makefile | 1 + drivers/thermal/mtk_thermal.c | 537 ++ 3

[PATCH 3/3] ARM64: dts: mt8173: Add thermal/auxadc device nodes

2015-08-31 Thread Sascha Hauer
Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 27237a1..ddacb86 100644 --- a/arch

Re: [PATCH 1/3] dt-bindings: thermal: Add binding document for Mediatek thermal controller

2015-08-31 Thread Sascha Hauer
vice tree maintainers. I've added a few folks here. Please keep > > them in the loop for future postings. > > > > Sascha Hauer writes: > > > >> Signed-off-by: Sascha Hauer > >> Reviewed-by: Daniel Kurtz > > > > P

[PATCH v7] Add Mediatek thermal support

2015-08-26 Thread Sascha Hauer
This series adds support for the thermal sensors included in the MT8173 SoC. Currently only basic temperature reading is supported without any interrupt support. The cpufreq driver for MT8173 is currently under review, so there's no real cooling device available in mainline. Until this is availab

[PATCH 2/3] thermal: Add Mediatek thermal controller support

2015-08-26 Thread Sascha Hauer
using AHB bus accesses, so we need the APMIXEDSYS physical address aswell. Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- drivers/thermal/Kconfig | 8 + drivers/thermal/Makefile | 1 + drivers/thermal/mtk_thermal.c | 528 ++ 3

[PATCH 3/3] ARM64: dts: mt8173: Add thermal/auxadc device nodes

2015-08-26 Thread Sascha Hauer
Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 27237a1..ddacb86 100644 --- a/arch

[PATCH 1/3] dt-bindings: thermal: Add binding document for Mediatek thermal controller

2015-08-26 Thread Sascha Hauer
Signed-off-by: Sascha Hauer Reviewed-by: Daniel Kurtz --- .../bindings/thermal/mediatek-thermal.txt | 38 ++ include/dt-bindings/thermal/mt8173.h | 13 2 files changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings

<    1   2   3   4   5   6   7   8   9   10   >