[PATCH] media: marvell-ccic: mmp: add MODULE_DEVICE_TABLE

2019-07-22 Thread Lubomir Rintel
This fixes autoloading the module by the OF compatible string. Fixes: 83c40e6611ec ("media: marvell-ccic/mmp: add devicetree support") Signed-off-by: Lubomir Rintel --- drivers/media/platform/marvell-ccic/mmp-driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/medi

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 >> audio. &g

[PATCH v3 03/16] dt-bindings: arm: mrvl: Document MMP3 compatible string

2019-08-30 Thread Lubomir Rintel
Marvel MMP3 is a successor to MMP2, containing similar peripherals with two PJ4B cores. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - s/MMP3 SoC/MMP3 based boards/, for consistency with MMP2 - Rob's review Changes since v1: - Rebased on top of mrvl.txt

[PATCH v3 04/16] dt-bindings: mrvl,intc: Add a MMP3 interrupt controller

2019-08-30 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 Reviewed-by: Rob Herring --- Changes since v2: - Add Rob's Reviewed-by tag Changes since v1: - Reformat the compatible property documentation to higlight the valid

[PATCH v3 15/16] phy: phy-mmp3-usb: add a new driver

2019-08-30 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 v3 02/16] dt-bindings: arm: Convert Marvell MMP board/soc bindings to json-schema

2019-08-30 Thread Lubomir Rintel
Convert Marvell MMP SoC bindings to DT schema format using json-schema. Signed-off-by: Lubomir Rintel --- Changes since v2: - Add mrvl,pxa910 - s/MMP2 Brownstone Board/MMP2 based boards/ Changes since v1: - Added this patch .../devicetree/bindings/arm/mrvl/mrvl.txt | 14

[PATCH v3 08/16] ARM: mmp: map the PGU as well

2019-08-30 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 + arch/arm

[PATCH v3 07/16] ARM: mmp: don't select CACHE_TAUROS2 on all ARCH_MMP

2019-08-30 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 v3 16/16] ARM: dts: mmp3: Add MMP3 SoC dts file

2019-08-30 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 v3 00/16] Initial support for Marvell MMP3 SoC

2019-08-30 Thread Lubomir Rintel
Hi, this is the third spin of a patch set that adds support for the Marvell MMP3 processor, that I'd eventually love to see land in the Arm SoC tree. MMP3 is used in OLPC XO-4 laptops, Panasonic Toughpad FZ-A1 tablet and Dell Wyse 3020/Tx0D thin clients. Compared to v2, there's a handful of

[PATCH v3 09/16] ARM: mmp: DT: convert timer driver to use TIMER_OF_DECLARE

2019-08-30 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

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

2019-08-30 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/common.c

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

2019-08-30 Thread Lubomir Rintel
Add the enable method for the second PJ4B core of the Marvell MMP3 SoC. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v1: - Add Rob's Reviewed-by tag Documentation/devicetree/bindings/arm/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCH v3 05/16] dt-bindings: phy-mmp3-usb: Add bindings

2019-08-30 Thread Lubomir Rintel
This is the PHY chip for USB OTG on MMP3 platform. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v2: - Add Rob's Reviewed-by tag Changes since v1: - s/usbphy@/usb-phy@/ - Dropped a reference to Documentation/phy.txt .../devicetree/bindings/phy/phy-mmp3-usb.txt

[PATCH v3 06/16] ARM: l2c: add definition for FWA in PL310 aux register

2019-08-30 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 v3 11/16] ARM: mmp: add support for MMP3 SoC

2019-08-30 Thread Lubomir Rintel
controller * More interrupt muxes Hard to tell what else is different, because documentation is not available. Signed-off-by: Lubomir Rintel --- Changes since v1: - Add CONFIG_COMMON_CLK_MMP2 to streamline the Makefile rule a tiny bit. arch/arm/mach-mmp/Kconfig | 22 -- arch/arm

[PATCH v3 12/16] ARM: mmp: add SMP support

2019-08-30 Thread Lubomir Rintel
Used to bring up the second core on MMP3. Signed-off-by: Lubomir Rintel --- Changes since v2: - Wrap secondary_startup with __pa_symbol(), instead of SW_BRANCH_VIRT_ADDR. Changes since v1: - Wrap SW_BRANCH_VIRT_ADDR with __pa_symbol() arch/arm/mach-mmp/Makefile | 3 +++ arch/arm/mach-mmp

[PATCH v3 14/16] ARM: mmp: remove MMP3 USB PHY registers from regs-usb.h

2019-08-30 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 v3 10/16] ARM: mmp: define MMP_CHIPID by the means of CIU_REG()

2019-08-30 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

Re: [PATCH v2 02/20] dt-bindings: arm: Convert Marvell MMP board/soc bindings to json-schema

2019-08-27 Thread Lubomir Rintel
On Tue, 2019-08-27 at 06:59 -0500, Rob Herring wrote: > On Thu, Aug 22, 2019 at 4:27 AM Lubomir Rintel wrote: > > Convert Marvell MMP SoC bindings to DT schema format using json-schema. > > > > Signed-off-by: Lubomir Rintel > > > > --- > > C

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

2019-08-28 Thread Lubomir Rintel
A missing space before a curly brace. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- 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

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

2019-08-28 Thread Lubomir Rintel
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 Acked-by: Pavel Machek

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

2019-08-28 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 Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

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

2019-08-28 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 Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi | 16 1 file changed, 12 insert

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

2019-08-28 Thread Lubomir Rintel
Hi, Here's a couple of updates for the MMP2 SoC devicetree files. I'm wondering if they could be applied to the armsoc tree? Compared to previous submission, the only change is the addition of Acks from Pavel. Lubo

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

2019-08-28 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 Acked-by: Pavel Machek --- arch/arm/boot/dts/mmp2.dtsi

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

2019-08-28 Thread Lubomir Rintel
Supported by the mmp-camera driver. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- 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

[RESEND PATCH] ARM: multi_v7_defconfig: enable MMP2 platform

2019-08-28 Thread Lubomir Rintel
Marvell MMP/PXA/MMP2 platforms seem to be excluded from the defconfig for no good reasons. Enable the DT-based boards and the modules for their peripherals. Signed-off-by: Lubomir Rintel --- arch/arm/configs/multi_v7_defconfig | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH v4 1/5] dt-bindings: reserved-memory: Add binding for Armada framebuffer

2019-08-28 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 Reviewed-by: Rob Herring --- Changes since v2: - Collected the Reviewed-by tag Changes since v1: - Moved from bindings/display/armada/ - Removed the marvell

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

2019-08-28 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 Reviewed-by: Rob Herring --- Changes since v2: - Collected

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

[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

[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
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 | 3 +++ dri

[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
_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/drivers/irqchip

[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 + arch/arm

[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/common.c

[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

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

2019-08-22 Thread Lubomir Rintel
On Wed, 2019-08-21 at 16:03 -0500, Rob Herring wrote: > On Fri, Aug 09, 2019 at 11:31:41AM +0200, Lubomir Rintel wrote: > > Marvel MMP3 is a successor to MMP2, containing similar peripherals with two > > PJ4B cores. > > > > Signed-off-by: Lubomir Rintel > >

[PATCH v2 02/20] dt-bindings: arm: Convert Marvell MMP board/soc bindings to json-schema

2019-08-22 Thread Lubomir Rintel
Convert Marvell MMP SoC bindings to DT schema format using json-schema. Signed-off-by: Lubomir Rintel --- Changes since v1: - Added this patch .../devicetree/bindings/arm/mrvl/mrvl.txt | 14 - .../devicetree/bindings/arm/mrvl/mrvl.yaml| 31 +++ 2 files changed

[PATCH v2 04/20] dt-bindings: mrvl,intc: Add a MMP3 interrupt controller

2019-08-22 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 --- Changes since v1: - Reformat the compatible property documentation to higlight the valid combinations - Drop an unneeded mmp3-intc example .../bindings/interrupt

[PATCH v2 10/20] ARM: l2c: add definition for FWA in PL310 aux register

2019-08-22 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 v2 01/20] dt-bindings: arm: cpu: Add Marvell MMP3 SMP enable method

2019-08-22 Thread Lubomir Rintel
Add the enable method for the second PJ4B core of the Marvell MMP3 SoC. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v1: - Add Rob's Reviewed-by tag Documentation/devicetree/bindings/arm/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCH v2 05/20] dt-bindings: phy-mmp3-usb: Add bindings

2019-08-22 Thread Lubomir Rintel
This is the PHY chip for USB OTG on MMP3 platform. Signed-off-by: Lubomir Rintel --- Changes since v1: - s/usbphy@/usb-phy@/ - Dropped a reference to Documentation/phy.txt .../devicetree/bindings/phy/phy-mmp3-usb.txt| 13 + 1 file changed, 13 insertions(+) create mode

[PATCH v2 07/20] irqchip/mmp: add missing chained_irq_{enter,exit}()

2019-08-22 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 --- Changes since v1: - Use irq_desc_get_chip() instead of irq_get_chip() drivers/irqchip/irq-mmp.c | 9 - 1 file changed, 8

[PATCH v2 12/20] ARM: mmp: map the PGU as well

2019-08-22 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 + arch/arm

[PATCH v2 09/20] irqchip/mmp: coexist with GIC root IRQ controller

2019-08-22 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 | 7 ++- 1 file changed, 6 insertions

[PATCH v2 13/20] ARM: mmp: DT: convert timer driver to use TIMER_OF_DECLARE

2019-08-22 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

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

2019-08-22 Thread Lubomir Rintel
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 FZ-A1 tablet and Dell Wyse 3020 Tx0D thin clients. Compared to v1, there's a handful of fixes in response to reviews. Patch 02/20 is new. Details in

[PATCH v2 15/20] ARM: mmp: add support for MMP3 SoC

2019-08-22 Thread Lubomir Rintel
controller * More interrupt muxes Hard to tell what else is different, because documentation is not available. Signed-off-by: Lubomir Rintel --- Changes since v1: - Add CONFIG_COMMON_CLK_MMP2 to streamline the Makefile rule a tiny bit. arch/arm/mach-mmp/Kconfig | 22 -- arch/arm

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

2019-08-22 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 v2 06/20] irqchip/mmp: do not use of_address_to_resource() to get mux regs

2019-08-22 Thread Lubomir Rintel
_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 --- Changes since v4 of "MMP platform fixes" set: - Add a comment, as suggested by Pavel Changes since v1: - Fix up typoes in the c

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

2019-08-22 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 v2 14/20] ARM: mmp: define MMP_CHIPID by the means of CIU_REG()

2019-08-22 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 18/20] ARM: mmp: remove MMP3 USB PHY registers from regs-usb.h

2019-08-22 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] clk: remove extra ---help--- tags in Kconfig

2019-08-22 Thread Lubomir Rintel
Sometimes an extraneous "---help---" follows "help". That is probably a copy error stemming from their inconsistent use. Remove those. Signed-off-by: Lubomir Rintel --- drivers/clk/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/clk/Kconfig b

[PATCH v2 08/20] irqchip/mmp: mask off interrupts from other cores

2019-08-22 Thread Lubomir Rintel
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 -- Changes since v1: - Moved mmp3-specific mmp

[PATCH v2 17/20] ARM: mmp: move cputype.h to include/linux/soc/

2019-08-22 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/common.c

[PATCH v2 03/20] dt-bindings: arm: mrvl: Document MMP3 compatible string

2019-08-22 Thread Lubomir Rintel
Marvel MMP3 is a successor to MMP2, containing similar peripherals with two PJ4B cores. Signed-off-by: Lubomir Rintel --- Changes since v1: - Rebased on top of mrvl.txt->mrvl.yaml conversion Documentation/devicetree/bindings/arm/mrvl/mrvl.yaml | 3 +++ 1 file changed, 3 insertions(+) d

[PATCH v2 16/20] ARM: mmp: add SMP support

2019-08-22 Thread Lubomir Rintel
Used to bring up the second core on MMP3. Signed-off-by: Lubomir Rintel --- Changes since v1: - Wrap SW_BRANCH_VIRT_ADDR with __pa_symbol() arch/arm/mach-mmp/Makefile | 3 +++ arch/arm/mach-mmp/platsmp.c | 33 + 2 files changed, 36 insertions(+) create mode

[PATCH v2 11/20] ARM: mmp: don't select CACHE_TAUROS2 on all ARCH_MMP

2019-08-22 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

Re: [PATCH] clk: tidy up the help tags in Kconfig

2019-08-22 Thread Lubomir Rintel
On Fri, 2019-08-16 at 12:27 -0700, Stephen Boyd wrote: > Quoting Lubomir Rintel (2019-08-16 11:57:16) > > Sometimes an extraneous "---help---" follows "help". That is probably a > > copy error stemming from their inconsistent use. Let's just replace > >

Re: [PATCH v2 16/20] ARM: mmp: add SMP support

2019-08-23 Thread Lubomir Rintel
On Thu, 2019-08-22 at 09:36 -0700, Florian Fainelli wrote: > On 8/22/19 2:26 AM, Lubomir Rintel wrote: > > Used to bring up the second core on MMP3. > > > > Signed-off-by: Lubomir Rintel > > > > --- > > Changes since v1: > > - Wrap SW_BRANCH_VIRT_AD

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

[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
put 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 +++ 3 files ch

[PATCH] libertas: use mesh_wdev->ssid instead of priv->mesh_ssid

2019-09-07 Thread Lubomir Rintel
Signed-off-by: Lubomir Rintel --- drivers/net/wireless/marvell/libertas/dev.h | 2 -- drivers/net/wireless/marvell/libertas/mesh.c | 31 +--- drivers/net/wireless/marvell/libertas/mesh.h | 3 +- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/drivers/net/wireless/marvel

[PATCH v2 01/13] ARM: dts: mmp2-olpc-xo-1-75: Fix camera I2C node validation

2020-07-18 Thread Lubomir Rintel
documented as deprecated, but got dropped in commit 0175ce4a58d6 ("dt-bindings: i2c: Convert i2c-gpio binding to json-schema"). It's probably best kept forgotten though. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts | 6 +++--- 1 file changed, 3 insert

[PATCH v2 05/13] ARM: dts: mmp2: Add Audio SRAM

2020-07-18 Thread Lubomir Rintel
This memory is region is where the two-channel audio DMA can pump sound samples into the SSPA's internal FIFO. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi

[PATCH v2 02/13] ARM: dts: mmp2-olpc-xo-1-75: Delete #address-cells from ssp3

2020-07-18 Thread Lubomir Rintel
-olpc-xo-1-75.dt.yaml: spi@d4037000: '#address-cells' is a dependency of '#size-cells' Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts b/arch/arm/boot/dts

[PATCH v2 00/13] MMP DTS updates for 5.9

2020-07-18 Thread Lubomir Rintel
Hi, chained to this message is a patch set I hope would end up queued into soc/arm/dt for 5.9. I've checked I'm not adding new validation errors and booted the v5.8-rc1 kernels with appended DTBs on the XO-1.75 and Dell Ariel board. Compared to v1 I've fixed one wording error in last patch, and

[PATCH v2 03/13] ARM: dts: mmp2: Add #power-domain-cells to /clocks

2020-07-18 Thread Lubomir Rintel
The power management unit, described by the soc_clocks node, controls the power to the peripherals by the means of power domains with a single cell -- the domain number. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm

[PATCH v2 06/13] ARM: dts: mmp2: Add DMA nodes

2020-07-18 Thread Lubomir Rintel
There is a 16-channel peripheral DMA controller along with two-channel audio DMA engines. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index

[PATCH v2 08/13] ARM: dts: mmp2: Add SSPA nodes

2020-07-18 Thread Lubomir Rintel
There are two I2S-capable audio serial port blocks. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index dd7fba65799ea..31592acd3ef4f 100644

[PATCH v2 10/13] ARM: dts: mmp2: Add the GPU

2020-07-18 Thread Lubomir Rintel
There's a GC860 2D + 3D core. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 31592acd3ef4f..445bdcd50b9ed 100644 --- a/arch/arm/boot/dts/mmp2.dtsi

[PATCH v2 12/13] ARM: dts: mmp3: Add the GPU

2020-07-18 Thread Lubomir Rintel
There's a GC2000 3D core accompanied by a GC300 2D core. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp3.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/mmp3.dtsi b/arch/arm/boot/dts/mmp3.dtsi index 57231d49d9386..cc4efd0efabd2

[PATCH v2 07/13] ARM: dts: mmp2: Add Audio Clock controller

2020-07-18 Thread Lubomir Rintel
This device generates the audio codec master clock and bit clock. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index b349f4f35706b..dd7fba65799ea 100644

[PATCH v2 09/13] ARM: dts: mmp2-olpc-xo-1-75: Enable audio support

2020-07-18 Thread Lubomir Rintel
This enables the audio SRAM, DMA engine, I2S interface, and codec, hooks them together and adds a audio-graph-card instance. It also removes the jack gpios from the gpio-keys instance, because the audio jack driver registers an input device. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts

[PATCH v2 13/13] ARM: dts: mmp3-dell-ariel: Enable the GPU

2020-07-18 Thread Lubomir Rintel
Enable the 2D (GC300) and the 3D (GC2000) GPUs cores. Signed-off-by: Lubomir Rintel --- Changes since v1: - s/GC200/GC2000/ in patch description (pointed out by Pavel Machek) arch/arm/boot/dts/mmp3-dell-ariel.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH v2 04/13] ARM: dts: mmp2: Extend the MPMU reg range

2020-07-18 Thread Lubomir Rintel
The ACGR register is at the offset of 0x1024, beyond the 4k originally assigned to the MPMU range. 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

[PATCH v2 11/13] ARM: dts: mmp2-olpc-xo-1-75: Enable the GPU

2020-07-18 Thread Lubomir Rintel
Enable the 3D + 2D (GC860) GPU core. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts b/arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts index 5f1da58550987..f1a41152e9dd7 100644

[PATCH] dt-bindings: misc: Convert olpc,xo1.75-ec to json-schema

2020-07-18 Thread Lubomir Rintel
Convert the OLPC XO-1.75 Embedded Controller binding to DT schema format using json-schema. Signed-off-by: Lubomir Rintel --- Hi, please consider enqueueing this patch for 5.9. It is a straightforward conversion of the olpc,xo1.75-ec binding doc to YAML. It applies on top of v5.8-rc4 (where

[PATCH v6 1/7] Revert "[media] marvell-ccic: reset ccic phy when stop streaming for stability"

2019-05-28 Thread Lubomir Rintel
-off-by: Lubomir Rintel --- Changes since v5: - Added a sign-off .../media/platform/marvell-ccic/mcam-core.c | 6 - .../media/platform/marvell-ccic/mcam-core.h | 2 -- .../media/platform/marvell-ccic/mmp-driver.c | 25 --- 3 files changed, 33 deletions(-) diff --git

[PATCH v6 0/7] media: make Marvell camera work on DT-based OLPC XO-1.75

2019-05-28 Thread Lubomir Rintel
Hi, this is a re-send of the patch that lacked a Signed-off-by tag and the patches that followd it in the previosu spin of the series. Applies on top of master branch of git://linuxtv.org/media_tree.git Cheers, Lubo

[PATCH v6 2/7] [media] marvell-ccic: drop unused stuff

2019-05-28 Thread Lubomir Rintel
Remove structure members and headers that are not actually used. Saves us from some noise in subsequent cleanup commits. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- drivers/media/platform/marvell-ccic/mcam-core.c | 1 - drivers/media/platform/marvell-ccic/mcam-core.h | 2

[PATCH v6 3/7] [media] marvell-ccic/mmp: enable clock before accessing registers

2019-05-28 Thread Lubomir Rintel
The access to REG_CLKCTRL or REG_CTRL1 without the clock enabled hangs the machine. Enable the clock first. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- drivers/media/platform/marvell-ccic/mmp-driver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH v6 4/7] [media] marvell-ccic: rename the clocks

2019-05-28 Thread Lubomir Rintel
Use the names more suitable for devicetree bindings. There are no board files utilizing this, thus we seem to be at liberty at renaming this without consequences. Signed-off-by: Lubomir Rintel --- Changes since v2: - This patch was added to the series drivers/media/platform/marvell-ccic/mmp

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