[PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-17 Thread Sascha Hauer
From: Flora Fu This adds support for the PMIC wrapper found on MediaTek MT8135 and MT8173 SoCs. The PMIC wrapper is found on MT6xxx SoCs aswell but these are currently not supported. On MediaTek MT8135, MT8173 and other SoCs the PMIC is connected via SPI. The SPI master interface is not

[PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-17 Thread Sascha Hauer
From: Flora Fu flora...@mediatek.com This adds support for the PMIC wrapper found on MediaTek MT8135 and MT8173 SoCs. The PMIC wrapper is found on MT6xxx SoCs aswell but these are currently not supported. On MediaTek MT8135, MT8173 and other SoCs the PMIC is connected via SPI. The SPI master

Re: [PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-12 Thread Sascha Hauer
On Wed, Mar 11, 2015 at 12:12:31PM +0100, Paul Bolle wrote: > On Tue, 2015-03-10 at 16:22 +0100, Sascha Hauer wrote: > > --- /dev/null > > +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c > > @@ -0,0 +1,978 @@ > > +/* > > + * Copyright (c) 2014 MediaTek Inc. > > + * Author: Flora Fu, MediaTek > > + * >

Re: [PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-12 Thread Sascha Hauer
On Wed, Mar 11, 2015 at 12:12:31PM +0100, Paul Bolle wrote: On Tue, 2015-03-10 at 16:22 +0100, Sascha Hauer wrote: --- /dev/null +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -0,0 +1,978 @@ +/* + * Copyright (c) 2014 MediaTek Inc. + * Author: Flora Fu, MediaTek + * + * This

Re: [PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-11 Thread Paul Bolle
On Tue, 2015-03-10 at 16:22 +0100, Sascha Hauer wrote: > --- /dev/null > +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c > @@ -0,0 +1,978 @@ > +/* > + * Copyright (c) 2014 MediaTek Inc. > + * Author: Flora Fu, MediaTek > + * > + * This program is free software; you can redistribute it and/or modify > +

Re: [PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-11 Thread Paul Bolle
On Tue, 2015-03-10 at 16:22 +0100, Sascha Hauer wrote: --- /dev/null +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -0,0 +1,978 @@ +/* + * Copyright (c) 2014 MediaTek Inc. + * Author: Flora Fu, MediaTek + * + * This program is free software; you can redistribute it and/or modify + * it

Re: [PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-10 Thread Sascha Hauer
On Tue, Mar 10, 2015 at 03:46:11PM +, Russell King - ARM Linux wrote: > On Tue, Mar 10, 2015 at 04:22:34PM +0100, Sascha Hauer wrote: > > + for (i = 0; i < 4; i++) { > > + pwrap_writel(wrp, i, PWRAP_SIDLY); > > + pwrap_read(wrp, PWRAP_DEW_READ_TEST, ); > > +

Re: [PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-10 Thread Russell King - ARM Linux
On Tue, Mar 10, 2015 at 04:22:34PM +0100, Sascha Hauer wrote: > + for (i = 0; i < 4; i++) { > + pwrap_writel(wrp, i, PWRAP_SIDLY); > + pwrap_read(wrp, PWRAP_DEW_READ_TEST, ); > + printk("%s: 0x%04x\n", __func__, rdata); Is this really ready for submission,

[PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-10 Thread Sascha Hauer
From: Flora Fu This adds support for the PMIC wrapper found on MediaTek MT8135 and MT8173 SoCs. The PMIC wrapper is found on MT6xxx SoCs aswell but these are currently not supported. On MediaTek MT8135, MT8173 and other SoCs the PMIC is connected via SPI. The SPI master interface is not

[PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-10 Thread Sascha Hauer
From: Flora Fu flora...@mediatek.com This adds support for the PMIC wrapper found on MediaTek MT8135 and MT8173 SoCs. The PMIC wrapper is found on MT6xxx SoCs aswell but these are currently not supported. On MediaTek MT8135, MT8173 and other SoCs the PMIC is connected via SPI. The SPI master

Re: [PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-10 Thread Russell King - ARM Linux
On Tue, Mar 10, 2015 at 04:22:34PM +0100, Sascha Hauer wrote: + for (i = 0; i 4; i++) { + pwrap_writel(wrp, i, PWRAP_SIDLY); + pwrap_read(wrp, PWRAP_DEW_READ_TEST, rdata); + printk(%s: 0x%04x\n, __func__, rdata); Is this really ready for submission, or

Re: [PATCH 2/2] soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs

2015-03-10 Thread Sascha Hauer
On Tue, Mar 10, 2015 at 03:46:11PM +, Russell King - ARM Linux wrote: On Tue, Mar 10, 2015 at 04:22:34PM +0100, Sascha Hauer wrote: + for (i = 0; i 4; i++) { + pwrap_writel(wrp, i, PWRAP_SIDLY); + pwrap_read(wrp, PWRAP_DEW_READ_TEST, rdata); +