[PATCH v3 11/16] x86, olpc: Use a correct version when making up a battery node

2019-01-07 Thread Lubomir Rintel
The XO-1 and XO-1.5 batteries apparently differ in an ability to report ambient temperature. Add a different compatible string to the 1.5 battery. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- Changes since v1: - Avoid splitting string literals arch/x86/platform/olpc/olpc_dt.c

Re: [PATCH v3 03/16] Revert "platform/olpc: Make ec explicitly non-modular"

2019-01-08 Thread Lubomir Rintel
On Mon, 2019-01-07 at 19:34 +0100, Lubomir Rintel wrote: > It doesn't make sense to always have this built-in, e.g. on ARM > multiplatform kernels. > > A better way to address the problem the original commit aimed to solve is > to fix Kconfig. That is what the next commi

[PATCH 2/2] misc: hx8837: add a HiMax HX8837 display controller driver

2018-10-08 Thread Lubomir Rintel
ed on XO 1 and XO 1.5 for the time being, while my XO 1.75 can utilize this one. Signed-off-by: Lubomir Rintel --- Changes since v1: - Use interrupt bindings instead of gpio for the IRQ - Update the statement on XO 1/1.5 support in the commit message drivers/misc/Kconfig | 16 + drivers/misc/

[PATCH 1/2] dt-bindings: himax,hx8837: add HiMax HX8837 bindings

2018-10-08 Thread Lubomir Rintel
would be a good idea to plug in it betweend the two in a manner described in . Signed-off-by: Lubomir Rintel --- Changes since v1: - s/load-gpio/load-gpios/ - Use interrupt bindings instead of gpio for the IRQ .../devicetree/bindings/misc/himax,hx8837.txt | 18 ++ 1 file changed

[PATCH] DT: marvell,mmp2: fix the gpio interrupt cell number

2018-10-08 Thread Lubomir Rintel
gpio-pxa uses two cell to encode the interrupt source: the pin number and the trigger type. Adjust the device node accordingly. 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

Re: [PATCH 3/5] spi: pxa2xx: use an enum for type

2018-10-09 Thread Lubomir Rintel
On Fri, 2018-09-21 at 22:34 +0200, Robert Jarzmik wrote: > Lubomir Rintel writes: > > > That seems to be the correct type. > Okay, but what happens here when adev_id->driver_data is a value out > of enum > range ? Does the following assignment make sense ? >

[PATCH v2 1/8] dt-bindings: olpc,ap-sp: add clock

2018-10-10 Thread Lubomir Rintel
Reviewed-by: Rob Herring Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings/serio/olpc,ap-sp.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/serio/olpc,ap-sp.txt b/Documentation/devicetree/bindings/serio/olpc,ap-sp.txt index 0e72183f52bc..

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

2018-10-10 Thread Lubomir Rintel
This is the clock for the "security processor" core. Reviewed-by: Rob Herring Acked-by: Stephen Boyd 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/d

[PATCH v2 4/8] clk: mmp2: add SP clock

2018-10-10 Thread Lubomir Rintel
as a keyboard controller: http://dev.laptop.org/git/users/wmb/cforth/tree/src/app/arm-xo-1.75/ps2.fth The register address was obtained from the OLPC kernel, since the datasheet seems to be the Marvell's most important business secret. Acked-by: Stephen Boyd Signed-off-by: Lubomir Rintel --- driver

[PATCH v2 7/8] Input: olpc_apsp: enable the SP clock

2018-10-10 Thread Lubomir Rintel
Without the clock, the keyboard controller won't operate. Tested on an OLPC XO 1.75. Signed-off-by: Lubomir Rintel --- drivers/input/serio/olpc_apsp.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/input/serio/olpc_apsp.c b/drivers/input/serio/olpc_apsp.c

[PATCH v2 0/8] OLPC 1.75 Keyboard/Touchpad fixes

2018-10-10 Thread Lubomir Rintel
This makes keyboard/touchpad work on a DT MMP2 platform. I believe that it would be a good idea if this, once reviewed, went in via the input tree. The DT and CLK parts got reviews/acks. Changes from v1: - Basically none, just re-send, including Ack and Review tags in patches that received them

[PATCH v2 2/8] dt-bindings: olpc,ap-sp: add GPIO lines

2018-10-10 Thread Lubomir Rintel
compatible with "ps2-gpio". I'm not adding a compatible property, because ps2-gpio would use a different interrupt, so that we'd need to name it. And I haven't actually tried it. Reviewed-by: Rob Herring Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings

[PATCH v2 6/8] Input: olpc_apsp: check FIFO status on open(), not probe()

2018-10-10 Thread Lubomir Rintel
Let's defer the FIFO status checking until open(). When we'll get a clk handle, this will allow us to defer clock enablement until the device is actually used. Signed-off-by: Lubomir Rintel --- drivers/input/serio/olpc_apsp.c | 14 +++--- 1 file changed, 7 insertions(+), 7

[PATCH v2 5/8] Input: olpc_apsp: depend on CONFIG_OF

2018-10-10 Thread Lubomir Rintel
This is a device-tree enabled driver. Moreover CONFIG_OLPC is specific to the x86 platform code, while the driver is for an ARM-based laptop. Signed-off-by: Lubomir Rintel --- drivers/input/serio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/serio

[PATCH v2 8/8] Input: olpc_apsp: allocate the GPIOs used

2018-10-10 Thread Lubomir Rintel
Take the GPIO lines are used by the SP. The driver doesn't touch the lines -- this is done to disallow anything else from fiddling with them because that would confuse the SP firmware. Also, the lines are now nicely visible in /sys/kernel/debug/gpio. Signed-off-by: Lubomir Rintel --- dr

[PATCH] dt-bindings: Add OLPC vendor prefix

2018-10-10 Thread Lubomir Rintel
One Laptop Per Child is a non-profit that produced the XO series of eductional laptops for children. Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt

[PATCH 0/11] spi: pxa2xx: add DT and slave mode support

2018-10-10 Thread Lubomir Rintel
Hi. This patchset adds devicetree and slave mode support to pxa2xx SPI controller. The objective is that it will be able to support the OLPC XO 1.75 embedded controller that is a SPI master talking to a MMP2 SOC. The EC driver will be submitted in a separate patch set shortly. These patches have

[PATCH v2 01/11] dt-bindings: spi/spi-pxa2xx: add PXA2xx SSP SPI Controller

2018-10-10 Thread Lubomir Rintel
This is the SPI controller found on Marvel MMP2 and perhaps more platforms. Reviewed-by: Rob Herring Signed-off-by: Lubomir Rintel --- Changes since v1: - s/ssp@d4035000/spi@d4035000/ .../devicetree/bindings/spi/spi-pxa2xx.txt| 24 +++ 1 file changed, 24 insertions

[PATCH 03/11] spi: pxa2xx: Use an enum for type

2018-10-10 Thread Lubomir Rintel
That seems to be the correct type. Signed-off-by: Lubomir Rintel --- drivers/spi/spi-pxa2xx.c | 6 +++--- include/linux/pxa2xx_ssp.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 14f4ea59caff..f674541675bb

[PATCH 05/11] DT: marvell,mmp2: Add SSP1 and SSP3

2018-10-10 Thread Lubomir Rintel
There seem to be SSP2, SSP4 and perhaps SSP5 too, but Marvel keeps their base addresses secret. The SSP1 and SSP3 addresses were taken from OLPC 1.75, OpenFirmware and kernel respectively. Signed-off-by: Lubomir Rintel --- Changes since v1: - Dropped the aliases arch/arm/boot/dts/mmp2.dtsi

[PATCH 10/11] spi: pxa2xx: Add ready signal

2018-10-10 Thread Lubomir Rintel
Strobe a GPIO line when the slave TX FIFO is filled. This is how the Embedded Controller on an OLPC XO-1.75 machine, that happens to be a SPI master, learns that it can initiate a transaction. Signed-off-by: Lubomir Rintel --- drivers/spi/spi-pxa2xx.c | 12 drivers/spi/spi-pxa2xx.h

[PATCH 04/11] spi: pxa2xx: Add devicetree support

2018-10-10 Thread Lubomir Rintel
The MMP2 platform, that uses device tree, has this controller. Let's add devicetree alongside platform & PCI. Signed-off-by: Lubomir Rintel --- drivers/spi/spi-pxa2xx.c | 73 +++--- include/linux/pxa2xx_ssp.h | 1 + 2 files changed, 45 insertio

[PATCH 08/11] spi: pxa2xx: Add slave mode support

2018-10-10 Thread Lubomir Rintel
Tested on an OLPC XO-1.75 machine, where the Embedded Controller happens to be a SPI master. Signed-off-by: Lubomir Rintel --- drivers/spi/spi-pxa2xx.c | 81 +++--- include/linux/spi/pxa2xx_spi.h | 1 + 2 files changed, 75 insertions(+), 7 deletions(-) diff

[PATCH 09/11] dt-bindings: spi/spi-pxa2xx: Add ready GPIO signal

2018-10-10 Thread Lubomir Rintel
This this is used to let the SPI master know that our FIFO is filled and we're ready to service a transfer. Only useful in slave mode. A signal like this is used by an embedded controller on a OLPC XO 1.75 machine, that happens to be a SPI master. Signed-off-by: Lubomir R

[PATCH 11/11] spi: pxa2xx: Deal with the leftover garbage in TXFIFO

2018-10-10 Thread Lubomir Rintel
s drained and discard the actual data... For the OLPC EC this will work just fine and pushing more data to TXFIFO would break further transactions. Signed-off-by: Lubomir Rintel --- drivers/spi/spi-pxa2xx.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/spi/spi-pxa2xx.c b

[PATCH 06/11] dt-bindings: spi/spi-pxa2xx: Add spi-slave property

2018-10-10 Thread Lubomir Rintel
This is used to indicate that the chip attached to this controller is a SPI master. Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings/spi/spi-pxa2xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-pxa2xx.txt b/Documentation

[PATCH 07/11] spi: Deal with slaves that return from transfer_one() unfinished

2018-10-10 Thread Lubomir Rintel
t the transaction to time out as it can complete in a long time in future. Use wait_for_completion_interruptible() instead. Signed-off-by: Lubomir Rintel --- drivers/spi/spi.c | 64 +++ 1 file changed, 42 insertions(+), 22 deletions(-) diff --git a/driver

[PATCH v2 02/11] PCI: Provide pci_match_id() with CONFIG_PCI=n

2018-10-10 Thread Lubomir Rintel
This spares drivers from #ifdef-ing on CONFIG_PCI if the driver can be optionally built on machines without PCI bus. Consistent with acpi_driver_match_device() and similar. Acked-by: Bjorn Helgaas Signed-off-by: Lubomir Rintel --- Changes since v1: - Capitalization in the commit message

[PATCH 04/15] Platform: OLPC: Remove an unused include

2018-10-10 Thread Lubomir Rintel
Also, the header is x86 specific, while there are non-x86 OLPC machines. Signed-off-by: Lubomir Rintel --- drivers/platform/olpc/olpc-ec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/platform/olpc/olpc-ec.c b/drivers/platform/olpc/olpc-ec.c index f99b183d5296..35a21c66cd0d 100644

[PATCH 01/15] power: supply: olpc_battery: correct the temperature units

2018-10-10 Thread Lubomir Rintel
laptops. [1] include/linux/power_supply.h [2] Documentation/power/power_supply_class.txt Cc: sta...@vger.kernel.org Signed-off-by: Lubomir Rintel --- drivers/power/supply/olpc_battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/olpc_battery.c b

[PATCH 0/15] Add support for OLPC XO 1.75 Embedded Controller

2018-10-10 Thread Lubomir Rintel
Hi. This patchset adds support for the Embedded Controller on an OLPC XO 1.75 machine. OLPC XO 1.75 is a MMP2 based ARM laptop. It plugs into the existing OLPC platform infrastructure, currently used by the x86 based models. The EC operates in SPI master mode, meaning the SOC is the SPI slave. It

[PATCH 02/15] Revert "platform/olpc: Make ec explicitly non-modular"

2018-10-10 Thread Lubomir Rintel
It doesn't make sense to always have this built-in, e.g. on ARM multiplatform kernels. A better way to address the problem the original commit aimed to solve is to fix Kconfig. This reverts commit f48d1496b8537d75776478c6942dd87f34d7f270. Signed-off-by: Lubomir Rintel --- drivers/platform

[PATCH 03/15] dt-bindings: olpc,xo1.75-ec: Add OLPC XO-1.75 EC bindings

2018-10-10 Thread Lubomir Rintel
perty). Signed-off-by: Lubomir Rintel --- .../bindings/misc/olpc,xo1.75-ec.txt | 24 +++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.txt diff --git a/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.t

[PATCH 10/15] dt-bindings: olpc_battery: Add XO-1.5 battery

2018-10-10 Thread Lubomir Rintel
The XO-1 and XO-1.5 batteries apparently differ in an ability to report ambient temperature. Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings/power/supply/olpc_battery.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings

[PATCH 05/15] Platform: OLPC: Move OLPC config symbol out of x86 tree

2018-10-10 Thread Lubomir Rintel
There are ARM OLPC machines that use mostly the same drivers, including EC infrastructure, DCON and Battery. While at that, fix Kconfig to allow building this as a module. Signed-off-by: Lubomir Rintel --- arch/x86/Kconfig | 11 --- drivers/input/mouse/Kconfig

[PATCH 08/15] Platform: OLPC: Move EC-specific functionality out from x86

2018-10-10 Thread Lubomir Rintel
It is actually plaform independent. Move it to the olpc-ec driver from the X86 OLPC platform, so that it could be used by the ARM based laptops too. Signed-off-by: Lubomir Rintel --- arch/x86/include/asm/olpc.h | 17 - arch/x86/platform/olpc/olpc.c | 119

[PATCH 12/15] power: supply: olpc_battery: Use DT to get battery version

2018-10-10 Thread Lubomir Rintel
Avoid using the x86 OLPC platform specific call to get the board version. It won't work on FDT-based ARM MMP2 platform. Signed-off-by: Lubomir Rintel --- drivers/power/supply/olpc_battery.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/power/s

[PATCH 07/15] Platform: OLPC: Avoid a warning if the EC didn't register yet

2018-10-10 Thread Lubomir Rintel
Just return ENODEV, so that whoever attempted to use the EC call can defer their work. Signed-off-by: Lubomir Rintel --- drivers/platform/olpc/olpc-ec.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/platform/olpc/olpc-ec.c b/drivers/platform/olpc/olpc-ec.c

[PATCH 11/15] x86, olpc: Use a correct version when making up a battery node

2018-10-10 Thread Lubomir Rintel
The XO-1 and XO-1.5 batteries apparently differ in an ability to report ambient temperature. Add a different compatible string to the 1.5 battery. Signed-off-by: Lubomir Rintel --- arch/x86/platform/olpc/olpc_dt.c | 59 +++- 1 file changed, 42 insertions(+), 17

[PATCH 14/15] power: supply: olpc_battery: Avoid using platform_info

2018-10-10 Thread Lubomir Rintel
This wouldn't work on the DT-based ARM platform. Let's read the EC version directly from the EC driver instead. This makes the driver no longer x86 specific. Signed-off-by: Lubomir Rintel --- drivers/power/supply/Kconfig| 2 +- drivers/power/supply/olpc_batt

[PATCH 15/15] power: supply: olpc_battery: Add OLPC XO 1.75 support

2018-10-10 Thread Lubomir Rintel
The battery and the protocol are essentially the same as OLPC XO 1.5, but the responses from the EC are LSB first. Signed-off-by: Lubomir Rintel --- drivers/power/supply/olpc_battery.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/drivers/power

[PATCH 09/15] Platform: OLPC: add a regulator for the DCON

2018-10-10 Thread Lubomir Rintel
All OLPC ECs are able to turn the power to the DCON on an off. Use the regulator framework to expose the functionality. Signed-off-by: Lubomir Rintel --- drivers/platform/olpc/Kconfig | 1 + drivers/platform/olpc/olpc-ec.c | 65 + 2 files changed, 66

[PATCH 13/15] power: supply: olpc_battery: Move priv data to a struct

2018-10-10 Thread Lubomir Rintel
The global variables for private data are not too nice. I'd like some more, and that would clutter the global name space even further. Signed-off-by: Lubomir Rintel --- drivers/power/supply/olpc_battery.c | 73 +++-- 1 file changed, 38 insertions(+), 35 dele

[PATCH 06/15] Platform: OLPC: Add XO-1.75 EC driver

2018-10-10 Thread Lubomir Rintel
It's based off the driver from the OLPC kernel sources. Somewhat modernized and cleaned up, for better or worse. Modified to plug into the olpc-ec driver infrastructure (so that battery interface and debugfs could be reused) and the SPI slave framework. Signed-off-by: Lubomir R

Re: [PATCH 3/5] spi: pxa2xx: use an enum for type

2018-10-10 Thread Lubomir Rintel
On Fri, 2018-09-21 at 22:34 +0200, Robert Jarzmik wrote: > Lubomir Rintel writes: > > > That seems to be the correct type. > Okay, but what happens here when adev_id->driver_data is a value out > of enum > range ? Does the following assignment make sense ? >

Re: [PATCH v2 0/8] OLPC 1.75 Keyboard/Touchpad fixes

2018-10-30 Thread Lubomir Rintel
Hello Pavel, On Tue, 2018-10-30 at 11:26 +0100, Pavel Machek wrote: > Hi! > > > > https://github.com/hackerspace/olpc-xo175-linux/wiki/How-to-run-an-up-to-date-Linux-on-a-XO-1.75 > > > > > > I didn't test it yet -- will do when I get home in the evening. > > > But > > > chances are it's good eno

Re: [PATCH v2 0/8] OLPC 1.75 Keyboard/Touchpad fixes

2018-10-16 Thread Lubomir Rintel
Hello Pavel, On Mon, 2018-10-15 at 21:56 +0200, Pavel Machek wrote: > Hi! > > > This makes keyboard/touchpad work on a DT MMP2 platform. > > > > I believe that it would be a good idea if this, once reviewed, went > > in > > via the input tree. The DT and CLK parts got reviews/acks. > > > > Chan

Re: [PATCH 0/15] Add support for OLPC XO 1.75 Embedded Controller

2018-10-11 Thread Lubomir Rintel
On Wed, 2018-10-10 at 14:26 -0500, Rob Herring wrote: > On Wed, Oct 10, 2018 at 12:23 PM Lubomir Rintel wrote: > > Hi. > > > > This patchset adds support for the Embedded Controller on an OLPC XO > > 1.75 machine. OLPC XO 1.75 is a MMP2 based ARM laptop. It plugs

Re: [PATCH 10/11] spi: pxa2xx: Add ready signal

2018-10-11 Thread Lubomir Rintel
On Thu, 2018-10-11 at 09:28 +0200, Geert Uytterhoeven wrote: > Hi Lubomir, > > On Wed, Oct 10, 2018 at 7:10 PM Lubomir Rintel > wrote: > > Strobe a GPIO line when the slave TX FIFO is filled. This is how > > the > > Embedded Controller on an OLPC XO-1.75 machine

Re: [PATCH v2 01/11] dt-bindings: spi/spi-pxa2xx: add PXA2xx SSP SPI Controller

2018-10-11 Thread Lubomir Rintel
On Thu, 2018-10-11 at 15:27 +0100, Mark Brown wrote: > On Wed, Oct 10, 2018 at 07:09:26PM +0200, Lubomir Rintel wrote: > > This is the SPI controller found on Marvel MMP2 and perhaps more > > platforms. > > *Way* more. > > Please use subject lines matching the sty

[PATCH] x86, olpc: Indicate that legacy PC platform should not register RTC

2018-10-04 Thread Lubomir Rintel
2 kernel_init+0x8/0xd5 ret_from_fork+0x2e/0x38 kobject_add_internal failed for rtc_cmos with -EEXIST, don't try to register things with the same name in the same directory. platform rtc_cmos: registered platform RTC device (no PNP device found) Signed-off-by: Lubomir Rintel --- a

[PATCH] power: supply: olpc_battery: correct the temperature units

2018-10-04 Thread Lubomir Rintel
laptops. [1] include/linux/power_supply.h [2] Documentation/power/power_supply_class.txt Cc: sta...@vger.kernel.org Signed-off-by: Lubomir Rintel --- drivers/power/supply/olpc_battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/olpc_battery.c b

Re: [PATCH 0/15] Add support for OLPC XO 1.75 Embedded Controller

2018-10-23 Thread Lubomir Rintel
On Fri, 2018-10-19 at 16:57 +0300, Andy Shevchenko wrote: > On Wed, Oct 10, 2018 at 8:23 PM Lubomir Rintel wrote: > > Hi. > > > > This patchset adds support for the Embedded Controller on an OLPC XO > > 1.75 machine. OLPC XO 1.75 is a MMP2 based ARM laptop. It plugs

[PATCH v2] DT: marvell,mmp2: add MMC controllers

2018-09-17 Thread Lubomir Rintel
There's apparently four of them on a MMP2. Changes since v1: - The controllers seem to be on AXI bus, not APB. Move them. - Remove aliases. Cc: Eric Miao Cc: Haojian Zhuang Cc: Rob Herring Cc: Mark Rutland Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi

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

2018-09-17 Thread Lubomir Rintel
Similarly to PXA3xx pinctrl-single can't set pin direction on MMP2 either. See also: commit 9dabfdd84bdfa ("gpio: pxa: disable pinctrl calls for PXA3xx") Cc: Robert Jarzmik Cc: Linus Walleij Signed-off-by: Lubomir Rintel --- drivers/gpio/gpio-pxa.c | 1 + 1 file changed, 1 ins

[PATCH] ARM: multi_v7_defconfig: enable MMP2 platform

2018-09-17 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. Cc: Russell King Signed-off-by: Lubomir Rintel --- arch/arm/configs/multi_v7_defconfig | 11 +++ 1 file changed, 11 insertions

[PATCH] DT: marvell,mmp2: give gpio node a name

2018-09-17 Thread Lubomir Rintel
This will be useful for boards that actually use GPIO pins. Cc: Eric Miao Cc: Haojian Zhuang Cc: Rob Herring Cc: Mark Rutland 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

[PATCH v2 0/5] Make SPI work on DT MMP2

2018-09-17 Thread Lubomir Rintel
This makes SPI work on an OPLC 1.75 that is a DT MMP2 platform. Changes since v1 are cosmetic, describe in individual patches. Thanks, Lubo

[PATCH v2 3/5] spi: pxa2xx: Use an enum for type

2018-09-17 Thread Lubomir Rintel
That seems to be the correct type. Cc: Daniel Mack Cc: Haojian Zhuang Cc: Robert Jarzmik Cc: Mark Brown Signed-off-by: Lubomir Rintel --- drivers/spi/spi-pxa2xx.c | 6 +++--- include/linux/pxa2xx_ssp.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi

[PATCH v2 4/5] spi: pxa2xx: Add devicetree support

2018-09-17 Thread Lubomir Rintel
The MMP2 platform, that uses device tree, has this controller. Let's add devicetree alongside platform & PCI. Cc: Daniel Mack Cc: Haojian Zhuang Cc: Robert Jarzmik Cc: Mark Brown Signed-off-by: Lubomir Rintel --- drivers/spi/spi-pxa2xx

[PATCH v2 2/5] PCI: Provide pci_match_id() with CONFIG_PCI=n

2018-09-17 Thread Lubomir Rintel
This spares drivers from #ifdef-ing on CONFIG_PCI if the driver can be optionally built on machines without PCI bus. Consistent with acpi_driver_match_device() and similar. Changes since v1: - Capitalization in the commit message Acked-by: Bjorn Helgaas Signed-off-by: Lubomir Rintel

[PATCH v2 1/5] dt-bindings: spi/spi-pxa2xx: add PXA2xx SSP SPI Controller

2018-09-17 Thread Lubomir Rintel
This is the SPI controller found on Marvel MMP2 and perhaps more platforms. Changes since v1: - s/ssp@d4035000/spi@d4035000/ Cc: Mark Brown Cc: Rob Herring Cc: Mark Rutland Reviewed-by: Rob Herring Signed-off-by: Lubomir Rintel --- .../devicetree/bindings/spi/spi-pxa2xx.txt| 24

[PATCH v2 5/5] DT: marvell,mmp2: Add SSP1 and SSP3

2018-09-17 Thread Lubomir Rintel
There seem to be SSP2, SSP4 and perhaps SSP5 too, but Marvel keeps their base addresses secret. The SSP1 and SSP3 addresses were taken from OLPC 1.75, OpenFirmware and kernel respectively. Cc: Eric Miao Cc: Haojian Zhuang Cc: Rob Herring Cc: Mark Rutland Signed-off-by: Lubomir Rintel

[PATCH 0/2] Fix TWSI on MMC2

2018-09-17 Thread Lubomir Rintel
This makes TWSI work on an OPLC 1.75 that is a DT MMP2 platform. Thanks, Lubo

[PATCH 2/2] DT: marvell,mmp2: add more TWSI controllers

2018-09-17 Thread Lubomir Rintel
c: Haojian Zhuang Cc: Rob Herring Cc: Mark Rutland Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 49 + 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 47e5b63339d1..2bd4e9450

[PATCH 1/2] DT: marvell,mmp2: fix TWSI2

2018-09-17 Thread Lubomir Rintel
ere the RTC is on TWSI2. Cc: Eric Miao Cc: Haojian Zhuang Cc: Rob Herring Cc: Mark Rutland Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi inde

[PATCH] spi: Gracefully handle power supplies with disabled PM

2018-09-17 Thread Lubomir Rintel
This allows use of SPI when power management is disables, such as on early boot; See also: commit 31eb74318054 ("PM / runtime: Fix handling of suppliers with disabled runtime PM") Cc: Mark Brown Signed-off-by: Lubomir Rintel --- drivers/spi/spi.c | 2 +- 1 file changed, 1 inser

[PATCH] spi: pxa2xx: Remove the shutdown callback

2018-09-17 Thread Lubomir Rintel
It makes no sense to remove the device on shutdown. And it break things when the hardware crucial for shutdown (such as the embedded controller) is attached to the SPI bus. Cc: Daniel Mack Cc: Haojian Zhuang Cc: Robert Jarzmik Cc: Mark Brown Signed-off-by: Lubomir Rintel --- drivers/spi/spi

Re: [PATCH] irqchip/mmp: use cpu_is_pj4() instead of CONFIG_CPU_MMP2

2018-09-17 Thread Lubomir Rintel
On Mon, 2018-09-10 at 14:13 +0200, Lubomir Rintel wrote: > CONFIG_CPU_MMP2 is not there on multiplatform kernels with > MACH_MMP2_DT. > The MMP2 platform uses the PJ4 CPU. Actually, this patch breaks the DT-only build. Please ignore it, sorry for the noise. Lubo > > Signed-

Re: [PATCH v2 1/5] dt-bindings: spi/spi-pxa2xx: add PXA2xx SSP SPI Controller

2018-09-18 Thread Lubomir Rintel
On Mon, 2018-09-17 at 10:57 -0700, Mark Brown wrote: > On Mon, Sep 17, 2018 at 01:35:55PM +0200, Lubomir Rintel wrote: > > This is the SPI controller found on Marvel MMP2 and perhaps more > > platforms. > > I'm missing patches 2 and 5 from this series. What's goin

[PATCH] staging: olpc_dcon: add a missing dependency

2018-09-18 Thread Lubomir Rintel
&& I2C [=y] && (GPIO_CS5535 [=n] || GPIO_CS5535 [=n]=n) Signed-off-by: Lubomir Rintel --- drivers/staging/olpc_dcon/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/olpc_dcon/Kconfig b/drivers/staging/olpc_dcon/Kconfig index c91a56f77bcb..192cc8d08

[PATCH 2/2] misc: hx8837: add a HiMax HX8837 display controller driver

2018-09-18 Thread Lubomir Rintel
the actual chip name instead of the original name that I found too generic. This way the staging driver can be used on XO 1 and XO 1.5, while my XO 1.75 can utilize this one. Signed-off-by: Lubomir Rintel --- drivers/misc/Kconfig | 16 + drivers/misc/

[PATCH 1/2] dt-bindings: himax,hx8837: add HiMax HX8837 bindings

2018-09-18 Thread Lubomir Rintel
would be a good idea to plug in it betweend the two in a manner described in . Signed-off-by: Lubomir Rintel --- .../devicetree/bindings/misc/himax,hx8837.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/himax,hx8837.txt

[PATCH v2 2/4] DT: marvell,mmp2: add clock to the timer

2018-09-18 Thread Lubomir Rintel
The timer needs the timer clock to be enabled, otherwise it stops ticking. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 766bbb8495b6..58e0098a007d 100644 --- a

[PATCH v2 1/4] dt-bindings: mrvl,mmp-timer: add clock

2018-09-18 Thread Lubomir Rintel
The timer needs the timer clock to be enabled, otherwise it stops ticking. Signed-off-by: Lubomir Rintel --- Changes since v1: - Made the clock optional, to keep compatibility with DTs without it Documentation/devicetree/bindings/timer/mrvl,mmp-timer.txt | 4 1 file changed, 4 insertions

[PATCH 4/4] ARM: mmp/mmp2: dt: enable the clock

2018-09-18 Thread Lubomir Rintel
The device-tree booted MMP2 needs to enable the timer clock, otherwise the it would stop ticking when the boot finishes. It can also use the clock rate from the clk, the non-DT boards need to keep using the hardcoded rates. Signed-off-by: Lubomir Rintel --- Changes since v1: - Made the clock

[PATCH v2 0/4] Enable the timer clock on DT MMP2

2018-09-18 Thread Lubomir Rintel
This makes the timer work for me on an OLPC XO 1.75, which is a device-tree based MMP2 platform. Compared to v1 patch set, this makes the clock optional to keep compatibility with older device trees or platforms with a compatible timer that don't seem to require the clock. Lubomir Rint

[PATCH v2 3/4] ARM: mmp2: initialize clocks before the timer

2018-09-18 Thread Lubomir Rintel
The timer shall enable its clock. Signed-off-by: Lubomir Rintel --- arch/arm/mach-mmp/mmp2-dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mmp/mmp2-dt.c b/arch/arm/mach-mmp/mmp2-dt.c index 0341359b24a4..50c5e8b5be3d 100644 --- a/arch/arm/mach-mmp/mmp2-dt.c

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

2021-02-15 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. Compared to v2, the patches "[PATCH v2 2/5] docs: arm: marvell: fix 38x funct

[PATCH v3 2/3] docs: arm: marvell: drop a dead links

2021-02-15 Thread Lubomir Rintel
This one has gone away. Remove it; there's good chance there wasn't anything useful there anyway. Signed-off-by: Lubomir Rintel --- Changes since v2: - Just remove one link; the rest has been replaced with archive links Changes since v1: - Adjust for removal of "[PATCH 0/4] doc

[PATCH v3 3/3] docs: arm: marvell: clarify some unimportant Armada 6x0 details

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

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

2021-02-15 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] mmc: core: try to use an id from the devicetree

2019-04-16 Thread Lubomir Rintel
If there's a mmc* alias in the device tree, take the device number from it, so that we end up with a device name that matches the alias. Signed-off-by: Lubomir Rintel --- drivers/mmc/core/host.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/hos

[PATCH] etnaviv: allow building on MMP

2019-04-16 Thread Lubomir Rintel
MMP2 has a GC860 core. Signed-off-by: Lubomir Rintel --- drivers/gpu/drm/etnaviv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/Kconfig b/drivers/gpu/drm/etnaviv/Kconfig index 041a77e400d4..7616f695270f 100644 --- a/drivers/gpu/drm/etnaviv

[PATCH v7 00/10] Add support for XO 1.75 to OLPC battery driver

2019-04-18 Thread Lubomir Rintel
Hello, This patch set modifies the OLPC battery driver so that it could eventually be used on an Arm-based OLPC XO 1.75 machine. Compared to the previous version, it addresses review comments for the x86 platform parts from Thomas Gleixner. Details in individual patches' change logs. I've failed

[PATCH v7 01/10] dt-bindings: olpc_battery: Add XO-1.5 battery

2019-04-18 Thread Lubomir Rintel
The XO-1 and XO-1.5 batteries apparently differ in an ability to report ambient temperature. Signed-off-by: Lubomir Rintel Reviewed-by: Rob Herring Acked-by: Pavel Machek Reviewed-by: Sebastian Reichel --- Changes since v1: - Collected Reviewed-by and Acked-by tags Documentation/devicetree

[PATCH v7 09/10] power: supply: olpc_battery: Add OLPC XO 1.75 support

2019-04-18 Thread Lubomir Rintel
The battery and the protocol are essentially the same as OLPC XO 1.5, but the responses from the EC are LSB first. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek Reviewed-by: Sebastian Reichel --- Changes since v6: - Collect review tag from Sebastian Reichel Changes since v5: - s/int

[PATCH v7 03/10] x86/platform/olpc: Trivial code move in DT fixup

2019-04-18 Thread Lubomir Rintel
This makes the following patch more concise. Signed-off-by: Lubomir Rintel Acked-by: Thomas Gleixner --- Changes since v6: - Collect ack from Thomas Gleixner - Fix the subject prefix to "x86/platform/olpc:" Changes since v5: - This patch was split off from "x86, olpc: Use a

[PATCH v7 02/10] x86/platform/olpc: Don't split string literals when fixing up the DT

2019-04-18 Thread Lubomir Rintel
It was pointed out in a review, and checkpatch.pl complains about this. Breaking it down into multiple ofw evaluations works just as well and reads better. Signed-off-by: Lubomir Rintel Acked-by: Thomas Gleixner --- Changes since v6: - s/perhaps even reads better/reads better/ in the commit

[PATCH v7 06/10] power: supply: olpc_battery: Move priv data to a struct

2019-04-18 Thread Lubomir Rintel
The global variables for private data are not too nice. I'd like some more, and that would clutter the global name space even further. Signed-off-by: Lubomir Rintel Reviewed-by: Andy Shevchenko Reviewed-by: Sebastian Reichel --- Changes since v6: - Collect review tag from Sebastian Re

[PATCH v7 10/10] power: supply: olpc_battery: Have the framework register sysfs files for us

2019-04-18 Thread Lubomir Rintel
The power framework gained ability to register groups of sysfs attributes in commit cef8fe6a382c ("power: supply: core: add support for custom sysfs attributes"). Signed-off-by: Lubomir Rintel Suggested-by: Sebastian Reichel Reviewed-by: Sebastian Reichel --- Changes since v6:

[PATCH v7 04/10] x86/platform/olpc: Use a correct version when making up a battery node

2019-04-18 Thread Lubomir Rintel
ow we need to look for a particular value in the compatible string, to decide Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek Acked-by: Thomas Gleixner --- Changes since v6: - s/od/of/ in the commit message - Coalesce variables of the same type - Fix block comment style - Ack from Thomas Gle

[PATCH v7 05/10] power: supply: olpc_battery: Use DT to get battery version

2019-04-18 Thread Lubomir Rintel
, but there are, in fact, differencies. Signed-off-by: Lubomir Rintel Reviewed-by: Andy Shevchenko Acked-by: Pavel Machek Reviewed-by: Sebastian Reichel --- Changes since v5: - Use of_device_is_compatible() instead of of_property_match_string("compatible") Changes sin

[PATCH v7 08/10] power: supply: olpc_battery: Avoid using platform_info

2019-04-18 Thread Lubomir Rintel
This wouldn't work on the DT-based ARM platform. Let's read the EC version directly from the EC driver instead. This removes x86 specific bits that would prevent this driver from being used with the EC of ARM-based OLPC XO 1.75. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek R

[PATCH v7 07/10] power: supply: olpc_battery: Use devm_power_supply_register()

2019-04-18 Thread Lubomir Rintel
This simplifies the error handling. Signed-off-by: Lubomir Rintel Reviewed-by: Sebastian Reichel --- Changes since v1: - This was split off the "power: supply: olpc_battery: Move priv data to a struct" patch. drivers/power/supply/olpc_battery.c | 19 +-- 1 file

Re: [PATCH] drm/armada: add mmp2 support

2019-01-25 Thread Lubomir Rintel
On Tue, 2019-01-22 at 19:10 +, Russell King - ARM Linux admin wrote: > On Mon, Jan 21, 2019 at 07:03:49AM +0100, Lubomir Rintel wrote: > > Heavily based on the Armada 510 (Dove) support. Like with 510 support, this > > also just supports a single source clock -- the "

Re: linux-next: Fixes tag needs some work in the input-current tree

2019-01-26 Thread Lubomir Rintel
On Fri, 2019-01-25 at 15:58 -0800, Dmitry Torokhov wrote: > On Fri, Jan 25, 2019 at 3:56 PM Dmitry Torokhov > wrote: > > Hi Stephen, > > > > On Thu, Jan 24, 2019 at 3:09 AM Stephen Rothwell > > wrote: > > > Hi Dmitry, > > > > > > In commit > > > > > > ec87da107d11 ("Input: olpc_apsp - assig

[PATCH] benet: remove broken and unused macro

2019-01-28 Thread Lubomir Rintel
is_broadcast_packet() expands to compare_ether_addr() which doesn't exist since commit 7367d0b573d1 ("drivers/net: Convert uses of compare_ether_addr to ether_addr_equal"). It turns out it's actually not used. Signed-off-by: Lubomir Rintel --- drivers/net/ethernet/emulex

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

2019-01-28 Thread Lubomir Rintel
s are and Marvel was unhelpful when asked for documentation. Aside from the SP bit, there are probably priority bits. Leaving the unknown bits as the firmware set them up seems to be a wiser course of action compared to just turning them off. Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek

Re: [PATCH 2/3] *: convert stream-like files from nonseekable_open -> stream_open

2019-03-26 Thread Lubomir Rintel
t); > filp->private_data = dev; > > - return nonseekable_open(inode, filp); > + return stream_open(inode, filp); > } > > static int scr24x_release(struct inode *inode, struct file *filp) Acked-by: Lubomir Rintel [scr24x_cs] Thanks, Lubo

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