Re: [PATCH 2/2] clk: bcm2835: Skip PLLC clocks when deciding on a new clock parent

2016-05-02 Thread Eric Anholt
Martin Sperl writes: >> On 26.04.2016, at 21:39, Eric Anholt wrote: >> >> If the firmware had set up a clock to source from PLLC, go along with >> it. But if we're looking for a new parent, we don't want to switch it >> to PLLC because the firmwa

Re: [PATCH 2/2] ASoC: bcm2835: Add S16_LE support via packed DMA transfers

2016-04-27 Thread Eric Anholt
Matthias Reichl writes: > The bcm2835-i2s driver already has support for the S16_LE format but > that format hasn't been made available because dmaengine_pcm didn't > support packed data transfers. Acked-by: Eric Anholt signature.asc Description: PGP signature

[PATCH 1/2] clk: bcm2835: Mark the VPU clock as critical

2016-04-26 Thread Eric Anholt
The VPU clock is also the clock for our AXI bus, so we really can't disable it. This might have happened during boot if, for example, uart1 (aux_uart clock) probed and was then disabled before the other consumers of the VPU clock had probed. Signed-off-by: Eric Anholt --- drivers/clk/bc

[PATCH 2/2] clk: bcm2835: Skip PLLC clocks when deciding on a new clock parent

2016-04-26 Thread Eric Anholt
ication to Linux. On my system, this moves the Linux-enabled HDMI state machine and DSI1 escape clock over to plld_per from pllc_per. EMMC still ends up on pllc_per, because the firmware had set it up to use that. Signed-off-by: Eric Anholt Fixes: 41691b8862e2 ("clk: bcm2835: Add support for

[PATCH] drm/vc4: Add missing render node support

2016-04-20 Thread Eric Anholt
There shouldn't be any other driver support necessary, since none of the driver-specific ioctls ever required auth, and none of them deal with modesetting. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/dr

[PATCH] drm/vc4: Add support for gamma ramps.

2016-04-20 Thread Eric Anholt
We could possibly save a bit of power by not requesting gamma conversion when the ramp happens to be 1:1, but at least if all the CRTCs are off the SRAM will be disabled. This should fix brightness sliders in a lot of fullscreen games. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4

[GIT PULL 1/2] bcm2835 DT changes for 4.7

2016-04-20 Thread Eric Anholt
suggested by the simplefb maintainer as the solution agreed upon at ELCE 2014, and was acked by the DRM maintainer for merging through this tree. Eric Anholt (2): drm/vc4: Kick out the simplefb framebuffer before we set up KMS

[GIT PULL 2/2] bcm2835 defconfig changes for 4.7

2016-04-20 Thread Eric Anholt
-0700) This pull request brings in changes for bcm2835_defconfig and multi_v7_defconfig in 4.7. Eric Anholt (7): ARM: multi_v7_defconfig: Add more BCM2835 support

[PATCH] drm/vc4: Kick out the simplefb framebuffer before we set up KMS.

2016-04-19 Thread Eric Anholt
If we don't, then simplefb stays loaded on /dev/fb0 even though scanout isn't happening from simplefb's memory area any more, and you end up with no console. Signed-off-by: Eric Anholt --- Dave: It would be nice if I could merge this patch through bcm2835-dt-next, where I'

Re: [PATCH] mmc: bcm2835: fix platform_no_drv_owner.cocci warnings

2016-04-19 Thread Eric Anholt
Julia Lawall writes: > Remove .owner field if calls are used which set it automatically > > Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Acked-by: Eric Anholt signature.asc Description: PGP signature

Re: [PATCH v2 1/2] clk: bcm2835: Fix compiler warnings on 64-bit builds

2016-04-18 Thread Eric Anholt
Stephen Boyd writes: > On 04/13, Eric Anholt wrote: >> Signed-off-by: Eric Anholt >> --- > > Acked-by: Stephen Boyd > > Or can I merge this? It wasn't addressed To: me so who knows. Yeah, please merge it. signature.asc Description: PGP signature

[GIT PULL] drm-vc4-next-2016-04-14

2016-04-14 Thread Eric Anholt
. Eric Anholt (3): drm: Add an encoder and connector type enum for DPI. drm/vc4: Add DPI driver drm/vc4: Fix NULL deref in HDMI init error path .../devicetree/bindings/display/brcm,bcm-vc4.txt | 36 ++ drivers/gpu/drm/drm_crtc.c

[GIT PULL] drm-vc4-next-2016-04-13

2016-04-13 Thread Eric Anholt
-0700) This pull request brings in the DPI panel support for vc4, plus a minor bugfix found during Pi3 development. Eric Anholt (3): drm: Add an encoder and

[PATCH v2 1/4] irqchip: bcm2835: Avoid arch/arm-specific handle_IRQ

2016-04-13 Thread Eric Anholt
This is equivalent and works for arm64 as well. Signed-off-by: Eric Anholt Acked-by: Stephen Warren --- v2: add ack drivers/irqchip/irq-bcm2835.c | 3 +-- drivers/irqchip/irq-bcm2836.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-bcm2835.c b

[PATCH v2 3/4] irqchip: bcm2836: Fix compiler warning on 64-bit build

2016-04-13 Thread Eric Anholt
Signed-off-by: Eric Anholt Acked-by: Stephen Warren --- v2: add ack drivers/irqchip/irq-bcm2836.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c index 6b61c68b87ae..bb3d61fe4bdb 100644 --- a/drivers/irqchip/irq

[PATCH v2 2/4] irqchip: bcm2836: Drop smp_set_ops on arm64 builds

2016-04-13 Thread Eric Anholt
For arm64, the bootloader will instead be implementing the spin-table enable method. Signed-off-by: Eric Anholt Acked-by: Stephen Warren --- v2: add ack, fix #ifdef drivers/irqchip/irq-bcm2836.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq

[PATCH v2 4/4] irqchip: bcm2836: Use a more generic memory barrier call

2016-04-13 Thread Eric Anholt
Signed-off-by: Eric Anholt Acked-by: Stephen Warren --- v2: add ack drivers/irqchip/irq-bcm2836.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c index bb3d61fe4bdb..27875982657e 100644 --- a/drivers/irqchip/irq

[PATCH v2 2/2] clk: bcm2835: Fix PLL poweron

2016-04-13 Thread Eric Anholt
In poweroff, we set the reset bit and the power down bit, but only managed to unset the reset bit for poweron. This meant that if HDMI did -EPROBE_DEFER after it had grabbed its clocks, we'd power down the PLLH (that had been on at boot time) and never recover. Signed-off-by: Eric Anholt

[PATCH v2 1/2] clk: bcm2835: Fix compiler warnings on 64-bit builds

2016-04-13 Thread Eric Anholt
Signed-off-by: Eric Anholt --- v2: no change drivers/clk/bcm/clk-bcm2835.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c index 4c0f1b504e2f..87616ded5bbe 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b

Re: [PATCH 2/4] irqchip: bcm2836: Drop smp_set_ops on arm64 builds

2016-04-13 Thread Eric Anholt
Arnd Bergmann writes: > On Tuesday 05 April 2016, Eric Anholt wrote: >> For arm64, the bootloader will instead be implementing the spin-table >> enable method. >> >> Signed-off-by: Eric Anholt >> --- >> drivers/irqchip/irq-bcm2836.c | 6 +- >>

Re: [PATCH 4/4] irqchip: bcm2836: Use a more generic memory barrier call

2016-04-10 Thread Eric Anholt
Stephen Warren writes: > On 04/08/2016 12:20 PM, Eric Anholt wrote: >> Stephen Warren writes: >> >>> On 04/04/2016 09:44 PM, Eric Anholt wrote: >>>> dsb() requires an argument on arm64, so we needed to add "sy". >>>> Instead, take this

Re: [PATCH 2/2] clk: bcm2835: Fix PLL poweron

2016-04-08 Thread Eric Anholt
Stefan Wahren writes: > Hi Eric, > >> Eric Anholt hat am 5. April 2016 um 05:20 geschrieben: >> >> >> In poweroff, we set the reset bit and the power down bit, but only >> managed to unset the reset bit for poweron. This meant that if HDMI >> did -EP

Re: [PATCH 4/4] irqchip: bcm2836: Use a more generic memory barrier call

2016-04-08 Thread Eric Anholt
Stephen Warren writes: > On 04/04/2016 09:44 PM, Eric Anholt wrote: >> dsb() requires an argument on arm64, so we needed to add "sy". >> Instead, take this opportunity to switch to the same smp_wmb() call >> that gic uses for its IPIs. This is a less strong barri

[PATCH 0/4] irqchip: bcm2835: arm64 port

2016-04-04 Thread Eric Anholt
Here's the series for irqchip-bcm283x on arm64 for the Pi3. Since I'd like to land Makefile changes that would enable building irqchip-bcm283x on arm64, it would be nice if I had either a stable branch to merge from, or an ack to merge them through the arm64 tree. Eric Anholt (4):

[PATCH 4/4] irqchip: bcm2836: Use a more generic memory barrier call

2016-04-04 Thread Eric Anholt
Signed-off-by: Eric Anholt --- drivers/irqchip/irq-bcm2836.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c index ee62413..a99b630 100644 --- a/drivers/irqchip/irq-bcm2836.c +++ b/drivers/irqchip/irq-bcm2836.c @@ -19

[PATCH 2/4] irqchip: bcm2836: Drop smp_set_ops on arm64 builds

2016-04-04 Thread Eric Anholt
For arm64, the bootloader will instead be implementing the spin-table enable method. Signed-off-by: Eric Anholt --- drivers/irqchip/irq-bcm2836.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c index 233ccdd

[PATCH 3/4] irqchip: bcm2836: Fix compiler warning on 64-bit build

2016-04-04 Thread Eric Anholt
Signed-off-by: Eric Anholt --- drivers/irqchip/irq-bcm2836.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c index 4ae9f76..ee62413 100644 --- a/drivers/irqchip/irq-bcm2836.c +++ b/drivers/irqchip/irq-bcm2836.c

[PATCH 1/4] irqchip: bcm2835: Avoid arch/arm-specific handle_IRQ

2016-04-04 Thread Eric Anholt
This is equivalent and works for arm64 as well. Signed-off-by: Eric Anholt --- drivers/irqchip/irq-bcm2835.c | 3 +-- drivers/irqchip/irq-bcm2836.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-bcm2835.c b/drivers/irqchip/irq-bcm2835.c index bf9cc5f

[PATCH 0/2] minor bcm2835 clock fixes

2016-04-04 Thread Eric Anholt
to trigger). Eric Anholt (2): clk: bcm2835: Fix compiler warnings on 64-bit builds clk: bcm2835: Fix PLL poweron drivers/clk/bcm/clk-bcm2835.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) -- 2.7.0

[PATCH 2/2] clk: bcm2835: Fix PLL poweron

2016-04-04 Thread Eric Anholt
In poweroff, we set the reset bit and the power down bit, but only managed to unset the reset bit for poweron. This meant that if HDMI did -EPROBE_DEFER after it had grabbed its clocks, we'd power down the PLLH (that had been on at boot time) and never recover. Signed-off-by: Eric Anhol

[PATCH 1/2] clk: bcm2835: Fix compiler warnings on 64-bit builds

2016-04-04 Thread Eric Anholt
Signed-off-by: Eric Anholt --- drivers/clk/bcm/clk-bcm2835.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c index 4c0f1b5..87616de 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk

[PATCH] drm/vc4: Fix NULL deref in HDMI init error path

2016-04-04 Thread Eric Anholt
If you make it here other than through err_destroy_encoder, vc4->hdmi is still NULL. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index d8b8

Re: [PATCH 2/3] ARM: multi_v7_defconfig: Switch BCM2835 to sdhci-iproc.c for MMC

2016-04-01 Thread Eric Anholt
Stephen Warren writes: > On 03/31/2016 06:28 PM, Eric Anholt wrote: >> This approximately triples write performance for the SD card. My card >> is too full of important data to collect very reliable numbers, but I >> see 271.361% +/- 166.742% improvement (n=3 before, 6

[PATCH 1/4] ARM: bcm2835: Switch BCM2835 to sdhci-iproc.c for MMC

2016-03-31 Thread Eric Anholt
ce appears to be unaffected. Signed-off-by: Eric Anholt --- arch/arm/configs/bcm2835_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig index 1ef69fc..1617fd2 100644 --- a/arch/arm/configs/bcm2835

[PATCH 2/4] ARM: bcm2835: Enable CONFIG_PM.

2016-03-31 Thread Eric Anholt
The power domain driver we've enabled doesn't actually do anything without it, and we need it to do its job for VC4 to initialize successfully. Signed-off-by: Eric Anholt --- arch/arm/configs/bcm2835_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/a

[PATCH 4/4] ARM: bcm2835: Enable NFS root support.

2016-03-31 Thread Eric Anholt
This is also present in multi_v7_defconfig, and means that I can test the pi1 with the 2835 defconfig in my normal environment. Signed-off-by: Eric Anholt --- arch/arm/configs/bcm2835_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm

[PATCH 3/4] ARM: bcm2835: Enable the VC4 graphics driver in the defconfig

2016-03-31 Thread Eric Anholt
Combined with the queued DT changes, we now get HDMI and 3D support. Signed-off-by: Eric Anholt --- arch/arm/configs/bcm2835_defconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig index 1192a6f

[PATCH 1/3] ARM: multi_v7_defconfig: Add more BCM2835 support

2016-03-31 Thread Eric Anholt
The WDT is required for reboot and I2S is used for audio devices on the P5 header (or BT audio on the Pi3). Signed-off-by: Eric Anholt --- arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs

[PATCH 2/3] ARM: multi_v7_defconfig: Switch BCM2835 to sdhci-iproc.c for MMC

2016-03-31 Thread Eric Anholt
ce appears to be unaffected. Signed-off-by: Eric Anholt --- arch/arm/configs/multi_v7_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 43a8ce0..a913520 100644 --- a/arch/arm/configs/multi_v7_defconfig +++

[PATCH 3/3] ARM: multi_v7_defconfig: Build in DWC2 USB support

2016-03-31 Thread Eric Anholt
This allows the Raspberry Pi 2 to be network booted from the defconfig. Signed-off-by: Eric Anholt --- arch/arm/configs/multi_v7_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index a913520

Re: [GIT PULL] bcm2835 clk changes for 4.6 maybe

2016-03-29 Thread Eric Anholt
Stephen Boyd writes: > On 03/17, Eric Anholt wrote: >> This is late, so feel free to drop it, but I figured I'd send it to >> you in case you were still open to merges. I've pounded on it a bit >> today (modesets to all sorts of resolutions on HDMI, used it for &

[PATCH 1/5] of: Add vendor prefix for On Tat Industrial Company.

2016-03-24 Thread Eric Anholt
This is the vendor for a 7" DPI panel sold by Adafruit which I'd like to describe in DT. Signed-off-by: Eric Anholt Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindi

[PATCH 0/5 v2] drm/vc4: DPI panel support

2016-03-24 Thread Eric Anholt
This is round 2 of the DPI panel support for vc4. This time the custom properties are dropped in favor of connector->display_info.bus_formats[]. Testable tree is at: https://github.com/anholt/linux/tree/drm-vc4-dpi-boot Eric Anholt (5): of: Add vendor prefix for On Tat Industrial Comp

[PATCH 3/5] drm: Add an encoder and connector type enum for DPI.

2016-03-24 Thread Eric Anholt
ain things as well for the user (who, if anything, knows their product is a DPI kippah/panel combo), and actually doesn't have to exist (one could connect the 28 GPIOs directly to something else). Simply "DPI" seems like a good compromise name to distinguish from the HDMI, DSI, and TV con

[PATCH 2/5] panel-simple: Add the 7" DPI panel from Adafruit.

2016-03-24 Thread Eric Anholt
This is a basic TFT panel with a 40-pin FPC connector on it. The specification doesn't define timings, but the Adafruit instructions were setting up 800x480 CVT. v2: Add .bus_format and vsync/hsync flags. Signed-off-by: Eric Anholt Acked-by: Rob Herring --- .../bindings/display/panel/

[PATCH 4/5] drm/vc4: Add DPI driver

2016-03-24 Thread Eric Anholt
The DPI interface involves taking a ton of our GPIOs to be used as outputs, and routing display signals over them in parallel. v2: Use display_info.bus_formats[] to replace our custom DT properties. Signed-off-by: Eric Anholt --- .../devicetree/bindings/display/brcm,bcm-vc4.txt | 36

[PATCH 5/5] ARM: bcm2835: Add the DPI hardware to the device tree.

2016-03-24 Thread Eric Anholt
It's currently marked disabled, as it's not useful without a panel associated with it and the GPIO pins routed to ALT2. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm283x.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arc

Re: [PATCH 4/5] drm/vc4: Add DPI driver

2016-03-24 Thread Eric Anholt
Rob Herring writes: > On Fri, Mar 18, 2016 at 07:42:45PM -0700, Eric Anholt wrote: >> The DPI interface involves taking a ton of our GPIOs to be used as >> outputs, and routing display signals over them in parallel. >> >> Signed-off-by: Eric Anholt >> --- &g

[PATCH 2/8] dmaengine: bcm2835: remove unnecessary masking of dma channels

2016-03-20 Thread Eric Anholt
m,dma-channel-mask = <0x7f35>;" So we can remove the whole masking of DMA channels. Signed-off-by: Martin Sperl Reviewed-by: Eric Anholt Signed-off-by: Eric Anholt --- drivers/dma/bcm2835-dma.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/dma/bcm2835-dma.c b/dri

[PATCH 3/8] dmaengine: bcm2835: add additional defines for DMA-registers

2016-03-19 Thread Eric Anholt
From: Martin Sperl Add additional defines describing the DMA registers as well as adding some more documentation to those registers. Signed-off-by: Martin Sperl Reviewed-by: Eric Anholt Signed-off-by: Eric Anholt --- drivers/dma/bcm2835-dma.c | 57

[PATCH 0/8 v4] bcm2835 DMA slave support

2016-03-19 Thread Eric Anholt
Here's the series for DMA slave and memcpy support for 2835, with the DT changes to enable the remaining channels dropped out while that goes through review. I had to do some minor conflict resolution, but it was pretty mechanical, and I tested again with dmatest on the last patch. Martin Sperl (

[PATCH 1/8] dmaengine: bcm2835: set residue_granularity field

2016-03-19 Thread Eric Anholt
d-off-by: Noralf Trønnes Signed-off-by: Martin Sperl Reviewed-by: Eric Anholt Signed-off-by: Eric Anholt --- drivers/dma/bcm2835-dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c index 996c4b0..2d72fe8 100644 --- a/drivers/dma/bc

[PATCH 8/8] dmaengine: bcm2835: add dma_memcopy support to bcm2835-dma

2016-03-19 Thread Eric Anholt
From: Martin Sperl Also added check for an error condition in bcm2835_dma_create_cb_chain that showed up during development of this patch. Tested using dmatest for all enabled channels. Signed-off-by: Martin Sperl Reviewed-by: Eric Anholt Signed-off-by: Eric Anholt --- drivers/dma/bcm2835

[PATCH 6/8] dmaengine: bcm2835: limit max length based on channel type

2016-03-19 Thread Eric Anholt
32 bit wide we need to have the transfer to be a multiple of 4 as this would break the transfer otherwise. This is why the limit of (64K - 4) was chosen over the alternative of (64K - 4K). Signed-off-by: Martin Sperl Reviewed-by: Eric Anholt Signed-off-by: Eric Anholt --- drivers/dm

[PATCH 4/8] dmaengine: bcm2835: move cyclic member from bcm2835_chan into bcm2835_desc

2016-03-19 Thread Eric Anholt
From: Martin Sperl In preparation to consolidating code we move the cyclic member into the bcm_2835_desc structure. Signed-off-by: Martin Sperl Reviewed-by: Eric Anholt Signed-off-by: Eric Anholt --- drivers/dma/bcm2835-dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 7/8] dmaengine: bcm2835: add slave_sg support to bcm2835-dma

2016-03-19 Thread Eric Anholt
card (using cyclic DMA) * fb_st7735r SPI-framebuffer (using slave_sg DMA via spi-bcm2835) playing BigBuckBunny for audio and video. Signed-off-by: Martin Sperl Reviewed-by: Eric Anholt Signed-off-by: Eric Anholt --- drivers/dma/bcm2835-dma.c | 113

[PATCH 5/8] dmaengine: bcm2835: move controlblock chain generation into separate method

2016-03-19 Thread Eric Anholt
: Martin Sperl Reviewed-by: Eric Anholt Signed-off-by: Eric Anholt --- drivers/dma/bcm2835-dma.c | 294 +++--- 1 file changed, 198 insertions(+), 96 deletions(-) diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c index b3bc382..4db0e23

[GIT PULL] bcm2835 clk changes for 4.6 maybe

2016-03-19 Thread Eric Anholt
This is late, so feel free to drop it, but I figured I'd send it to you in case you were still open to merges. I've pounded on it a bit today (modesets to all sorts of resolutions on HDMI, used it for testing the DPI panel support that I'm hoping to have for 4.7, and did a whole lot of browsing of

[PATCH 5/5] ARM: bcm2835: Add the DPI hardware to the device tree.

2016-03-18 Thread Eric Anholt
It's currently marked disabled, as it's not useful without a panel associated with it and the GPIO pins routed to ALT2. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm283x.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arc

[PATCH 3/5] drm: Add an encoder and connector type enum for DPI.

2016-03-18 Thread Eric Anholt
ain things as well for the user (who, if anything, knows their product is a DPI kippah/panel combo), and actually doesn't have to exist (one could connect the 28 GPIOs directly to something else). Simply "DPI" seems like a good compromise name to distinguish from the HDMI, DSI, and TV con

Re: [RFT PATCH 2/2] Revert "usb: dwc2: Fix probe problem on bcm2835"

2016-03-18 Thread Eric Anholt
Stefan Wahren writes: > Hi Eric, > hi Martin, > >> John Youn hat am 16. März 2016 um 19:28 geschrieben: >> >> >> On 3/10/2016 11:14 AM, John Youn wrote: >> > On 3/9/2016 11:06 AM, Doug Anderson wrote: >> >> Stefan, >> >> >> >> On Wed, Mar 9, 2016 at 11:01 AM, Stefan Wahren >> >> wrote: >> >>> >

[PATCH 4/5] drm/vc4: Add DPI driver

2016-03-18 Thread Eric Anholt
The DPI interface involves taking a ton of our GPIOs to be used as outputs, and routing display signals over them in parallel. Signed-off-by: Eric Anholt --- .../devicetree/bindings/display/brcm,bcm-vc4.txt | 67 +++ drivers/gpu/drm/vc4/Kconfig| 1 + drivers/gpu/drm

[PATCH 2/5] panel-simple: Add the 7" DPI panel from Adafruit.

2016-03-18 Thread Eric Anholt
This is a basic TFT panel with a 40-pin FPC connector on it. The specification doesn't define timings, but the Adafruit instructions were setting up 800x480 CVT. Signed-off-by: Eric Anholt --- .../bindings/display/panel/ontat,yx700wv03.txt | 7 + drivers/gpu/drm/panel/panel-sim

[PATCH 0/5] drm/vc4: DPI panel support

2016-03-18 Thread Eric Anholt
In preparation for working on DSI panel support, I wrote the much simpler support for DPI panels. I've tested it on the 7" DPI panel from Adafruit, with panel-simple support included here. Eric Anholt (5): of: Add vendor prefix for On Tat Industrial Company. panel-simple: Add

[PATCH 1/5] of: Add vendor prefix for On Tat Industrial Company.

2016-03-18 Thread Eric Anholt
This is the vendor for a 7" DPI panel sold by Adafruit which I'd like to describe in DT. Signed-off-by: Eric Anholt --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefi

[GIT PULL] drm-vc4-next for 4.6

2016-03-14 Thread Eric Anholt
g detection for the Pi2/3. Dan Carpenter (1): drm/vc4: Return -EFAULT on copy_from_user() failure Eric Anholt (4): drm/vc4: Let gpiolib know that we're OK with sleeping for HPD. drm/vc4: Respect GPIO_ACTIVE_LO

Re: [patch] drm/vc4: Return -EFAULT on copy_from_user() failure

2016-03-13 Thread Eric Anholt
Dan Carpenter writes: > The copy_from_user() function returns the number of bytes not copied but > we want to return a negative error code. > > Fixes: 463873d57014 ('drm/vc4: Add an API for creating GPU shaders in GEM > BOs.') > Signed-off-by: Dan Carpenter Pulled. Thanks! signature.asc Des

Re: [PATCH 3/3] ARM: bcm2835: Add VC4 to the device tree.

2016-03-08 Thread Eric Anholt
Stephen Warren writes: > On 03/04/2016 01:32 PM, Eric Anholt wrote: >> VC4 is the GPU (display and 3D) present on the 283x. > >> diff --git a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts >> b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts > >> +&hdmi { >>

[PATCH 0/3] ARM: bcm2835: Include VC4 GPU in the DT

2016-03-04 Thread Eric Anholt
This has been floating around out of tree, and the Pi Foundation is including a variant of it in the device tree overlay in its firmware update system. Eric Anholt (3): dt-bindings: Add binding docs for V3D. drm/vc4: Recognize a more specific compatible string for V3D. ARM: bcm2835: Add VC4

[PATCH 1/3] dt-bindings: Add binding docs for V3D.

2016-03-04 Thread Eric Anholt
This was missed in the upstreaming process. Signed-off-by: Eric Anholt --- Documentation/devicetree/bindings/display/brcm,bcm-vc4.txt | 12 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/display/brcm,bcm-vc4.txt b/Documentation/devicetree/bindings

[PATCH 2/3] drm/vc4: Recognize a more specific compatible string for V3D.

2016-03-04 Thread Eric Anholt
the future. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_v3d.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/vc4/vc4_v3d.c b/drivers/gpu/drm/vc4/vc4_v3d.c index 31de5d1..e6d3c60 100644 --- a/drivers/gpu/drm/vc4/vc4_v3d.c +++ b/drivers/gpu/drm/vc4/vc4_v3d.c @@ -26

[PATCH 3/3] ARM: bcm2835: Add VC4 to the device tree.

2016-03-04 Thread Eric Anholt
VC4 is the GPU (display and 3D) present on the 283x. Signed-off-by: Eric Anholt --- v2: Sort by register address, mark HDMI as disabled by default in the SoC file and enable it from -rpi. v3: Add references to the pixel/HSM clocks for HDMI. Rename compatibility strings and clean up

Re: [PATCH 2/2] ARM: bcm2835: Add devicetree for the Raspberry Pi 3.

2016-03-04 Thread Eric Anholt
Mark Rutland writes: > On Fri, Mar 04, 2016 at 10:55:03AM -0800, Eric Anholt wrote: >> Mark Rutland writes: >> >> > On Fri, Mar 04, 2016 at 10:39:29AM -0800, Eric Anholt wrote: >> >> For now this doesn't support the new hardware present on the Pi 3 (B

Re: [PATCH 2/2] ARM: bcm2835: Add devicetree for the Raspberry Pi 3.

2016-03-04 Thread Eric Anholt
Mark Rutland writes: > On Fri, Mar 04, 2016 at 10:39:29AM -0800, Eric Anholt wrote: >> For now this doesn't support the new hardware present on the Pi 3 (BT, >> wifi, GPIO expander). Since the GPIO expander isn't supported, we >> also don't have th

[PATCH 1/2] dt-bindings: Add root properties for Raspberry Pi 3

2016-03-04 Thread Eric Anholt
Signed-off-by: Eric Anholt --- Documentation/devicetree/bindings/arm/bcm/brcm,bcm2835.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm2835.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm2835.txt index 11d3056..6ffe087 100644

[PATCH 2/2] ARM: bcm2835: Add devicetree for the Raspberry Pi 3.

2016-03-04 Thread Eric Anholt
For now this doesn't support the new hardware present on the Pi 3 (BT, wifi, GPIO expander). Since the GPIO expander isn't supported, we also don't have the LEDs like the other board files do. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/Makefile| 3 +- ar

[GIT PULL] drm-vc4-fixes-2016-03-03

2016-03-03 Thread Eric Anholt
2:48 -0800) This pull request fixes the major VC4 HDMI modesetting bugs found when the first wave of users showed up in Raspbian. ---- Eric Anholt (6): drm/vc4: Fix a framebuffer reference leak on

Re: [PATCH 2/5] ARM: bcm2835: Replace alt0/i2s_alt[02] with standard groups.

2016-03-03 Thread Eric Anholt
Stephen Warren writes: > On 02/26/2016 11:19 AM, Eric Anholt wrote: >> Since all of these pins were documented, we can use their names to >> explain what's going on. > >> diff --git a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts >> b/arch/arm/boot/dts/

Re: [PATCH 1/5] ARM: bcm2835: Define standard pinctrl groups in the gpio node.

2016-03-03 Thread Eric Anholt
Stephen Warren writes: > On 02/26/2016 11:19 AM, Eric Anholt wrote: >> The BCM2835-ARM-Peripherals.pdf documentation specifies what the >> function selects do for the pins, and there are a bunch of obvious >> groupings to be made. With these created, we'll be

Re: [PATCH 02/41] clk: bcm: Remove CLK_IS_ROOT

2016-03-02 Thread Eric Anholt
Stephen Boyd writes: > This flag is a no-op now. Remove usage of the flag. I like that this flag is going away. It's a nice cleanup. Reviewed-by: Eric Anholt signature.asc Description: PGP signature

[PATCH 0/2] drm/vc4: Fixes for Raspberry Pi 3

2016-02-29 Thread Eric Anholt
These are for fixing the vc4 driver on the Pi 3. Note that patch 2 will also be necessary for fixing HPD on the Pi2, which we've been carrying downstream patches to work around until now. Eric Anholt (2): drm/vc4: Let gpiolib know that we're OK with sleeping for HPD. drm/vc

[PATCH 2/2] drm/vc4: Respect GPIO_ACTIVE_LOW on HDMI HPD if set in the devicetree.

2016-02-29 Thread Eric Anholt
The original Raspberry Pi had the GPIO active high, but the later models are active low. The DT GPIO bindings allow specifying the active flag, except that it doesn't get propagated to the gpiodesc, so you have to handle it yourself. Signed-off-by: Eric Anholt --- drivers/gpu/dr

[PATCH 1/2] drm/vc4: Let gpiolib know that we're OK with sleeping for HPD.

2016-02-29 Thread Eric Anholt
Fixes an error thrown every few seconds when we poll HPD when it's on a I2C to GPIO expander. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c

[PATCH] pinctrl-bcm2835: Fix cut-and-paste error in "pull" parsing

2016-02-29 Thread Eric Anholt
From: Phil Elwell The DT bindings for pinctrl-bcm2835 allow both the function and pull to contain either one entry or one per pin. However, an error in the DT parsing can cause failures if the number of pulls differs from the number of functions. Signed-off-by: Eric Anholt Cc: sta

[PATCH 4/4] ARM: bcm2835: Enable SDHOST by default.

2016-02-26 Thread Eric Anholt
This improves read speed on my SD card (as reported by hdparm -t) from 10.15MB/sec to 16.70MB/sec. Once we add slave DMA, we can get to 18.45MB/sec. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a

[PATCH 3/4] ARM: bcm2835: Include SDHOST in the device tree.

2016-02-26 Thread Eric Anholt
equest/config process. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm283x.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index 597a78f..7b2721b 100644 --- a/arch/arm/boot/dts/bcm283x.dtsi +++ b/arch/arm/b

[PATCH 0/4] bcm2835 SDHOST controller

2016-02-26 Thread Eric Anholt
les, speed tests), but I'm not sure what a good testing regimen for storage drivers would be. Eric Anholt (4): dt-bindings: Add binding for brcm,bcm2835-sdhost. mmc: bcm2835-sdhost: Add new driver for the internal SD controller. ARM: bcm2835: Include SDHOST in the device tree. ARM:

[PATCH 2/4] mmc: bcm2835-sdhost: Add new driver for the internal SD controller.

2016-02-26 Thread Eric Anholt
written by Phil Elwell in the downstream Rasbperry Pi tree, and I did a major cleanup on it (+319, -721 lines out of the original 2055) for inclusion. Signed-off-by: Eric Anholt --- drivers/mmc/host/Kconfig |9 + drivers/mmc/host/Makefile |1 + drivers/mmc/host/bcm2835-sdhost.c

[PATCH 1/4] dt-bindings: Add binding for brcm,bcm2835-sdhost.

2016-02-26 Thread Eric Anholt
This is the other SD controller on the platform, which can be swapped to the role of SD card host using pin muxing. Signed-off-by: Eric Anholt --- .../bindings/mmc/brcm,bcm2835-sdhost.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation

[PATCH 0/5] BCM2835 pinctrl DT rework (resend)

2016-02-26 Thread Eric Anholt
f my mails this week. I've now swapped systems. Eric Anholt (5): ARM: bcm2835: Define standard pinctrl groups in the gpio node. ARM: bcm2835: Replace alt0/i2s_alt[02] with standard groups. ARM: bcm2835: Move the emmc pin group to bcm283x.dtsi. ARM: bcm2835: Add a group for mapping pins

[PATCH 4/5] ARM: bcm2835: Add a group for mapping pins 48-53 to sdhost.

2016-02-26 Thread Eric Anholt
This pin group definition comes from downstream. We don't have a driver for sdhost integrated yet, but they've been experimenting with it and it sounds useful to bring over. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm283x.dtsi | 4 1 file changed, 4 insertions(+) di

[PATCH 3/5] ARM: bcm2835: Move the emmc pin group to bcm283x.dtsi.

2016-02-26 Thread Eric Anholt
While it's not documented in the public PDF, it is internally. This is a standard pin group for the 283x, not rpi-specific. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm2835-rpi-a-plus.dts | 4 ++-- arch/arm/boot/dts/bcm2835-rpi-a.dts | 4 ++-- arch/arm/boot/dts/bcm2835-

[PATCH 5/5] ARM: bcm2835: Move most RPi default pin groups to their devices.

2016-02-26 Thread Eric Anholt
This way we can get the duplicated pin group definitions out of each RPi board file, and just leave the i2s variations in them. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm2835-rpi-a-plus.dts | 14 +++--- arch/arm/boot/dts/bcm2835-rpi-a.dts | 14 +++--- arch/arm

[PATCH 2/5] ARM: bcm2835: Replace alt0/i2s_alt[02] with standard groups.

2016-02-26 Thread Eric Anholt
Since all of these pins were documented, we can use their names to explain what's going on. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm2835-rpi-a-plus.dts | 17 ++--- arch/arm/boot/dts/bcm2835-rpi-a.dts | 17 ++--- arch/arm/boot/dts/bcm2835-rpi-b-plu

[PATCH 1/5] ARM: bcm2835: Define standard pinctrl groups in the gpio node.

2016-02-26 Thread Eric Anholt
cific groups we want enabled. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm283x.dtsi | 170 + 1 file changed, 170 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index 8aaf193..e91198e 100644 ---

Re: [PATCH 1/5] ARM: bcm2835: Define standard pinctrl groups in the gpio node.

2016-02-25 Thread Eric Anholt
Eric Anholt writes: > The BCM2835-ARM-Peripherals.pdf documentation specifies what the > function selects do for the pins, and there are a bunch of obvious > groupings to be made. With these created, we'll be able to replace > bcm2835-rpi.dtsi's main "set all

[PATCH 4/5] ARM: bcm2835: Add a group for mapping pins 48-53 to sdhost.

2016-02-25 Thread Eric Anholt
This pin group definition comes from downstream. We don't have a driver for sdhost integrated yet, but they've been experimenting with it and it sounds useful to bring over. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm283x.dtsi | 4 1 file changed, 4 insertions(+) di

[PATCH 1/5] ARM: bcm2835: Define standard pinctrl groups in the gpio node.

2016-02-25 Thread Eric Anholt
cific groups we want enabled. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm283x.dtsi | 170 + 1 file changed, 170 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index 8aaf193..e91198e 100644 ---

[PATCH 5/5] ARM: bcm2835: Move most RPi default pin groups to their devices.

2016-02-25 Thread Eric Anholt
This way we can get the duplicated pin group definitions out of each RPi board file, and just leave the i2s variations in them. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm2835-rpi-a-plus.dts | 14 +++--- arch/arm/boot/dts/bcm2835-rpi-a.dts | 14 +++--- arch/arm

[PATCH 2/5] ARM: bcm2835: Replace alt0/i2s_alt[02] with standard groups.

2016-02-23 Thread Eric Anholt
Since all of these pins were documented, we can use their names to explain what's going on. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm2835-rpi-a-plus.dts | 17 ++--- arch/arm/boot/dts/bcm2835-rpi-a.dts | 17 ++--- arch/arm/boot/dts/bcm2835-rpi-b-plu

<    5   6   7   8   9   10   11   12   13   14   >