[PATCH RESEND v9 5/5] rtc: Add driver for Maxim 77802 PMIC Real-Time-Clock

2014-09-12 Thread Javier Martinez Canillas
The MAX7802 PMIC has a Real-Time-Clock (RTC) with two alarms. This patch adds support for the RTC and is based on a driver added by Simon Glass to the Chrome OS kernel 3.8 tree. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Reviewed-by: Krzysztof Kozlowski k.kozlow

[PATCH RESEND v9 0/5] Add Maxim 77802 RTC support

2014-09-12 Thread Javier Martinez Canillas
and today's linux-next (20140818). Doug Anderson (1): rtc: max77686: Allow the max77686 rtc to wakeup the system Javier Martinez Canillas (4): rtc: max77686: Remove dead code for SMPL and WTSR. rtc: max77686: Fail to probe if no RTC regmap irqchip is set rtc: max77686: Remove unneded info log

[PATCH RESEND v9 3/5] rtc: max77686: Fail to probe if no RTC regmap irqchip is set

2014-09-12 Thread Javier Martinez Canillas
instead of getting an OOPS. Reported-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- Fixes the issue reported by Krzystof in: https://lkml.org/lkml/2014/8/8/121 --- drivers/rtc/rtc-max77686.c | 6 ++ 1 file changed, 6

[PATCH RESEND v9 2/5] rtc: max77686: Remove dead code for SMPL and WTSR.

2014-09-12 Thread Javier Martinez Canillas
the driver was original merged in commit fca1dd03 (rtc: max77686: add Maxim 77686 driver). So, since this code has never been built, let's just remove it. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/rtc

Re: SPI and module auto-loading

2014-09-12 Thread Javier Martinez Canillas
On 09/11/2014 09:33 PM, Mark Brown wrote: On Thu, Sep 11, 2014 at 03:03:50PM +0200, Javier Martinez Canillas wrote: This can be easily worked around (and probably why it never was an issue) if the OF and SPI tables are kept in sync but I don't know if that is a hard requirement for all use

Re: [PATCH v3 0/7] Add max77802 support for Peach boards

2014-09-12 Thread Javier Martinez Canillas
Hello Kukjin, On 09/12/2014 02:26 PM, kg...@kernel.org wrote: This is a third version of th series that adds max77802 support for the Peach Pit and Pi boards. The series also have all the pending patches that were posted but depended on this support. I've picked all the patches I found and

Re: [PATCH RESEND v9 1/5] rtc: max77686: Allow the max77686 rtc to wakeup the system

2014-09-12 Thread Javier Martinez Canillas
Hello Doug, On 09/12/2014 05:12 PM, Doug Anderson wrote: Hi, On Fri, Sep 12, 2014 at 1:17 AM, Javier Martinez Canillas javier.marti...@collabora.co.uk wrote: From: Doug Anderson diand...@chromium.org The max77686 includes an RTC that keeps power during suspend. It's convenient

Re: [PATCH RESEND 0/8] i2c: Relax mandatory I2C ID table passing

2014-09-12 Thread Javier Martinez Canillas
[adding Sjoerd as cc who was the one that raised the module auto-loading issue] Hello, On Fri, Sep 12, 2014 at 3:46 PM, Wolfram Sang w...@the-dreams.de wrote: Placing this firmly back on your plate. I truly hope we don't miss another merge-window. This patch-set has the support of some

Re: [PATCH RESEND v9 1/5] rtc: max77686: Allow the max77686 rtc to wakeup the system

2014-09-15 Thread Javier Martinez Canillas
Hello Andrew, Thanks a lot for taking a look to these patches! On 09/13/2014 12:05 AM, Andrew Morton wrote: On Fri, 12 Sep 2014 10:17:39 +0200 Javier Martinez Canillas javier.marti...@collabora.co.uk wrote: From: Doug Anderson diand...@chromium.org The max77686 includes an RTC

Re: [PATCH RESEND v9 5/5] rtc: Add driver for Maxim 77802 PMIC Real-Time-Clock

2014-09-15 Thread Javier Martinez Canillas
Hello Andrew, On 09/13/2014 12:13 AM, Andrew Morton wrote: On Fri, 12 Sep 2014 10:17:43 +0200 Javier Martinez Canillas javier.marti...@collabora.co.uk wrote: The MAX7802 PMIC has a Real-Time-Clock (RTC) with two alarms. This patch adds support for the RTC and is based on a driver added

Re: [PATCH] ARM: dts: Add Maxim 77693 PMIC to the Trats2 board

2014-09-15 Thread Javier Martinez Canillas
; + }; + }; + }; + }; + mmc@1255 { num-slots = 1; supports-highspeed; Once those two issues are addressed, feel free to add my Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Best regards, Javier

Re: [PATCH v9 1/2] ARM: EXYNOS: Add platform driver support for Exynos PMU

2014-10-07 Thread Javier Martinez Canillas
-to-RAM is working on my Exynos5420 Peach Pit Chromebook, so: Tested-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Best regards, Javier -- 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

Re: [PATCH v9 2/2] ARM: EXYNOS: Move PMU specific definitions from common.h

2014-10-07 Thread Javier Martinez Canillas
/suspend.c|1 + 5 files changed, 45 insertions(+), 18 deletions(-) create mode 100644 arch/arm/mach-exynos/exynos-pmu.h Tested-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Best regards, Javier -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [PATCH] regulator: rk808: Add support setting suspend voltage

2014-10-08 Thread Javier Martinez Canillas
Hello Doug, On 10/07/2014 07:48 PM, Doug Anderson wrote: I don't have all the right patches to test this right now. Hopefully you can point me at what we're using right now. I'd expect that this will need the patches that Chanwoo and Javier are working on, so I've added them to this.

[PATCH 3/5] regulator: dt-bindings: Add regulator-initial-mode support

2014-10-08 Thread Javier Martinez Canillas
to the ones supported by each hardware according to their data-sheet. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- Documentation/devicetree/bindings/regulator/regulator.txt | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH 2/5] regulator: dt-bindings: Add DT include for constants

2014-10-08 Thread Javier Martinez Canillas
Device Tree source files can set a regulator operating mode to be used as an initial default. Instead of using magic numbers, a header file can be included that provides macro definitions for the opmodes. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- include/dt

[PATCH 5/5] ARM: dts: Add initial regulator mode on exynos Peach boards

2014-10-08 Thread Javier Martinez Canillas
-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 26 ++ arch/arm/boot/dts/exynos5800-peach-pi.dts | 26 ++ 2 files changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420

[PATCH 1/5] regulator: of: Add regulator-initial-mode parse support

2014-10-08 Thread Javier Martinez Canillas
Martinez Canillas javier.marti...@collabora.co.uk --- drivers/regulator/of_regulator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regulator.c index 18236be..a076b7f 100644 --- a/drivers/regulator/of_regulator.c +++ b/drivers

[PATCH 4/5] regulator: max77802: Add regulator operating mode set support

2014-10-08 Thread Javier Martinez Canillas
data-sheet. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- drivers/regulator/max77802.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/regulator/max77802.c b/drivers/regulator/max77802.c index d89792b..04ed5cf 100644

[PATCH 0/5] regulator: Add support for initial operating modes

2014-10-08 Thread Javier Martinez Canillas
are complementary to solve the same general issue and to avoid merge conflicts. But I can resend to just base on top of the regulator for-next branch if that is easier for you. The series is composed of the following patches: Javier Martinez Canillas (5): regulator: of: Add regulator-initial-mode parse

Re: [PATCH 1/5] regulator: of: Add regulator-initial-mode parse support

2014-10-08 Thread Javier Martinez Canillas
Hello Mark, Thanks for the feedback. On 10/08/2014 04:25 PM, Mark Brown wrote: On Wed, Oct 08, 2014 at 03:44:03PM +0200, Javier Martinez Canillas wrote: But currently there isn't a way to do the same with DeviceTrees. Argubly the operating modes are Linux-specific so that information should

Re: [PATCH 3/5] regulator: dt-bindings: Add regulator-initial-mode support

2014-10-08 Thread Javier Martinez Canillas
On 10/08/2014 04:34 PM, Mark Brown wrote: On Wed, Oct 08, 2014 at 03:44:05PM +0200, Javier Martinez Canillas wrote: +- regulator-initial-mode: initial regulator operating mode. One of following: +1: REGULATOR_MODE_FAST- Regulator can handle fast changes. +2

Re: [PATCH 4/5] regulator: max77802: Add regulator operating mode set support

2014-10-08 Thread Javier Martinez Canillas
On 10/08/2014 04:36 PM, Mark Brown wrote: On Wed, Oct 08, 2014 at 03:44:06PM +0200, Javier Martinez Canillas wrote: Add a function handler for the struct regulator_ops .set_mode so an operating mode (opmode) can be set for regulators. Regulators opmode are defined using the generic

Re: [PATCH 5/5] ARM: dts: Add initial regulator mode on exynos Peach boards

2014-10-08 Thread Javier Martinez Canillas
On 10/08/2014 04:56 PM, Mark Brown wrote: On Wed, Oct 08, 2014 at 03:44:07PM +0200, Javier Martinez Canillas wrote: The regulator core now has support to choose a default initial operating mode for regulators from DT. Set the initial opmode for the max77802 PMIC regulators with the same

Re: [PATCH 1/5] regulator: of: Add regulator-initial-mode parse support

2014-10-08 Thread Javier Martinez Canillas
On 10/08/2014 05:12 PM, Mark Brown wrote: On Wed, Oct 08, 2014 at 04:38:53PM +0200, Javier Martinez Canillas wrote: On 10/08/2014 04:25 PM, Mark Brown wrote: That doesn't mean that the definition of those modes is something we can sensibly provide in generic code, especially

Re: [PATCH 5/5] ARM: dts: Add initial regulator mode on exynos Peach boards

2014-10-09 Thread Javier Martinez Canillas
Hello Mark, On 10/08/2014 09:51 PM, Mark Brown wrote: On Wed, Oct 08, 2014 at 06:25:00PM +0200, Javier Martinez Canillas What this series tried to solve is when you have to set a opmode on boot to change how the physical suspend is managed by the PMIC. Think about the consequences of what's

Re: [PATCH 3/5] regulator: dt-bindings: Add regulator-initial-mode support

2014-10-09 Thread Javier Martinez Canillas
Hello Krzysztof, Thanks a lot for your feedback. On 10/09/2014 10:45 AM, Krzysztof Kozlowski wrote: On śro, 2014-10-08 at 15:44 +0200, Javier Martinez Canillas wrote: --- a/Documentation/devicetree/bindings/regulator/regulator.txt +++ b/Documentation/devicetree/bindings/regulator

Re: [PATCH 1/5] regulator: of: Add regulator-initial-mode parse support

2014-10-09 Thread Javier Martinez Canillas
Hello Mark, On 10/09/2014 12:27 PM, Mark Rutland wrote: Well, is not fairly obvious to me. One can also say the opposite, why the kernel is documenting a DT binding that is not (currently) implemented? Checkpatch will complain regarding undocumented bindings, so from a pragmatic point of

[PATCH 1/1] Documentation: dt-bindings: Explain order in patch series

2014-10-09 Thread Javier Martinez Canillas
easier. Document this convention since it may not be obvious. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- Documentation/devicetree/bindings/submitting-patches.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/submitting

[PATCH v2 1/1] Documentation: dt-bindings: Explain order in patch series

2014-10-09 Thread Javier Martinez Canillas
easier. Document this convention since it may not be obvious. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- Changes since v1: - Small typo error, sorry for the noise. Documentation/devicetree/bindings/submitting-patches.txt | 3 +++ 1 file changed, 3 insertions

[PATCH 1/1] ARM: exynos_defconfig: re-enable USB gadget and max77802 options

2014-10-09 Thread Javier Martinez Canillas
. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- arch/arm/configs/exynos_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index b14d8c3..a36fe1c 100644 --- a/arch/arm/configs

Re: linux-next: build failure after merge of the arm-soc tree

2014-10-03 Thread Javier Martinez Canillas
Hello Arnd, Stephen, On 10/02/2014 04:32 PM, Arnd Bergmann wrote: On Thursday 02 October 2014 11:37:42 Stephen Rothwell wrote: After merging the arm-soc tree, today's linux-next build (arm multi_v7_defconfig) failed like this: arch/arm/boot/dts/exynos5250-snow.dts:13:46: fatal error:

Re: linux-next: build failure after merge of the arm-soc tree

2014-10-03 Thread Javier Martinez Canillas
Hello Russell, On 10/03/2014 09:56 AM, Russell King - ARM Linux wrote: On Fri, Oct 03, 2014 at 08:50:09AM +0200, Javier Martinez Canillas wrote: Hello Arnd, Stephen, I'm so sorry about the breakage, when I posted this patch I mentioned that it was meant for the 3.18-rc cycle once 3.18-rc1

[PATCH 1/1] ARM: exynos_defconfig: Enable max77802 rtc and clock drivers

2014-10-27 Thread Javier Martinez Canillas
Exynos boards. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Acked-by: Kevin Hilman khil...@linaro.org Tested-by: Kevin Hilman khil...@linaro.org --- This patch supersedes [0] since commit ARM: exynos_defconfig: savedefconfig is not present in linux-next anymore which

Re: [PATCH v4 2/3] regulator: max77686: Implement suspend disable for some LDOs

2014-10-27 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/27/2014 10:44 AM, Krzysztof Kozlowski wrote: Some LDOs of Maxim 77686 PMIC support disabling during system suspend (LDO{2,6,7,8,10,11,12,14,15,16}). This was already implemented as part of set_suspend_mode function. In that case the mode was one of: - disable, -

Re: [PATCH v4 2/3] regulator: max77686: Implement suspend disable for some LDOs

2014-10-27 Thread Javier Martinez Canillas
On 10/27/2014 11:27 AM, Krzysztof Kozlowski wrote: Storing opmode in non-shifted form is intuitive also to me. That's way I slipped the bug in previous version. Great. I'll change this to non-shifted opmode. The patch will grow bigger but the code should be more readable. Maybe split

Re: [patch v2] regulator: max77802: fix a test in max77802_set_suspend_mode()

2014-10-27 Thread Javier Martinez Canillas
Hello Dan, On 10/27/2014 11:45 AM, Dan Carpenter wrote: The original test triggers a static checker warning. Javier Martinez Canillas says that the ! is a typo and should be removed. Fixes: 2e0eaa1aa008 ('regulator: max77802: Add set suspend mode for BUCKs and simplify code') Signed-off

Re: [PATCH v5 2/4] regulator: max77686: Store opmode non-shifted

2014-10-27 Thread Javier Martinez Canillas
. Additionally this will allow adding support LDOs to the existing set_suspend_disable function. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Suggested-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- drivers/regulator/max77686.c | 49

Re: [PATCH v5 3/4] regulator: max77686: Add suspend disable for some LDOs

2014-10-27 Thread Javier Martinez Canillas
.c +++ b/drivers/regulator/max77686.c Looks good to me. Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Best regards, Javier -- 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

Re: [PATCH 1/8] regulator: max77802: Remove support for board files

2014-10-27 Thread Javier Martinez Canillas
Martinez Canillas javier.marti...@collabora.co.uk Best regards, Javier -- 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

Re: [PATCH 2/8] regulator: max77686: Remove support for board files

2014-10-27 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/27/2014 04:03 PM, Krzysztof Kozlowski wrote: The driver is used only on Exynos4 based boards with DTS support. Convert the driver to DTS-only version. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/regulator/max77686.c | 51

Re: [PATCH 3/8] mfd: max77686/802: Remove support for board files

2014-10-27 Thread Javier Martinez Canillas
/max77686.c +++ b/drivers/mfd/max77686.c As I said in Patch 2/8, I think this driver should depend on OF since is now DT-only. Regulator drivers don't need to do this since they already depend on MFD_MAX77686. With that change feel free to add: Reviewed-by: Javier Martinez Canillas javier.marti

Re: [PATCH 4/8] regulator: max77686: Make regulator_desc array const

2014-10-27 Thread Javier Martinez Canillas
= { MAX77686_OPMODE_BUCK234_SHIFT, \ } -static struct regulator_desc regulators[] = { +static const struct regulator_desc regulators[] = { regulator_desc_ldo1_low(1), regulator_desc_ldo_low(2), regulator_desc_ldo(3), Reviewed-by: Javier Martinez Canillas javier.marti

Re: [PATCH 5/8] regulator: max77686: Initialize opmode explicitly to normal mode

2014-10-27 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/27/2014 04:03 PM, Krzysztof Kozlowski wrote: Minor nit: Initialize the opmode for each regulator to normal mode in a readable explicit way. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Suggested-by: Javier Martinez Canillas javier.marti

Re: [PATCH 6/8] regulator: max77686: Add external GPIO control

2014-10-27 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/27/2014 04:03 PM, Krzysztof Kozlowski wrote: @@ -85,6 +91,9 @@ struct max77686_data { struct max77686_regulator_data *regulators; int num_regulators; + /* Array of size num_regulators with GPIOs for external control. */ + int *ext_control_gpio;

Re: [PATCH 7/8] mfd/regulator: dt-bindings: max77686: Document gpio property

2014-10-27 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/27/2014 04:03 PM, Krzysztof Kozlowski wrote: Document usage of gpio property which turns on external control over regulator. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- Documentation/devicetree/bindings/mfd/max77686.txt | 3 +++ 1 file changed, 3

Re: [PATCH 1/8] regulator: max77802: Remove support for board files

2014-10-28 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/28/2014 09:45 AM, Krzysztof Kozlowski wrote: Thanks! However Mark had some comments which will reorganize the patch completely. I'll be sending next version and probably I would need your ack and testing again. Sure, I can test your patches if you don't have access

Re: [PATCH 6/8] regulator: max77686: Add external GPIO control

2014-10-29 Thread Javier Martinez Canillas
[adding Linus and Alexandre to the cc list] Hello Krzysztof, On 10/29/2014 11:42 AM, Krzysztof Kozlowski wrote: On wto, 2014-10-28 at 13:11 +0100, Krzysztof Kozlowski wrote: On wto, 2014-10-28 at 09:52 +0100, Krzysztof Kozlowski wrote: On pon, 2014-10-27 at 21:03 +0100, Javier Martinez

Re: [PATCH v5 3/4] regulator: max77686: Add suspend disable for some LDOs

2014-10-29 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/29/2014 11:44 AM, Krzysztof Kozlowski wrote: On śro, 2014-10-29 at 10:31 +, Mark Brown wrote: On Wed, Oct 29, 2014 at 11:18:54AM +0100, Krzysztof Kozlowski wrote: On śro, 2014-10-29 at 10:01 +, Mark Brown wrote: No, this isn't suspend enable control - this

Re: [PATCH v6 2/3] regulator: max77802: Remove suspend_enable

2014-10-29 Thread Javier Martinez Canillas
explained, I understand this is the right thing to do. Acked-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Best regards, Javier -- 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

Re: [PATCH v6 7/7] ARM: dts: add suspend voltage setting for RK808

2014-10-29 Thread Javier Martinez Canillas
Hello Chris, On 10/29/2014 04:40 PM, Doug Anderson wrote: regulator-min-microvolt = 75; regulator-max-microvolt = 130; regulator-name = vdd_arm; +

Re: [RFT v2 2/8] regulator: max77802: Remove support for board files

2014-10-29 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/29/2014 04:06 PM, Krzysztof Kozlowski wrote: static int max77802_pmic_probe(struct platform_device *pdev) { struct max77686_dev *iodev = dev_get_drvdata(pdev-dev.parent); - struct max77686_platform_data *pdata = dev_get_platdata(iodev-dev); struct

Re: [PATCH v6 7/7] ARM: dts: add suspend voltage setting for RK808

2014-10-29 Thread Javier Martinez Canillas
Hello Doug, On 10/29/2014 05:51 PM, Doug Anderson wrote: In other words, do you want the core to call rk808_set_suspend_voltage() or rk808_set_suspend_enable()? If the later then you can use Chanwoo's bindings: regulator-state-mem { regulator-on-in-suspend; }; The rk808 has a

Re: [PATCH v3 2/2] ARM: EXYNOS: Call regulator core suspend prepare and finish functions

2014-10-30 Thread Javier Martinez Canillas
Hello Kukjin, On Mon, Oct 20, 2014 at 11:05 PM, Javier Martinez Canillas javier.marti...@collabora.co.uk wrote: The regulator framework has a set of helpers functions to be used when the system is entering and leaving from suspend but these are not called on Exynos platforms. This means

Re: [RFT v3 05/14] regulator: max77802: Don't ignore return value of current opmode

2014-10-30 Thread Javier Martinez Canillas
; + } else { + val = val shift MAX77802_OPMODE_MASK; + } /* * If the regulator is disabled and the system warm rebooted, Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Best regards, Javier

Re: [RFT v3 06/14] regulator: max77802: Remove support for board files

2014-10-30 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/30/2014 12:20 PM, Krzysztof Kozlowski wrote: static int max77802_pmic_probe(struct platform_device *pdev) { struct max77686_dev *iodev = dev_get_drvdata(pdev-dev.parent); - struct max77686_platform_data *pdata = dev_get_platdata(iodev-dev); struct

Re: [RFT v3 06/14] regulator: max77802: Remove support for board files

2014-10-30 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/30/2014 01:10 PM, Krzysztof Kozlowski wrote: I may be missing something but I don't understand why a compatible string for the regulators sub-node is needed. Isn't enough to just fill the .regulators_node field in the struct regulator_desc? e.g: .regulators_node

Re: [RFT v3 06/14] regulator: max77802: Remove support for board files

2014-10-30 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/30/2014 01:30 PM, Krzysztof Kozlowski wrote: tor_of_get_init_data() function? The regulator_of_get_init_data() searches from dev-of_node or its child node. But dev-of_node is NULL. That's why of_compatible is needed. Yes but regulator_register() does dev

Re: [RFT v3 06/14] regulator: max77802: Remove support for board files

2014-10-30 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/30/2014 01:53 PM, Krzysztof Kozlowski wrote: To me a intuitive structure would be: MFD device | - clock device | - clock1 - clock2 - regulator device | - LDO1 - LDO2 etc. This also maps to structure in DTS. dev_err*

[PATCH v10 0/6] Add Maxim 77802 RTC support

2014-09-19 Thread Javier Martinez Canillas
know if you expected the former. Doug Anderson (1): rtc: max77686: Allow the max77686 rtc to wakeup the system Javier Martinez Canillas (5): rtc: max77686: Remove dead code for SMPL and WTSR. rtc: max77686: Fail to probe if no RTC regmap irqchip is set rtc: max77686: Remove unneded info log

[PATCH v10 4/6] rtc: max77686: Remove unneded info log

2014-09-19 Thread Javier Martinez Canillas
If devm_rtc_device_register() fails a dev_err() is already reported so there is no need to do an additional dev_info(). Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/rtc/rtc-max77686.c | 2 -- 1 file

[PATCH v10 6/6] rtc: Add driver for Maxim 77802 PMIC Real-Time-Clock

2014-09-19 Thread Javier Martinez Canillas
The MAX7802 PMIC has a Real-Time-Clock (RTC) with two alarms. This patch adds support for the RTC and is based on a driver added by Simon Glass to the Chrome OS kernel 3.8 tree. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Reviewed-by: Krzysztof Kozlowski k.kozlow

[PATCH v10 2/6] rtc: max77686: Remove dead code for SMPL and WTSR.

2014-09-19 Thread Javier Martinez Canillas
the driver was original merged in commit fca1dd03 (rtc: max77686: add Maxim 77686 driver). So, since this code has never been built, let's just remove it. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/rtc

[PATCH v10 5/6] rtc: max77686: Use ffs() to calculate tm_wday

2014-09-19 Thread Javier Martinez Canillas
Martinez Canillas javier.marti...@collabora.co.uk --- drivers/rtc/rtc-max77686.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c index b177ba1..2659bd3 100644 --- a/drivers/rtc/rtc-max77686.c +++ b/drivers/rtc/rtc

[PATCH v10 3/6] rtc: max77686: Fail to probe if no RTC regmap irqchip is set

2014-09-19 Thread Javier Martinez Canillas
instead of getting an OOPS. Reported-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- Fixes the issue reported by Krzystof in: https://lkml.org/lkml/2014/8/8/121

[PATCH v10 1/6] rtc: max77686: Allow the max77686 rtc to wakeup the system

2014-09-19 Thread Javier Martinez Canillas
From: Doug Anderson diand...@chromium.org The max77686 includes an RTC that keeps power during suspend. It's convenient to be able to use it as a wakeup source. Signed-off-by: Doug Anderson diand...@chromium.org Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Reviewed

Re: [PATCH v4] mfd: syscon: Decouple syscon interface from platform devices

2014-09-19 Thread Javier Martinez Canillas
Chromebook and I see that of_syscon_register() is called for the PMU system controller with compatible string samsung,exynos5420-pmu, syscon which does not have a dedicated platform driver, so: Tested-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Best regards, Javier

Re: [PATCH v10 5/6] rtc: max77686: Use ffs() to calculate tm_wday

2014-09-19 Thread Javier Martinez Canillas
Hello Joe, On 09/19/2014 04:39 PM, Joe Perches wrote: On Fri, 2014-09-19 at 12:26 +0200, Javier Martinez Canillas wrote: The function max77686_rtc_calculate_wday() is used to calculate the day of the week to be filled in struct rtc_time but that function only calculates the number of bits

Re: [PATCH v10 5/6] rtc: max77686: Use ffs() to calculate tm_wday

2014-09-19 Thread Javier Martinez Canillas
Hello Joe, On 09/19/2014 09:52 PM, Joe Perches wrote: On Fri, 2014-09-19 at 21:27 +0200, Javier Martinez Canillas wrote: On 09/19/2014 04:39 PM, Joe Perches wrote: On Fri, 2014-09-19 at 12:26 +0200, Javier Martinez Canillas wrote: The function max77686_rtc_calculate_wday() is used

Re: [PATCH 1/3] ARM: dts: Add SPI flash node for Peach boards

2014-11-19 Thread Javier Martinez Canillas
Hello Doug, Thanks for your feedback. On 11/18/2014 06:50 PM, Doug Anderson wrote: This is common practice in the Chrome OS tree, but we've gotten pushback from upstream questioning about whether spidev is really a physical device. See:

Re: [PATCH 1/1] ARM: exynos_defconfig: Enable max77802 rtc and clock drivers

2014-11-19 Thread Javier Martinez Canillas
Hello Kukjin, On 11/19/2014 09:09 AM, Kukjin Kim wrote: You say that you will apply this patch but I can't find it in any of your branches. Sorry for missing the patch in my tree. You can see it in a couple of mins ;) Great, thanks a lot! Best regards, Javier -- To unsubscribe from

Re: [PATCH v2 2/2] arm: dts: Exynos5: Use pmu_system_controller phandle for dp phy

2014-11-19 Thread Javier Martinez Canillas
-phy node. Signed-off-by: Vivek Gautam gautam.vi...@samsung.com Cc: Jingoo Han jg1@samsung.com Reviewed-by: Jingoo Han jg1@samsung.com Tested-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Kukjin, This patch is -rc material and is needed to have display working in 3.18

Re: [PATCH 1/4] ARM: dts: Add usb3503 pinctrl to exynos5250-spring

2014-11-19 Thread Javier Martinez Canillas
anyways. Patch looks good to me though: Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Best regards, Javier -- 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

Re: [PATCH 2/4] ARM: dts: Add temperature sensor to exynos5250-spring

2014-11-19 Thread Javier Martinez Canillas
Hello Andreas, On 11/19/2014 04:56 PM, Andreas Färber wrote: Spotted in the Chrome OS 3.8 based device tree. Needs CONFIG_SENSORS_LM90. Signed-off-by: Andreas Färber afaer...@suse.de Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Best regards, Javier

Re: [PATCH 3/4] ARM: exynos_defconfig: Enable LM90 driver

2014-11-19 Thread Javier Martinez Canillas
Hello Andreas, On 11/19/2014 04:56 PM, Andreas Färber wrote: multi_v7_defconfig has it as Y already, so build it in here, too, for consistency, and therefore build in HWMON as well. Signed-off-by: Andreas Färber afaer...@suse.de Reviewed-by: Javier Martinez Canillas javier.marti

Re: [PATCH 4/4] ARM: dts: Add trackpad to exynos5250-spring

2014-11-19 Thread Javier Martinez Canillas
Hello Andreas, On 11/19/2014 04:56 PM, Andreas Färber wrote: The HP Chromebook 11 uses an Atmel maXTouch as trackpad. The keymap was found by trial-and-error. Signed-off-by: Andreas Färber afaer...@suse.de Patch looks good to me. Reviewed-by: Javier Martinez Canillas javier.marti

Re: [PATCH 1/3] ARM: dts: Add SPI flash node for Peach boards

2014-11-19 Thread Javier Martinez Canillas
Hello Doug, On 11/19/2014 06:19 PM, Doug Anderson wrote: I wonder how the spidev user-space interface is supposed to be used when booting with Device Trees. OK. Please don't take my comments as a NAK on this patch. I should have done the same grep myself before sending--sorry. I just

Re: [PATCH 1/3] ARM: dts: Add SPI flash node for Peach boards

2014-11-19 Thread Javier Martinez Canillas
Hello Mark, On 11/19/2014 06:47 PM, Mark Brown wrote: These are bugs. The device tree should describe the hardware, spidev is a Linux implementation detail. Provide a compatible string for the device that is there just as you would for any other device. Thanks a lot for your explanation.

Re: [PATCH 1/3] mfd: cros_ec: Add Chrome OS EC userspace device interface

2014-11-19 Thread Javier Martinez Canillas
Hello Alan, Thanks a lot for your feedback. On 11/18/2014 06:00 PM, One Thousand Gnomes wrote: +#ifdef CONFIG_COMPAT +struct compat_cros_ec_command { +uint32_t version; +uint32_t command; +compat_uptr_t outdata; +uint32_t outsize; +compat_uptr_t indata; +uint32_t

Re: [PATCH 1/3] mfd: cros_ec: Add Chrome OS EC userspace device interface

2014-11-20 Thread Javier Martinez Canillas
Hello Olof, On 11/19/2014 09:45 PM, Olof Johansson wrote: Is true that this is a new API for mainline but there is a lot of ChromeOS installations that depends on this API which means that just replacing the kernel with a mainline one there, will break existing user-space programs. I think

Re: [PATCH 1/3] mfd: cros_ec: Add Chrome OS EC userspace device interface

2014-11-20 Thread Javier Martinez Canillas
Hello Lee, Thanks a lot for your feedback. On 11/18/2014 03:18 PM, Lee Jones wrote: +config MFD_CROS_EC_DEV _DEV as a post-fix doesn't really describe the driver. the _DEV is meant to denote (user-space device interface) but is true that a better name can be used, I'll see what I can

Re: [PATCH 2/3] mfd: cros_ec: Create sysfs attributes for the ChromeOS EC.

2014-11-20 Thread Javier Martinez Canillas
Hello Lee, On 11/18/2014 03:26 PM, Lee Jones wrote: On Mon, 17 Nov 2014, Javier Martinez Canillas wrote: From: Bill Richardson wfric...@chromium.org This adds the first few sysfs attributes for the Chrome OS EC. These controls are made available under /sys/devices/virtual/chromeos/cros_ec

Re: [PATCH 3/3] mfd: cros_ec: Expose Chrome OS Lightbar to users

2014-11-20 Thread Javier Martinez Canillas
Hello Lee, On 11/18/2014 03:22 PM, Lee Jones wrote: --- drivers/mfd/Makefile | 2 +- drivers/mfd/cros_ec_dev.c | 2 + drivers/mfd/cros_ec_dev.h | 3 + drivers/mfd/cros_ec_lightbar.c | 347 + By the sounds of the

Re: [PATCH 1/3] mfd: cros_ec: Add Chrome OS EC userspace device interface

2014-11-20 Thread Javier Martinez Canillas
Hello Lee, On 11/20/2014 12:58 PM, Lee Jones wrote: the printk.h header? to use the pr_* functions but I'll make sure that only the needed headers are included. Right, I think don't think you should be using those on a platform device. Yes, I'll use dev_err() instead. I prefer macros if

Re: [PATCH] ARM: multi_v7_defconfig: Enable cgroups

2014-11-20 Thread Javier Martinez Canillas
Hello, On Thu, Nov 20, 2014 at 1:54 PM, Arnd Bergmann a...@arndb.de wrote: On Monday 17 November 2014, Soren Brinkmann wrote: This allows booting the kernel with systemd-based root file systems. Signed-off-by: Soren Brinkmann soren.brinkm...@xilinx.com --- Hi, I don't know whether I'm the

Re: [PATCH 3/3] mfd: cros_ec: Expose Chrome OS Lightbar to users

2014-11-20 Thread Javier Martinez Canillas
Hello Lee, On 11/20/2014 02:27 PM, Lee Jones wrote: By the sounds of the description, it doesn't seem as though this driver lives in MFD. I suggest another home, such as drivers/led. You are right. As I said in the other email, I'll move it to drivers/platform/chrome/ which seems like

Re: [PATCH v9 0/6] Add Maxim 77802 clocks support

2014-09-10 Thread Javier Martinez Canillas
Hello Mike, On 09/09/2014 10:57 PM, Mike Turquette wrote: Quoting Javier Martinez Canillas (2014-09-07 23:49:28) Since we are in 3.17-rc4 already, I'm afraid that this series may miss 3.18 again, is there anything else you need from me to pick this series? It will obviously conflict

Re: [PATCH v2 1/5] ARM: dts: Add Peach Pit and Pi dts entry for max77802 PMIC

2014-09-10 Thread Javier Martinez Canillas
Hello Doug, On 09/10/2014 06:42 AM, Doug Anderson wrote: + + ldo35_reg: LDO35 { + regulator-name = ldo_35; + regulator-min-microvolt = 120; + regulator-max-microvolt = 120;

Re: [PATCH 2/6] ARM: dts: add hdmi regulators for exynos5800 based peach-pi board

2014-09-10 Thread Javier Martinez Canillas
Hello Doug, On 09/10/2014 06:45 AM, Doug Anderson wrote: Reviewed-by: Doug Anderson diand...@chromium.org Meant to add this to the v2. Sorry for the spam... No worries, I've to re-spin anyways to fix the issue you pointed on Patch #1 so I'll include your Reviewed-by tag. Best regards,

Re: [PATCH v2 5/5] ARM: dts: Add Peach Pit and Pi dts entry for ISL29018 sensor

2014-09-10 Thread Javier Martinez Canillas
Hello Doug, On 09/10/2014 06:52 AM, Doug Anderson wrote: I would note that the downstream dts file has this i2c bus at 400kHz. ...but that's not a problem with your patch. Perhaps you could submit that as a separate patch? Indeed, I've to re-spin anyways so I'll include that on the next

[PATCH v3 2/7] ARM: dts: add hdmi regulators for exynos5800 based peach-pi board

2014-09-10 Thread Javier Martinez Canillas
From: Rahul Sharma rahul.sha...@samsung.com Adding regulators for HDMI for Peach-pi board. Signed-off-by: Rahul Sharma rahul.sha...@samsung.com Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Reviewed

[PATCH v3 7/7] ARM: exynos_defconfig: Enable MAX77802

2014-09-10 Thread Javier Martinez Canillas
Martinez Canillas javier.marti...@collabora.co.uk --- arch/arm/configs/exynos_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index 676c744..fbbac06 100644 --- a/arch/arm/configs/exynos_defconfig +++ b/arch/arm

[PATCH v3 5/7] ARM: dts: Add Peach Pit and Pi dts entry for ISL29018 sensor

2014-09-10 Thread Javier Martinez Canillas
-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Reviewed-by: Doug Anderson diand...@chromium.org --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 6 ++ arch/arm/boot/dts/exynos5800-peach-pi.dts | 6 ++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH v3 0/7] Add max77802 support for Peach boards

2014-09-10 Thread Javier Martinez Canillas
by Andreas Faerber. The series is composed of the following patches: Javier Martinez Canillas (3): ARM: dts: Add Peach Pit and Pi dts entry for max77802 PMIC ARM: dts: Add Peach Pit and Pi dts entry for ISL29018 sensor ARM: dts: Set i2c7 clock at 400kHz for Peach boards Naveen Krishna Chatradhi (1

[PATCH v3 6/7] ARM: dts: Set i2c7 clock at 400kHz for Peach boards

2014-09-10 Thread Javier Martinez Canillas
The downstream ChromeOS 3.8 kernel sets the clock frequency for the I2C bus 7 at 400kHz. Do the same change in mainline. Suggested-by: Doug Anderson diand...@chromium.org Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 1

[PATCH v3 4/7] ARM: dts: Add thermistor dts fragment used by exynos based Peach boards

2014-09-10 Thread Javier Martinez Canillas
...@samsung.com Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Reviewed-by: Doug Anderson diand...@chromium.org --- arch/arm/boot/dts/cros-adc-thermistors.dtsi | 44 + arch/arm/boot/dts/exynos5420-peach-pit.dts | 6 arch/arm/boot/dts

[PATCH v3 3/7] ARM: dts: add hdmi regulators for exynos5420 based peach-pit board

2014-09-10 Thread Javier Martinez Canillas
From: Rahul Sharma rahul.sha...@samsung.com Adding regulators for hdmi for peach-pit board. Signed-off-by: Rahul Sharma rahul.sha...@samsung.com Reviewed-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Reviewed

[PATCH v3 1/7] ARM: dts: Add Peach Pit and Pi dts entry for max77802 PMIC

2014-09-10 Thread Javier Martinez Canillas
in the the Chrome OS kernel 3.8 tree. Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk Tested-by: Naveen Krishna Chatradhi ch.nav...@samsung.com Reviewed-by: Doug Anderson diand...@chromium.org --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 371

[PATCH v4 1/3] ARM: dts: Add Peach Pit dts entry for Atmel touchpad

2014-09-10 Thread Javier Martinez Canillas
-by: Sjoerd Simons sjoerd.sim...@collabora.co.uk Signed-off-by: Javier Martinez Canillas javier.marti...@collabora.co.uk --- Changes since v3: - Use KEY_RESERVED even for not reserved pins with a GPIO not hooked. Suggested by Nick Dyer. - Add a comment to specify the maXTouch chip version so is more

[PATCH v4 0/3] Add Atmel maXTouch support for Peach boards

2014-09-10 Thread Javier Martinez Canillas
to be merged through the linux-samsung tree. I'll post a separate series to sync exynos_defconfig and multi_v7_defconfig so those can be picked through the arm-soc tree. This series must be merged after [0] to avoid merge conflicts. Javier Martinez Canillas (2): ARM: dts: Add Peach Pi dts entry

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