Re: [PATCH 2/8] fbdev: ssd1307fb: Unify init code and make controller configurable from device tree

2015-02-07 Thread Noralf Trønnes
, but no answer yet: Can I do register initialization from Device Tree? http://www.spinics.net/lists/devicetree/msg68174.html Regards, Noralf Trønnes -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info

Re: staging: fbtft: CONFIG_ARCH_BCM2708?

2015-01-20 Thread Noralf Trønnes
Den 20.01.2015 09:46, skrev Paul Bolle: Thomas, Noralf, Your commit c296d5f9957c (staging: fbtft: core support) is included in today's linux-next (ie, next-20150120). I noticed because a script I use to check linux-next spotted a problem in it. See, that commit adds two checks for

Re: [PATCH] Staging: fbtft: fix space errors

2015-03-02 Thread Noralf Trønnes
Den 02.03.2015 20:21, skrev Andrey Skvortsov: On 02 Mar, Joe Perches wrote: On Mon, 2015-03-02 at 12:37 +0300, Dan Carpenter wrote: On Sat, Feb 28, 2015 at 06:59:19AM -0800, Joe Perches wrote: If you're really going to change these, please remove the unnecessary \ line continuations indent

Re: [PATCH] Staging: fbtft: move externs to header file

2015-03-03 Thread Noralf Trønnes
Den 03.03.2015 11:19, skrev Drew Fustini: Move extern declartions from fbtft-core.c to fbtft header file. This resovles the warning from checkpatch.pl that externs should be avoided in .c files. Signed-off-by: Drew Fustini pdp7p...@gmail.com --- drivers/staging/fbtft/fbtft-core.c | 5 -

Re: [PATCH] [RFC] drivers/staging/fbtft: fix sparse warnings

2015-02-23 Thread Noralf Trønnes
and nowhere else. Regards, Noralf Trønnes -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] ARM: bcm2835: Use 0x4 prefix for DMA bus addresses to SDRAM.

2015-05-05 Thread Noralf Trønnes
Den 05.05.2015 02:07, skrev Eric Anholt: Noralf Trønnes nor...@tronnes.org writes: Den 04.05.2015 21:33, skrev Eric Anholt: There exists a tiny MMU, configurable only by the VC (running the closed firmware), which maps from the ARM's physical addresses to bus addresses. These bus addresses

Re: [PATCH v2] dmaengine: bcm2835: Add slave dma support

2015-05-06 Thread Noralf Trønnes
Den 01.05.2015 23:07, skrev Martin Sperl: Tests with the initial (and incomplete) version of the spi-bcm2835 driver with DMA transfer support show that the dma-engine works as expected with this patch. There is one one observation: On 18.04.2015, at 13:06, Noralf Trønnes nor...@tronnes.org

Re: [PATCH] ARM: bcm2835: Use 0x4 prefix for DMA bus addresses to SDRAM.

2015-05-04 Thread Noralf Trønnes
, is that mmc and spi works fine with a wrong bus address. It's only the framebuffer driver and the vchiq driver when using mailbox that fails. Tested-by: Noralf Trønnes nor...@tronnes.org Regards, Noralf Trønnes -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH 2/3 v8] mailbox: Enable BCM2835 mailbox support

2015-05-08 Thread Noralf Trønnes
Den 08.05.2015 10:33, skrev Alexander Stein: On Thursday 07 May 2015, 12:54:20 wrote Eric Anholt: Noralf Trønnes nor...@tronnes.org writes: Den 05.05.2015 22:27, skrev Eric Anholt: From: Lubomir Rintel lkund...@v3.sk This mailbox driver provides a single mailbox channel to write 32-bit

Re: [PATCH 2/3 v8] mailbox: Enable BCM2835 mailbox support

2015-05-07 Thread Noralf Trønnes
Den 05.05.2015 22:27, skrev Eric Anholt: From: Lubomir Rintel lkund...@v3.sk This mailbox driver provides a single mailbox channel to write 32-bit values to the VPU and get a 32-bit response. The Raspberry Pi firmware uses this mailbox channel to implement firmware calls, while Roku 2

Re: [PATCH 1/3 v2] dt/bindings: Add binding for the Raspberry Pi firmware driver

2015-05-17 Thread Noralf Trønnes
Den 13.05.2015 21:00, skrev Eric Anholt: This driver will provide support for calls into the firmware that will be used by other drivers like cpufreq and vc4. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Improve commit message, point to mailbox.txt for how mboxes work.

Re: [PATCH 2/3 v2] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-17 Thread Noralf Trønnes
Den 13.05.2015 21:00, skrev Eric Anholt: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. Signed-off-by: Eric Anholt e...@anholt.net --- v2: Drop power-domains stuff for now since we

Re: [PATCH 2/3 v8] mailbox: Enable BCM2835 mailbox support

2015-05-12 Thread Noralf Trønnes
Den 05.05.2015 22:27, skrev Eric Anholt: From: Lubomir Rintel lkund...@v3.sk This mailbox driver provides a single mailbox channel to write 32-bit values to the VPU and get a 32-bit response. The Raspberry Pi firmware uses this mailbox channel to implement firmware calls, while Roku 2

Re: [PATCH v2] dmaengine: bcm2835: Add slave dma support

2015-05-12 Thread Noralf Trønnes
Hi, Den 18.04.2015 13:06, skrev Noralf Trønnes: Add slave transfer capability to BCM2835 dmaengine driver. This patch is pulled from the bcm2708-dmaengine driver in the Raspberry Pi repo. The work was done by Gellert Weisz. Tested using the bcm2835-mmc driver from the same repo. Signed-off

Re: [PATCH 2/3 v2] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-17 Thread Noralf Trønnes
Den 13.05.2015 21:00, skrev Eric Anholt: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. Signed-off-by: Eric Anholt e...@anholt.net --- [...] +/* + * Submits a single tag to the VPU

Re: [PATCH] dmaengine: bcm2835: Add slave dma support

2015-04-15 Thread Noralf Trønnes
Den 15.04.2015 16:37, skrev Martin Sperl: On 15.04.2015, at 11:56, Noralf Trønnes nor...@tronnes.org wrote: +#define MAX_LITE_TRANSFER (SZ_64K - 1) +#define MAX_NORMAL_TRANSFERSZ_1G ... + if (c-ch = 8) /* LITE channel */ + max_size = MAX_LITE_TRANSFER

Re: [PATCH] dmaengine: bcm2835: Add slave dma support

2015-04-16 Thread Noralf Trønnes
Den 16.04.2015 08:30, skrev Rogier Wolff: On Wed, Apr 15, 2015 at 08:53:07PM +0200, Noralf Trønnes wrote: A 16-bit register can't hold a value of 65536. Either the max value is 65535 or the register is 17-bits wide. It is common for hardware registers to have the value 0 mean 65536 in case

Re: [PATCH] dmaengine: bcm2835: Add slave dma support

2015-04-16 Thread Noralf Trønnes
Den 16.04.2015 21:06, skrev Alexander Stein: Hi Stefan, On Wednesday 15 April 2015, 21:00:26 wrote Stefan Wahren: Am 15.04.2015 um 11:56 schrieb Noralf Trønnes: Add slave transfer capability to BCM2835 dmaengine driver. This patch is pulled from the bcm2708-dmaengine driver in the Raspberry

Re: [PATCH] dmaengine: bcm2835: Add slave dma support

2015-04-16 Thread Noralf Trønnes
Den 15.04.2015 21:00, skrev Stefan Wahren: Hi Noralf, Am 15.04.2015 um 11:56 schrieb Noralf Trønnes: Add slave transfer capability to BCM2835 dmaengine driver. This patch is pulled from the bcm2708-dmaengine driver in the Raspberry Pi repo. The work was done by Gellert Weisz. Tested

Re: [PATCH] dmaengine: bcm2835: Add slave dma support

2015-04-17 Thread Noralf Trønnes
Hi Stefan, Den 17.04.2015 19:08, skrev Stefan Wahren: Hi Noralf, Am 17.04.2015 um 00:09 schrieb Noralf Trønnes: Den 15.04.2015 21:00, skrev Stefan Wahren: Hi Noralf, Am 15.04.2015 um 11:56 schrieb Noralf Trønnes: Add slave transfer capability to BCM2835 dmaengine driver. This patch

[PATCH v2] dmaengine: bcm2835: Add slave dma support

2015-04-18 Thread Noralf Trønnes
Add slave transfer capability to BCM2835 dmaengine driver. This patch is pulled from the bcm2708-dmaengine driver in the Raspberry Pi repo. The work was done by Gellert Weisz. Tested using the bcm2835-mmc driver from the same repo. Signed-off-by: Noralf Trønnes nor...@tronnes.org --- Gellert

[PATCH] dmaengine: bcm2835: Add slave dma support

2015-04-15 Thread Noralf Trønnes
Add slave transfer capability to BCM2835 dmaengine driver. This patch is pulled from the bcm2708-dmaengine driver in the Raspberry Pi repo. The work was done by Gellert Weisz. Tested with the bcm2835-mmc driver from the same repo. Signed-off-by: Noralf Trønnes nor...@tronnes.org --- Gellert

[PATCH 3/3] ARM: dts: bcm2835-rpi: Add brcm,raspberrypi-pm-wdt to wdt compatible

2015-06-09 Thread Noralf Trønnes
The Raspberry Pi uses a new value for halt in the PM_RSTS watchdog register. Expand the compatible string to cover this. Signed-off-by: Noralf Trønnes nor...@tronnes.org --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 arch/arm/boot/dts/bcm2835.dtsi | 2 +- 2 files changed, 5 insertions

[PATCH 1/3] dt-bindings: Add Raspberry Pi compatible string for watchdog

2015-06-09 Thread Noralf Trønnes
The Raspberry Pi has changed how it's firmware detects a poweroff and needs special handling for this. Signed-off-by: Noralf Trønnes nor...@tronnes.org --- Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 2/3] watchdog: bcm2835: Add poweroff code for the Raspberry Pi

2015-06-09 Thread Noralf Trønnes
partition used by the firmware to indicate halt. The firmware made this change in 19 Aug 2013 and was matched by the downstream commit: Changes for new NOOBS multi partition booting from gsh Signed-off-by: Noralf Trønnes nor...@tronnes.org --- drivers/watchdog/bcm2835_wdt.c | 38

Re: [PATCH] irqchip: bcm2835: Add FIQ support

2015-06-18 Thread Noralf Trønnes
Den 18.06.2015 04:26, skrev Stephen Warren: On 06/12/2015 11:26 AM, Noralf Trønnes wrote: Add a duplicate irq range with an offset on the hwirq's so the driver can detect that enable_fiq() is used. Tested with downstream dwc_otg USB controller driver. This basically looks OK, but a few

Re: [PATCH] irqchip: bcm2835: Add FIQ support

2015-06-18 Thread Noralf Trønnes
Den 18.06.2015 15:32, skrev Noralf Trønnes: Den 18.06.2015 04:26, skrev Stephen Warren: On 06/12/2015 11:26 AM, Noralf Trønnes wrote: Add a duplicate irq range with an offset on the hwirq's so the driver can detect that enable_fiq() is used. Tested with downstream dwc_otg USB controller

Re: [PATCH v2 2/3] watchdog: bcm2835: Add poweroff code for the Raspberry Pi

2015-06-17 Thread Noralf Trønnes
Den 17.06.2015 03:28, skrev Stephen Warren: On 06/16/2015 03:39 AM, Noralf Trønnes wrote: Den 16.06.2015 05:07, skrev Stephen Warren: On 06/13/2015 05:39 AM, Noralf Trønnes wrote: This adds a new poweroff function to the watchdog driver for the Raspberry Pi. Currently poweroff/halt results

[PATCH v3] watchdog: bcm2835: Fix poweroff behaviour

2015-06-17 Thread Noralf Trønnes
this change in 19 Aug 2013 and was matched by the downstream commit: Changes for new NOOBS multi partition booting from gsh Signed-off-by: Noralf Trønnes nor...@tronnes.org --- v2: Fix typo in commit message v3: Only Raspberry Pi is supported so it's ok to just modify the poweroff function (Stephen

[PATCH v2 3/3] ARM: dts: bcm2835-rpi: Add brcm,raspberrypi-pm-wdt to wdt compatible

2015-06-13 Thread Noralf Trønnes
The Raspberry Pi uses a new value for halt in the PM_RSTS watchdog register. Expand the compatible string to cover this. Signed-off-by: Noralf Trønnes nor...@tronnes.org --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 arch/arm/boot/dts/bcm2835.dtsi | 2 +- 2 files changed, 5 insertions

[PATCH v2 2/3] watchdog: bcm2835: Add poweroff code for the Raspberry Pi

2015-06-13 Thread Noralf Trønnes
partition used by the firmware to indicate halt. The firmware made this change in 19 Aug 2013 and was matched by the downstream commit: Changes for new NOOBS multi partition booting from gsh Signed-off-by: Noralf Trønnes nor...@tronnes.org Acked-by: Guenter Roeck li...@roeck-us.net --- drivers

[PATCH v2 1/3] dt-bindings: Add Raspberry Pi compatible string for watchdog

2015-06-13 Thread Noralf Trønnes
The Raspberry Pi has changed how its firmware detects a poweroff and needs special handling for this. Signed-off-by: Noralf Trønnes nor...@tronnes.org --- v2: Fix typo in commit message Documentation/devicetree/bindings/watchdog/brcm,bcm2835-pm-wdog.txt | 3 ++- 1 file changed, 2 insertions

Re: [PATCH v2 2/3] watchdog: bcm2835: Add poweroff code for the Raspberry Pi

2015-06-16 Thread Noralf Trønnes
Den 16.06.2015 05:07, skrev Stephen Warren: On 06/13/2015 05:39 AM, Noralf Trønnes wrote: This adds a new poweroff function to the watchdog driver for the Raspberry Pi. Currently poweroff/halt results in a reboot. The Raspberry Pi firmware uses the RSTS register to know which partiton to boot

[PATCH] irqchip: bcm2835: Add FIQ support

2015-06-12 Thread Noralf Trønnes
Add a duplicate irq range with an offset on the hwirq's so the driver can detect that enable_fiq() is used. Tested with downstream dwc_otg USB controller driver. Signed-off-by: Noralf Trønnes nor...@tronnes.org --- arch/arm/mach-bcm/Kconfig | 1 + drivers/irqchip/irq-bcm2835.c | 53

Re: [PATCH 2/3 v2] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-28 Thread Noralf Trønnes
Den 28.05.2015 23:17, skrev Stephen Warren: On 05/13/2015 01:00 PM, Eric Anholt wrote: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. ... Note that I don't think I've done what

Re: [PATCH 2/3 v4] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-28 Thread Noralf Trønnes
Den 29.05.2015 00:38, skrev Eric Anholt: Noralf Trønnes nor...@tronnes.org writes: Den 28.05.2015 20:33, skrev Eric Anholt: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. Signed

Re: [PATCH 2/3 v4] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-28 Thread Noralf Trønnes
Den 28.05.2015 23:28, skrev Stephen Warren: On 05/28/2015 12:33 PM, Eric Anholt wrote: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. ... +int rpi_firmware_property_list(struct

Re: [PATCH 2/3 v4] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-28 Thread Noralf Trønnes
Den 28.05.2015 20:33, skrev Eric Anholt: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. Signed-off-by: Eric Anholt e...@anholt.net ... +static int rpi_firmware_probe(struct

Re: [PATCH v5 2/3] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-05-28 Thread Noralf Trønnes
Den 29.05.2015 02:07, skrev Eric Anholt: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. ... +/** + * rpi_firmware_property_list - Submit firmware property list + * @of_node: Pointer

Re: [PATCH v2] Staging: fbtft: Use a struct to describe each LCD controller

2015-08-02 Thread Noralf Trønnes
chip controller simply defining a new flexfb_lcd_controller struct. Signed-off-by: Fabio Falzoi fabio.falzo...@gmail.com Acked-by: Noralf Trønnes nor...@tronnes.org --- Seems I wasn't clear enough, you could use my ack if you put struct flexfb_lcd_controller inside the driver and not in fbtft.h

[PATCH] staging: fbtft: core: Don't set device platform_data

2015-07-30 Thread Noralf Trønnes
. Signed-off-by: Noralf Trønnes nor...@tronnes.org --- drivers/staging/fbtft/fbtft-core.c | 12 +--- drivers/staging/fbtft/fbtft.h | 5 +++-- drivers/staging/fbtft/flexfb.c | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-core.c

Re: [PATCH v2] Staging: fbtft: Add support for the Ultrachip UC1611 LCD controller

2015-07-23 Thread Noralf Trønnes
Den 15.07.2015 11:36, skrev Paul Bolle: On di, 2015-07-14 at 14:59 +0200, Henri Chain wrote: --- /dev/null +++ b/drivers/staging/fbtft/fb_uc1611.c +#define DRVNAMEfb_uc1611 +MODULE_ALIAS(spi: DRVNAME); +MODULE_ALIAS(platform: DRVNAME); +MODULE_ALIAS(spi:uc1611);

Re: [PATCH 06/10] Staging: fbtft: Use a helper function to set set_addr_win op

2015-07-23 Thread Noralf Trønnes
Den 15.07.2015 04:14, skrev Greg KH: On Tue, Jun 30, 2015 at 08:43:13AM +0200, Fabio Falzoi wrote: Use a helper function to choose which set_addr_win implementation to use, based on the value of the setaddrwin module parameter. Signed-off-by: Fabio Falzoi fabio.falzo...@gmail.com ---

Re: [PATCH v2] Staging: fbtft: Add support for the Ultrachip UC1611 LCD controller

2015-07-23 Thread Noralf Trønnes
Den 14.07.2015 14:59, skrev Henri Chain: This is a driver chip for 240x160 4-bit greyscale LCDs. It is capable of 4-wire (8 bit) or 3-wire (9 bit) SPI that have both been tested. (It also has a 6800 or 8080-style parallel interface, but I have not included support for it.) Signed-off-by: Henri

Re: [PATCH] irqchip: bcm2835: Add FIQ support

2015-07-22 Thread Noralf Trønnes
Den 18.06.2015 04:26, skrev Stephen Warren: On 06/12/2015 11:26 AM, Noralf Trønnes wrote: Add a duplicate irq range with an offset on the hwirq's so the driver can detect that enable_fiq() is used. Tested with downstream dwc_otg USB controller driver. This basically looks OK, but a few

Re: [PATCH 03/10] Staging: fbtft: Use a struct to describe each LCD controller

2015-07-23 Thread Noralf Trønnes
, + .height = 160, + .init_seq = st7735r_init, + .init_seq_sz = ARRAY_SIZE(st7735r_init), + }, + { Can this be put on one line? }, { With the struct moved: Acked-by: Noralf Trønnes nor...@tronnes.org -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH] irqchip: bcm2835: Add FIQ support

2015-07-14 Thread Noralf Trønnes
Den 14.07.2015 06:50, skrev Stephen Warren: On 07/11/2015 09:26 AM, Noralf Trønnes wrote: Den 11.07.2015 06:09, skrev Stephen Warren: (Sorry for the slow reply; I was on vacation) On 06/18/2015 07:32 AM, Noralf Trønnes wrote: Den 18.06.2015 04:26, skrev Stephen Warren: On 06/12/2015 11:26

Re: [PATCH RFC 2/2] staging: fbtft: fix 9-bit SPI support detection

2015-08-24 Thread Noralf Trønnes
Den 24.08.2015 20:33, skrev Stefan Wahren: Since bits_per_word isn't usually checked during SPI setup the 9-bit support must be checked manually. Signed-off-by: Stefan Wahren stefan.wah...@i2se.com --- drivers/staging/fbtft/fbtft-core.c |7 +++ drivers/staging/fbtft/flexfb.c |

Re: [GIT PULL] On-demand device probing

2015-10-17 Thread Noralf Trønnes
Den 17.10.2015 20:45, skrev Rob Clark: On Sat, Oct 17, 2015 at 2:27 PM, Greg Kroah-Hartman wrote: On Sat, Oct 17, 2015 at 01:54:43PM -0400, Rob Clark wrote: On Sat, Oct 17, 2015 at 12:56 PM, Greg Kroah-Hartman wrote: I'm guessing the

Re: [PATCH 1/2] staging: fbtft: add support for ST7789V display controller

2015-10-10 Thread Noralf Trønnes
Den 07.10.2015 22:15, skrev Dennis Menschel: This patch adds support for the Sitronix ST7789V display controller. The controller is intended for small color displays with a resolution of up to 320x240 pixels. Signed-off-by: Dennis Menschel --- The future of fbtft is

Re: [PATCH 1/2] staging: fbtft: add support for ST7789V display controller

2015-10-11 Thread Noralf Trønnes
Den 11.10.2015 09:31, skrev Dennis Menschel: Am 10.10.2015 um 17:36 schrieb Noralf Trønnes: Den 07.10.2015 22:15, skrev Dennis Menschel: This patch adds support for the Sitronix ST7789V display controller. The controller is intended for small color displays with a resolution of up to 320x240

Re: [PATCH] irqchip: bcm2835: Add FIQ support

2015-07-11 Thread Noralf Trønnes
Den 11.07.2015 06:09, skrev Stephen Warren: (Sorry for the slow reply; I was on vacation) On 06/18/2015 07:32 AM, Noralf Trønnes wrote: Den 18.06.2015 04:26, skrev Stephen Warren: On 06/12/2015 11:26 AM, Noralf Trønnes wrote: Add a duplicate irq range with an offset on the hwirq's so

Re: [PATCH RFC 2/2] staging: fbtft: fix 9-bit SPI support detection

2015-08-25 Thread Noralf Trønnes
Den 25.08.2015 19:34, skrev Stefan Wahren: Noralf Trønnes nor...@tronnes.org hat am 25. August 2015 um 00:00 geschrieben: Den 24.08.2015 20:33, skrev Stefan Wahren: Since bits_per_word isn't usually checked during SPI setup the 9-bit support must be checked manually. Signed-off-by: Stefan

Re: [PATCH 1/2] staging: fbtft: fix 9-bit SPI support detection

2015-08-25 Thread Noralf Trønnes
stefan.wah...@i2se.com --- drivers/staging/fbtft/fbtft-core.c | 10 +++--- drivers/staging/fbtft/flexfb.c | 11 --- 2 files changed, 7 insertions(+), 14 deletions(-) Thanks Stefan. Both patches: Acked-by: Noralf Trønnes nor...@tronnes.org -- To unsubscribe from this list

Re: [PATCH v5 0/6] bcm2835: auxiliar device support for spi

2015-09-10 Thread Noralf Trønnes
Den 09.09.2015 03:48, skrev Eric Anholt: ker...@martin.sperl.org writes: From: Martin Sperl The BCM2835 contains 3 auxiliar devices: * spi1 * spi2 * uart1 All of those 3 devices are enabled/disabled via a shared register, which is set by default to be disabled.

Re: [PATCH 3/3] staging: fbtft: use pr_fmt

2015-09-10 Thread Noralf Trønnes
10.09.2015 06:54, skrev Sudip Mukherjee: On Wed, Sep 09, 2015 at 11:20:08PM +0200, Noralf Trønnes wrote: Den 09.09.2015 20:35, skrev Greg Kroah-Hartman: On Sat, Sep 05, 2015 at 07:13:45PM +0530, Sudip Mukherjee wrote: Instead of defining DRVNAME and using it in all calls to pr_* family

Re: [PATCH v3] watchdog: bcm2835: Fix poweroff behaviour

2015-09-13 Thread Noralf Trønnes
Den 18.06.2015 05:58, skrev Guenter Roeck: On 06/17/2015 07:04 AM, Noralf Trønnes wrote: Currently poweroff/halt results in a reboot on the Raspberry Pi. The firmware uses the RSTS register to know which partiton to boot from. The partiton value is spread into bits 0, 2, 4, 6, 8, 10. Partiton

Re: [PATCH] irqchip: bcm2835: Add FIQ support

2015-09-13 Thread Noralf Trønnes
Den 22.07.2015 23:32, skrev Eric Anholt: Noralf Trønnes <nor...@tronnes.org> writes: Add a duplicate irq range with an offset on the hwirq's so the driver can detect that enable_fiq() is used. Tested with downstream dwc_otg USB controller driver. Signed-off-by: Noralf Trønne

Re: No more new fbdev drivers, please

2015-09-27 Thread Noralf Trønnes
Den 24.09.2015 14:27, skrev Tomi Valkeinen: Hi all, fbdev is (more or less) maintained, but it's a deprecated framework. All new Linux display drivers should be done on DRM. So let's not add any more new fbdev drivers. I will continue to maintain the current fbdev drivers, and I don't mind

[PATCH] Input: Add support for FocalTech FT6236 touchscreen controller

2015-09-29 Thread Noralf Trønnes
This adds support for the FT6x06 and the FT6x36 family of capacitive touch panel controllers, in particular the FT6236. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- The driver is based on: https://github.com/adafruit/adafruit-raspberrypi-linux/blob/rpi-3.18.y/drivers/input/touch

[PATCH v2] Input: Add support for FocalTech FT6236 touchscreen controller

2015-10-01 Thread Noralf Trønnes
This adds support for the FT6x06 and the FT6x36 family of capacitive touch panel controllers, in particular the FT6236. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- The driver is based on: https://github.com/adafruit/adafruit-raspberrypi-linux/blob/rpi-3.18.y/drivers/input/touch

Re: No more new fbdev drivers, please

2015-09-28 Thread Noralf Trønnes
Den 27.09.2015 18:08, skrev Emil Velikov: Hi all, On 27 September 2015 at 14:09, Noralf Trønnes <nor...@tronnes.org> wrote: Den 24.09.2015 14:27, skrev Tomi Valkeinen: Hi all, fbdev is (more or less) maintained, but it's a deprecated framework. All new Linux display drivers should b

Re: [PATCH 3/3] staging: fbtft: use pr_fmt

2015-09-09 Thread Noralf Trønnes
Den 09.09.2015 20:35, skrev Greg Kroah-Hartman: On Sat, Sep 05, 2015 at 07:13:45PM +0530, Sudip Mukherjee wrote: Instead of defining DRVNAME and using it in all calls to pr_* family of macros lets start using pr_fmt. Signed-off-by: Sudip Mukherjee ---

Re: [PATCH v2 8/8] ARM: bcm2835: Add Kconfig support for bcm2836

2016-01-03 Thread Noralf Trønnes
Den 17.12.2015 00:55, skrev Eric Anholt: This should be a complete port of bcm2835 functionality to bcm2836 (Raspberry Pi 2). Signed-off-by: Eric Anholt --- v2: Implement Arnd's feedback to not split to ARCH_BCM2836, and instead use more conditionals in ARCH_BCM2835.

Re: [PATCH v2 0/8] Raspberry Pi 2 support.

2015-12-26 Thread Noralf Trønnes
Den 22.12.2015 20:01, skrev Eric Anholt: After finally booting the RPi2 I get several messages of: unexpected IRQ trap at vector 00 while typing _one_ character over uart. We were doing some debugging of that recently. It seems that every once in a while we get woken up but nothing shows

Re: [PATCH v4 3/3] drm: Add helper for simple display pipeline

2016-06-06 Thread Noralf Trønnes
Den 12.05.2016 20:25, skrev Noralf Trønnes: Provides helper functions for drivers that have a simple display pipeline. Plane, crtc and encoder are collapsed into one entity. Cc: jsa...@ti.com Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- [...] diff --git a/drivers/g

Re: [PATCH v5] drm: Add helper for simple display pipeline

2016-06-10 Thread Noralf Trønnes
Den 10.06.2016 17:34, skrev Daniel Vetter: On Fri, Jun 10, 2016 at 04:55:59PM +0200, Noralf Trønnes wrote: Provides helper functions for drivers that have a simple display pipeline. Plane, crtc and encoder are collapsed into one entity. Cc: jsa...@ti.com Signed-off-by: Noralf Trønnes <

Re: [PATCH] staging: fbtft: do not allocate huge txbuf

2016-06-09 Thread Noralf Trønnes
Den 09.06.2016 17:08, skrev Michal Suchanek: txbuflen can be set to arbitrary value by user and it is also set automagically to the maximum transfer size of the SPI master controller. AFAICT this is a result of your previous patch. Please make a new version of your previous patch with this

Re: [PATCH] staging: fbtft: do not allocate huge txbuf

2016-06-09 Thread Noralf Trønnes
[resending got rejected on the list for html format] Den 09.06.2016 19:18, skrev Michal Suchanek: Hello, On 9 June 2016 at 18:20, Noralf Trønnes <nor...@tronnes.org> wrote: Den 09.06.2016 17:08, skrev Michal Suchanek: txbuflen can be set to arbitrary value by user and it is al

[PATCH v5] drm: Add helper for simple display pipeline

2016-06-10 Thread Noralf Trønnes
Provides helper functions for drivers that have a simple display pipeline. Plane, crtc and encoder are collapsed into one entity. Cc: jsa...@ti.com Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes since v4: - Remove drm_connector_register() call - Forgot to assign pipe->

Re: [PATCH v4 3/3] drm: Add helper for simple display pipeline

2016-05-29 Thread Noralf Trønnes
Den 12.05.2016 20:25, skrev Noralf Trønnes: Provides helper functions for drivers that have a simple display pipeline. Plane, crtc and encoder are collapsed into one entity. Cc: jsa...@ti.com Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- [...] diff --git a/drivers/g

Re: [PATCH] fbtft: limit transfer length by spi device limit

2016-05-29 Thread Noralf Trønnes
s code of mine looks worse each time I'm confronted with it.) You have even taken care of the special txbuflen == -1 value I see, so I guess this is as good as it gets without any major refactoring, so: Acked-by: Noralf Trønnes <nor...@tronnes.org> And there's no point in doing any refactoring si

Re: [PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-25 Thread Noralf Trønnes
Den 25.04.2016 15:02, skrev Ville Syrjälä: On Mon, Apr 25, 2016 at 02:55:52PM +0200, Noralf Trønnes wrote: Den 25.04.2016 14:39, skrev Ville Syrjälä: On Sun, Apr 24, 2016 at 10:48:55PM +0200, Noralf Trønnes wrote: Add some utility functions for struct drm_clip_rect. Looks like mostly you're

[PATCH v2 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-24 Thread Noralf Trønnes
This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. The fbdev framebuffer changes are flushed using the callback (struct drm_framebuffer *)->funcs->dirty() by a dedicated worker ensuring that it always runs in process context. Signed-off-by: Noralf Trønnes <nor...@tr

[PATCH v2 8/8] drm/udl: Use drm_fb_helper deferred_io support

2016-04-24 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now schedule a worker instead of being flushed directly like it was previously (recorded when in atomic). This patch has only been compile tested. Signed-off-by: Nor

[PATCH v2 7/8] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-24 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper which mirrors the one qxl has had. This patch has only been compile tested. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes since v1: - Add FIXME about special dirty() callback for fbdev - Remove note in commit message

[PATCH v2 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-24 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/udl/udl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c index fd1eb9d..a52de2f 100644 --- a/drivers/gpu/drm/udl/udl_fb.c +

[PATCH v2 0/8] drm: Add fbdev deferred io support to helpers

2016-04-24 Thread Noralf Trønnes
Export fb_deferred_io_mmap() - Add some more documentation - Add qxl and udl patches Noralf Trønnes (8): drm/rect: Add some drm_clip_rect utility functions drm/udl: Change drm_fb_helper_sys_*() calls to sys_*() drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*() drm/fb-helpe

[PATCH v2 5/8] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-24 Thread Noralf Trønnes
t to nocache for instance, so I think the safest bet is to do this in the driver and not in the fbdev core. And we can't call fb_pgprotect() from fb_deferred_io_mmap() either because we don't have access to the file pointer that powerpc needs. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> ---

[PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-24 Thread Noralf Trønnes
Add some utility functions for struct drm_clip_rect. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/drm_rect.c | 67 include/drm/drm_rect.h | 69 ++ 2 files change

[PATCH v2 6/8] drm/fb-cma-helper: Add fb_deferred_io support

2016-04-24 Thread Noralf Trønnes
e hook to set a driver provided (struct drm_framebuffer_funcs *)->dirty() function. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/drm_fb_cma_helper.c | 190 +--- include/drm/drm_fb_cma_helper.h | 14 +++ 2 files changed, 192 in

[PATCH v2 3/8] drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-24 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- drivers/gpu/drm/qxl/qxl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_fb.c b/drivers/gpu/drm/qxl/qxl_fb.c index 7136e52..06f032d 100644 --- a/drivers/gpu/drm/qxl/qxl_fb.c +

Re: [PATCH v2 1/8] drm/rect: Add some drm_clip_rect utility functions

2016-04-25 Thread Noralf Trønnes
Den 25.04.2016 18:38, skrev Ville Syrjälä: On Mon, Apr 25, 2016 at 06:05:20PM +0200, Daniel Vetter wrote: On Mon, Apr 25, 2016 at 06:09:44PM +0300, Ville Syrjälä wrote: On Mon, Apr 25, 2016 at 04:03:13PM +0200, Noralf Trønnes wrote: Den 25.04.2016 15:02, skrev Ville Syrjälä: On Mon, Apr 25

Re: [PATCH 7/8] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:47, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:28PM +0200, Noralf Trønnes wrote: Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, inst

Re: [PATCH 8/8] drm/udl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:59, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:29PM +0200, Noralf Trønnes wrote: Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, inst

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-22 Thread Noralf Trønnes
Den 22.04.2016 10:27, skrev Daniel Vetter: On Thu, Apr 21, 2016 at 08:54:45PM +0200, Noralf Trønnes wrote: Den 20.04.2016 17:25, skrev Noralf Trønnes: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. Accumulated fbdev framebuffer changes are signaled using the callback

Re: [PATCH 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-21 Thread Noralf Trønnes
Den 21.04.2016 09:28, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 08:15:30PM +0200, Noralf Trønnes wrote: Den 20.04.2016 19:42, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:23PM +0200, Noralf Trønnes wrote: Now that drm_fb_helper gets deferred io support, the drm_fb_helper_sys_

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-21 Thread Noralf Trønnes
Den 20.04.2016 17:25, skrev Noralf Trønnes: This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. Accumulated fbdev framebuffer changes are signaled using the callback (struct drm_framebuffer_funcs *)->dirty() The drm_fb_helper_sys_*() functions will accumulate chan

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-22 Thread Noralf Trønnes
Den 22.04.2016 19:05, skrev Daniel Vetter: On Fri, Apr 22, 2016 at 04:17:14PM +0200, Noralf Trønnes wrote: Den 22.04.2016 10:27, skrev Daniel Vetter: On Thu, Apr 21, 2016 at 08:54:45PM +0200, Noralf Trønnes wrote: Den 20.04.2016 17:25, skrev Noralf Trønnes: This adds deferred io support

[PATCH v4 2/7] drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-28 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> Reviewed-by: Daniel Vetter <daniel.vet...@ffwll.ch> --- drivers/gpu/drm/qxl/qxl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_fb.c b/drivers/gpu/drm/qxl/qxl_fb.c inde

[PATCH v4 1/7] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-28 Thread Noralf Trønnes
rectly. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> Reviewed-by: Daniel Vetter <daniel.vet...@ffwll.ch> --- drivers/gpu/drm/udl/udl_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c inde

[PATCH v4 5/7] drm/fb-cma-helper: Add fb_deferred_io support

2016-04-28 Thread Noralf Trønnes
e hook to set a driver provided (struct drm_framebuffer_funcs *)->dirty() function. Cc: laurent.pinch...@ideasonboard.com Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes since v2: - FB_DEFERRED_IO is now always selected by DRM_KMS_FB_HELPER, ifdef removed

[PATCH v4 7/7] drm/udl: Use drm_fb_helper deferred_io support

2016-04-28 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now schedule a worker instead of being flushed directly like it was previously (recorded when in atomic). This patch has only been compile tested. Signed-off-by: Nor

[PATCH v4 0/7] drm: Add fbdev deferred io support to helpers

2016-04-28 Thread Noralf Trønnes
ic context (spin_lock_irqsave) - Export fb_deferred_io_mmap() - Add some more documentation - Add qxl and udl patches Noralf Trønnes (7): drm/udl: Change drm_fb_helper_sys_*() calls to sys_*() drm/qxl: Change drm_fb_helper_sys_*() calls to sys_*() drm/fb-helper: Add fb_deferred_io support fbdev

[PATCH v4 3/7] drm/fb-helper: Add fb_deferred_io support

2016-04-28 Thread Noralf Trønnes
This adds deferred io support to drm_fb_helper. The fbdev framebuffer changes are flushed using the callback (struct drm_framebuffer *)->funcs->dirty() by a dedicated worker ensuring that it always runs in process context. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> Reviewe

[PATCH v4 4/7] fbdev: fb_defio: Export fb_deferred_io_mmap

2016-04-28 Thread Noralf Trønnes
t to nocache for instance, so I think the safest bet is to do this in the driver and not in the fbdev core. And we can't call fb_pgprotect() from fb_deferred_io_mmap() either because we don't have access to the file pointer that powerpc needs. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> ---

Re: [PATCH v4 3/7] drm/fb-helper: Add fb_deferred_io support

2016-04-29 Thread Noralf Trønnes
Den 29.04.2016 14:50, skrev Tomi Valkeinen: Hi, On 28/04/16 18:18, Noralf Trønnes wrote: This adds deferred io support to drm_fb_helper. The fbdev framebuffer changes are flushed using the callback (struct drm_framebuffer *)->funcs->dirty() by a dedicated worker ensuring that it alway

[PATCH v3 0/7] drm: Add fbdev deferred io support to helpers

2016-04-27 Thread Noralf Trønnes
ip_rect functions in drm_rect.{h,c} - Take into account that (struct fb_ops *)->fb_{write,...}() can be called from atomic context (spin_lock_irqsave) - Export fb_deferred_io_mmap() - Add some more documentation - Add qxl and udl patches Noralf Trønnes (7): drm/udl: Change drm_fb_helper_sys_*() cal

[PATCH v3 6/7] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-27 Thread Noralf Trønnes
Use the fbdev deferred io support in drm_fb_helper which mirrors the one qxl has had. This patch has only been compile tested. Signed-off-by: Noralf Trønnes <nor...@tronnes.org> --- Changes since v2: - The drm_clip_rect_{width/height} functions are dropped, so open code it Changes si

Re: [PATCH v3 3/7] drm/fb-helper: Add fb_deferred_io support

2016-04-27 Thread Noralf Trønnes
Den 27.04.2016 21:20, skrev Daniel Vetter: On Wed, Apr 27, 2016 at 08:16:32PM +0200, Noralf Trønnes wrote: This adds deferred io support to drm_fb_helper. The fbdev framebuffer changes are flushed using the callback (struct drm_framebuffer *)->funcs->dirty() by a dedicated worker en

  1   2   3   4   5   6   7   8   9   >