[PATCH v4] media: spi: Add support for LMH0395

2014-09-10 Thread Jean-Michel Hautbois
. v2: Add DT support v3: Change the bit set/clear in output_type as disabled means 'set the bit' v4: Clearer description of endpoints usage in Doc, and some init changes. Add a dependency on OF and don't test CONFIG_OF anymore. Signed-off-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com

Re: PFUZE100 regulator not going off when PWRON is 0

2014-09-09 Thread Jean-Michel Hautbois
2014-09-09 4:41 GMT+02:00 Robin Gong : > Thanks for Mark's forward. > > Hi Jean-Michel, > Yes, SWxOMODE can be set as 1 to active sleep mode if PWRON turn-off event > occurs. And the voltage of sleep mode can be set in other register SWxOFF. But > by default, SWxOMODE is 0 which means all SW

[PATCH v3] media: spi: Add support for LMH0395

2014-09-09 Thread Jean-Michel Hautbois
. Signed-off-by: Jean-Michel Hautbois --- .../devicetree/bindings/media/spi/lmh0395.txt | 44 +++ MAINTAINERS| 6 + drivers/media/spi/Kconfig | 14 + drivers/media/spi/Makefile | 1 + drivers/media/spi

[PATCH] mmc: Add delay between CMD6 and CMD13 for Sandisk eMMC cards

2014-09-09 Thread Jean-Michel Hautbois
Tested on a i.MX6 board, with Sandisk SDIN5D1-2G. Without this patch, I/O errors occur. This eMMC seems to have a different Manufacturer ID as it reads 0x45 and not 0x2 as specified in datasheet. Signed-off-by: Jean-Michel Hautbois --- drivers/mmc/core/mmc_ops.c | 9 + 1 file changed, 9

[PATCH v2] media: spi: Add support for LMH0395

2014-09-09 Thread Jean-Michel Hautbois
b/MAINTAINERS index cf24bb5..ca42b9e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9141,6 +9141,12 @@ S: Maintained F: sound/soc/codecs/lm49453* F: sound/soc/codecs/isabelle* +TI LMH0395 DRIVER +M: Jean-Michel Hautbois +L: linux-me...@vger.kernel.org +S: Maintained +F:

[PATCH v2] media: spi: Add support for LMH0395

2014-09-09 Thread Jean-Michel Hautbois
..ca42b9e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9141,6 +9141,12 @@ S: Maintained F: sound/soc/codecs/lm49453* F: sound/soc/codecs/isabelle* +TI LMH0395 DRIVER +M: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com +L: linux-me...@vger.kernel.org +S: Maintained +F

[PATCH] mmc: Add delay between CMD6 and CMD13 for Sandisk eMMC cards

2014-09-09 Thread Jean-Michel Hautbois
Tested on a i.MX6 board, with Sandisk SDIN5D1-2G. Without this patch, I/O errors occur. This eMMC seems to have a different Manufacturer ID as it reads 0x45 and not 0x2 as specified in datasheet. Signed-off-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com --- drivers/mmc/core/mmc_ops.c

[PATCH v3] media: spi: Add support for LMH0395

2014-09-09 Thread Jean-Michel Hautbois
. Signed-off-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com --- .../devicetree/bindings/media/spi/lmh0395.txt | 44 +++ MAINTAINERS| 6 + drivers/media/spi/Kconfig | 14 + drivers/media/spi/Makefile

Re: PFUZE100 regulator not going off when PWRON is 0

2014-09-09 Thread Jean-Michel Hautbois
2014-09-09 4:41 GMT+02:00 Robin Gong b38...@freescale.com: Thanks for Mark's forward. Hi Jean-Michel, Yes, SWxOMODE can be set as 1 to active sleep mode if PWRON turn-off event occurs. And the voltage of sleep mode can be set in other register SWxOFF. But by default, SWxOMODE is 0 which

[PATCH 1/2] adv7604: Add support for i2c_new_secondary_device

2014-09-05 Thread Jean-Michel Hautbois
-Michel Hautbois --- .../devicetree/bindings/media/i2c/adv7604.txt | 17 ++- drivers/media/i2c/adv7604.c| 53 ++ 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/adv7604.txt b

[PATCH 2/2] adv7604: Add DT parsing support

2014-09-05 Thread Jean-Michel Hautbois
This allows specifying I²C secodnary addresses different from default ones. Signed-off-by: Jean-Michel Hautbois --- drivers/media/i2c/adv7604.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 8336c02..75613a4 100644

[PATCH] i2c: Add generic support passing secondary devices addresses

2014-09-05 Thread Jean-Michel Hautbois
the function returns NULL. For now the function only supports look-up of the secondary address from devicetree, but it can be extended in the future to for example support board files and/or ACPI. Signed-off-by: Jean-Michel Hautbois --- drivers/i2c/i2c-core.c | 40

[PATCH] i2c: Add generic support passing secondary devices addresses

2014-09-05 Thread Jean-Michel Hautbois
the function returns NULL. For now the function only supports look-up of the secondary address from devicetree, but it can be extended in the future to for example support board files and/or ACPI. Signed-off-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com --- drivers/i2c/i2c-core.c

[PATCH 2/2] adv7604: Add DT parsing support

2014-09-05 Thread Jean-Michel Hautbois
This allows specifying I²C secodnary addresses different from default ones. Signed-off-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com --- drivers/media/i2c/adv7604.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index

[PATCH 1/2] adv7604: Add support for i2c_new_secondary_device

2014-09-05 Thread Jean-Michel Hautbois
-Michel Hautbois jean-michel.hautb...@vodalys.com --- .../devicetree/bindings/media/i2c/adv7604.txt | 17 ++- drivers/media/i2c/adv7604.c| 53 ++ 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/Documentation/devicetree/bindings

Re: [PATCH] mmc: sdhci-esdhc-imx: Enable boot partition access from DT

2014-09-04 Thread Jean-Michel Hautbois
2014-09-04 11:37 GMT+02:00 Jean-Michel Hautbois : > Hi Ulf, > >> I am not sure adding a DT binding for non access to rpmb would be >> needed. At least until we heard of a similar case as Adrian describes >> but for rpmb. >> >> BTW, I just posted a patch which

Re: [PATCH] mmc: sdhci-esdhc-imx: Enable boot partition access from DT

2014-09-04 Thread Jean-Michel Hautbois
Hi Ulf, > I am not sure adding a DT binding for non access to rpmb would be > needed. At least until we heard of a similar case as Adrian describes > but for rpmb. > > BTW, I just posted a patch which disabled partition scan of the boot > area, what to you think about that? >

Re: [PATCH] mmc: sdhci-esdhc-imx: Enable boot partition access from DT

2014-09-04 Thread Jean-Michel Hautbois
Hi Ulf, I am not sure adding a DT binding for non access to rpmb would be needed. At least until we heard of a similar case as Adrian describes but for rpmb. BTW, I just posted a patch which disabled partition scan of the boot area, what to you think about that?

Re: [PATCH] mmc: sdhci-esdhc-imx: Enable boot partition access from DT

2014-09-04 Thread Jean-Michel Hautbois
2014-09-04 11:37 GMT+02:00 Jean-Michel Hautbois jean-michel.hautb...@vodalys.com: Hi Ulf, I am not sure adding a DT binding for non access to rpmb would be needed. At least until we heard of a similar case as Adrian describes but for rpmb. BTW, I just posted a patch which disabled partition

Re: [PATCH] mmc: sdhci-esdhc-imx: Enable boot partition access from DT

2014-09-03 Thread Jean-Michel Hautbois
2014-09-03 11:09 GMT+02:00 Ulf Hansson : > On 3 September 2014 11:02, Adrian Hunter wrote: >> On 09/03/2014 11:30 AM, Ulf Hansson wrote: >>> On 2 September 2014 17:49, Jean-Michel Hautbois >>> wrote: >>>> This property is useful when we don't want

PFUZE100 regulator not going off when PWRON is 0

2014-09-03 Thread Jean-Michel Hautbois
Hi, I have a custom i.MX6 based board, but PMIC part is exactly the same as the Freescale SabreSD board. I have a reset button, which makes the PWRON signal on PFUZE100 go from 1 to 0. I thought this would reset the chip, and thus all voltages would go to 0, but this is not the case. It seems

PFUZE100 regulator not going off when PWRON is 0

2014-09-03 Thread Jean-Michel Hautbois
Hi, I have a custom i.MX6 based board, but PMIC part is exactly the same as the Freescale SabreSD board. I have a reset button, which makes the PWRON signal on PFUZE100 go from 1 to 0. I thought this would reset the chip, and thus all voltages would go to 0, but this is not the case. It seems

Re: [PATCH] mmc: sdhci-esdhc-imx: Enable boot partition access from DT

2014-09-03 Thread Jean-Michel Hautbois
2014-09-03 11:09 GMT+02:00 Ulf Hansson ulf.hans...@linaro.org: On 3 September 2014 11:02, Adrian Hunter adrian.hun...@intel.com wrote: On 09/03/2014 11:30 AM, Ulf Hansson wrote: On 2 September 2014 17:49, Jean-Michel Hautbois jean-michel.hautb...@vodalys.com wrote: This property is useful

[PATCH] mmc: sdhci-esdhc-imx: Enable boot partition access from DT

2014-09-02 Thread Jean-Michel Hautbois
This property is useful when we don't want to access boot partitions on eMMC Signed-off-by: Jean-Michel Hautbois --- Documentation/devicetree/bindings/mmc/mmc.txt | 1 + drivers/mmc/host/sdhci-esdhc-imx.c| 8 include/linux/platform_data/mmc-esdhc-imx.h | 1 + 3 files

[PATCH] mmc: sdhci-esdhc-imx: Enable boot partition access from DT

2014-09-02 Thread Jean-Michel Hautbois
This property is useful when we don't want to access boot partitions on eMMC Signed-off-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com --- Documentation/devicetree/bindings/mmc/mmc.txt | 1 + drivers/mmc/host/sdhci-esdhc-imx.c| 8 include/linux/platform_data/mmc

Re: [PATCH] misc: lattice-ecp3-config: Add missing MODULE_FIRMWARE()

2014-08-08 Thread Jean-Michel Hautbois
> MODULE_LICENSE("GPL"); > +MODULE_FIRMWARE(FIRMWARE_NAME); > -- > 2.0.3 > It works on my i.MX6 platform. Tested-by: Jean-Michel Hautbois Thanks, JM -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to major

Re: [PATCH] misc: lattice-ecp3-config: Add missing MODULE_FIRMWARE()

2014-08-08 Thread Jean-Michel Hautbois
); +MODULE_FIRMWARE(FIRMWARE_NAME); -- 2.0.3 It works on my i.MX6 platform. Tested-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com Thanks, JM -- 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 "firmware loader: allow disabling of udev as firmware loader" added to driver-core tree

2014-08-06 Thread Jean-Michel Hautbois
2014-08-06 12:52 GMT+02:00 Takashi Iwai : > At Wed, 6 Aug 2014 12:50:28 +0200, > Jean-Michel Hautbois wrote: >> >> 2014-08-06 12:21 GMT+02:00 Takashi Iwai : >> > At Wed, 6 Aug 2014 11:44:14 +0200, >> > Jean-Michel Hautbois wrote: >> >> >> >&

Re: patch "firmware loader: allow disabling of udev as firmware loader" added to driver-core tree

2014-08-06 Thread Jean-Michel Hautbois
2014-08-06 12:21 GMT+02:00 Takashi Iwai : > At Wed, 6 Aug 2014 11:44:14 +0200, > Jean-Michel Hautbois wrote: >> >> 2014-08-06 11:24 GMT+02:00 Takashi Iwai : >> > At Wed, 6 Aug 2014 11:10:27 +0200, >> > Jean-Michel Hautbois wrote: >> >> >> >

Re: patch "firmware loader: allow disabling of udev as firmware loader" added to driver-core tree

2014-08-06 Thread Jean-Michel Hautbois
2014-08-06 11:24 GMT+02:00 Takashi Iwai : > At Wed, 6 Aug 2014 11:10:27 +0200, > Jean-Michel Hautbois wrote: >> >> 2014-08-05 21:22 GMT+02:00 Shuah Khan : >> > On Tue, Aug 5, 2014 at 10:01 AM, Takashi Iwai wrote: >> >>> Yes, it worked, if the f

Re: patch "firmware loader: allow disabling of udev as firmware loader" added to driver-core tree

2014-08-06 Thread Jean-Michel Hautbois
2014-08-05 21:22 GMT+02:00 Shuah Khan : > On Tue, Aug 5, 2014 at 10:01 AM, Takashi Iwai wrote: >>> Yes, it worked, if the firmware was in the /lib/firmware directory. >> > > ok it works when the firmware is in /lib/firmware. It sounds to me the > reason load fails when the firmware is under

Re: patch firmware loader: allow disabling of udev as firmware loader added to driver-core tree

2014-08-06 Thread Jean-Michel Hautbois
2014-08-05 21:22 GMT+02:00 Shuah Khan shuahk...@gmail.com: On Tue, Aug 5, 2014 at 10:01 AM, Takashi Iwai ti...@suse.de wrote: Yes, it worked, if the firmware was in the /lib/firmware directory. ok it works when the firmware is in /lib/firmware. It sounds to me the reason load fails when the

Re: patch firmware loader: allow disabling of udev as firmware loader added to driver-core tree

2014-08-06 Thread Jean-Michel Hautbois
2014-08-06 11:24 GMT+02:00 Takashi Iwai ti...@suse.de: At Wed, 6 Aug 2014 11:10:27 +0200, Jean-Michel Hautbois wrote: 2014-08-05 21:22 GMT+02:00 Shuah Khan shuahk...@gmail.com: On Tue, Aug 5, 2014 at 10:01 AM, Takashi Iwai ti...@suse.de wrote: Yes, it worked, if the firmware

Re: patch firmware loader: allow disabling of udev as firmware loader added to driver-core tree

2014-08-06 Thread Jean-Michel Hautbois
2014-08-06 12:21 GMT+02:00 Takashi Iwai ti...@suse.de: At Wed, 6 Aug 2014 11:44:14 +0200, Jean-Michel Hautbois wrote: 2014-08-06 11:24 GMT+02:00 Takashi Iwai ti...@suse.de: At Wed, 6 Aug 2014 11:10:27 +0200, Jean-Michel Hautbois wrote: 2014-08-05 21:22 GMT+02:00 Shuah Khan shuahk

Re: patch firmware loader: allow disabling of udev as firmware loader added to driver-core tree

2014-08-06 Thread Jean-Michel Hautbois
2014-08-06 12:52 GMT+02:00 Takashi Iwai ti...@suse.de: At Wed, 6 Aug 2014 12:50:28 +0200, Jean-Michel Hautbois wrote: 2014-08-06 12:21 GMT+02:00 Takashi Iwai ti...@suse.de: At Wed, 6 Aug 2014 11:44:14 +0200, Jean-Michel Hautbois wrote: 2014-08-06 11:24 GMT+02:00 Takashi Iwai ti

[PATCH] Lattice ECP3 FPGA: Check firmware pointer

2014-08-05 Thread jean-michel . hautbois
From: Jean-Michel Hautbois This patch corrects a lack of testing. If fw is NULL when calling firmware_load(), it results in a kernel oops. Signed-off-by: Jean-Michel Hautbois --- drivers/misc/lattice-ecp3-config.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/misc/lattice

Re: patch "firmware loader: allow disabling of udev as firmware loader" added to driver-core tree

2014-08-05 Thread Jean-Michel Hautbois
2014-08-05 17:53 GMT+02:00 Takashi Iwai : > At Tue, 5 Aug 2014 17:43:17 +0200, > Jean-Michel Hautbois wrote: >> >> 2014-08-01 22:01 GMT+02:00 : >> > Hi Takashi, >> > >> > Sorry for the late response, I tried with latest stable kernel 3.15.8. >>

Re: patch "firmware loader: allow disabling of udev as firmware loader" added to driver-core tree

2014-08-05 Thread Jean-Michel Hautbois
2014-08-01 22:01 GMT+02:00 : > Hi Takashi, > > Sorry for the late response, I tried with latest stable kernel 3.15.8. > surprisingly the BIOS update works even without applying the patch in both > the cases. Hi,I'm sorry for my late answer too, but I didn't try this patch recently... I have

Re: patch firmware loader: allow disabling of udev as firmware loader added to driver-core tree

2014-08-05 Thread Jean-Michel Hautbois
2014-08-01 22:01 GMT+02:00 b_b_si...@dell.com: Hi Takashi, Sorry for the late response, I tried with latest stable kernel 3.15.8. surprisingly the BIOS update works even without applying the patch in both the cases. Hi,I'm sorry for my late answer too, but I didn't try this patch

Re: patch firmware loader: allow disabling of udev as firmware loader added to driver-core tree

2014-08-05 Thread Jean-Michel Hautbois
2014-08-05 17:53 GMT+02:00 Takashi Iwai ti...@suse.de: At Tue, 5 Aug 2014 17:43:17 +0200, Jean-Michel Hautbois wrote: 2014-08-01 22:01 GMT+02:00 b_b_si...@dell.com: Hi Takashi, Sorry for the late response, I tried with latest stable kernel 3.15.8. surprisingly the BIOS update works

[PATCH] Lattice ECP3 FPGA: Check firmware pointer

2014-08-05 Thread jean-michel . hautbois
From: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com This patch corrects a lack of testing. If fw is NULL when calling firmware_load(), it results in a kernel oops. Signed-off-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com --- drivers/misc/lattice-ecp3-config.c | 5 + 1

[PATCH v5] Lattice ECP3 FPGA: Correct endianness

2014-07-24 Thread Jean-Michel Hautbois
This code corrects endianness and avoids a sparse error. Tested with Lattice ECP3-35 with Freescale i.MX6. It also sends uevent in order to load it. Signed-off-by: Jean-Michel Hautbois --- drivers/misc/lattice-ecp3-config.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions

Re: [PATCH v4] Lattice ECP3 FPGA: Correct endianness

2014-07-24 Thread Jean-Michel Hautbois
2014-07-24 9:37 GMT+02:00 Greg KH : > On Thu, Jul 24, 2014 at 08:53:30AM +0200, Jean-Michel Hautbois wrote: >> > Your email client ate all the tabs and spit out spaces and then >> > line-wrapped the patch, making it impossible to apply :( >> > >> > Can you

Re: [PATCH v4] Lattice ECP3 FPGA: Correct endianness

2014-07-24 Thread Jean-Michel Hautbois
> Your email client ate all the tabs and spit out spaces and then > line-wrapped the patch, making it impossible to apply :( > > Can you fix it up and resend it in a format we can use? > > thanks, > > greg k-h GMail GUI is a nightmare, I can't find an option to tell it to let me send whatever I

Re: [PATCH v4] Lattice ECP3 FPGA: Correct endianness

2014-07-24 Thread Jean-Michel Hautbois
Your email client ate all the tabs and spit out spaces and then line-wrapped the patch, making it impossible to apply :( Can you fix it up and resend it in a format we can use? thanks, greg k-h GMail GUI is a nightmare, I can't find an option to tell it to let me send whatever I want...

Re: [PATCH v4] Lattice ECP3 FPGA: Correct endianness

2014-07-24 Thread Jean-Michel Hautbois
2014-07-24 9:37 GMT+02:00 Greg KH gre...@linuxfoundation.org: On Thu, Jul 24, 2014 at 08:53:30AM +0200, Jean-Michel Hautbois wrote: Your email client ate all the tabs and spit out spaces and then line-wrapped the patch, making it impossible to apply :( Can you fix it up and resend

[PATCH v5] Lattice ECP3 FPGA: Correct endianness

2014-07-24 Thread Jean-Michel Hautbois
This code corrects endianness and avoids a sparse error. Tested with Lattice ECP3-35 with Freescale i.MX6. It also sends uevent in order to load it. Signed-off-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com --- drivers/misc/lattice-ecp3-config.c | 16 +--- 1 file changed

[PATCH v4] Lattice ECP3 FPGA: Correct endianness

2014-07-23 Thread Jean-Michel Hautbois
This code corrects endianness and avoids a sparse error. Tested with Lattice ECP3-35 with Freescale i.MX6. It also sends uevent in order to load it. Signed-off-by: Jean-Michel Hautbois --- drivers/misc/lattice-ecp3-config.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions

[PATCH v4] Lattice ECP3 FPGA: Correct endianness

2014-07-23 Thread Jean-Michel Hautbois
This code corrects endianness and avoids a sparse error. Tested with Lattice ECP3-35 with Freescale i.MX6. It also sends uevent in order to load it. Signed-off-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com --- drivers/misc/lattice-ecp3-config.c | 16 +--- 1 file changed

[PATCH v3] Lattice ECP3 FPGA: Correct endianness

2014-07-21 Thread Jean-Michel Hautbois
This code corrects endianness and avoids a sparse error. Tested with Lattice ECP3-35 with Freescale i.MX6. It also sends uevent in order to load it. Signed-off-by: Jean-Michel Hautbois --- drivers/misc/lattice-ecp3-config.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions

[PATCH v3] Lattice ECP3 FPGA: Correct endianness

2014-07-21 Thread Jean-Michel Hautbois
This code corrects endianness and avoids a sparse error. Tested with Lattice ECP3-35 with Freescale i.MX6. It also sends uevent in order to load it. Signed-off-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com --- drivers/misc/lattice-ecp3-config.c | 16 +--- 1 file changed

Re: [PATCH] Lattice ECP3 FPGA: Correct endianness

2014-07-04 Thread Jean-Michel Hautbois
2014-07-04 16:58 GMT+02:00 Geert Uytterhoeven : > On Thu, Jul 3, 2014 at 5:54 PM, Jean-Michel Hautbois > wrote: >> --- a/drivers/misc/lattice-ecp3-config.c >> +++ b/drivers/misc/lattice-ecp3-config.c >> @@ -93,7 +93,7 @@ static void firmware_load(const struct firmwa

[PATCH v2] Lattice ECP3 FPGA: Correct endianness

2014-07-04 Thread Jean-Michel Hautbois
This code corrects endianness and avoids a sparse error. Tested with Lattice ECP3-35 with Freescale i.MX6. Signed-off-by: Jean-Michel Hautbois Acked-by: Stefan Roese --- drivers/misc/lattice-ecp3-config.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers

Re: [PATCH] Lattice ECP3 FPGA: Correct endianness

2014-07-04 Thread Jean-Michel Hautbois
2014-07-03 18:12 GMT+02:00 Joe Perches : > > On Thu, 2014-07-03 at 17:54 +0200, Jean-Michel Hautbois wrote: > > This patch corrects three big/little endian issues. Tested on i.MX6. > > trivial: > > > diff --git a/drivers/misc/lattice-ecp3-config.c > [] >

Lattice ECP3 load firmware

2014-07-04 Thread Jean-Michel Hautbois
Hi ! I noticed you (Stefan) are using request_firmware_nowait() call. This means user needs to explicitly call it using $ echo 1 > /sys/class/firmware/lattice-ecp3.0/loading $ cat lattice-ecp3.bit > /sys/class/firmware/lattice-ecp3.0/data $ echo 0 > /sys/class/firmware/lattice-ecp3.0/loading Or

Lattice ECP3 load firmware

2014-07-04 Thread Jean-Michel Hautbois
Hi ! I noticed you (Stefan) are using request_firmware_nowait() call. This means user needs to explicitly call it using $ echo 1 /sys/class/firmware/lattice-ecp3.0/loading $ cat lattice-ecp3.bit /sys/class/firmware/lattice-ecp3.0/data $ echo 0 /sys/class/firmware/lattice-ecp3.0/loading Or

Re: [PATCH] Lattice ECP3 FPGA: Correct endianness

2014-07-04 Thread Jean-Michel Hautbois
2014-07-03 18:12 GMT+02:00 Joe Perches j...@perches.com: On Thu, 2014-07-03 at 17:54 +0200, Jean-Michel Hautbois wrote: This patch corrects three big/little endian issues. Tested on i.MX6. trivial: diff --git a/drivers/misc/lattice-ecp3-config.c [] @@ -165,8 +165,8 @@ static void

[PATCH v2] Lattice ECP3 FPGA: Correct endianness

2014-07-04 Thread Jean-Michel Hautbois
This code corrects endianness and avoids a sparse error. Tested with Lattice ECP3-35 with Freescale i.MX6. Signed-off-by: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com Acked-by: Stefan Roese s...@denx.de --- drivers/misc/lattice-ecp3-config.c | 13 +++-- 1 file changed, 7

Re: [PATCH] Lattice ECP3 FPGA: Correct endianness

2014-07-04 Thread Jean-Michel Hautbois
2014-07-04 16:58 GMT+02:00 Geert Uytterhoeven ge...@linux-m68k.org: On Thu, Jul 3, 2014 at 5:54 PM, Jean-Michel Hautbois jean-michel.hautb...@vodalys.com wrote: --- a/drivers/misc/lattice-ecp3-config.c +++ b/drivers/misc/lattice-ecp3-config.c @@ -93,7 +93,7 @@ static void firmware_load(const

[PATCH] Lattice ECP3 FPGA: Correct endianness

2014-07-03 Thread Jean-Michel Hautbois
This patch corrects three big/little endian issues. Tested on i.MX6. From: Jean-Michel Hautbois Date: Thu, 3 Jul 2014 17:49:47 +0200 Subject: [PATCH] Endianness corrections --- drivers/misc/lattice-ecp3-config.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: Lattice ECP3 FPGA with i.MX6

2014-07-03 Thread Jean-Michel Hautbois
> No. This driver was implemented and tested in a MPC5200 system. Most likely > I missed some endian issues as you already noticed. I suggest you start with > looking at this line: > > jedec_id = *(u32 *)[4]; > > And add some endian functions here, e.g. be32_to_cpu(). This might help with

Lattice ECP3 FPGA with i.MX6

2014-07-03 Thread Jean-Michel Hautbois
Hi, I have a board, with a Freescale i.MX6 chip and a ECP3-35 FPGA on SPI. I tried to load the firmware using the lattice-ecp3-config driver, but it fails with this error : lattice-ecp3 spi32766.3: FPGA bitstream configuration driver registered lattice-ecp3 spi32766.3: Error: No supported FPGA

Lattice ECP3 FPGA with i.MX6

2014-07-03 Thread Jean-Michel Hautbois
Hi, I have a board, with a Freescale i.MX6 chip and a ECP3-35 FPGA on SPI. I tried to load the firmware using the lattice-ecp3-config driver, but it fails with this error : lattice-ecp3 spi32766.3: FPGA bitstream configuration driver registered lattice-ecp3 spi32766.3: Error: No supported FPGA

Re: Lattice ECP3 FPGA with i.MX6

2014-07-03 Thread Jean-Michel Hautbois
No. This driver was implemented and tested in a MPC5200 system. Most likely I missed some endian issues as you already noticed. I suggest you start with looking at this line: jedec_id = *(u32 *)rxbuf[4]; And add some endian functions here, e.g. be32_to_cpu(). This might help with

[PATCH] Lattice ECP3 FPGA: Correct endianness

2014-07-03 Thread Jean-Michel Hautbois
This patch corrects three big/little endian issues. Tested on i.MX6. From: Jean-Michel Hautbois jean-michel.hautb...@vodalys.com Date: Thu, 3 Jul 2014 17:49:47 +0200 Subject: [PATCH] Endianness corrections --- drivers/misc/lattice-ecp3-config.c | 8 1 file changed, 4 insertions(+), 4

<    1   2