Re: [PATCH v2 00/20] Initial support for Marvell MMP3 SoC

2019-08-23 Thread Lubomir Rintel
On Thu, 2019-08-22 at 11:31 +0100, Marc Zyngier wrote: > On 22/08/2019 10:26, Lubomir Rintel wrote: > > Hi, > > > > this is a second spin of a patch set that adds support for the Marvell > > MMP3 processor. MMP3 is used in OLPC XO-4 laptops, Panasonic Toughpad > >

Re: [PATCH v2 00/20] Initial support for Marvell MMP3 SoC

2019-08-26 Thread Lubomir Rintel
On Fri, 2019-08-23 at 10:42 +0100, Marc Zyngier wrote: > On 23/08/2019 08:21, Lubomir Rintel wrote: > > On Thu, 2019-08-22 at 11:31 +0100, Marc Zyngier wrote: > > > On 22/08/2019 10:26, Lubomir Rintel wrote: > > > > Hi, > > > > > > > > this

[PATCH 0/2] Add driver for power button on Dell Wyse 3020

2020-05-03 Thread Lubomir Rintel
Hi, please consider applying the patches chained to this message. It's a rather simple driver for a power button on Dell Ariel board along with the Device Tree binding document. Thank you Lubo

[PATCH 1/2] dt-bindings: input: Add Dell Wyse 3020 Power Button binding

2020-05-03 Thread Lubomir Rintel
Add binding document for the Dell Wyse 3020 a.k.a. "Ariel" Power Button. Signed-off-by: Lubomir Rintel --- .../bindings/input/ariel-pwrbutton.yaml | 53 +++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/ariel-pwrb

[PATCH 2/2] Input: add driver for power button on Dell Wyse 3020

2020-05-03 Thread Lubomir Rintel
an input device that is only capable of reporting the power button presses and releases. Signed-off-by: Lubomir Rintel --- drivers/input/misc/Kconfig | 11 ++ drivers/input/misc/Makefile | 1 + drivers/input/misc/ariel-pwrbutton.c | 168 +++

Re: [PATCH 44/46] ARM: mmp: remove tavorevb board support

2019-10-19 Thread Lubomir Rintel
> There is a third board named TavorEVB in the Kconfig description, > but this refers to the "TTC_DKB" machine. The two are clearly > related, so I change the Kconfig description to just list both > names. > > Cc: Lubomir Rintel > Signed-off-by: Arnd Bergman

Re: [PATCH v2 0/9] Simplify MFD Core

2019-10-21 Thread Lubomir Rintel
On Mon, 2019-10-21 at 13:29 +0200, Arnd Bergmann wrote: > On Mon, Oct 21, 2019 at 12:58 PM Lee Jones wrote: > > MFD currently has one over-complicated user. CS5535 uses a mixture of > > cell cloning, reference counting and subsystem-level call-backs to > > achieve its goal of requesting an IO mem

Re: [PATCH v2 0/9] Simplify MFD Core

2019-10-21 Thread Lubomir Rintel
On Mon, 2019-10-21 at 12:53 +0100, Lee Jones wrote: > On Mon, 21 Oct 2019, Lubomir Rintel wrote: > > > On Mon, 2019-10-21 at 13:29 +0200, Arnd Bergmann wrote: > > > On Mon, Oct 21, 2019 at 12:58 PM Lee Jones wrote: > > > > MFD currently has one over-complicate

Re: [PATCH] gpio: pxa: avoid attempting to set pin direction via pinctrl on MMP2

2019-02-14 Thread Lubomir Rintel
On Thu, 2019-02-14 at 09:13 +0100, Linus Walleij wrote: > On Thu, Feb 14, 2019 at 12:06 AM Lubomir Rintel wrote: > > > Similarly to PXA3xx, pinctrl-single can't set pin direction on MMP2 either. > > See also: commit 9dabfdd84bdfa ("gpio: pxa: disable pinctrl calls for

[PATCH v2 0/3] libertas_tf: fix setting the hardware address]

2019-02-20 Thread Lubomir Rintel
Hi, this is a second version of a patchset addresses a problem with libertas_tf driver, where the driver registers the interface without having the MAC address set, only setting it when the interface is brought up. It fixes an embarassing build issue and folds in fixes for things pointed up in a

[PATCH v2 2/3] libertas_tf: don't defer firmware loading until start()

2019-02-20 Thread Lubomir Rintel
e the radio as soon as possible. Signed-off-by: Lubomir Rintel Reviewed-by: Steve deRosier --- Changes since v1: - Fix build - Reword the commit message not to call the firmware behavior a bug - Move the radioon = RADIO_OFF initialization a bit earlier .../net/wireless/marvell/libertas_tf/if_

[PATCH v2 1/3] libertas_tf: move hardware callbacks to a separate structure

2019-02-20 Thread Lubomir Rintel
We'll need to talk to the firmware to get a hardware address before device is registered with ieee80211 subsystem at the end of lbtf_add_card(). Hooking the callbacks after that is too late. Signed-off-by: Lubomir Rintel --- drivers/net/wireless/marvell/libertas_tf/cmd.c | 2 +- ..

[PATCH v2 3/3] libertas_tf: get the MAC address before registering the device

2019-02-20 Thread Lubomir Rintel
The start() callback is too late for this: NetworkManager would already have seen the hardware, thinking 00:00:00:00:00:00 is its permanent address. Signed-off-by: Lubomir Rintel Reviewed-by: Steve deRosier --- .../net/wireless/marvell/libertas_tf/main.c | 57 --- 1 file

Re: [PATCH 4/6] dt-bindings: display: armada: Add display subsystem binding

2019-01-21 Thread Lubomir Rintel
On Mon, 2019-01-21 at 09:35 -0600, Rob Herring wrote: > On Sun, Jan 20, 2019 at 11:26 AM Lubomir Rintel wrote: > > The Marvell Armada DRM master device is a virtual device needed to list all > > nodes that comprise the graphics subsystem. > > > > Si

Re: [PATCH 4/6] dt-bindings: display: armada: Add display subsystem binding

2019-01-21 Thread Lubomir Rintel
On Mon, 2019-01-21 at 17:53 +, Russell King - ARM Linux admin wrote: > On Mon, Jan 21, 2019 at 10:07:11AM -0600, Rob Herring wrote: > > On Mon, Jan 21, 2019 at 9:46 AM Lubomir Rintel wrote: > > > On Mon, 2019-01-21 at 09:35 -0600, Rob Herring wrote: > > > > On

Re: [PATCH v5] irqchip/mmp: only touch the PJ4 & FIQ bits on enable/disable

2019-01-28 Thread Lubomir Rintel
more sense. Thank you Lubo > On 28/01/2019 15:59, Lubomir Rintel wrote: > > Resetting the bit 4 disables the interrupt delivery to the "secure > > processor" core. This breaks the keyboard on a OLPC XO 1.75 laptop, > > where the firmware running on the &qu

Re: [PATCH v4] irqchip/mmp: only touch the PJ4 & FIQ bits on enable/disable

2019-01-16 Thread Lubomir Rintel
On Tue, 2019-01-15 at 11:22 +0100, Thomas Gleixner wrote: > On Thu, 20 Dec 2018, Lubomir Rintel wrote: > > > On an OLPC XO 1.75 machine, the "security processor" handles the GPIO 71 > > and 72 interrupts. Don't reset the "route to SP" bit (4). > >

[PATCH] clk: mmp2: avoid disabling the SP clock when unused

2019-01-16 Thread Lubomir Rintel
: sta...@vger.kernel.org # v4.18+ Fixes: commit fc27c2394d96 ("clk: mmp2: add SP clock") Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-of-mmp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/mmp/clk-of-mmp2.c b/drivers/clk/mmp/clk-of-mmp2.c ind

[PATCH] Input: olpc_apsp - assign priv->dev earlier

2019-01-16 Thread Lubomir Rintel
The dev field needs to be set when serio_register_port() is called, because the open callback may use it (in the error handling path). Cc: sta...@vger.kernel.org # v4.18+ Fixes: commit af518342effd ("Input: olpc_apsp - check FIFO status on open(), not probe()") Signed-off-by: Lubo

[PATCH] pxa2xx: replace spi_master with spi_controller

2019-01-16 Thread Lubomir Rintel
It's also a slave controller driver now, calling it "master" is slightly misleading. Signed-off-by: Lubomir Rintel --- Documentation/spi/pxa2xx | 10 +-- arch/arm/mach-pxa/cm-x255.c| 2 +- arch/arm/mach-pxa/cm-x270.c| 2 +- arch/arm/mach-pxa/corgi.c |

[PATCH] video: fbdev: geode: remove ifdef OLPC noise

2019-01-16 Thread Lubomir Rintel
provides olpc_has_dcon() stub for CONFIG_OLPC=n, compiler should just optimize the unneeded bits away. Signed-off-by: Lubomir Rintel --- drivers/video/fbdev/geode/gxfb_core.c | 13 ++--- drivers/video/fbdev/geode/lxfb_core.c | 13 ++--- 2 files changed, 4 insertions(+), 22

[PATCH] libertas: remove ifdef OLPC noise

2019-01-16 Thread Lubomir Rintel
provides machine_is_olpc() stub for CONFIG_OLPC=n, compiler should just optimize the unneeded bits away. Signed-off-by: Lubomir Rintel --- drivers/net/wireless/marvell/libertas/if_usb.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/net/wireless/marvell/libertas

[PATCH] mfd: cs5535-mfd: remove ifdef OLPC noise

2019-01-16 Thread Lubomir Rintel
provides machine_is_olpc() stub for CONFIG_OLPC=n, compiler should just optimize the unneeded bits away. Signed-off-by: Lubomir Rintel --- drivers/mfd/cs5535-mfd.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/drivers/mfd/cs5535-mfd.c b/drivers

Re: [PATCH] libertas: remove ifdef OLPC noise

2019-01-16 Thread Lubomir Rintel
On Wed, 2019-01-16 at 18:04 +0200, Kalle Valo wrote: > Lubomir Rintel writes: > > > provides machine_is_olpc() stub for CONFIG_OLPC=n, > > compiler should just optimize the unneeded bits away. > > > > Signed-off-by: Lubomir Rintel > > --- > > driv

Re: [PATCH] clk: mmp2: avoid disabling the SP clock when unused

2019-01-16 Thread Lubomir Rintel
On Wed, 2019-01-16 at 08:37 -0800, Stephen Boyd wrote: > Quoting Lubomir Rintel (2019-01-16 01:35:05) > > There could be vital functionality running on the SP PJ1 core it can not be > > restarted just by turning the clock back on. > > > > On the OLPC laptop, the ke

Re: [PATCH] clk: mmp2: avoid disabling the SP clock when unused

2019-01-17 Thread Lubomir Rintel
On Wed, 2019-01-16 at 15:29 -0800, Stephen Boyd wrote: > Quoting Lubomir Rintel (2019-01-16 09:26:31) > > On Wed, 2019-01-16 at 08:37 -0800, Stephen Boyd wrote: > > > Quoting Lubomir Rintel (2019-01-16 01:35:05) > > > > There could be vital functionality run

Re: [PATCH v3 03/14] media: ov7670: hook s_power onto v4l2 core

2019-01-13 Thread Lubomir Rintel
On Thu, 2019-01-10 at 18:59 +0200, Sakari Ailus wrote: > Hi Lubomir, > > On Wed, Nov 28, 2018 at 12:29:33PM +0100, Lubomir Rintel wrote: > > On Thu, 2018-11-22 at 14:21 +0200, Sakari Ailus wrote: > > > Hi Lubomir, > > > > > > On Tue, Nov 20, 2018

[PATCH] USB: EHCI: ehci-mv: add MODULE_DEVICE_TABLE

2019-01-14 Thread Lubomir Rintel
This fixes autoloading the module by the OF compatible string. Fixes: 813e18b18a87f31c5b216ea7546127deac3ae1ae Cc: sta...@vger.kernel.org # v4.19+ Signed-off-by: Lubomir Rintel --- drivers/usb/host/ehci-mv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/ehci-mv.c b

Re: [PATCH v3 02/14] media: ov7670: split register setting from set_framerate() logic

2019-01-15 Thread Lubomir Rintel
On Tue, 2019-01-15 at 01:03 +0200, Sakari Ailus wrote: > On Tue, Nov 20, 2018 at 11:03:07AM +0100, Lubomir Rintel wrote: > > This will allow us to restore the last set frame rate after the device > > returns from a power off. > > > > Signed-off-by: Lubomir Rintel >

[PATCH v4 1/5] ov7670: Remove useless use of a ret variable

2019-01-15 Thread Lubomir Rintel
From: Sakari Ailus Instead of assigning the return value to ret and then checking and returning it, just return the value to the caller directly. The success value is always 0. Signed-off-by: Sakari Ailus Acked-by: Lubomir Rintel --- drivers/media/i2c/ov7670.c | 6 +- 1 file changed, 1

[PATCH v4 4/5] media: ov7670: split register setting from set_fmt() logic

2019-01-15 Thread Lubomir Rintel
This will allow us to restore the last set format after the device returns from a power off. Signed-off-by: Lubomir Rintel --- drivers/media/i2c/ov7670.c | 80 ++ 1 file changed, 46 insertions(+), 34 deletions(-) diff --git a/drivers/media/i2c/ov7670.c b

[PATCH v4 5/5] media: ov7670: split register setting from set_framerate() logic

2019-01-15 Thread Lubomir Rintel
This will allow us to restore the last set frame rate after the device returns from a power off. Signed-off-by: Lubomir Rintel --- drivers/media/i2c/ov7670.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers

[PATCH v4 3/5] media: ov7670: control clock along with power

2019-01-15 Thread Lubomir Rintel
r the sensor is clocked up. Signed-off-by: Lubomir Rintel Signed-off-by: Sakari Ailus --- drivers/media/i2c/ov7670.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index 4679aa9

[PATCH v4 2/5] media: ov7670: hook s_power onto v4l2 core

2019-01-15 Thread Lubomir Rintel
tual power callback. Signed-off-by: Lubomir Rintel Signed-off-by: Sakari Ailus --- drivers/media/i2c/ov7670.c | 50 +- 1 file changed, 44 insertions(+), 6 deletions(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index 61c47c61c693..4679aa9dc

[PATCH v4 0/5] ov7670 fixes

2019-01-15 Thread Lubomir Rintel
Hi, here are the ov7670 patches originally from the "media: make Marvell camera work on DT-based OLPC XO-1.75" updated to apply cleanly on top of master as requested. I've also added "ov7670: Remove useless use of a ret variable" with my Ack slapped on it. Lubo

Re: [PATCH v4 0/5] ov7670 fixes

2019-01-15 Thread Lubomir Rintel
On Tue, 2019-01-15 at 12:40 +0200, Sakari Ailus wrote: > On Tue, Jan 15, 2019 at 09:54:43AM +0100, Lubomir Rintel wrote: > > Hi, > > > > here are the ov7670 patches originally from the "media: make Marvell camera > > work on DT-based OLPC XO-1.75" updated to a

Re: [PATCH] USB: EHCI: ehci-mv: add MODULE_DEVICE_TABLE

2019-01-18 Thread Lubomir Rintel
On Fri, 2019-01-18 at 09:52 +0100, Greg Kroah-Hartman wrote: > On Mon, Jan 14, 2019 at 09:16:08PM +0100, Lubomir Rintel wrote: > > This fixes autoloading the module by the OF compatible string. > > > > Fixes: 813e18b18a87 ("USB: EHCI: ehci-mv: add DT support")

[PATCH 2/6] dt-bindings: display: armada: Improve the LCDC documentation

2019-01-20 Thread Lubomir Rintel
The port is a child, not a property. And it deserves an example. Also, make the title a bit more visually distinguishable -- this will look better when the documentation of other Adrmada DRM nodes will be present. Signed-off-by: Lubomir Rintel --- .../display/armada/marvell-armada-drm.txt

[PATCH 5/6] dt-bindings: display: armada: Add mmp2 compatible strings

2019-01-20 Thread Lubomir Rintel
The driver will work on a MMP2 as well. Signed-off-by: Lubomir Rintel --- .../bindings/display/armada/marvell-armada-drm.txt | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/display/armada/marvell-armada-drm.txt b

[PATCH 1/6] dt-bindings: display: armada: Rename the binding doc file

2019-01-20 Thread Lubomir Rintel
It's going to document more than just marvell,dove-lcd: more components of the display subsystems with more compatible strings. It seems to make sense to organize this the way it is done in Documentation/devicetree/bindings/display/imx/fsl-imx-drm.txt Signed-off-by: Lubomir R

[PATCH 3/6] dt-bindings: display: armada: Add framebuffer reserved-mem binding

2019-01-20 Thread Lubomir Rintel
This is the binding for memory that is set aside for allocation of Marvell Armada framebuffer objects. Signed-off-by: Lubomir Rintel --- .../display/armada/marvell-armada-drm.txt | 25 +++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH 6/6] dt-bindings: display: armada: Document bus-width property

2019-01-20 Thread Lubomir Rintel
This makes it possible to choose a different pixel format for the endpoint. Modelled after what other LCD controllers use, including marvell,pxa2xx-lcdc and atmel,hlcdc-display-controller and perhaps more. Signed-off-by: Lubomir Rintel --- .../bindings/display/armada/marvell-armada-drm.txt

[PATCH 4/6] dt-bindings: display: armada: Add display subsystem binding

2019-01-20 Thread Lubomir Rintel
The Marvell Armada DRM master device is a virtual device needed to list all nodes that comprise the graphics subsystem. Signed-off-by: Lubomir Rintel --- .../display/armada/marvell-armada-drm.txt | 24 +++ 1 file changed, 24 insertions(+) diff --git a/Documentation

[PATCH 0/6] Bindings for Armada display subsystem

2019-01-20 Thread Lubomir Rintel
Hi, this patch set extends the bindings documentation of Armada LCDC to cover the rest of the display subsystem. It is based on what was implemented by Russel's patch set that implements the dt bindings for armada-drm [1]. [1] https://lists.freedesktop.org/archives/dri-devel/2018-July/182893.htm

[PATCH] drm/armada: replace the simple-framebuffer

2019-01-20 Thread Lubomir Rintel
If there's a simple-framebuffer carried over from boot firmware, it's going to stop working once we setup the LCDC for use via DRM. Kick it off from the hardware. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/armada/armada_drv.c | 11 +++ 1 file changed, 11 insertions(+)

[PATCH] drm/armada: add mmp2 support

2019-01-20 Thread Lubomir Rintel
ink: https://lists.freedesktop.org/archives/dri-devel/2018-December/201021.html Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/armada/Makefile | 1 + drivers/gpu/drm/armada/armada_610.c | 93 drivers/gpu/drm/armada/armada_crtc.c | 4 ++ drivers/gpu/drm/armada/armada_drm.h | 1

[PATCH 0/3] Stop managing the SP clock

2019-01-20 Thread Lubomir Rintel
Hi, Per discussion in [1] it seems that the kernel has no business managing this clock: once the SP clock is disabled, it's not sufficient to just enable it in order to bring the SP core back up. Just let the firmware keep it enabled and don't expose it to drivers. [1] https://lore.kernel.org/l

[PATCH 3/3] Revert "dt-bindings: marvell,mmp2: Add clock id for the SP clock"

2019-01-20 Thread Lubomir Rintel
130bba61b1. Signed-off-by: Lubomir Rintel --- include/dt-bindings/clock/marvell,mmp2.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/dt-bindings/clock/marvell,mmp2.h b/include/dt-bindings/clock/marvell,mmp2.h index 7b24fc791146..228a5e234af0 100644 --- a/include/dt-bindings/clock/marv

[PATCH 2/3] Revert "clk: mmp2: add SP clock"

2019-01-20 Thread Lubomir Rintel
df0d86fc90. Link: https://lore.kernel.org/lkml/154783267051.169631.3197836544646625...@swboyd.mtv.corp.google.com/ Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-of-mmp2.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/clk/mmp/clk-of-mmp2.c b/drivers/clk/mmp/clk-of-mm

[PATCH 0/2] mmp2: separate LCDC peripheral clk form the display

2019-01-20 Thread Lubomir Rintel
Hi, this pair of patches fix how the display clocks are configured on the MMP2 platform. The dt-bindings patch assumes the SP clock is not there as it probably was a mistake to expose it (see the 'Revert "dt-bindings: marvell,mmp2: Add clock id for the SP clock' patch sent separately). Thanks, L

[PATCH 1/2] dt-bindings: marvell,mmp2: Add clock id for the LCDC clock

2019-01-20 Thread Lubomir Rintel
Signed-off-by: Lubomir Rintel --- include/dt-bindings/clock/marvell,mmp2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/marvell,mmp2.h b/include/dt-bindings/clock/marvell,mmp2.h index 228a5e234af0..e785c6eb3561 100644 --- a/include/dt-bindings/clock/marvell,mm

[PATCH 2/2] clk: mmp2: separate LCDC peripheral clk form the display clock

2019-01-20 Thread Lubomir Rintel
clock for generating the pixel clock: the second AXI clock (fixed in this commit too), the HDMI PLL, or the AXI bus clock. They should really be controlled independently. Link: https://lists.freedesktop.org/archives/dri-devel/2019-January/203975.html Signed-off-by: Lubomir Rintel --- drivers/cl

[PATCH 1/3] Revert "Input: olpc_apsp - enable the SP clock"

2019-01-20 Thread Lubomir Rintel
ommit ed22cee91a88c47e564478b012fdbcb079653499. Link: https://lore.kernel.org/lkml/154783267051.169631.3197836544646625...@swboyd.mtv.corp.google.com/ Signed-off-by: Lubomir Rintel --- .../devicetree/bindings/serio/olpc,ap-sp.txt | 4 drivers/input/serio/olpc_apsp.c| 14 -- 2

[PATCH] net/ipv6: lower the level of "link is not ready" messages

2019-01-21 Thread Lubomir Rintel
ought back up, the message is logged, eventually flooding the log. Perhaps the message is not all that helpful: it seems to be more interesting to hear when the addrconf actually start, not when it does not. Let's lower its level. Signed-off-by: Lubomir Rintel --- net/ipv6/addrconf.c | 4 ++

[PATCH] power: supply: olpc_battery: force the le/be casts

2019-05-11 Thread Lubomir Rintel
The endianness of data returned from the EC depends on the particular EC version determined at run time. Cast from little/big endian explicitey in the routine that flips endianness to the native one to make sparse happy. Signed-off-by: Lubomir Rintel Reported-by: kbuild test robot Fixes

Re: [PATCH -next] x86: olpc: fix section mismatch warning

2019-05-07 Thread Lubomir Rintel
mostly equivalent patch lined up with an intent to send it over to x86 once the faulty commit reaches it: https://lists.01.org/pipermail/kbuild-all/2019-April/060269.html In any case; Reviewed-by: Lubomir Rintel > -int olpc_dt_compatible_match(phandle node, const char *compat) > +int __

[PATCH 00/19] Initial support for Marvell MMP3 SoC

2019-08-09 Thread Lubomir Rintel
Hi, this patch set adds support for the Marvell MMP3 processor. MMP3 is used in OLPC XO-4 laptops, Panasonic Toughpad FZ-A1 tablet and Dell Wyse 3020 Tx0D thin clients. Apart from the adjustments in mach-mmp/, the patch makes necessary changes to the irqchip driver and adds an USB2 PHY driver. Th

[PATCH 01/19] dt-bindings: arm: cpu: Add Marvell MMP3 SMP enable method

2019-08-09 Thread Lubomir Rintel
Add the enable method for the second PJ4B core of the Marvell MMP3 SoC. Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings/arm/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm

[PATCH 02/19] dt-bindings: arm: mrvl: Document MMP3 compatible string

2019-08-09 Thread Lubomir Rintel
Marvel MMP3 is a successor to MMP2, containing similar peripherals with two PJ4B cores. Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings/arm/mrvl/mrvl.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mrvl/mrvl.txt b

[PATCH 04/19] dt-bindings: phy-mmp3-usb: Add bindings

2019-08-09 Thread Lubomir Rintel
This is the PHY chip for USB OTG on MMP3 platform. Signed-off-by: Lubomir Rintel --- .../devicetree/bindings/phy/phy-mmp3-usb.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-mmp3-usb.txt diff --git a/Documentation

[PATCH 14/19] ARM: mmp: add support for MMP3 SoC

2019-08-09 Thread Lubomir Rintel
controller * More interrupt muxes Hard to tell what else is different, because documentation is not available. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/Kconfig | 22 -- arch/arm/mach-mmp/Makefile | 1 + arch/arm/mach-mmp/cputype.h | 27 +++ arch

[PATCH 09/19] ARM: l2c: add definition for FWA in PL310 aux register

2019-08-09 Thread Lubomir Rintel
The PL310 also has a "Force write allocate" bits in the Auxiliary Control Register. Signed-off-by: Lubomir Rintel --- arch/arm/include/asm/hardware/cache-l2x0.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/hardware/cache-l2x0.h b/arch/arm/include/as

[PATCH 12/19] ARM: mmp: DT: convert timer driver to use TIMER_OF_DECLARE

2019-08-09 Thread Lubomir Rintel
This makes things just a tiny bit simpler. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/mmp-dt.c | 5 ++--- arch/arm/mach-mmp/mmp2-dt.c | 5 ++--- arch/arm/mach-mmp/time.c| 38 +++-- 3 files changed, 15 insertions(+), 33 deletions(-) diff --git a

[PATCH 06/19] irqchip/mmp: add missing chained_irq_{enter,exit}()

2019-08-09 Thread Lubomir Rintel
The lack of chained_irq_exit() leaves the muxed interrupt masked on MMP3. For reasons unknown this is not a problem on MMP2. Signed-off-by: Lubomir Rintel --- drivers/irqchip/irq-mmp.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mmp.c b

[PATCH 03/19] dt-bindings: mrvl,intc: Add a MMP3 interrupt controller

2019-08-09 Thread Lubomir Rintel
Similar to MMP2 one, but has an extra range for the other core. The muxes stay the same. Signed-off-by: Lubomir Rintel --- .../interrupt-controller/mrvl,intc.txt| 23 ++- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings

[PATCH 07/19] irqchip/mmp: mask off interrupts from other cores

2019-08-09 Thread Lubomir Rintel
achine via compatible field of "marvell,mmp3-intc". [lkund...@v3.sk: Changed "mrvl,mmp3-intc" compatible strings to "marvell,mmp3-intc". Tidied up the subject line a bit.] Signed-off-by: Andres Salomon Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/regs-icu.h |

[PATCH 15/19] ARM: mmp: add SMP support

2019-08-09 Thread Lubomir Rintel
Used to bring up the second core on MMP3. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/Makefile | 3 +++ arch/arm/mach-mmp/platsmp.c | 32 2 files changed, 35 insertions(+) create mode 100644 arch/arm/mach-mmp/platsmp.c diff --git a/arch/arm/mach-mmp

[PATCH 19/19] ARM: dts: mmp3: Add MMP3 SoC dts file

2019-08-09 Thread Lubomir Rintel
Describes most of the hardware found on Marvell MMP3, aka PXA2128, aka Armada 620. Missing bits are the LCD controller, HSIC controllers, Audio and GPU. Will be completed once bindings and drivers settle. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp3.dtsi | 534

[PATCH 05/19] irqchip/mmp: do not use of_address_to_resource() to get mux regs

2019-08-09 Thread Lubomir Rintel
of_address_to_resource() won't work. We should treat the values as mere integers as opposed to bus addresses. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- drivers/irqchip/irq-mmp.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/

[PATCH 18/19] phy: phy-mmp3-usb: add a new driver

2019-08-09 Thread Lubomir Rintel
This is the USB2 PHY as found on the Marvell MMP3 SoC. Based on Marvell GPL release. While at that, also add a MAINTAINERS entry including the other MMP PHY driver. Signed-off-by: Lubomir Rintel --- MAINTAINERS| 7 + drivers/phy/marvell/Kconfig| 11

[PATCH 08/19] irqchip/mmp: coexist with GIC root IRQ controller

2019-08-09 Thread Lubomir Rintel
On MMP3, the GIC can be set as a root IRQ interrupt controller. If the device tree indicated that GIC is enabled, avoid hooking up mmp2_handle_irq(). The interrupt muxes are still being used. Signed-off-by: Lubomir Rintel --- drivers/irqchip/irq-mmp.c | 9 +++-- 1 file changed, 7

[PATCH 11/19] ARM: mmp: map the PGU as well

2019-08-09 Thread Lubomir Rintel
The MMP2 and later includes a system control unit in this area. We'll need that to initialize the secondary core on MMP3. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/addr-map.h | 7 +++ arch/arm/mach-mmp/common.c | 15 +++ arch/arm/mach-mmp/common.h | 1 + arc

[PATCH 17/19] ARM: mmp: remove MMP3 USB PHY registers from regs-usb.h

2019-08-09 Thread Lubomir Rintel
Nothing in mach-mmp/ uses them and they belong to the PHY driver. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/regs-usb.h | 94 1 file changed, 94 deletions(-) diff --git a/arch/arm/mach-mmp/regs-usb.h b/arch/arm/mach-mmp/regs-usb.h index

[PATCH 10/19] ARM: mmp: don't select CACHE_TAUROS2 on all ARCH_MMP

2019-08-09 Thread Lubomir Rintel
MMP3 has a PJ4B with a Tauros 3 cache controller that uses CACHE_L2X0 instead, while CACHE_TAUROS2 is present on PJ4 and PJ1 (Mohawk) based platforms only. Signed-off-by: Lubomir Rintel --- arch/arm/mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm

[PATCH 16/19] ARM: mmp: move cputype.h to include/linux/soc/

2019-08-09 Thread Lubomir Rintel
Let's move cputype.h away from mach-mmp/ so that the drivers outside that directory are able to tell the precise silicon revision. The MMP3 USB OTG PHY driver needs this. Signed-off-by: Lubomir Rintel --- MAINTAINERS| 1 + arch/arm/mach-mmp/com

[PATCH 13/19] ARM: mmp: define MMP_CHIPID by the means of CIU_REG()

2019-08-09 Thread Lubomir Rintel
A rather trivial cosmetic improvement. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mmp/common.c b/arch/arm/mach-mmp/common.c index 2ee08c78e8bc9..24c689a01ecb7 100644 --- a/arch/arm/mach-mmp

[PATCH v2 2/6] ARM: dts: mmp2: fix the SPI nodes

2019-08-02 Thread Lubomir Rintel
The SPI bus has a single address cell and not size cells. Also, dtc thinks the SPI nodes are preferrably called "spi" and it is right to think so. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 16 1 file changed, 12 insertions(+), 4 deletions(-) di

[PATCH v2 4/6] ARM: dts: mmp2: add camera interfaces

2019-08-02 Thread Lubomir Rintel
Supported by the mmp-camera driver. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 21432cb9143f7..68b5470773232 100644 --- a/arch/arm/boot

[PATCH v2 6/6] ARM: dts: mmp2: add OLPC XO 1.75 machine

2019-08-02 Thread Lubomir Rintel
the Linux bindings. Having an device tree in the kernel tree makes it easier to use mainline kernels on such machines, test changes with CONFIG_ARM_APPENDED_DTB and give a good reference on what bindings are used on the machine without an access to one. Signed-off-by: Lubomir Rintel --- arch/ar

[PATCH v2 3/6] ARM: dts: mmp2: rename the USB PHY node

2019-08-02 Thread Lubomir Rintel
This device is not an OTG phy, it's a regular USB HS phy. Follow the generic node name recommendation, and rename it to "usb-phy". Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/

[PATCH v2 1/6] ARM: dts: mmp2: trivial whitespace fix

2019-08-02 Thread Lubomir Rintel
A missing space before a curly brace. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index b6f40743e07b0..50b6c38b39cc3 100644 --- a/arch/arm/boot/dts

[PATCH v2 5/6] ARM: dts: mmp2: specify reg-shift for the UARTs

2019-08-02 Thread Lubomir Rintel
This makes the 8250_of driver happy. There are two more drivers in the tree that bind to mrvl,mmp-uart compatibles: pxa and 8250_pxa and neither of them requires the reg-shift property, assuming it's always 2. Signed-off-by: Lubomir Rintel --- Changes since v1: - Updated the subject to fi

[PATCH v2 0/6] ARM: dts: mmp2: devicetree updates

2019-08-02 Thread Lubomir Rintel
Hi, Here's a couple of updates for the MMP2 SoC devicetree files. The only change from the last submission is the addition of the OLPC XO 1.75 dts file. Apart from that one, the patches are independent of each other, can be applied in any order. Hopefully I'm sending the patch set in the correct

[PATCH 1/5] ARM: dts: mmp2: trivial whitespace fix

2019-07-25 Thread Lubomir Rintel
A missing space before a curly brace. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index b6f40743e07b0..50b6c38b39cc3 100644 --- a/arch/arm/boot/dts

[PATCH RESEND 0/5] ARM: dts: mmp2: devicetree updates

2019-07-25 Thread Lubomir Rintel
Hi, Here's a couple of updates for the MMP2 SoC devicetree files. They're pretty much independent of each other, can be applied in any order. Hopefully I'm sending them the right way. Lubo

[PATCH 4/5] ARM: dts: mmp2: add camera interfaces

2019-07-25 Thread Lubomir Rintel
Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 21432cb9143f7..68b5470773232 100644 --- a/arch/arm/boot/dts/mmp2.dtsi +++ b/arch/arm/boot/dts

[PATCH 5/5] ARM: dts: mmp2: specify reg-shift for the UARTs

2019-07-25 Thread Lubomir Rintel
This makes the 8250_of driver happy. There are two more drivers in the tree that bind to mrvl,mmp-uart compatibles: pxa and 8250_pxa and neither of them requires the reg-shift property, assuming it's always 2. Signed-off-by: Lubomir Rintel --- Changes since v1: - Updated the subject to fi

[PATCH 3/5] ARM: dts: mmp2: rename the USB PHY node

2019-07-25 Thread Lubomir Rintel
This device is not an OTG phy, it's a regular USB HS phy. Follow the generic node name recommendation, and rename it to "usb-phy". Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/

[PATCH 2/5] ARM: dts: mmp2: fix the SPI nodes

2019-07-25 Thread Lubomir Rintel
The SPI bus has a single address cell and not size cells. Also, dtc thinks the SPI nodes are preferrably called "spi" and it is right to think so. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 16 1 file changed, 12 insertions(+), 4 deletions(-) di

Re: [PATCH v2 6/6] ARM: dts: mmp2: add OLPC XO 1.75 machine

2019-08-05 Thread Lubomir Rintel
- On Aug 3, 2019, at 10:58 AM, Pavel Machek pa...@ucw.cz wrote: > On Fri 2019-08-02 12:33:26, Lubomir Rintel wrote: >> This is a fairly complete description of an OLPC XO 1.75 laptop. >> What's missing for now is the GPU, LCD controller, DCON, the panel and >> audi

[PATCH] PCI: OF: fix a trivial typo in a doc comment

2019-08-07 Thread Lubomir Rintel
Diverged from what the code does with commit 530210c7814e ("of/irq: Replace of_irq with of_phandle_args"). Signed-off-by: Lubomir Rintel --- drivers/pci/of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/of.c b/drivers/pci/of.c index bc7

[PATCH] of: irq: fix a trivial typo in a doc comment

2019-08-07 Thread Lubomir Rintel
Diverged from what the code does with commit 530210c7814e ("of/irq: Replace of_irq with of_phandle_args"). Signed-off-by: Lubomir Rintel --- drivers/of/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 7f8

[PATCH] Platform: OLPC: add SPI MODULE_DEVICE_TABLE

2019-07-23 Thread Lubomir Rintel
The SPI bus creates a device with the modalias of "xo1.75-ec". This fixes XO-1.75 EC driver autoloading Fixes: 0c3d931b3ab9 ("Platform: OLPC: Add XO-1.75 EC driver") Signed-off-by: Lubomir Rintel --- drivers/platform/olpc/olpc-xo175-ec.c | 6 ++ 1 file changed, 6 inserti

Re: [PATCH v5 02/10] [media] marvell-ccic: fix DMA s/g desc number calculation

2019-06-19 Thread Lubomir Rintel
On Fri, 2019-06-14 at 11:41 +0200, Jacopo Mondi wrote: > Hi Lubomir, > > On Sun, May 05, 2019 at 04:00:23PM +0200, Lubomir Rintel wrote: > > The commit d790b7eda953 ("[media] vb2-dma-sg: move dma_(un)map_sg here") > > left dma_desc_nent unset. It previou

[PATCH] pinctrl: xway: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- drivers/pinctrl/pinctrl-xway.c | 5 + 1 file changed, 1

[PATCH] hwmon: (ads7871) Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- drivers/hwmon/ads7871.c | 10 +- 1 file changed, 1

[PATCH] arm64: dts: hisilicon: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- arch/arm64/boot/dts/hisilicon/hi6220-coresight.dtsi | 5 + arch

[PATCH] pinctrl: lantiq: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- drivers/pinctrl/pinctrl-lantiq.c | 5 + drivers/pinctrl/pinct

[PATCH] MIPS: ralink: Switch pinmux.h to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- arch/mips/include/asm/mach-ralink/pinmux.h | 5 + 1 file chang

[PATCH] misc: lis3lv02d: Switch to SPDX header

2019-06-11 Thread Lubomir Rintel
The original license text had a typo ("publishhed") which would be likely to confuse automated licensing auditing tools. Let's just switch to SPDX instead of fixing the wording. Signed-off-by: Lubomir Rintel --- drivers/misc/lis3lv02d/lis3lv02d_spi.c | 5 + 1 file changed, 1

<    1   2   3   4   5   6   7   8   9   10   >