Re: [PATCH v2 1/2] pmbus: add regulator support

2014-08-22 Thread atull
On Fri, 22 Aug 2014, Mark Brown wrote: On Fri, Aug 22, 2014 at 04:11:33PM -0500, at...@opensource.altera.com wrote: + if (pdata pdata-reg_init_data) { + config.init_data = pdata-reg_init_data; + } else { + config.init_data = of_get_regulator_init_data(dev, np);

Re: [PATCH 3/3] GPIO: gpio-dwapb: Suspend Resume PM enabling

2014-08-27 Thread atull
, the kernel doesn't boot. If I rebuild with only the first patch, I get only one gpio block showing up (should have 3 for this board) and these messages: [ cut here ] WARNING: CPU: 0 PID: 1 at /home/atull/repos/linux-socfpga/fs/sysfs/dir.c:31 sysfs_warn_dup+0x58/0x74

[PATCH 1/3] fpga manager framework core

2014-08-01 Thread atull
From: Alan Tull at...@opensource.altera.com This core exports methods of doing operations on FPGAs. EXPORT_SYMBOL_GPL(fpga_mgr_write); Write FPGA given a buffer and count. EXPORT_SYMBOL_GPL(fpga_mgr_firmware_write); Request firmware and write that to a fpga

[PATCH 0/3] Yet another stab at a fpga framework

2014-08-01 Thread atull
From: Alan Tull at...@opensource.altera.com [resend with fixed email settings] The idea of the framework is to provide consistent ways of programming raw images into FPGA's. Programming from device tree overlays is supported. The core (fpga-mgr.c) does not include a userspace interface and

[PATCH 3/3] fpga sysfs interface

2014-08-01 Thread atull
From: Alan Tull at...@opensource.altera.com Add basic sysfs interface. Only exports two files: /sys/class/fpga_manager/fpga0/name Name of low level driver. /sys/class/fpga_manager/fpga0/status status of fpga framework as returned by core fpga-mgr.c's fpga_mgr_ops_framework_status

[PATCH 2/3] fpga bus driver

2014-08-01 Thread atull
From: Alan Tull at...@opensource.altera.com This driver allows programming the fpga from device tree overlays. This code is dependent on Pantelis Antoniou's current work on Device Tree overlays, a method of dynamically altering the kerel's live Device Tree. This patchset was tested with

Re: [PATCH] i2c: designware: deduce speed mode from device tree setting

2014-08-20 Thread atull
On Wed, 20 Aug 2014, Romain Baeriswyl wrote: Hi, With the patch i2c designware add support of I2C standard mode I already proposed: - I2C standard mode is selected with 100kHz clock frequency. - I2C fast mode is selected with 400kHy clock frequency. - EINVAL error is returned if clock

Re: [PATCH] i2c designware add support of I2C standard mode

2014-08-20 Thread atull
On Wed, 20 Aug 2014, Romain Baeriswyl wrote: From: Romain Baeriswyl romain.baeris...@abilis.com Some legacy devices support ony I2C standard mode at 100kHz. This patch allows to select the standard mode through the DTS with the use of the existing clock-frequency parameter. When

Re: [PATCH] i2c: designware: deduce speed mode from device tree setting

2014-08-20 Thread atull
- Original Message - From: atull at...@opensource.altera.com To: Romain Baeriswyl romain.baeris...@abilis.com Cc: Mark Rutland mark.rutl...@arm.com, w...@the-dreams.de, bar...@tkos.co.il, mika westerberg mika.westerb...@linux.intel.com, grant likely grant.lik...@linaro.org, robh

Re: [PATCH] i2c designware add support of I2C standard mode

2014-08-20 Thread atull
On Wed, 20 Aug 2014, atull wrote: On Wed, 20 Aug 2014, Romain Baeriswyl wrote: From: Romain Baeriswyl romain.baeris...@abilis.com Some legacy devices support ony I2C standard mode at 100kHz. This patch allows to select the standard mode through the DTS with the use

[PATCH 2/2] pmbus: ltc2978: add regulator gating

2014-08-21 Thread atull
From: Alan Tull at...@opensource.altera.com Add support for enabling or disabling all supplies. Signed-off-by: Alan Tull at...@opensource.altera.com --- drivers/hwmon/pmbus/Kconfig |9 ++ drivers/hwmon/pmbus/ltc2978.c | 69 + 2 files changed,

[PATCH 0/2] add regulator support for pmbus and ltc2978

2014-08-21 Thread atull
From: Alan Tull at...@opensource.altera.com This set of patches adds regulator support to pmbus_core.c and to ltc2978.c. Other pmbus parts can use this to add their own regulator support. Current ltc2978 support is limited to enable/disable. Tested on ltc2978. Looking at the datasheets for

[PATCH 1/2] pmbus: add regulator support

2014-08-21 Thread atull
From: Alan Tull at...@opensource.altera.com Enable pmbus device drivers to add regulator functionality. To add a regulator, it's pretty straightforward. The pmbus device driver needs to add regulator information to its pmbus_driver_info struct: * num_regulators : number of regulators *

Re: [PATCH 2/2] pmbus: ltc2978: add regulator gating

2014-08-22 Thread atull
On Fri, 22 Aug 2014, Mark Brown wrote: On Thu, Aug 21, 2014 at 05:21:26PM -0500, at...@opensource.altera.com wrote: +config SENSORS_LTC2978_REGULATOR + boolean Regulator support for LTC2974, LTC2978, LTC3880, and LTC3883 + default n No need to say default n here, it's the default

[PATCH v2 0/2] dd regulator support for pmbus and ltc2978

2014-08-22 Thread atull
From: Alan Tull at...@opensource.altera.com Version 2 : * Get regulator_init_data from platform data or device tree. * One regulator per pmbus part. * Clean up Kconfig and #includes. This set of patches adds regulator support to pmbus_core.c and to ltc2978.c. Other pmbus parts can use

[PATCH v2 1/2] pmbus: add regulator support

2014-08-22 Thread atull
From: Alan Tull at...@opensource.altera.com To add a regulator, the pmbus device driver needs to add regulator_desc information to its pmbus_driver_info struct. The regulator_init_data can be intialized from either platform data or the device tree. Signed-off-by: Alan Tull

[PATCH v2 2/2] pmbus: ltc2978: add regulator gating

2014-08-22 Thread atull
From: Alan Tull at...@opensource.altera.com Add regulator with support for enabling or disabling all supplies. Signed-off-by: Alan Tull at...@opensource.altera.com v2: Remove '#include linux/regulator/machine.h' Kconfig fixes Remove hardwired regulator_init_data ---

Re: [PATCH 0/2] add regulator support for pmbus and ltc2978

2014-08-22 Thread atull
On Thu, 21 Aug 2014, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com This set of patches adds regulator support to pmbus_core.c and to ltc2978.c. Other pmbus parts can use this to add their own regulator support. Current ltc2978 support is limited to

Re: [PATCHv10 2/2] arm: dts: Add Altera SDRAM EDAC bindings devicetree entries.

2014-08-15 Thread atull
On Fri, 15 Aug 2014, Steffen Trumtrar wrote: Hi! Hello Thanks for the feedback... ttha...@opensource.altera.com writes: From: Thor Thayer ttha...@opensource.altera.com Add the Altera SDRAM EDAC bindings and device tree changes to the Altera SoC project. Signed-off-by: Thor

power supply gating with ltc2978

2014-08-15 Thread atull
Hello, I am interested in adding functionality to be able to gate power supplies going through a ltc2978. I see that there is a hwmon driver already existing (hwmon/pmbus/ltc2978.c). I see some of the other hwmon drivers have MFD's. It looks like this ltc driver would need a MFD and a

Re: power supply gating with ltc2978

2014-08-19 Thread atull
On Mon, 18 Aug 2014, Guenter Roeck wrote: On Sat, Aug 16, 2014 at 02:20:50PM +0100, Mark Brown wrote: On Fri, Aug 15, 2014 at 04:34:49PM -0500, atull wrote: I am interested in adding functionality to be able to gate power supplies going through a ltc2978. I see that there is a hwmon

[PATCH 2/2] i2c: designware: add speed mode device tree setting

2014-08-19 Thread atull
From: Alan Tull at...@opensource.altera.com Add speed-mode Device Tree property to select between standard and fast i2c mode. Previously, driver was hardwired as fast mode. Default to fast mode if property is not present. Signed-off-by: Alan Tull at...@opensource.altera.com ---

[PATCH 1/2] i2c: designware: device tree bindings for i2c speed mode

2014-08-19 Thread atull
From: Alan Tull at...@opensource.altera.com Add speed-mode Device Tree property to select between standard and fast i2c mode. Previously, driver was hardwired as fast mode. Default to fast mode if property is not present. Signed-off-by: Alan Tull at...@opensource.altera.com ---

[PATCH] i2c: designware: deduce speed mode from device tree setting

2014-08-19 Thread atull
From: Alan Tull at...@opensource.altera.com Use the documented, but unimplemented clock-frequency Device Tree setting as a guide on whether to set the speed mode bits in DW_IC_CON to standard or fast i2c mode. Previously, the driver was hardwired to fast mode. Default to fast mode if the

Re: [PATCH 1/2] i2c: designware: device tree bindings for i2c speed mode

2014-08-19 Thread atull
On Tue, 19 Aug 2014, Wolfram Sang wrote: On Tue, Aug 19, 2014 at 01:34:35PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add speed-mode Device Tree property to select between standard and fast i2c mode. Previously, driver was hardwired as

[PATCH v2 0/3] fpga bridge framework

2014-10-23 Thread atull
From: Alan Tull at...@opensource.altera.com Followup to bridge framework that was posted on 2013/10/3 This is a driver for enabling/disabling the fpga bridges under control of a sys entry. It has a common framework and individual drivers for the various bridges. This framework uses the reset

[PATCH v2 1/3] add sysfs document for fpga bridges

2014-10-23 Thread atull
From: Alan Tull at...@opensource.altera.com Add sysfs document for fpga bridges. Signed-off-by: Alan Tull at...@opensource.altera.com --- Documentation/ABI/testing/sysfs-class-fpga-bridge |5 + 1 file changed, 5 insertions(+) create mode 100644

[PATCH v2 2/3] ARM: dts: socfpga: fpga bridges bindings docs

2014-10-23 Thread atull
From: Alan Tull at...@opensource.altera.com Add DTS binding documentation for the Altera FPGA bridges. Signed-off-by: Alan Tull at...@opensource.altera.com --- .../bindings/fpga/altera-fpga2sdram-bridge.txt | 57 .../bindings/fpga/altera-hps2fpga-bridge.txt |

[PATCH v2 3/3] fpga bridge driver

2014-10-23 Thread atull
From: Alan Tull at...@opensource.altera.com Support for bringing bridges out of reset. Bridges show up in sysfs under /sys/class/fpga-bridge and can be enabled/disabled from sysfs or from the device tree. Supports enabling the following hps/fpga bridges: * fpga2sdram * fpga2hps * hps2fpga *

Re: [PATCH v2 0/3] fpga bridge framework

2014-10-23 Thread atull
On Thu, 23 Oct 2014, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Followup to bridge framework that was posted on 2013/10/3 This is a driver for enabling/disabling the fpga bridges under control of a sys entry. It has a common framework and individual

Re: [PATCH v2 2/3] fpga manager: framework core

2014-10-24 Thread atull
On Fri, 24 Oct 2014, Pantelis Antoniou wrote: Hi Pavel, On Oct 24, 2014, at 1:52 PM, Pavel Machek pa...@denx.de wrote: Hi! * /sys/class/fpga_manager/fpga/firmware Name of FPGA image file to load using firmware class. $ echo image.rbf /sys/class/fpga_manager/fpga/firmware

Re: [PATCH v2 1/3] add sysfs document for fpga bridges

2014-10-24 Thread atull
On Fri, 24 Oct 2014, Pavel Machek wrote: On Thu 2014-10-23 18:51:05, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add sysfs document for fpga bridges. Signed-off-by: Alan Tull at...@opensource.altera.com ---

[PATCH v6 3/4] pmbus: add regulator support

2014-10-15 Thread atull
From: Alan Tull at...@opensource.altera.com Add support for simple on/off control of each channel. To add regulator support, the pmbus part driver needs to add regulator_desc information and number of regulators to its pmbus_driver_info struct. regulator_desc can be declared using default macro

[PATCH v6 2/4] pmbus: core: add helpers for byte write and read modify write

2014-10-15 Thread atull
From: Alan Tull at...@opensource.altera.com Add two helper functions: * pmbus_write_byte_data = paged byte write * pmbus_update_byte_data = paged byte read/modify/write Signed-off-by: Alan Tull at...@opensource.altera.com Cc: Guenter Roeck li...@roeck-us.net Cc: Mark Brown broo...@kernel.org

[PATCH v6 4/4] pmbus: ltc2978: add regulator support

2014-10-15 Thread atull
From: Alan Tull at...@opensource.altera.com Add simple on/off regulator support for ltc2978 and other pmbus parts supported by ltc2978.c Signed-off-by: Alan Tull at...@opensource.altera.com Cc: Guenter Roeck li...@roeck-us.net Cc: Mark Brown broo...@kernel.org --- v2: Remove '#include

[PATCH v6 0/4] pmbus: ltc2978: add regulator support

2014-10-15 Thread atull
From: Alan Tull at...@opensource.altera.com Each output has individual on/off control. New in v6: * Much cleanup of the bindings document * s/vout_en/vout/g Hopefully this is getting closer. We will still have the potential problem of repeated node names on boards on boards that have many

[PATCH v6 1/4] hwmon: ltc2978: device tree bindings documentation

2014-10-15 Thread atull
From: Alan Tull at...@opensource.altera.com Add device tree bindings documentation for ltc2978. Signed-off-by: Alan Tull at...@opensource.altera.com Cc: Guenter Roeck li...@roeck-us.net Cc: Mark Rutland mark.rutl...@arm.com Cc: Mark Brown broo...@kernel.org --- v2: clean whitespace v3: list

Re: [PATCH v3 2/2] socfpga: support suspend to ram

2014-10-15 Thread atull
On Wed, 15 Oct 2014, Pavel Machek wrote: On Tue 2014-10-14 14:33:39, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add code that requests that the sdr controller go into self-refresh mode. This code is run from ocram. This patch assumes that u-boot

Re: [PATCH v6 3/4] pmbus: add regulator support

2014-10-16 Thread atull
On Thu, 16 Oct 2014, Guenter Roeck wrote: On Wed, Oct 15, 2014 at 01:55:09PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add support for simple on/off control of each channel. To add regulator support, the pmbus part driver needs to add

Re: [PATCH v6 3/4] pmbus: add regulator support

2014-10-17 Thread atull
On Thu, 16 Oct 2014, Guenter Roeck wrote: On Thu, Oct 16, 2014 at 01:40:23PM -0500, atull wrote: On Thu, 16 Oct 2014, Guenter Roeck wrote: On Wed, Oct 15, 2014 at 01:55:09PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add support

Re: [PATCH v6 0/4] pmbus: ltc2978: add regulator support

2014-10-17 Thread atull
On Thu, 16 Oct 2014, Guenter Roeck wrote: On Wed, Oct 15, 2014 at 01:55:06PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Each output has individual on/off control. New in v6: * Much cleanup of the bindings document * s/vout_en/vout/g

[PATCH v2 2/3] fpga manager: framework core

2014-10-22 Thread atull
From: Alan Tull at...@opensource.altera.com Supports standard ops for low level FPGA drivers. Various manufacturors' FPGAs can be supported by adding low level drivers. Each driver needs to register its ops using fpga_mgr_register(). Exports methods of doing operations to program FPGAs. These

[PATCH v2 0/3] FPGA Framework with DT and sysfs support

2014-10-22 Thread atull
From: Alan Tull at...@opensource.altera.com Followup to Yet another stab at a fpga framework (https://lkml.org/lkml/2014/8/1/517) One of the problems with writing this framework has been the wide variety of use cases. My perspective has mostly been for a fpga bolted to a SoC. Having said that,

[PATCH v2 3/3] fpga manager: bus driver

2014-10-22 Thread atull
From: Alan Tull at...@opensource.altera.com Support programming the fpga from device tree overlays. This patch adds one exported function to the core (fpga-mgr.c): of_fpga_mgr_dev_lookup Get pointer to fpga manager struct given a phandle. This code is dependent on Pantelis Antoniou's current

[PATCH v2 1/3] fpga manager: add sysfs interface document

2014-10-22 Thread atull
From: Alan Tull at...@opensource.altera.com Add documentation for new fpga manager sysfs interface. Signed-off-by: Alan Tull at...@opensource.altera.com --- Documentation/ABI/testing/sysfs-class-fpga-manager | 38 1 file changed, 38 insertions(+) create mode 100644

Re: [PATCH v2 3/3] fpga manager: bus driver

2014-10-22 Thread atull
On Wed, 22 Oct 2014, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Support programming the fpga from device tree overlays. This patch adds one exported function to the core (fpga-mgr.c): of_fpga_mgr_dev_lookup Get pointer to fpga manager struct given a

Re: [PATCH 0/3] Yet another stab at a fpga framework

2014-09-08 Thread atull
On Sun, 7 Sep 2014, Pavel Machek wrote: Hi! [resend with fixed email settings] The idea of the framework is to provide consistent ways of programming raw images into FPGA's. Programming from device tree overlays is supported. The core (fpga-mgr.c) does not include a

Re: [PATCH 3/3] GPIO: gpio-dwapb: Suspend Resume PM enabling

2014-08-28 Thread atull
On Wed, 27 Aug 2014, Weike Chen wrote: This patch enables suspend and resume mode for the power management, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh hock.leong.k...@intel.com Reviewed-by: Shevchenko, Andriy andriy.shevche...@intel.com Signed-off-by:

Re: [PATCH 2/3] GPIO: gpio-dwapb: Support Debounce

2014-08-28 Thread atull
On Wed, 27 Aug 2014, Weike Chen wrote: This patch enables 'debounce' for the designware GPIO, and it is based on Josef Ahmad's previous work. Reviewed-by: Hock Leong Kweh hock.leong.k...@intel.com Reviewed-by: Shevchenko, Andriy andriy.shevche...@intel.com Signed-off-by: Weike Chen

RE: [PATCH 4/4 v3] GPIO: gpio-dwapb: Suspend Resume PM enabling

2014-09-12 Thread atull
On Fri, 12 Sep 2014, Chen, Alvin wrote: On Tue, 9 Sep 2014, Weike Chen wrote: struct dwapb_gpio; +struct dwapb_context; struct dwapb_gpio_port { struct bgpio_chip bgc; boolis_registered; struct dwapb_gpio *gpio; + struct

Re: [PATCH v2 2/2] socfpga: support suspend to ram

2014-10-07 Thread atull
On Tue, 7 Oct 2014, Pavel Machek wrote: Hi! From: Alan Tull at...@opensource.altera.com Add code that requests that the sdr controller go into self-refresh mode. This code is run from ocram. This patch assumes that u-boot has already configured sdr:

Re: [PATCH v2 1/2] socfpga: hotplug: put cpu1 in wfi

2014-10-07 Thread atull
On Tue, 7 Oct 2014, Pavel Machek wrote: On Wed 2014-10-01 14:38:23, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Use WFI when putting CPU1 to sleep. Don't hold CPU1 in reset since that results in increased power consumption. Reset CPU1 briefly

Re: [PATCH v5 3/4] pmbus: add regulator support

2014-10-07 Thread atull
On Fri, 3 Oct 2014, Mark Brown wrote: On Thu, Oct 02, 2014 at 01:37:50PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add support for simple on/off control of each channel. To add regulator support, the pmbus part driver needs to add

Re: [PATCH v5 1/4] hwmon: ltc2978: device tree bindings documentation

2014-10-08 Thread atull
On Mon, 6 Oct 2014, Guenter Roeck wrote: On Thu, Oct 02, 2014 at 01:37:48PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add device tree bindings documentation for ltc2978. Signed-off-by: Alan Tull at...@opensource.altera.com --- v2: clean

Re: [PATCH] reset: socfpga: use arch_initcall for early initialization

2014-10-09 Thread atull
On Thu, 9 Oct 2014, Steffen Trumtrar wrote: On Thu, Oct 09, 2014 at 08:16:18AM -0500, Dinh Nguyen wrote: Hi Philipp, On 10/9/14, 4:03 AM, Philipp Zabel wrote: Am Mittwoch, den 08.10.2014, 21:44 -0500 schrieb dingu...@opensource.altera.com: From: Dinh Nguyen

Re: [PATCH 1/2] socfpga: hotplug: put cpu1 in wfi

2014-10-02 Thread atull
On Thu, 2 Oct 2014, Arnd Bergmann wrote: On Thursday 02 October 2014 01:16:46 Pavel Machek wrote: struct socfpga_reset_manager { u32 status; u32 ctrl; u32 counts; u32 padding1; u32 mpu_mod_reset;

Re: [PATCH v2 2/2] socfpga: support suspend to ram

2014-10-02 Thread atull
On Wed, 1 Oct 2014, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add code that requests that the sdr controller go into self-refresh mode. This code is run from ocram. This patch assumes that u-boot has already configured sdr:

Re: [PATCH 1/2] socfpga: hotplug: put cpu1 in wfi

2014-10-01 Thread atull
On Wed, 1 Oct 2014, Pavel Machek wrote: Hi! From: Alan Tull at...@opensource.altera.com Use WFI when putting CPU1 to sleep. Don't hold CPU1 in reset since that results in increased power consumption. Reset CPU1 briefly during CPU1 bootup. This has been tested for hotplug

[PATCH v4 1/4] hwmon: ltc2978: device tree bindings documentation

2014-10-01 Thread atull
From: Alan Tull at...@opensource.altera.com Add device tree bindings documentation for ltc2978. Signed-off-by: Alan Tull at...@opensource.altera.com --- .../devicetree/bindings/hwmon/ltc2978.txt | 42 1 file changed, 42 insertions(+) create mode 100644

[PATCH v4 3/4] pmbus: add regulator support

2014-10-01 Thread atull
From: Alan Tull at...@opensource.altera.com Add support for simple on/off control of each channel. To add regulator support, the pmbus part driver needs to add regulator_desc information, of_regulator_match information, and number of regulators to its pmbus_driver_info struct. regulator_desc

[PATCH v4 2/4] pmbus: core: add helpers for byte write and read modify write

2014-10-01 Thread atull
From: Alan Tull at...@opensource.altera.com Add two helper functions: * pmbus_write_byte_data = paged byte write * pmbus_update_byte_data = paged byte read/modify/write Signed-off-by: Alan Tull at...@opensource.altera.com --- drivers/hwmon/pmbus/pmbus_core.c | 31

[PATCH v4 0/4] regulator support for pmbus and ltc2978

2014-10-01 Thread atull
From: Alan Tull at...@opensource.altera.com This set of patches adds regulator support for pmbus_core.c and ltc2978.c Each output has individual on/off control. From PMBus_Specification_Part_II_Rev_1-3_20140318.pdf: 12.1.1. OPERATION Command Bit [7] Bit [7] controls whether the PMBus device

Re: [PATCH 2/2] socfpga: support suspend to ram

2014-10-01 Thread atull
On Wed, 1 Oct 2014, Pavel Machek wrote: Hi! Add code that requests that the sdr controller go into self-refresh mode. This code is run from ocram. This patch assumes that u-boot has already configured sdr: sdr.ctrlcfg.lowpwreq.selfrfshmask = 3

[PATCH v2 1/2] socfpga: hotplug: put cpu1 in wfi

2014-10-01 Thread atull
From: Alan Tull at...@opensource.altera.com Use WFI when putting CPU1 to sleep. Don't hold CPU1 in reset since that results in increased power consumption. Reset CPU1 briefly during CPU1 bootup. This has been tested for hotplug and suspend/resume and results in no increased power consumption.

[PATCH v2 2/2] socfpga: support suspend to ram

2014-10-01 Thread atull
From: Alan Tull at...@opensource.altera.com Add code that requests that the sdr controller go into self-refresh mode. This code is run from ocram. This patch assumes that u-boot has already configured sdr: sdr.ctrlcfg.lowpwreq.selfrfshmask = 3 sdr.ctrlcfg.lowpwrtiming.clkdisablecycles = 8

[PATCH v2 0/2] socfpga: fix hotplug/add suspend to ram

2014-10-01 Thread atull
From: Alan Tull at...@opensource.altera.com Patch 1: socfpga: hotplug: put cpu1 in wfi Fix how cpu1 is hotplugged to prevent increased power consumption. v2: no need to flush the caches clean up spacing in comments replace a register offset with a macro Patch 2: socfpga: support

[PATCH v4 4/4] pmbus: ltc2978: add regulator support

2014-10-01 Thread atull
From: Alan Tull at...@opensource.altera.com Add simple on/off regulator support for ltc2978 and other pmbus parts supported by ltc2978.c Signed-off-by: Alan Tull at...@opensource.altera.com v2: Remove '#include linux/regulator/machine.h' Only one regulator per pmbus device Get

Re: [PATCH v4 0/4] regulator support for pmbus and ltc2978

2014-10-01 Thread atull
On Wed, 1 Oct 2014, Guenter Roeck wrote: On Wed, Oct 01, 2014 at 02:05:46PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com This set of patches adds regulator support for pmbus_core.c and ltc2978.c Each output has individual on/off control.

Re: [PATCH v4 4/4] pmbus: ltc2978: add regulator support

2014-10-01 Thread atull
On Wed, 1 Oct 2014, Guenter Roeck wrote: On Wed, Oct 01, 2014 at 03:18:20PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add simple on/off regulator support for ltc2978 and other pmbus parts supported by ltc2978.c Signed-off-by: Alan Tull

Re: [PATCH v4 4/4] pmbus: ltc2978: add regulator support

2014-10-01 Thread atull
On Wed, 1 Oct 2014, Guenter Roeck wrote: On Wed, Oct 01, 2014 at 03:18:20PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add simple on/off regulator support for ltc2978 and other pmbus parts supported by ltc2978.c Signed-off-by: Alan Tull

[PATCH v5 1/4] hwmon: ltc2978: device tree bindings documentation

2014-10-02 Thread atull
From: Alan Tull at...@opensource.altera.com Add device tree bindings documentation for ltc2978. Signed-off-by: Alan Tull at...@opensource.altera.com --- v2: clean whitespace --- .../devicetree/bindings/hwmon/ltc2978.txt | 41 1 file changed, 41 insertions(+)

[PATCH v5 0/4] This set of patches adds regulator support for pmbus_core.c and ltc2978.c

2014-10-02 Thread atull
From: Alan Tull at...@opensource.altera.com Each output has individual on/off control. From PMBus_Specification_Part_II_Rev_1-3_20140318.pdf: 12.1.1. OPERATION Command Bit [7] Bit [7] controls whether the PMBus device output is on or off. If bit [7] is cleared (equals 0), then the output is

[PATCH v5 4/4] pmbus: ltc2978: add regulator support

2014-10-02 Thread atull
From: Alan Tull at...@opensource.altera.com Add simple on/off regulator support for ltc2978 and other pmbus parts supported by ltc2978.c Signed-off-by: Alan Tull at...@opensource.altera.com --- v2: Remove '#include linux/regulator/machine.h' Only one regulator per pmbus device Get

[PATCH v5 2/4] pmbus: core: add helpers for byte write and read modify write

2014-10-02 Thread atull
From: Alan Tull at...@opensource.altera.com Add two helper functions: * pmbus_write_byte_data = paged byte write * pmbus_update_byte_data = paged byte read/modify/write Signed-off-by: Alan Tull at...@opensource.altera.com --- v2: add prototypes for the two new functions ---

[PATCH v5 3/4] pmbus: add regulator support

2014-10-02 Thread atull
From: Alan Tull at...@opensource.altera.com Add support for simple on/off control of each channel. To add regulator support, the pmbus part driver needs to add regulator_desc information and number of regulators to its pmbus_driver_info struct. regulator_desc can be declared using default macro

Re: [PATCH v4 3/4] pmbus: add regulator support

2014-10-02 Thread atull
On Thu, 2 Oct 2014, Guenter Roeck wrote: On 10/02/2014 04:20 AM, Mark Brown wrote: On Wed, Oct 01, 2014 at 02:05:49PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add support for simple on/off control of each channel. This is basically

Re: [PATCH v2 2/3] ARM: dts: socfpga: fpga bridges bindings docs

2014-10-28 Thread atull
On Fri, 24 Oct 2014, Steffen Trumtrar wrote: Hi! Hi, I see that my documentation sucks and needs cleanup. I'll try to answer some of the flames and get a more coherent version out soon. On Thu, Oct 23, 2014 at 06:51:06PM -0500, at...@opensource.altera.com wrote: From: Alan Tull

Re: [PATCH v2 2/3] ARM: dts: socfpga: fpga bridges bindings docs

2014-10-28 Thread atull
On Tue, 28 Oct 2014, atull wrote: On Fri, 24 Oct 2014, Steffen Trumtrar wrote: + - init-val : 0 if driver should disable bridge at startup +1 if driver should enable bridge at startup +driver leaves bridge in current state if property

Re: [PATCH v2 2/3] ARM: dts: socfpga: fpga bridges bindings docs

2014-10-29 Thread atull
On Wed, 29 Oct 2014, Steffen Trumtrar wrote: On Wed, Oct 29, 2014 at 10:16:32AM +, Mark Brown wrote: On Wed, Oct 29, 2014 at 08:57:01AM +0100, Steffen Trumtrar wrote: So, that shouldn't be a problem though, as I already cooked up a driver for the L3 with all the ranges

Re: [PATCH v2 2/3] ARM: dts: socfpga: fpga bridges bindings docs

2014-10-29 Thread atull
On Wed, 29 Oct 2014, Pavel Machek wrote: Hi! +Optional properties: + - label : name that you want this bridge to show up as under +/sys/class/fpga-bridge. Default is brdevice# if this is +not specified. + Why?

Re: [PATCH v2 2/3] ARM: dts: socfpga: fpga bridges bindings docs

2014-10-29 Thread atull
On Wed, 29 Oct 2014, Steffen Trumtrar wrote: Hi! On Tue, Oct 28, 2014 at 04:19:03PM -0500, atull wrote: On Fri, 24 Oct 2014, Steffen Trumtrar wrote: Hi! Hi, I see that my documentation sucks and needs cleanup. I'll try to answer some of the flames and get a more

Re: [PATCH 1/4 v3] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver

2014-09-10 Thread atull
On Tue, 9 Sep 2014, Weike Chen wrote: The Synopsys DesignWare APB GPIO driver only supports open firmware devices. But, like Intel Quark X1000 SOC, which has a single PCI function exporting a GPIO and an I2C controller, it is a Multifunction device. This patch is to enable the current

RE: [PATCH 1/4 v3] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver

2014-09-11 Thread atull
On Thu, 11 Sep 2014, Chen, Alvin wrote: Hi Alvin, I did a quick test and this looks like it works for me (with device tree). I had a couple of small fixes below. It is very appreciated to help testing. Sure. Thanks for adding features to the driver! Alan -

Re: [PATCH 1/4 v3] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver

2014-09-11 Thread atull
On Thu, 11 Sep 2014, Shevchenko, Andriy wrote: On Wed, 2014-09-10 at 14:11 -0500, atull wrote: [] static int dwapb_gpio_probe(struct platform_device *pdev) { + int i; struct resource *res; struct dwapb_gpio *gpio; - struct device_node *np; int err; - unsigned

Re: [PATCH 4/4 v3] GPIO: gpio-dwapb: Suspend Resume PM enabling

2014-09-11 Thread atull
On Tue, 9 Sep 2014, Weike Chen wrote: struct dwapb_gpio; +struct dwapb_context; struct dwapb_gpio_port { struct bgpio_chip bgc; boolis_registered; struct dwapb_gpio *gpio; + struct dwapb_context*ctx; Alvin, Will this build

Re: [PATCH 1/4 v4] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver

2014-09-16 Thread atull
On Tue, 16 Sep 2014, Weike Chen wrote: One more: + + /* + * Only port A can provide interrupts in all configurations of + * the IP. + */ + if (pp-idx == 0 + of_property_read_bool(port_np,

Re: [PATCH] i2c designware add support of I2C standard mode

2014-09-18 Thread atull
On Wed, 20 Aug 2014, Romain Baeriswyl wrote: From: Romain Baeriswyl romain.baeris...@abilis.com Some legacy devices support ony I2C standard mode at 100kHz. This patch allows to select the standard mode through the DTS with the use of the existing clock-frequency parameter. When

Re: [PATCH 2/2] socfpga: support suspend to ram

2014-09-26 Thread atull
On Fri, 26 Sep 2014, Dinh Nguyen wrote: On 09/24/2014 03:27 PM, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add code that requests that the sdr controller go into self-refresh mode. This code is run from ocram. This patch assumes that u-boot has

Re: [PATCH] i2c designware add support of I2C standard mode

2014-09-27 Thread atull
On Sat, 20 Sep 2014, Wolfram Sang wrote: On Wed, Aug 20, 2014 at 04:29:08PM +0200, Romain Baeriswyl wrote: From: Romain Baeriswyl romain.baeris...@abilis.com Some legacy devices support ony I2C standard mode at 100kHz. This patch allows to select the standard mode through the DTS with

[PATCH v3 2/3] pmbus: add regulator support

2014-09-24 Thread atull
From: Alan Tull at...@opensource.altera.com Add support for simple on/off control of each channel. To add regulator support, the pmbus part driver needs to add regulator_desc information, of_regulator_match information, and number of regulators to its pmbus_driver_info struct. regulator_desc

[PATCH v3 0/3] regulator support for pmbus and ltc2978

2014-09-24 Thread atull
From: Alan Tull at...@opensource.altera.com This set of patches adds regulator support for pmbus_core.c and ltc2978.c Each output has individual on/off control. From PMBus_Specification_Part_II_Rev_1-3_20140318.pdf: 12.1.1. OPERATION Command Bit [7] Bit [7] controls whether the PMBus device

[PATCH v3 1/3] pmbus: core: add helpers for byte write and read modify write

2014-09-24 Thread atull
From: Alan Tull at...@opensource.altera.com Add two helper functions: * pmbus_write_byte_data = paged byte write * pmbus_update_byte_data = paged byte read/modify/write Signed-off-by: Alan Tull at...@opensource.altera.com --- drivers/hwmon/pmbus/pmbus_core.c | 31

[PATCH v3 3/3] pmbus: ltc2978: add regulator support

2014-09-24 Thread atull
From: Alan Tull at...@opensource.altera.com Add simple on/off regulator support for ltc2978 and other pmbus parts supported by ltc2978.c Signed-off-by: Alan Tull at...@opensource.altera.com v2: Remove '#include linux/regulator/machine.h' Only one regulator per pmbus device Get

[PATCH 2/2] socfpga: support suspend to ram

2014-09-24 Thread atull
From: Alan Tull at...@opensource.altera.com Add code that requests that the sdr controller go into self-refresh mode. This code is run from ocram. This patch assumes that u-boot has already configured sdr: sdr.ctrlcfg.lowpwreq.selfrfshmask = 3 sdr.ctrlcfg.lowpwrtiming.clkdisablecycles = 8

[PATCH 0/2] socfpga: fix hotplug/add suspend to ram

2014-09-24 Thread atull
From: Alan Tull at...@opensource.altera.com patch 1: socfpga: hotplug: put cpu1 in wfi Fix how cpu1 is hotplugged to prevent increaced power consumption. patch 2: socfpga: support suspend to ram * Initialize ocram * Add a function to do suspend to ram and place DDR in self-refresh

[PATCH 1/2] socfpga: hotplug: put cpu1 in wfi

2014-09-24 Thread atull
From: Alan Tull at...@opensource.altera.com Use WFI when putting CPU1 to sleep. Don't hold CPU1 in reset since that results in increased power consumption. Reset CPU1 briefly during CPU1 bootup. This has been tested for hotplug and suspend/resume and results in no increased power consumption.

Re: [PATCH v3 3/3] pmbus: ltc2978: add regulator support

2014-09-24 Thread atull
On Wed, 24 Sep 2014, Guenter Roeck wrote: Hi Guenter, On Wed, Sep 24, 2014 at 12:57:56PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add simple on/off regulator support for ltc2978 and other pmbus parts supported by ltc2978.c

Re: [PATCH v3 2/3] pmbus: add regulator support

2014-09-24 Thread atull
On Wed, 24 Sep 2014, Guenter Roeck wrote: On Wed, Sep 24, 2014 at 12:57:55PM -0500, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add support for simple on/off control of each channel. To add regulator support, the pmbus part driver needs to add

Re: [PATCH v3 2/3] pmbus: add regulator support

2014-09-24 Thread atull
On Wed, 24 Sep 2014, Dinh Nguyen wrote: Hi Alan, On 9/24/14, 12:57 PM, at...@opensource.altera.com wrote: From: Alan Tull at...@opensource.altera.com Add support for simple on/off control of each channel. To add regulator support, the pmbus part driver needs to add

Re: [PATCH 1/2] socfpga: hotplug: put cpu1 in wfi

2014-09-25 Thread atull
On Wed, 24 Sep 2014, Russell King - ARM Linux wrote: Hi Russell, On Wed, Sep 24, 2014 at 03:27:28PM -0500, at...@opensource.altera.com wrote: diff --git a/arch/arm/mach-socfpga/platsmp.c b/arch/arm/mach-socfpga/platsmp.c index 5356a72..1d5f8ad 100644 ---

  1   2   3   4   5   6   7   8   >