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 > > > > Some legacy devices support ony I2C standard mode at 100kHz. > > This patch allows to select the standard mode through the DTS &g

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 > > > > Add the Altera SDRAM EDAC bindings and device tree changes to the Altera > > SoC project. > > > > Signed-off-by: Thor Thayer > >

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 regul

[PATCH 1/3] fpga manager framework core

2014-08-01 Thread atull
From: Alan Tull 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 EXPORT_SYMBOL_GPL(fpga_mgr_status_get); Get a status strin

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

2014-08-01 Thread atull
From: Alan Tull [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 just exports kernel functions.

[PATCH 3/3] fpga sysfs interface

2014-08-01 Thread atull
From: Alan Tull 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 function or by the low level

[PATCH 2/3] fpga bus driver

2014-08-01 Thread atull
From: Alan Tull 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 Pantelis's and Grant Likely's stuff

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

2014-10-22 Thread atull
From: Alan Tull 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 should be sufficient for ind

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

2014-10-22 Thread atull
From: Alan Tull 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, I really hope this can be

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

2014-10-22 Thread atull
From: Alan Tull 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 work on Device Tree overlays

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

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

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 > > 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 co

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 br if > > > > this is > > > > +not specified. > > >

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 documentati

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 > > > +driv

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 r

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

2014-10-14 Thread atull
On Fri, 10 Oct 2014, atull wrote: > On Thu, 9 Oct 2014, Steffen Trumtrar wrote: > > Hi Steffen, > > > Hi! > > > > On Thu, Oct 09, 2014 at 09:57:49AM -0500, atull wrote: > > > On Thu, 9 Oct 2014, Steffen Trumtrar wrote: > > > > > > >

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

2014-10-14 Thread atull
From: Alan Tull 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. Signed-off-by: Alan Tull C

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

2014-10-14 Thread atull
From: Alan Tull 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 sdr.ctrlcfg.dramtiming4.sel

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

2014-10-14 Thread atull
From: Alan Tull Patch 1: socfpga: hotplug: put cpu1 in wfi Use WFI when putting CPU1 to sleep. Don't hold CPU1 in reset since that results in increased power consumption. Only briefly reset CPU1. Patch 2: socfpga: support suspend to ram * allocate space in ocram using sram driver * A

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

2014-10-15 Thread atull
From: Alan Tull 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 for a regulator (PMBUS_REGU

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

2014-10-15 Thread atull
From: Alan Tull 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 Cc: Guenter Roeck Cc: Mark Brown --- v2: add prototypes for the two new functions --- drivers/hwmon/pmbus/pmbus.h |

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

2014-10-15 Thread atull
From: Alan Tull Add simple on/off regulator support for ltc2978 and other pmbus parts supported by ltc2978.c Signed-off-by: Alan Tull Cc: Guenter Roeck Cc: Mark Brown --- v2: Remove '#include ' Only one regulator per pmbus device Get regulator_init_data from pdata or device tree v3:

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

2014-10-15 Thread atull
From: Alan Tull 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 regulators of the same kind.

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

2014-10-15 Thread atull
From: Alan Tull Add device tree bindings documentation for ltc2978. Signed-off-by: Alan Tull Cc: Guenter Roeck Cc: Mark Rutland Cc: Mark Brown --- v2: clean whitespace v3: list compatible strings in single column add vendor as lltc mention regulators.txt instead of documenting regul

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 > > > > 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 co

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 > > > > 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

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 > > > > 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

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 > > > > Add support for simple on/off control of each channel. > > > > To add regulator support, the pmbus part driver needs to add > > regulator_desc informa

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 > > > > 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/

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

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

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

2014-10-01 Thread atull
From: Alan Tull 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 can be declared using default

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

2014-10-01 Thread atull
From: Alan Tull 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 --- drivers/hwmon/pmbus/pmbus_core.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/d

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

2014-10-01 Thread atull
From: Alan Tull 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 output is on or off. If b

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 > > sdr.ctrlcfg.lowpwrt

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

2014-10-01 Thread atull
From: Alan Tull 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. Signed-off-by: Alan Tull

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

2014-10-01 Thread atull
From: Alan Tull 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 sdr.ctrlcfg.dramtiming4.sel

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

2014-10-01 Thread atull
From: Alan Tull 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 suspend to ram * allocate spa

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

2014-10-01 Thread atull
From: Alan Tull Add simple on/off regulator support for ltc2978 and other pmbus parts supported by ltc2978.c Signed-off-by: Alan Tull v2: Remove '#include ' Only one regulator per pmbus device Get regulator_init_data from pdata or device tree v3: Support multiple regulators for each c

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 > > > > This set of patches adds regulator support for pmbus_core.c and ltc2978.c > > > > Each output has individual on/off control. > > > > From PMBus_Sp

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 > > > > Add simple on/off regulator support for ltc2978 and > > other pmbus parts supported by ltc2978.c > > > > Signed-off-by: Alan Tull > > > > v2: Rem

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 > > > > Add simple on/off regulator support for ltc2978 and > > other pmbus parts supported by ltc2978.c > > > > Signed-off-by: Alan Tull > > > > v2: Rem

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

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

[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 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 off. If bit [7] is set

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

2014-10-02 Thread atull
From: Alan Tull Add simple on/off regulator support for ltc2978 and other pmbus parts supported by ltc2978.c Signed-off-by: Alan Tull --- v2: Remove '#include ' Only one regulator per pmbus device Get regulator_init_data from pdata or device tree v3: Support multiple regulators for eac

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

2014-10-02 Thread atull
From: Alan Tull 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 --- v2: add prototypes for the two new functions --- drivers/hwmon/pmbus/pmbus.h |4 drivers/hwmon/pmbus/pmbus_

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

2014-10-02 Thread atull
From: Alan Tull 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 for a regulator (PMBUS_REGU

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 > > > > > > Add support for simple on/off control of each channel. > > > > This is basically fine but the r

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

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 > > 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

[PATCH v2 0/3] fpga bridge framework

2014-10-23 Thread atull
From: Alan Tull 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 driver where appropriate. Al

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

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

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

2014-10-23 Thread atull
From: Alan Tull Add DTS binding documentation for the Altera FPGA bridges. Signed-off-by: Alan Tull --- .../bindings/fpga/altera-fpga2sdram-bridge.txt | 57 .../bindings/fpga/altera-hps2fpga-bridge.txt | 53 ++ 2 files changed, 110 insertions(

[PATCH v2 3/3] fpga bridge driver

2014-10-23 Thread atull
From: Alan Tull 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 * lwhps2fpga Control from sy

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 > > 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 variou

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 wrote: > > > > Hi! > > > >> * /sys/class/fpga_manager//firmware > >> Name of FPGA image file to load using firmware class. > >> $ echo image.rbf > /sys/class/fpga_manager//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 > > > > Add sysfs document for fpga bridges. > > > > Signed-off-by: Alan Tull > > --- > > Documentation/ABI/testing/sysfs-class-fpga-bridge |5 + > > 1 file ch

Re: [PATCH v9 0/7] FPGA Manager Framework and Simple FPGA Bus

2015-07-22 Thread atull
On Fri, 17 Jul 2015, atull wrote: > On Fri, 17 Jul 2015, Jason Gunthorpe wrote: > > > On Fri, Jul 17, 2015 at 10:51:10AM -0500, at...@opensource.altera.com wrote: > > > From: Alan Tull > > > > > > This patchset adds two chunks plus documentation:

Re: [PATCH v9 0/7] FPGA Manager Framework and Simple FPGA Bus

2015-07-22 Thread atull
On Wed, 22 Jul 2015, Jason Gunthorpe wrote: > On Wed, Jul 22, 2015 at 03:32:32PM -0500, atull wrote: > > > I looked some more; I don't see a simple way of deferring probing until > > after the filesystem is loaded (so that the image file would be > > available), la

Re: [PATCH v9 5/7] staging: fpga manager core

2015-07-23 Thread atull
On Wed, 22 Jul 2015, Moritz Fischer wrote: Hi Miritz, > Hi Alan, > > a couple of small things I found while reworking the Zynq version to > match the v9 patchset: > > On Fri, Jul 17, 2015 at 8:51 AM, wrote: > > From: Alan Tull > > ... > > + ret = mgr->mops->write_complete(mgr); > > Co

Re: [PATCH v9 0/7] FPGA Manager Framework and Simple FPGA Bus

2015-07-23 Thread atull
On Thu, 23 Jul 2015, Greg KH wrote: > On Fri, Jul 17, 2015 at 10:51:10AM -0500, at...@opensource.altera.com wrote: > > From: Alan Tull > > > > This patchset adds two chunks plus documentation: > > * fpga manager core: exports ABI functions that write an image to a FPGA > > * DT Overlay support

Re: [PATCH v9 6/7] staging: add simple-fpga-bus

2015-07-23 Thread atull
On Thu, 23 Jul 2015, Jason Gunthorpe wrote: > On Thu, Jul 23, 2015 at 02:55:52PM -0700, Moritz Fischer wrote: > > Hi Alan, > > > > I saw that your socfpga driver doesn't support the partial reconfig > > use case (not a big deal). > > What I currently do for Zynq is if I'm doing a non-partial reco

Re: [PATCH v9 4/7] staging: fpga manager: add sysfs interface document

2015-07-24 Thread atull
On Fri, 24 Jul 2015, Pavel Machek wrote: Hi Pavel, Thanks for your your feedback in cleaning up these docs. > Hi! > > > +What: /sys/class/fpga_manager//state > > +Date: July 2015 > > +KernelVersion: 4.2 > > +Contact: Alan Tull > > +Description: Read fpga m

Re: [PATCH v10 5/8] staging: usage documentation for simple fpga bus

2015-08-19 Thread atull
On Mon, 17 Aug 2015, Pavel Machek wrote: > On Thu 2015-08-13 12:37:29, at...@opensource.altera.com wrote: > > From: Alan Tull > > > > Add a document spelling out usage of the simple fpga bus. > > > > Signed-off-by: Alan Tull > > Acked-by: Pavel Machek >

[PATCH v10 0/8] FPGA Manager Framework and Simple FPGA Bus

2015-08-13 Thread atull
From: Alan Tull This patch set adds two chunks plus documentation: * FPGA manager core: exports API functions that write an image to a FPGA * DT Overlay support: simple-fpga-bus to handle FPGA from a DT overlay The FPGA manager core is mature enough to be in the regular kernel. simple-fpga-bu

[PATCH v10 5/8] staging: usage documentation for simple fpga bus

2015-08-13 Thread atull
From: Alan Tull Add a document spelling out usage of the simple fpga bus. Signed-off-by: Alan Tull --- v9: Initial version of this patch in patchset v10: s/fpga/FPGA/g improve formatting some rewriting move to staging/simple-fpga-bus --- .../Documentation/simple-fpga-bus.txt

[PATCH v10 8/8] staging: add simple-fpga-bus

2015-08-13 Thread atull
From: Alan Tull Add simple fpga bus. This is a bus that configures an fpga and its bridges before populating the devices below it. This is intended for use with device tree overlays. Note that FPGA bridges are seen as reset controllers so no special framework for FPGA bridges will need to be a

[PATCH v10 6/8] staging: add bindings document for simple fpga bus

2015-08-13 Thread atull
From: Alan Tull New bindings document for simple fpga bus. Signed-off-by: Alan Tull --- v9: initial version added to this patchset v10: s/fpga/FPGA/g replace DT overlay example with slightly more complicated example move to staging/simple-fpga-bus --- .../Documentation/bindings/sim

[PATCH v10 1/8] usage documentation for FPGA manager core

2015-08-13 Thread atull
From: Alan Tull Add a document on the new FPGA manager core. Signed-off-by: Alan Tull --- v9: initial version where this patch was added v10: requested cleanups to formatting and otherwise s/fpga/FPGA/g rewrite implementation section to not reference socfpga.c by name other rew

[PATCH v10 4/8] fpga manager: add driver for socfpga fpga manager

2015-08-13 Thread atull
From: Alan Tull Add driver to fpga manager framework to allow configuration of FPGA in Altera SoCFPGA parts. Signed-off-by: Alan Tull Acked-by: Michal Simek --- v2: fpga_manager struct now contains struct device fpga_manager_register parameters now take device v3: skip a version to align

[PATCH v10 7/8] staging: simple-fpga-bus: add TODO document

2015-08-13 Thread atull
From: Alan Tull Add a TODO document for the simple fpga bus. Signed-off-by: Alan Tull --- v10: This patch added in v10 of the patch set --- drivers/staging/simple-fpga-bus/TODO | 13 + 1 file changed, 13 insertions(+) create mode 100644 drivers/staging/simple-fpga-bus/TODO diff

[PATCH v10 3/8] add fpga manager core

2015-08-13 Thread atull
From: Alan Tull API to support programming FPGA. The following functions are exported as GPL: * fpga_mgr_buf_load Load fpga from image in buffer * fpga_mgr_firmware_load Request firmware and load it to the FPGA. * fpga_mgr_register * fpga_mgr_unregister FPGA device drivers can be adde

[PATCH v10 0/8] FPGA Manager Framework and Simple FPGA Bus

2015-08-13 Thread atull
From: Alan Tull This patchset adds two chunks plus documentation: * fpga manager core: exports API functions that write an image to a FPGA * DT Overlay support: simple-fpga-bus to handle FPGA from a DT overlay The fpga manager core is mature enough to be in the regular kernel. simple-fpga-bus

[PATCH v10 2/8] fpga manager: add sysfs interface document

2015-08-13 Thread atull
From: Alan Tull Add documentation under drivers/staging for new fpga manager's sysfs interface. Signed-off-by: Alan Tull --- v5 : (actually second version, but keeping version numbers aligned with rest of patch series) Move document to drivers/staging/fpga/Documentation/ABI v6 :

Re: [PATCH v10 3/8] add fpga manager core

2015-08-14 Thread atull
On Fri, 14 Aug 2015, Moritz Fischer wrote: > Hi Alan, > > I've updated my Zynq driver (it can be found in an older version > against your v8 in the Xilinx tree, too) > > https://github.com/mfischer/linux/tree/alan-fpga-mgr-v10 Since we are both already using this and have been for a while now,

Re: [PATCH v10 1/8] usage documentation for FPGA manager core

2015-08-14 Thread atull
On Thu, 13 Aug 2015, Moritz Fischer wrote: Hi Moritz, Thanks for the review. Will include your two nits in v11. > Hi Alan, > > thanks for continuing to work on this :) A couple of minor nits ... > > On Thu, Aug 13, 2015 at 10:37 AM, wrote: > > From: Alan Tull > > > > Add a document on the

Re: [PATCH v10 3/8] add fpga manager core

2015-08-14 Thread atull
On Fri, 14 Aug 2015, atull wrote: > On Fri, 14 Aug 2015, Moritz Fischer wrote: > > > Hi Alan, > > > > I've updated my Zynq driver (it can be found in an older version > > against your v8 in the Xilinx tree, too) > > > > https://github.com/mfischer

[PATCH v9 0/7] FPGA Manager Framework and Simple FPGA Bus

2015-07-17 Thread atull
From: Alan Tull This patchset adds two chunks plus documentation: * fpga manager core: exports ABI functions that write an image to a FPGA * DT Overlay support: simple-fpga-bus to handle FPGA from a DT overlay The core's ABI is minimal to start with: only 6 functions. This gives a common inte

[PATCH v9 6/7] staging: add simple-fpga-bus

2015-07-17 Thread atull
From: Alan Tull Add simple fpga bus. This is a bus that configures an fpga and its bridges before populating the devices below it. This is intended for use with device tree overlays. Note that FPGA bridges are seen as reset controllers so no special framework for FPGA bridges will need to be a

[PATCH v9 3/7] staging: add bindings document for simple fpga bus

2015-07-17 Thread atull
From: Alan Tull New bindings document for simple fpga bus. Signed-off-by: Alan Tull --- .../Documentation/bindings/simple-fpga-bus.txt | 61 1 file changed, 61 insertions(+) create mode 100644 drivers/staging/fpga/Documentation/bindings/simple-fpga-bus.txt diff --

[PATCH v9 2/7] staging: usage documentation for simple fpga bus

2015-07-17 Thread atull
From: Alan Tull Add a document spelling out usage of the simple fpga bus. Signed-off-by: Alan Tull --- .../staging/fpga/Documentation/simple-fpga-bus.txt | 48 1 file changed, 48 insertions(+) create mode 100644 drivers/staging/fpga/Documentation/simple-fpga-bus.txt di

[PATCH v9 5/7] staging: fpga manager core

2015-07-17 Thread atull
From: Alan Tull API to support programming FPGA. The following functions are exported as GPL: * fpga_mgr_buf_load Load fpga from image in buffer * fpga_mgr_firmware_load Request firmware and load it to the FPGA. * fpga_mgr_register * fpga_mgr_unregister FPGA device drivers can be adde

[PATCH v9 1/7] staging: usage documentation for FPGA manager core

2015-07-17 Thread atull
From: Alan Tull Add a document on the new FPGA manager core. Signed-off-by: Alan Tull --- drivers/staging/fpga/Documentation/fpga-mgr.txt | 117 +++ 1 file changed, 117 insertions(+) create mode 100644 drivers/staging/fpga/Documentation/fpga-mgr.txt diff --git a/drivers/

[PATCH v9 4/7] staging: fpga manager: add sysfs interface document

2015-07-17 Thread atull
From: Alan Tull Add documentation under drivers/staging for new fpga manager's sysfs interface. Signed-off-by: Alan Tull --- v5 : (actually second version, but keeping version numbers aligned with rest of patch series) Move document to drivers/staging/fpga/Documentation/ABI v6 :

[PATCH v9 7/7] staging: fpga manager: add driver for socfpga fpga manager

2015-07-17 Thread atull
From: Alan Tull Add driver to fpga manager framework to allow configuration of FPGA in Altera SoCFPGA parts. Signed-off-by: Alan Tull Acked-by: Michal Simek --- v2: fpga_manager struct now contains struct device fpga_manager_register parameters now take device v3: skip a version to align

Re: [PATCH v9 0/7] FPGA Manager Framework and Simple FPGA Bus

2015-07-17 Thread atull
On Fri, 17 Jul 2015, Jason Gunthorpe wrote: > On Fri, Jul 17, 2015 at 10:51:10AM -0500, at...@opensource.altera.com wrote: > > From: Alan Tull > > > > This patchset adds two chunks plus documentation: > > * fpga manager core: exports ABI functions that write an image to a FPGA > > * DT Overlay

Re: [PATCH v9 5/7] staging: fpga manager core

2015-07-17 Thread atull
On Fri, 17 Jul 2015, Randy Dunlap wrote: > On 07/17/15 08:51, at...@opensource.altera.com wrote: > > From: Alan Tull > > > > --- > > drivers/staging/Kconfig |2 + > > drivers/staging/Makefile|1 + > > drivers/staging/fpga/Kconfig| 14 ++ > > drivers/staging/fpga/Ma

Re: [PATCH v9 3/7] staging: add bindings document for simple fpga bus

2015-07-17 Thread atull
On Fri, 17 Jul 2015, Steffen Trumtrar wrote: > Hi! > > On Fri, Jul 17, 2015 at 10:51:13AM -0500, at...@opensource.altera.com wrote: > > From: Alan Tull > > > > New bindings document for simple fpga bus. > > > > Signed-off-by: Alan Tull > > --- > > .../Documentation/bindings/simple-fpga-bus.t

Re: [PATCH v9 7/7] staging: fpga manager: add driver for socfpga fpga manager

2015-07-17 Thread atull
On Fri, 17 Jul 2015, Moritz Fischer wrote: Hi Moritz, > Alan, > > it looks pretty good so far. I have worked with Michal and developed a > Zynq equivalent against your last > patchset which can be found in the Xilinx tree now. > > I just briefly glanced the changes below just two nits that caug

Re: [PATCH 17/54] MAINTAINERS: Add file patterns for fpga device tree bindings

2016-05-23 Thread atull
On Sun, 22 May 2016, Geert Uytterhoeven wrote: > Submitters of device tree binding documentation may forget to CC > the subsystem maintainer if this is missing. > > Signed-off-by: Geert Uytterhoeven > Cc: Alan Tull > Cc: Moritz Fischer > --- > Please apply this patch directly if you want to be

Re: [PATCH] fpga manager: Fix firmware resource leak on error

2015-11-18 Thread atull
On Wed, 18 Nov 2015, Tobias Klauser wrote: > If fpga_mgr_buf_load() fails, the firmware resource previously allocated > by request_firmware() is leaked. Fix it by calling release_firmware() > regardless of the return value of fpga_mgr_buf_load(). > > Found by the Coverity scanner (CID 1339653). >

Re: [PATCH] fpga: zynq-fpga: Avoid hammering clk_{enable/disable}.

2015-11-18 Thread atull
On Tue, 17 Nov 2015, Moritz Fischer wrote: > > Body has nothing specific what it is available only for CONFIG_PM that's > > why it should just work. > > You're right. I'll resubmit once other people took another look. Not > high priority ;-) > > Cheers, > > Moritz > Hi Moritz, Looks good t

[PATCH v12 4/6] fpga: add fpga bridge framework

2015-10-27 Thread atull
From: Alan Tull This framework adds API functions for enabling/ disabling FPGA bridges under kernel control. This allows the Linux kernel to disable FPGA bridges during FPGA reprogramming and to enable FPGA bridges when FPGA reprogramming is done. This framework is be manufacturer-agnostic, all

[PATCH v12 6/6] ARM: socfpga: fpga bridge driver support

2015-10-27 Thread atull
From: Alan Tull Supports Altera SOCFPGA bridges: * fpga2sdram * fpga2hps * hps2fpga * lwhps2fpga Allows enabling/disabling the bridges through the FPGA Bridge Framework API functions. The fpga2sdram driver only supports enabling and disabling of the ports that been configured early on. Thi

[PATCH v12 2/6] fpga: add bindings document for simple fpga bus

2015-10-27 Thread atull
From: Alan Tull New bindings document for simple fpga bus. Signed-off-by: Alan Tull --- v9: initial version added to this patchset v10: s/fpga/FPGA/g replace DT overlay example with slightly more complicated example move to staging/simple-fpga-bus v11: No change in this patch for v11

[PATCH v12 5/6] ARM: socfpga: add bindings document for fpga bridge drivers

2015-10-27 Thread atull
From: Alan Tull Add bindings documentation for Altera SOCFPGA bridges: * fpga2sdram * fpga2hps * hps2fpga * lwhps2fpga Signed-off-by: Alan Tull Signed-off-by: Dinh Nguyen Signed-off-by: Matthew Gerlach --- v2: separate into 2 documents for the 2 drivers v12: bump version to line up with

[PATCH v12 0/6] simple fpga bus and fpga bridge framework

2015-10-27 Thread atull
From: Alan Tull The Simple FPGA Bus provides a manufacturer-agnostic interface for reprogramming FPGAs using Device Tree Overlays. It uses the FPGA Bridge Framework and the upstreamed FPGA Manager Framework. When a Device Tree Overlay is applied, the Simple FPGA Bus will use information the ove

[PATCH v12 1/6] fpga: add usage documentation for simple fpga bus

2015-10-27 Thread atull
From: Alan Tull Add a document spelling out usage of the simple fpga bus. Signed-off-by: Alan Tull --- v9: Initial version of this patch in patchset v10: s/fpga/FPGA/g improve formatting some rewriting move to staging/simple-fpga-bus v11: No change in this patch for v11 of the p

[PATCH v12 3/6] fpga: add simple-fpga-bus

2015-10-27 Thread atull
From: Alan Tull The Simple FPGA bus uses the FPGA Manager Framework and the FPGA Bridge Framework to provide a manufactorer-agnostic interface for reprogramming FPGAs that is Device Tree Overlays-based. When a Device Tree Overlay containing a Simple FPGA Bus is applied, the Simple FPGA Bus will

<    1   2   3   4   >