Re: ARM: dts: mmp devicetree updates

2021-02-02 Thread Lubomir Rintel
On Tue, Feb 02, 2021 at 06:13:18PM +0100, Arnd Bergmann wrote: > On Tue, Feb 2, 2021 at 5:41 PM Arnd Bergmann wrote: > > > > On Fri, Jan 22, 2021 at 3:09 PM Arnd Bergmann wrote: > > > On Thu, Jan 21, 2021 at 4:41 AM Lubomir Rintel wrote: > > > > > > &

[PATCH v2 5/5] docs: arm: marvell: rename marvel.rst to marvell.rst

2021-02-03 Thread Lubomir Rintel
This company is not the superheroes you're looking for. Signed-off-by: Lubomir Rintel --- Documentation/arm/{marvel.rst => marvell.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/arm/{marvel.rst => marvell.rst} (100%) diff --git a/Documentation/arm/m

[PATCH v2 1/5] docs: arm: marvell: drop some dead links

2021-02-03 Thread Lubomir Rintel
Just remove these; there's good chance there wasn't anything useful there anyway. Signed-off-by: Lubomir Rintel --- Changes since v1: - Adjust for removal of "[PATCH 1/5] docs: arm: marvell: turn the automatic links into labels" - Split off the hunk that fixes 38x

[PATCH v2 4/5] docs: arm: marvell: clarify some unimportant Armada 6x0 details

2021-02-03 Thread Lubomir Rintel
MMP2 is used in XO-1.75 and MMP3 is now supported in mainline. Signed-off-by: Lubomir Rintel --- Documentation/arm/marvel.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/arm/marvel.rst b/Documentation/arm/marvel.rst index bcf3f4e3e8faf..d83917f226376

[PATCH v2 2/5] docs: arm: marvell: fix 38x functional spec link

2021-02-03 Thread Lubomir Rintel
This one went away, but the document is still available. Signed-off-by: Lubomir Rintel --- Changes since v1: - Split this off from "[PATCH] docs: arm: marvell: drop some dead links" Documentation/arm/marvel.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc

[PATCH v2 3/5] docs: arm: marvell: replace stale links with archive links

2021-02-03 Thread Lubomir Rintel
shame because (short of the product briefs) the documents tend to be quite useful. Let's replace them with known working versions of IA's Wayback Machine links. That seems to be about the only way of getting a URL that's going to work the next week. Signed-off-by: Lubomir Rintel

[PATCH v2 0/5] docs: arm: Improvements to Marvell SoC documentation

2021-02-03 Thread Lubomir Rintel
Hi, please consider applying the patches chained to this message. The objective is to deal with the a large amount of dead links to material that often comes handy in marvel.rst; and improve some details along the way. The most important change since v1 is the removal of "[PATCH 1/5] docs: arm:

[PATCH v7 0/2] Add a Himax HX8837 display controller driver

2021-01-28 Thread Lubomir Rintel
Hi, please take a look at the patches chained to this messages and consider applying them. They add support for the controller that drives the panel on the OLPC XO laptops. Compared to v7, points risen in review by Laurent Pinchart have been addressed. Details in change log of patch 1/2. Tested

[PATCH v7 1/2] dt-bindings: display: himax,hx8837: Add Himax HX8837 bindings

2021-01-28 Thread Lubomir Rintel
Himax HX8837 is a secondary display controller used to drive the panel on OLPC platforms. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v6: (All based on feedback from Laurent Pinchart) - Add power supplies - Make load/stat-gpios optional - Fix whitespace errors

[PATCH v7 2/2] drm/bridge: hx8837: add a Himax HX8837 display controller driver

2021-01-28 Thread Lubomir Rintel
Controller Driver + * + * Datasheet: http://wiki.laptop.org/images/0/09/DCON_datasheet_HX8837-A.pdf + * + * Copyright (C) 2020 Lubomir Rintel + */ + +#include +#include +#include +#include +#include + +#include +#include +#include + +#define bridge_to_hx8837_priv(x) \ + conta

Re: [PATCH 1/4] drivers: phy: add support for Armada CP110 UTMI PHY

2021-01-29 Thread Lubomir Rintel
On Fri, Jan 29, 2021 at 10:07:13AM +, Russell King - ARM Linux admin wrote: > On Fri, Jan 29, 2021 at 10:28:49AM +0100, Lubomir Rintel wrote: > > > + /* > > > + * Setup PLL. 40MHz clock used to be the default, being 25MHz now. > > > + * See the functi

[PATCH 0/5] docs: arm: Improvements to Marvell SoC documentation

2021-01-29 Thread Lubomir Rintel
Hi, please consider applying the patches chained to this message. The objective is to deal with the a large amount of dead links to material that often comes handy in marvel.rst; and improve some details along the way. Thank you Lubo

[PATCH 5/5] docs: arm: marvell: rename marvel.rst to marvell.rst

2021-01-29 Thread Lubomir Rintel
This company is not the superheroes you're looking for. Signed-off-by: Lubomir Rintel --- Documentation/arm/{marvel.rst => marvell.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/arm/{marvel.rst => marvell.rst} (100%) diff --git a/Documentation/arm/m

[PATCH 2/5] docs: arm: marvell: drop some dead links

2021-01-29 Thread Lubomir Rintel
Just remove these; there's good chance there wasn't anything useful there anyway. Signed-off-by: Lubomir Rintel --- Documentation/arm/marvel.rst | 27 ++- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/Documentation/arm/marvel.rst b/Documen

[PATCH 1/5] docs: arm: marvell: turn the automatic links into labels

2021-01-29 Thread Lubomir Rintel
Lines ending with obscenely long URLs at the end don't look good. Even if these links are not that long at this point, they will be when replaced with an archive link in a subsequent patch -- let's prepare for that. Signed-off-by: Lubomir Rintel --- Documentation/arm/marvel

[PATCH 3/5] docs: arm: marvell: replace stale links with archive links

2021-01-29 Thread Lubomir Rintel
shame because (short of the product briefs) the documents tend to be quite useful. Let's replace them with known working versions of IA's Wayback Machine links. That seems to be about the only way of getting a URL that's going to work the next week. Signed-off-by: Lubomir Rintel --

[PATCH 4/5] docs: arm: marvell: clarify some unimportant Armada 6x0 details

2021-01-29 Thread Lubomir Rintel
MMP2 is used in XO-1.75 and MMP3 is now supported in mainline. Signed-off-by: Lubomir Rintel --- Documentation/arm/marvel.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/arm/marvel.rst b/Documentation/arm/marvel.rst index 0c291d1091f1d..43f2fe407796e

Re: ARM: dts: mmp devicetree updates

2021-01-29 Thread Lubomir Rintel
On Fri, Jan 22, 2021 at 03:09:14PM +0100, Arnd Bergmann wrote: > On Thu, Jan 21, 2021 at 4:41 AM Lubomir Rintel wrote: > > > > Hi, > > > > chained to this message is a handful of patches related to MMP device > > trees and bindings. Please take a look and consid

Re: [PATCH 1/5] docs: arm: marvell: turn the automatic links into labels

2021-01-30 Thread Lubomir Rintel
On Fri, Jan 29, 2021 at 05:20:28PM -0700, Jonathan Corbet wrote: > Lubomir Rintel writes: > > > Lines ending with obscenely long URLs at the end don't look good. > > > > Even if these links are not that long at this point, they will be when > > replaced with an

[PATCH 1/1] clk: mmp2: Enable the 3D GPU clock alongside the 2D clock

2021-02-03 Thread Lubomir Rintel
The bits intended to control the 3D GPU clock need to be enabled for the 2D GPU to work. It is not clear why this needs to be done. Forcing the 3D clock on when the etnaviv driver requests a 2D clock works around the problem. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-gate.c| 9

[PATCH 0/1] clk: mmp2: Enable the 3D GPU clock alongside the 2D clock

2021-02-03 Thread Lubomir Rintel
Hi, Please consider applying the sad little patch chained to this message. It is a workaround that makes the 2D GPU work on MMP3 when the 3D GPU is not used. It's been observed that the 2D GPU won't work when what is understood to be the 3D GPU clock is turned off. The etnaviv developers suggest

Re: [PATCH 0/9] DT: Improve validation for Marvell SoCs

2020-05-30 Thread Lubomir Rintel
On Thu, May 28, 2020 at 04:52:44PM -0600, Rob Herring wrote: > On Thu, May 21, 2020 at 11:13:47AM +0200, Lubomir Rintel wrote: > > Hi, > > > > chained to this message is a second version of remaining patches from the > > first spin of the "DT: Improve validation

[RESEND 2 PATCH] media: marvell-ccic: Add support for runtime PM

2020-06-01 Thread Lubomir Rintel
On MMP3, the camera block lives on na separate power island. We want to turn it off if the CCIC is not in use to conserve power. Signed-off-by: Lubomir Rintel --- drivers/media/platform/marvell-ccic/mcam-core.c | 3 +++ drivers/media/platform/marvell-ccic/mmp-driver.c | 12 2

[RESEND PATCH] dmaengine: mmp_pdma: Do not warn when IRQ is shared by all chans

2020-06-01 Thread Lubomir Rintel
0.dma: initialized 16 channels Avoid that, treating the IRQs as optional. Signed-off-by: Lubomir Rintel --- drivers/dma/mmp_pdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index ad06f260e907d..41c542eaa23a5 100644

[RESEND PATCH] dmaengine: mmp_tdma: share the IRQ line

2020-06-01 Thread Lubomir Rintel
-tdma d42a0800.adma: IRQ index 1 not found [1.194317] genirq: Flags mismatch irq 64. (tdma) vs. 0080 (pdma) [1.197894] mmp-tdma: probe of d42a0800.adma failed with error -16 Let's turn on IRQF_SHARED in the ADMA driver as well. Signed-off-by: Lubomir Rintel --- driver

Re: [PATCH 1/2] dt-bindings: sound: Add Marvell MMP Audio Clock Controller binding

2020-05-19 Thread Lubomir Rintel
On Thu, May 14, 2020 at 02:06:07PM -0700, Stephen Boyd wrote: > Quoting Lubomir Rintel (2020-05-11 12:55:33) > > diff --git > > a/Documentation/devicetree/bindings/clock/marvell,mmp2-audio-clock.yaml > > b/Documentation/devicetree/bindings/clock/marvell,mmp2-audio-clock.y

[PATCH v3 09/13] dt-bindings: clock: Make marvell,mmp2-clock a power controller

2020-05-19 Thread Lubomir Rintel
This is a binding for the MMP2 power management units. As such apart from providing the clocks, they also manage the power islands. Signed-off-by: Lubomir Rintel --- Changes since v2: - Added this patch .../devicetree/bindings/clock/marvell,mmp2-clock.yaml| 5 + 1 file changed, 5

[PATCH v3 05/13] clk: mmp2: Move thermal register defines up a bit

2020-05-19 Thread Lubomir Rintel
A trivial change to keep the sorting sane. The APBC registers are happier when they are grouped together, instead of mixed with the APMU ones. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-of-mmp2.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk

[PATCH v3 08/13] clk: mmp2: Add the audio clock

2020-05-19 Thread Lubomir Rintel
This clocks the Audio block. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-of-mmp2.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/mmp/clk-of-mmp2.c b/drivers/clk/mmp/clk-of-mmp2.c index dcdff06a698a..c686c16fca82 100644 --- a/drivers/clk/mmp/clk-of-mmp2.c +++ b

[PATCH v3 02/13] clk: mmp: frac: Allow setting bits other than the numerator/denominator

2020-05-19 Thread Lubomir Rintel
For the I2S fractional clocks, there are more bits that need to be set for the clock to run. Their actual meaning is unknown. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-frac.c | 3 +++ drivers/clk/mmp/clk.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/clk/mmp

[PATCH v3 01/13] clk: mmp: frac: Do not lose last 4 digits of precision

2020-05-19 Thread Lubomir Rintel
clock. Maybe also elsewhere, now that since commit ea56ad60260e ("clk: mmp2: Stop pretending PLL outputs are constant") the parent rates are more precise and no longer rounded to 1s. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-frac.c | 24 1 f

[PATCH v3 13/13] clk: mmp2: Add audio clock controller driver

2020-05-19 Thread Lubomir Rintel
This is a driver for a block that generates master and bit clocks for the I2S interface. It's separate from the PMUs that generate clocks for the peripherals. Signed-off-by: Lubomir Rintel --- Changes since v1: - Utilize runtime PM along with pm_clk to enable/disable clocks - Rework the d

[PATCH v3 00/13] MMP2 Clock Updates (GPU, Audio, Power Islands)

2020-05-19 Thread Lubomir Rintel
Hi, please consider applying this patch set. It contains patches that were previously sent in two separate series ("clk: mmp2: Enable Audio and GPU on MMP2 and MMP3" and "MMP2 Audio clock controller driver") but given there are some dependencies, it seems more practical to merge them into one. Th

[PATCH v3 12/13] dt-bindings: clock: Add Marvell MMP Audio Clock Controller binding

2020-05-19 Thread Lubomir Rintel
This describes the bindings for a controller that generates master and bit clocks for the I2S interface. Signed-off-by: Lubomir Rintel --- Changes since v1: - Fix commit message wording - Define MMP2_CLK_AUDIO_NR_CLKS - Make clock ids start at 0, not 1 - Fix dt-bindings/clock/marvell,mmp2

[PATCH v3 10/13] dt-bindings: marvell,mmp2: Add ids for the power domains

2020-05-19 Thread Lubomir Rintel
On MMP2 the audio and GPU blocks are on separate power islands. On MMP3 the camera block's power is also controlled separately. Add the numbers that we could use to refer to the power domains for respective power islands from the device tree. Signed-off-by: Lubomir Rintel Acked-by: Rob He

[PATCH v3 11/13] clk: mmp2: Add support for power islands

2020-05-19 Thread Lubomir Rintel
s and the SSPA. Signed-off-by: Lubomir Rintel --- Changes since v2: - Use lowercase names for power domain names - Fix the audio domain reset mask arch/arm/mach-mmp/Kconfig | 2 + drivers/clk/mmp/Makefile | 2 +- drivers/clk/mmp/clk-of-mmp2.c | 42 + drivers/clk/mmp/

[PATCH v3 06/13] clk: mmp2: Rename mmp2_pll_init() to mmp2_main_clk_init()

2020-05-19 Thread Lubomir Rintel
This is a trivial rename for a routine that registers more clock sources than the PLLs -- there's also a XO. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-of-mmp2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/mmp/clk-of-mmp2.c b/drivers/cl

[PATCH v3 07/13] clk: mmp2: Add the I2S clocks

2020-05-19 Thread Lubomir Rintel
A pair of fractional clock sources for PLLs and gates. Signed-off-by: Lubomir Rintel --- Changes since v2: - s/I2C/I2S/ drivers/clk/mmp/clk-of-mmp2.c | 46 +++ 1 file changed, 46 insertions(+) diff --git a/drivers/clk/mmp/clk-of-mmp2.c b/drivers/clk/mmp/clk-of

[PATCH v3 04/13] dt-bindings: marvell,mmp2: Add clock id for the Audio clock

2020-05-19 Thread Lubomir Rintel
This clocks the Audio block. Signed-off-by: Lubomir Rintel Acked-by: Rob Herring --- Changes since v1: - Rob's ack 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,m

[PATCH v3 03/13] dt-bindings: marvell,mmp2: Add clock id for the I2S clocks

2020-05-19 Thread Lubomir Rintel
There are two of these on a MMP2. Signed-off-by: Lubomir Rintel Acked-by: Rob Herring --- Changes since v1: - Rob's ack include/dt-bindings/clock/marvell,mmp2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/marvell,mmp2.h b/include/dt-bindings/clock/ma

[PATCH] dmaengine: mmp_pdma: Do not warn when IRQ is shared by all chans

2020-05-19 Thread Lubomir Rintel
0.dma: initialized 16 channels Avoid that, treating the IRQs as optional. Signed-off-by: Lubomir Rintel --- drivers/dma/mmp_pdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index ad06f260e907..41c542eaa23a 100644

[PATCH] dmaengine: mmp_tdma: share the IRQ line

2020-05-19 Thread Lubomir Rintel
-tdma d42a0800.adma: IRQ index 1 not found [1.194317] genirq: Flags mismatch irq 64. (tdma) vs. 0080 (pdma) [1.197894] mmp-tdma: probe of d42a0800.adma failed with error -16 Let's turn on IRQF_SHARED in the ADMA driver as well. Signed-off-by: Lubomir Rintel --- driver

[PATCH] ASoC: mmp-sspa: Fix the error handling in probe()

2020-05-20 Thread Lubomir Rintel
If we fail after pm_runtime_enable(), we fail to undo it. Same with clk_prepare_enable(). Let's order them after all things that can fail. Fixes: 7d98cc648253 ("ASoC: mmp-sspa: Add support for the runtime power management") Signed-off-by: Lubomir Rintel --- sound/soc/pxa/

Re: [PATCH 2/3] drm/etnaviv: Don't ignore errors on getting clocks

2020-05-20 Thread Lubomir Rintel
On Thu, May 14, 2020 at 09:53:08AM +0100, Russell King - ARM Linux admin wrote: > On Thu, May 14, 2020 at 10:40:58AM +0200, Lucas Stach wrote: > > Am Donnerstag, den 14.05.2020, 09:27 +0100 schrieb Russell King - ARM Linux > > admin: > > > On Thu, May 14, 2020 at 10:18:02AM +0200, Lucas Stach wrot

[RESEND PATCH] media: marvell-ccic: Add support for runtime PM

2020-05-20 Thread Lubomir Rintel
On MMP3, the camera block lives on na separate power island. We want to turn it off if the CCIC is not in use to conserve power. Signed-off-by: Lubomir Rintel --- drivers/media/platform/marvell-ccic/mcam-core.c | 3 +++ drivers/media/platform/marvell-ccic/mmp-driver.c | 12 2

[PATCH v3 0/2] mfd: Add ENE KB3930 Embedded Controller driver

2020-05-20 Thread Lubomir Rintel
Hi, please consider applying the patches chained to this message. It's the third version of the driver for the ENE KB3930 Embedded Controller. This version attempts to address the issues pointed out in review of v2. A more detailed change log it in the patch description of patch 2/2. Thanks, Lub

[PATCH v3 2/2] mfd: ene-kb3930: Add driver for ENE KB3930 Embedded Controller

2020-05-20 Thread Lubomir Rintel
platform, it registers the appropriate cells. Signed-off-by: Lubomir Rintel --- Changes since v2: - Sort the includes - s/EC_MODEL_ID/EC_MODEL/ - Add a couple of clarifying comments - Use #defines for values used in poweroff routine - Remove priority from a restart notifier block - s/priv/ddata

[PATCH v3 1/2] dt-bindings: mfd: Add ENE KB3930 Embedded Controller binding

2020-05-20 Thread Lubomir Rintel
Add binding document for the ENE KB3930 Embedded Controller. Signed-off-by: Lubomir Rintel --- Changes since v1: - Addressed binding validation failure .../devicetree/bindings/mfd/ene-kb3930.yaml | 55 +++ 1 file changed, 55 insertions(+) create mode 100644 Documentation

[PATCH v2 1/9] dt-bindings: mmc: Convert sdhci-pxa to json-schema

2020-05-21 Thread Lubomir Rintel
Convert the sdhci-pxa binding to DT schema format using json-schema. At the same time, fix a couple of issues with the examples discovered by the validation tool -- a semicolon instead of a comma and wrong node names. Signed-off-by: Lubomir Rintel --- Changes since v1: - move reg-names items

[PATCH 0/9] DT: Improve validation for Marvell SoCs

2020-05-21 Thread Lubomir Rintel
Hi, chained to this message is a second version of remaining patches from the first spin of the "DT: Improve validation for Marvell SoCs" [1] patch set. [1] https://lore.kernel.org/lkml/20200317093922.20785-1-lkund...@v3.sk/ I've attempted to address the review of the v1, each patch includes a d

[PATCH v2 7/9] dt-bindings: spi: Convert spi-pxa2xx to json-schema

2020-05-21 Thread Lubomir Rintel
A straightforward conversion of the the spi-pxa2xx binding to DT schema format using json-schema. Signed-off-by: Lubomir Rintel --- Changes since v1: - Drop #address-cells and #size-cells - s/GPL-2.0-or-later/GPL-2.0-only/ .../bindings/spi/marvell,mmp2-ssp.yaml| 56

[PATCH v2 5/9] dt-bindings: media: Convert marvell,mmp2-ccic to json-schema

2020-05-21 Thread Lubomir Rintel
bably a clock for the sensor and it would belong in the sensor node. Signed-off-by: Lubomir Rintel --- Changes since v1: - Fix indentation - Drop clocks other than "axi" - s/GPL-2.0-or-later/GPL-2.0-only/ .../bindings/media/marvell,mmp2-ccic.txt | 50 -- .../b

[PATCH v2 3/9] dt-bindings: i2c: Convert i2c-pxa to json-schema

2020-05-21 Thread Lubomir Rintel
ht thing to do and indeed nobody seems to have been doing that. There also was "Recommended properties" section that included optional as well as mandatory properties. Missing mandatory properties were added to the example. Signed-off-by: Lubomir Rintel --- Changes since v1: - Add default

[PATCH v2 2/9] dt-bindings: gpio: Convert mrvl-gpio to json-schema

2020-05-21 Thread Lubomir Rintel
een in the tree, but it doesn't end up in any actual DTB file. In any case -- the schema merely copies whatever was in the original binding document, so it's hopefully no more wrong that the original. Signed-off-by: Lubomir Rintel --- Changes since v1: - Drop marvell,pxa1928-gpio - Drop

[PATCH v2 9/9] dt-bindings: usb: Convert ehci-mv to json-schema

2020-05-21 Thread Lubomir Rintel
A straightforward conversion of the ehci-mv binding to DT schema format using json-schema. Signed-off-by: Lubomir Rintel --- Changes since v1: - s/GPL-2.0-or-later/GPL-2.0-only/ .../devicetree/bindings/usb/ehci-mv.txt | 23 --- .../bindings/usb/marvell,pxau2o-ehci.yaml | 60

[PATCH v2 4/9] dt-bindings: interrupt-controller: Convert mrvl,intc to json-schema

2020-05-21 Thread Lubomir Rintel
Convert the mrvl,intc binding to DT schema format using json-schema. Signed-off-by: Lubomir Rintel --- Changes since v1: - Move minItems/maxItems to main reg property definition from the conditional one - Drop the condition for marvell,orion-intc - Add default GPL-2.0-only license tag - Fill

[PATCH v2 6/9] dt-bindings: rtc: Convert sa1100-rtc to json-schema

2020-05-21 Thread Lubomir Rintel
Convert the sa1100-rtc binding to DT schema format using json-schema. While add that, add clocks and resets that are actually used. Signed-off-by: Lubomir Rintel --- Changes since v1: - Remove interrupts/maxItems - Mention clocks and resets in the patch description - Add default GPL-2.0-only

[PATCH v2 8/9] dt-bindings: timer: Convert mrvl,mmp-timer to json-schema

2020-05-21 Thread Lubomir Rintel
A straightforward conversion of the mrvl,mmp-timer binding to DT schema format using json-schema. Signed-off-by: Lubomir Rintel --- Changes since v1: - Add default GPL-2.0-only license tag - Fill in maintainers from MAINTAINERS file .../bindings/timer/mrvl,mmp-timer.txt | 17

[PATCH v4 0/2] mfd: Add ENE KB3930 Embedded Controller driver

2020-05-21 Thread Lubomir Rintel
Hi, please consider applying the patches chained to this message. It's the fourth version of the driver for the ENE KB3930 Embedded Controller. This version attempts to address the issues pointed out in review of v3. A more detailed change log it in the patch description of patch 2/2. Thanks, Lu

[PATCH v4 1/2] dt-bindings: mfd: Add ENE KB3930 Embedded Controller binding

2020-05-21 Thread Lubomir Rintel
Add binding document for the ENE KB3930 Embedded Controller. Signed-off-by: Lubomir Rintel --- Changes since v1: - Addressed binding validation failure --- .../devicetree/bindings/mfd/ene-kb3930.yaml | 55 +++ 1 file changed, 55 insertions(+) create mode 100644 Documentation

[PATCH v4 2/2] mfd: ene-kb3930: Add driver for ENE KB3930 Embedded Controller

2020-05-21 Thread Lubomir Rintel
platform, it registers the appropriate cells. Signed-off-by: Lubomir Rintel --- Changes since v3: - Clarify that the power-off function is provided by this driver while LEDS_ARIEL is necessary to drive the leds in Kconfig help text - s/kb3930_power_off/kb3930_pm_power_off/, s/global_kb3930

[PATCH 2/2] drm/panel: simple: Add support for Innolux LS075AT011

2020-08-19 Thread Lubomir Rintel
This adds support for the Innolux LS075AT011 7.5" 1200x900 panel. There's no public data sheet for the panel -- the values have been taken from Open Firmware and the documentation for the display controller that drives the panel and tested on the OLPC laptop. Signed-off-by: Lubo

[PATCH 0/2] drm/panel: Add support for Innolux LS075AT011

2020-08-19 Thread Lubomir Rintel
Hi, Please take a look at the patches chanied to this message and consider applying them. They add description of the display panel found on OLPC laptops to the simple panel driver. There is no datasheet for the hardware and thus the timings were determined on a best effort basis. The clock range

[PATCH 1/2] dt-bindings: display: simple: add Innolux LS075AT011

2020-08-19 Thread Lubomir Rintel
Add the Innolux LS075AT011 7.5" (1200x900) color/reflective LCD panel to the panel-simple compatible list. This panel is used in the OLPC laptops. Signed-off-by: Lubomir Rintel --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+)

[no subject]

2020-08-19 Thread Lubomir Rintel
Hi, please take a look at the patches chained to this messages and consider applying them. They add support for the controller that drives the panel on the OLPC XO laptops. Compared to the previous version the bindings have been converted to YAML and the driver itself has been rewritten without a

[PATCH v4 2/2] drm/bridge: hx8837: add a Himax HX8837 display controller driver

2020-08-19 Thread Lubomir Rintel
Controller Driver + * + * Datasheet: http://wiki.laptop.org/images/0/09/DCON_datasheet_HX8837-A.pdf + * + * Copyright (C) 2020 Lubomir Rintel + */ + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +#define bridge_to_hx8837_priv(x) \ + cont

[PATCH v4 1/2] dt-bindings: display: himax,hx8837: Add Himax HX8837 bindings

2020-08-19 Thread Lubomir Rintel
Himax HX8837 is a secondary display controller used to drive the panel on OLPC platforms. Signed-off-by: Lubomir Rintel --- Changes since v3: - Moved to bindings/display/ - Added the ports - Converted to YAML - Removed Pavel's Ack, because the changes are substantial Changes since v2

Re: [PATCH 2/2] drm/panel: simple: Add Innolux N133HSE panel support

2020-08-19 Thread Lubomir Rintel
On Mon, May 11, 2020 at 09:47:08AM +0200, Sam Ravnborg wrote: > Hi Richard. > > On Sat, May 09, 2020 at 01:18:34PM +0200, s...@48.io wrote: > > From: Sean Cross > > > > The Innolux N133HSE panel is a 13.3" 1920x1080 panel that contains an > > integrated backlight, and connects via eDP. > > > >

[PATCH v4 0/2] dt-bindings: display: himax,hx8837: Add Himax HX8837 bindings

2020-08-19 Thread Lubomir Rintel
(Re-sending the cover letter here, because I left the subject empty and the archive didn't pick it up. Sorry.) Hi, please take a look at the patches chained to this messages and consider applying them. They add support for the controller that drives the panel on the OLPC XO laptops. Compared to

Re: [PATCH] input: ariel-pwrbutton.c: Remove unused variable ariel_pwrbutton_id_table[]

2021-01-11 Thread Lubomir Rintel
r > > > > Any comment on this patch ? > > Lubomir, would you prefer to remove the table or add it to the driver > structure as ariel_pwrbutton_driver->id_table? I believe it can be safely dropped, as the OF match seems to be sufficient. Thank you for the patch Souptick. Reviewed-by: Lubomir Rintel > > Thanks. > > -- > Dmitry

Re: [PATCH v6 1/2] dt-bindings: display: himax,hx8837: Add Himax HX8837 bindings

2020-11-18 Thread Lubomir Rintel
On Sun, Nov 01, 2020 at 06:39:22PM +0200, Laurent Pinchart wrote: > Hi Lubomir, > > Thank you for the patch. Thanks for the message. Some responses inline below. > On Fri, Oct 30, 2020 at 04:07:59AM +0100, Lubomir Rintel wrote: > > Himax HX8837 is a secondary display contro

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

2020-11-30 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. Compared to previous version, issues pointed out in the review by Dmitry Torokhov have been addressed. Change logs are

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

2020-11-30 Thread Lubomir Rintel
an input device that is only capable of reporting the power button presses and releases. Signed-off-by: Lubomir Rintel --- Changes since v2: (All by the suggestions of Dmitry Torokhov. Thank you Dmitry!) - Add more includes - Make ariel_pwrbutton.msg_counter not a bitfield - Include an error c

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

2020-11-30 Thread Lubomir Rintel
Add binding document for the Dell Wyse 3020 a.k.a. "Ariel" Power Button. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v1: - Collect Rob's R-b .../bindings/input/ariel-pwrbutton.yaml | 53 +++ 1 file changed, 53 insertions(

[PATCH RFC 0/4] Platform: OLPC: Register regulators for all power lines to DCON

2020-12-01 Thread Lubomir Rintel
Hi, I'm wondering if I could ask for help hooking up the OLPC display controller driver to the power regulator framework. The DCON chip uses four different power supplies (3.3V, 2.5V and two 1.8V) and the EC is in charge of switching the regulators. I'm not sure how does this plug into the regula

[PATCH RFC 2/4] Platform: OLPC: Fix handling of regulator registration error

2020-12-01 Thread Lubomir Rintel
We wouldn't reset ec_priv previously. Let's handle handle the errors in a single spot to fix this. Signed-off-by: Lubomir Rintel --- drivers/platform/olpc/olpc-ec.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/platform/olpc/olpc-ec.c

[PATCH RFC 3/4] Platform: OLPC: Remove regulator_dev from the priv struct

2020-12-01 Thread Lubomir Rintel
We don't need it as it's device-managed. A local variable will do. Signed-off-by: Lubomir Rintel --- drivers/platform/olpc/olpc-ec.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/platform/olpc/olpc-ec.c b/drivers/platform/olpc/olpc-ec.c index 2ad

[PATCH RFC 4/4] Platform: OLPC: Register regulators for all power lines to DCON

2020-12-01 Thread Lubomir Rintel
: Lubomir Rintel --- drivers/platform/olpc/olpc-ec.c | 92 +++-- 1 file changed, 65 insertions(+), 27 deletions(-) diff --git a/drivers/platform/olpc/olpc-ec.c b/drivers/platform/olpc/olpc-ec.c index 72dbbea0005c5..2ab57ffb3d63e 100644 --- a/drivers/platform/olpc/olpc-ec.c

[PATCH RFC 1/4] Platform: OLPC: Specify the enable time for DCON power

2020-12-01 Thread Lubomir Rintel
It takes some significant time between when we ask the EC to enable the DCON power and when we can access the DCON registers. FIXME: Maybe some of the delay is caused on the DCON side once the power is good. Need to check with a scope I suppose. Signed-off-by: Lubomir Rintel --- drivers

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

2020-12-01 Thread Lubomir Rintel
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. Compared to previous version, it fixes a validation warning in the DT bindings. Change logs are present in individual patche

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

2020-12-01 Thread Lubomir Rintel
Add binding document for the Dell Wyse 3020 a.k.a. "Ariel" Power Button. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring --- Changes since v3: (Based on warnings from Rob's validation bot) - Specify additionalProperties: false - Allow using spi-max-frequency property C

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

2020-12-01 Thread Lubomir Rintel
an input device that is only capable of reporting the power button presses and releases. Signed-off-by: Lubomir Rintel --- Changes since v2: (All by the suggestions of Dmitry Torokhov. Thank you Dmitry!) - Add more includes - Make ariel_pwrbutton.msg_counter not a bitfield - Include an error c

[PATCH 09/12] ARM: dts: mmp3-dell-ariel: Add the embedded controller

2021-01-20 Thread Lubomir Rintel
Add the device node for the computer's embedded controller, responsible for controlling the LEDs and system power. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp3-dell-ariel.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/mmp3-dell-ariel.dts b

[PATCH 08/12] ARM: dts: mmp2-olpc-xo-1-75: Use symbolic names for audio clocks

2021-01-20 Thread Lubomir Rintel
These are slighly easier to read. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 0f8b5ad48deed

[PATCH 07/12] ARM: dts: mmp2: Use symbolic names for audio clocks

2021-01-20 Thread Lubomir Rintel
These are slighly easier to read. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 445bdcd50b9ed..46984d4c5224f 100644 --- a/arch/arm/boot/dts

[PATCH 06/12] ARM: dts: mmp3: Extend the MPMU reg range

2021-01-20 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/mmp3.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp3.dtsi b/arch/arm/boot/dts/mmp3.dtsi index

[PATCH 11/12] ARM: dts: mmp3-dell-ariel: Replace SSP2 with spi-gpio

2021-01-20 Thread Lubomir Rintel
The firmware leaves the pins in GPIO mode. Until we have a proper pinmux driver hooked on we just need to bitbang SPI. No big deal, this is just used for the power button and performance is not important. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp3-dell-ariel.dts | 13

[PATCH 12/12] ARM: dts: mmp3: Fix the CCIC interrupts

2021-01-20 Thread Lubomir Rintel
A copy & paste oversight from MMP2; camera interrupts are handled via a multiplexer on MMP3. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp3.dtsi | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/mmp3.dtsi b/arch/arm/boot/dts/mmp3.dtsi i

[PATCH 05/12] ARM: dts: mmp3-dell-ariel: Drop linux,usable-memory from /memory

2021-01-20 Thread Lubomir Rintel
to add it upon boot. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp3-dell-ariel.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp3-dell-ariel.dts b/arch/arm/boot/dts/mmp3-dell-ariel.dts index fe3b1cd695eeb..53714cb0d171e 100644 --- a/arch/arm/boot/dts/mmp3

[PATCH 10/12] ARM: dts: mmp3-dell-ariel: Add the power button node

2021-01-20 Thread Lubomir Rintel
e. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp3-dell-ariel.dts | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp3-dell-ariel.dts b/arch/arm/boot/dts/mmp3-dell-ariel.dts index 565cd0fadf3d3..c4a6bd876d849 100644 --- a/arch/arm/boot/dts

[PATCH 04/12] ARM: dts: mmp2-olpc-xo-1-75: Drop linux,usable-memory from /memory

2021-01-20 Thread Lubomir Rintel
912]], 'device_type': ['memory']} They've been cargo-culted from Open Firmware and I don't know what purpose they serve. Perhaps they are meant to provide the OFW runtime. In that case it's still okay to drop them from here; OFW is welcome to add it upon boot. Signed

[PATCH 03/12] ARM: dts: mmp2-olpc-xo-1-75: Fix memory node name

2021-01-20 Thread Lubomir Rintel
It contains a reg property. Add its base to the node name. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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

[PATCH 02/12] media: dt-bindings: marvell,mmp2-ccic: Allow power-domains property

2021-01-20 Thread Lubomir Rintel
On MMP3 the camera interface is on a separate power island. This property tells the driver to enable it when appropriate. Signed-off-by: Lubomir Rintel --- .../devicetree/bindings/media/marvell,mmp2-ccic.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation

ARM: dts: mmp devicetree updates

2021-01-20 Thread Lubomir Rintel
Hi, chained to this message is a handful of patches related to MMP device trees and bindings. Please take a look and consider queueing them for for 5.12. Thank you Lubo

[PATCH 01/12] dt-bindings: gpio: mrvl-gpio: Fix the gpio-ranges property

2021-01-20 Thread Lubomir Rintel
The property specifies a list of GPIO-capable pins. Don't limit it to a single element as there's presumably more than one GPIO pin. Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings/gpio/mrvl-gpio.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) di

[PATCH 0/3] dmaengine: Allow building MMP DMA drivers as modules

2021-01-21 Thread Lubomir Rintel
Hi, please consider attaching the patches chained to this message. The last two are straighforward Kconfig changes that allow building mmp_tdma and mmp_pdma as modules so that distros that will choose to enable the drivers will not add bloat to their kernels for other platforms. The first one

[PATCH 3/3] dmaengine: mmp_tdma: Allow building as a module

2021-01-21 Thread Lubomir Rintel
There is no reason the Marvell MMP two-channel audio DMA driver would have to be built-in. Signed-off-by: Lubomir Rintel --- drivers/dma/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 04effa065527b..978b2f526c5df

[PATCH 2/3] dmaengine: mmp_pdma: Allow building as a module

2021-01-21 Thread Lubomir Rintel
There is no reason the Marvell MMP peripheral DMA driver would have to be built-in. Signed-off-by: Lubomir Rintel --- drivers/dma/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index d242c76326217..04effa065527b 100644 --- a

[PATCH 1/3] dmaengine: mmp_pdma: Remove mmp_pdma_filter_fn()

2021-01-21 Thread Lubomir Rintel
It's not used anywhere -- drop it. Signed-off-by: Lubomir Rintel --- drivers/dma/mmp_pdma.c | 14 -- include/linux/dma/mmp-pdma.h | 16 2 files changed, 30 deletions(-) delete mode 100644 include/linux/dma/mmp-pdma.h diff --git a/drivers/dma/mmp_pdm

[PATCH 2/3] Platform: OLPC: Remove dcon_rdev from olpc_ec_priv

2021-01-26 Thread Lubomir Rintel
It is not needed. Use a local variable instead. Signed-off-by: Lubomir Rintel --- drivers/platform/olpc/olpc-ec.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/platform/olpc/olpc-ec.c b/drivers/platform/olpc/olpc-ec.c index 2db7113383fdc..3c852d573e9b4

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