Re: [RFC 4/5] arm: dts: r7s1000: Add pincontroller node

2017-01-31 Thread jacopo mondi
Hi Geert, On 26/01/2017 20:54, Geert Uytterhoeven wrote: Hi Jacopo, On Wed, Jan 25, 2017 at 7:09 PM, Jacopo Mondi <jacopo+rene...@jmondi.org> wrote: Add pincontroller node compatible with the new Renesas RZ/A1 pincontroller driver. Signed-off-by: Jacopo Mondi <jacopo+rene...@j

Re: [RFC 1/5] pinctrl: rz-pfc: Add Renesas RZ pinctrl core module

2017-01-31 Thread jacopo mondi
Hi Chris, On 30/01/2017 20:19, Chris Brandt wrote: Hi Jacopo, On Wednesday, January 25, 2017, Jacopo Mondi wrote: + + return 0; + +free_map: + devm_kfree(rz_pinctrl->dev, *map); +free_fngrps: + devm_kfree(rz_pinctrl->dev, fngrps); +free_pins: + devm_kfree(rz_p

Re: [RFC 3/5] arm: dts: dt-bindings: Add Renesas RZ pinctrl header

2017-01-31 Thread jacopo mondi
Hi Geert, Laurent, On 30/01/2017 19:30, Laurent Pinchart wrote: On Thursday 26 Jan 2017 20:52:33 Geert Uytterhoeven wrote: On Wed, Jan 25, 2017 at 7:09 PM, Jacopo Mondi wrote: Add dt-bindings header for Renesas RZ pincontroller. The header defines macros for pin description and alternate

Re: [RFC 1/5] pinctrl: rz-pfc: Add Renesas RZ pinctrl core module

2017-02-07 Thread jacopo mondi
Hi Tony, On 06/02/2017 19:28, Tony Lindgren wrote: * jacopo mondi <jac...@jmondi.org> [170206 10:16]: Currently there is no generic pinctrl and pinmux function to retrieve a group or function by name, but only by their id (selector). It would take 10minutes to add them, but I wonder if

Re: [RFC 1/5] pinctrl: rz-pfc: Add Renesas RZ pinctrl core module

2017-02-06 Thread jacopo mondi
Hi Laurent, On 01/02/2017 16:21, Laurent Pinchart wrote: Hi Jacopo, [snip] +} + +/** + * rz_dt_node_to_map() - Parse device tree nodes and collect pins, groups and + * functions I don't think we have groups and functions, do we ? Sort of.. The hardware does not

[RFC fixes 1/2] arm: dts: genmai: Configure RIIC2 pins

2017-01-27 Thread Jacopo Mondi
Add pin configuration for RIIC2 pins interface. The i2c2 is connected to internal eeprom. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s72100-genmai.dts | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r7

[RFC fixes 2/2] pinctrl: rz-pfc: Fix RZ/A1 pin function configuration

2017-01-27 Thread Jacopo Mondi
through RIIC2 interface. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/rz-pfc/pinctrl-rza1.c | 55 +++ 1 file changed, 36 insertions(+), 19 deletions(-) diff --git a/drivers/pinctrl/rz-pfc/pinctrl-rza1.c b/drivers/pinctrl/

[RFC fixes 0/2] FIX: Renesas RZ series pinctrl driver

2017-01-27 Thread Jacopo Mondi
driver which [2/2] applies on. When sending v2 of the whole series I'll probably squash these, but if someone is testing the RFC series I wanted to make sure he does not waste his time with a broken driver. Thanks j Jacopo Mondi (2): arm: dts: genmai: Configure RIIC2 pins pinctrl: rz-pfc

Re: [RFC 0/5] Renesas RZ series pinctrl driver

2017-01-30 Thread jacopo mondi
Hi Tony, On 30/01/2017 16:53, Tony Lindgren wrote: * Linus Walleij <linus.wall...@linaro.org> [170130 05:53]: On Wed, Jan 25, 2017 at 7:09 PM, Jacopo Mondi <jacopo+rene...@jmondi.org> wrote: after having discussed in great detail the RZ series per-pin PFC hardware p

Re: [RFC fixes 0/2] FIX: Renesas RZ series pinctrl driver

2017-01-30 Thread jacopo mondi
Hi Chris, thanks for testing the series On 27/01/2017 22:09, Chris Brandt wrote: Hi Jacopo, On Friday, January 27, 2017, Jacopo Mondi wrote: Hello, sorry if I'm sending 2 patches on top of an RFC series with comments still pending, but these patches enabled me to properly test pin

[RFC 1/5] pinctrl: rz-pfc: Add Renesas RZ pinctrl core module

2017-01-25 Thread Jacopo Mondi
Add core module for per-pin Renesas RZ series pin controller. The core module allows SoC driver to register their pins and SoC specific operations and interfaces with pinctrl and pinmux core on their behalf. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/K

[RFC 3/5] arm: dts: dt-bindings: Add Renesas RZ pinctrl header

2017-01-25 Thread Jacopo Mondi
Add dt-bindings header for Renesas RZ pincontroller. The header defines macros for pin description and alternate function numbers. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- include/dt-bindings/pinctrl/pinctrl-renesas-rz.h | 19 +++ 1 file changed, 19 inse

[RFC 0/5] Renesas RZ series pinctrl driver

2017-01-25 Thread Jacopo Mondi
send out (so please bear with me on this :) Thank you j Jacopo Mondi (5): pinctrl: rz-pfc: Add Renesas RZ pinctrl core module pinctrl: rz-pfc: Add Renesas RZ/A1 pinctrl driver arm: dts: dt-bindings: Add Renesas RZ pinctrl header arm: dts: r7s1000: Add pincontroller node arm: d

[RFC 2/5] pinctrl: rz-pfc: Add Renesas RZ/A1 pinctrl driver

2017-01-25 Thread Jacopo Mondi
Add pin controller driver for Renesas RZ/A1 SoC. The SoC driver registers to rz-pfc core module and provides pin description array and SoC specific pin mux operation. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/rz-pfc/Kconfig| 7 + drivers/pinctrl/

[RFC 5/5] arm: dts: genmai: Add SCIF2 pin group

2017-01-25 Thread Jacopo Mondi
Add TxD and RxD pin configuration for SCIF2 serial communication interface on r7s72100 Genmai board. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s72100-genmai.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/r7

Re: [RFC 1/5] pinctrl: rz-pfc: Add Renesas RZ pinctrl core module

2017-01-26 Thread jacopo mondi
Hi Chris, On 26/01/2017 03:58, Chris Brandt wrote: Hi Jacopo, On Wednesday, January 25, 2017, Jacopo Mondi wrote: drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile| 1 + drivers/pinctrl/rz-pfc/Kconfig | 18 ++ drivers/pinctrl/rz-pfc/Makefile | 1

Re: [PATCH 4/7] arm: dts: r7s72100: Add pin controller node

2017-02-21 Thread jacopo mondi
Hello, self-review to save you all some time On 20/02/2017 18:13, Jacopo Mondi wrote: Add pin controller node with 12 gpio controller sub-nodes to r7s72100 dtsi. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s72100.dts

Re: [PATCH 1/7] pinctrl: Renesas RZ/A1 pin and gpio controller

2017-02-21 Thread jacopo mondi
Hello, small self-review On 20/02/2017 18:13, Jacopo Mondi wrote: [snip] +/** + * rza1_pinctrl_register() - Enumerate pins, ports, gpiochips and functions and + * register to pinctrl and gpio cores + * + * @rza1_pctl: RZ/A1 pin controller device + */ +static int

[PATCH 6/7] arm: dts: genmai: Add RIIC2 pin group

2017-02-20 Thread Jacopo Mondi
Add pin configuration subnode for RIIC2 interface. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s72100-genmai.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts b/arch/arm/boot/dts/r7s72100-genmai.dts

[PATCH 3/7] arm: dts: dt-bindings: Add Renesas RZ pinctrl header

2017-02-20 Thread Jacopo Mondi
Add dt-bindings for Renesas r7s72100 pin controller header file. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- include/dt-bindings/pinctrl/r7s72100-pinctrl.h | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 include/dt-bindings/pinctrl/r7

Re: [PATCH 1/4] Documentation: dt-bindings: iio: Add max961x

2017-02-24 Thread jacopo mondi
Hi Geert, On 24/02/2017 16:29, Geert Uytterhoeven wrote: Hi Jacopo, [fixed Peter Meerwald's address] On Fri, Feb 24, 2017 at 4:05 PM, Jacopo Mondi <jacopo+rene...@jmondi.org> wrote: Add device tree bindings documentation for Maxim max961x current sense amplifier. Signed-off-by: Jacopo

Re: [PATCH 1/4] Documentation: dt-bindings: iio: Add max961x

2017-02-24 Thread jacopo mondi
Hi Lars-Peter, On 24/02/2017 16:33, Lars-Peter Clausen wrote: On 02/24/2017 04:22 PM, Geert Uytterhoeven wrote: On Fri, Feb 24, 2017 at 4:05 PM, Jacopo Mondi <jacopo+rene...@jmondi.org> wrote: --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/max961x.txt @@ -0,0 +1,27 @@ +*

[PATCH 2/4] iio: Documentation: Add max961x sysfs documentation

2017-02-24 Thread Jacopo Mondi
Add documentation for max961x driver. The only attribute to document is the current sense shunt resistor value. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- Documentation/ABI/testing/sysfs-bus-iio-adc-max961x | 5 + 1 file changed, 5 insertions(+) create mode

[PATCH 1/4] Documentation: dt-bindings: iio: Add max961x

2017-02-24 Thread Jacopo Mondi
Add device tree bindings documentation for Maxim max961x current sense amplifier. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- .../devicetree/bindings/iio/adc/max961x.txt| 27 ++ 1 file changed, 27 insertions(+) create mode 100644 Documen

[PATCH 0/4] iio: adc: Maxim max961x driver

2017-02-24 Thread Jacopo Mondi
xposed though some other attributes which are not _raw and _scale, or if their calculation should be completely left to userspace tools. Thanks j Jacopo Mondi (4): Documentation: dt-bindings: iio: Add max961x iio: Documentation: Add max961x sysfs documentation iio: adc: Add max9611/96

[PATCH 4/4] arm64: dts: salvator-x: Add current sense amplifiers

2017-02-24 Thread Jacopo Mondi
Add device nodes for two Maxim max961x current sense amplifiers sensing VDD_08 and DVFS_08 lines. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm6

[PATCH 3/4] iio: adc: Add max9611/9612 ADC driver

2017-02-24 Thread Jacopo Mondi
Add iio driver for Maxim max9611/9612 current-sense amplifiers with 12-bits ADC. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/max961x.c | 648 +++

[PATCH v3 1/8] pinctrl: sh-pfc: Add r7s72100 PFC driver

2017-01-16 Thread Jacopo Mondi
re recent kernel (v4.10) Signed-off-by: Magnus Damm <d...@opensource.se> Signed-off-by: Wolfram Sang <w...@sang-engineering.com> Signed-off-by: Simon Horman <horms+rene...@verge.net.au> Signed-off-by: Geert Uytterhoeven <geert+rene...@glider.be> Signed-off-by:

[PATCH v3 6/8] arm: dts: r7s72100-genmai: LED1 and LED2 support

2017-01-16 Thread Jacopo Mondi
From: Magnus Damm Add support for Genmai board LED1 and LED2 via gpio-leds. Signed-off-by: Magnus Damm Acked-by: Laurent Pinchart --- arch/arm/boot/dts/r7s72100-genmai.dts | 11 +++ 1 file changed, 11

[PATCH v3 4/8] arm: dts: r7s72100: GPIO and PFC device nodes

2017-01-16 Thread Jacopo Mondi
From: Magnus Damm <d...@opensource.se> Add support for r7s72100 PFC and GPIO device nodes port0 -> port11 and jtagport0. Signed-off-by: Magnus Damm <d...@opensource.se> Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dt

[PATCH v3 0/8] Renesas RZ PFC and GPIO driver

2017-01-16 Thread Jacopo Mondi
ot;renesas" prefix from "groups" and "function" attributes as suggested by Geert. --- Geert Uytterhoeven (1): arm: dts: r7s72100-genmai: Add pinctrl for RSPI Jacopo Mondi (1): pinctrl: sh-pfc: r7s72100: Configure I/O mode Magnus Damm (5): pinctrl: sh-pfc: Add r7s7210

[PATCH v3 5/8] arm: dts: r7s72100-genmai: SCIF2 PINCTRL configuration

2017-01-16 Thread Jacopo Mondi
From: Magnus Damm <d...@opensource.se> Configure the r7s72100 PINCTRL hardware and select pin function for the SCIF2 serial console. Signed-off-by: Magnus Damm <d...@opensource.se> Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> Acked-by: Laurent Pinch

[PATCH v3 2/8] pinctrl: sh-pfc: r7s72100: Configure I/O mode

2017-01-16 Thread Jacopo Mondi
and bidirection control for port mode configuration. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/sh-pfc/pfc-r7s72100.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/sh-pfc/pfc-r7s72100.c b/drivers/pinctrl/sh-p

[PATCH v3 3/8] gpio: gpio-rz: GPIO driver for Renesas RZ series

2017-01-16 Thread Jacopo Mondi
Series processors. Signed-off-by: Magnus Damm <d...@opensource.se> Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-rz.c | 211 + 3 files chang

[PATCH v3 7/8] arm: dts: r7s72100-genmai:Add ethernet PFC node

2017-01-16 Thread Jacopo Mondi
From: Simon Horman <horms+rene...@verge.net.au> Squash Simon's original commit with his fixup of sh_eth pin names Signed-off-by: Simon Horman <horms+rene...@verge.net.au> Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s721

Re: [PATCH v4 0/2] iio: adc: Add Maxim MAX11100 driver

2017-01-15 Thread jacopo mondi
Hi Jonathan, On 15/01/2017 15:31, Jonathan Cameron wrote: On 15/01/17 14:13, jacopo mondi wrote: Hi Jonathan, thanks for review, On 13/01/2017 10:50, Jacopo Mondi wrote: Hello, sending out v4 splitting device tree bindings documentation and actual ADC driver. No changes in driver code

[PATCHv5 1/2] iio: adc: Add Maxim MAX11100 driver

2017-01-18 Thread Jacopo Mondi
From: Jacopo Mondi <jac...@jmondi.org> Add iio driver for Maxim MAX11100 single-channel ADC. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> Tested-by: Marek Vasut <marek.va...@gmail.com> --- drivers/iio/adc/Kconfig| 9 +++ drivers/iio/adc/Makefile | 1

[PATCHv5 2/2] dt-bindings: iio: document MAX11100 ADC

2017-01-18 Thread Jacopo Mondi
Add device tree bindings documentation for Maxim MAX11100 single-channel ADC Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> Reviewed-by: Geert Uytterhoeven <geert+rene...@glider.be> Acked-by: Wolfram Sang <wsa+rene...@sang-engineering.com> --- .../devicetree/binding

[PATCH v5 0/2] iio: adc: Add Maxim MAX11100 driver

2017-01-18 Thread Jacopo Mondi
o the list of required properties and use a better namimg for the adc device node in bindings documentation as suggested by Geert. v4 -> v5: - make spi_read() destination buffer cacheline aligned - add indio_dev->name attribute. Jacopo Mondi (2): iio: adc: Add Maxim M

Re: [PATCH v3 3/8] gpio: gpio-rz: GPIO driver for Renesas RZ series

2017-01-18 Thread jacopo mondi
Hi Linus, thanks for review On 18/01/2017 14:58, Linus Walleij wrote: On Mon, Jan 16, 2017 at 1:12 PM, Jacopo Mondi <jacopo+rene...@jmondi.org> wrote: From: Magnus Damm <d...@opensource.se> This commit combines Magnus' original driver and minor fixes to forward-port it to a

Re: [PATCH v3] pinctrl: sh-pfc: r8a7791: Add ADI pinconf support

2017-01-19 Thread jacopo mondi
Hi Marek, On 19/01/2017 17:06, Marek Vasut wrote: Please add my Tested-by: Marek Vasut Thanks! Sending to renesas-soc list as well as, if I'm not wrong, PFC patches go through Geert's tree -- To unsubscribe from this list: send the line "unsubscribe linux-gpio"

Re: [PATCH 3/4] iio: adc: Add max9611/9612 ADC driver

2017-02-26 Thread jacopo mondi
Hi Jonathan, thanks for review On 25/02/2017 16:53, Jonathan Cameron wrote: On 24/02/17 15:05, Jacopo Mondi wrote: Add iio driver for Maxim max9611/9612 current-sense amplifiers with 12-bits ADC. Data sheet link always good Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org>

Re: [PATCH 0/4] iio: adc: Maxim max961x driver

2017-02-27 Thread jacopo mondi
Hi Jonathan, On 25/02/2017 17:09, Jonathan Cameron wrote: On 24/02/17 15:05, Jacopo Mondi wrote: Hello! This series adds driver and documentation for Maxim max9611/max9612 high-side current sense amplifier with 12-bit ADC and I2c interface. It also registers two devices installed on VDD_0.8V

[PATCH v2] ARM: DTS: r8a7794: alt: Fix PFC names for DU

2016-11-03 Thread Jacopo Mondi
.pin-controller: function 'du' not supported sh-pfc e606.pin-controller: invalid function du in map table rcar-du: probe of feb0.display failed with error -22 Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- v1->v2: - s/PCF/PFC/ in commit message according to Sergei Shtylyov'

[PATCHv2] iio: adc: Add Maxim MAX11100 driver

2016-12-13 Thread Jacopo Mondi
Add IIO driver for Maxim MAX11100 single-channel ADC. Add DT bindings documentation. Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- v1 -> v2: - incorporated pmeerw's review comments - retrieve vref from dts and use that to convert read_raw result to mV - add de

[RFCv2] dts: arm: renesas: koelsh: Add MAX11100 device

2016-12-13 Thread Jacopo Mondi
Add node to test MAX11100 ADC with LED28 connected to the chip input line. The ADC sits on a gpio-spi master. Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- Sending as RFC only, not for inclusion. Used to test MAX11100 ADC driver currently connected to Koelsch GPIO expander. v1

[PATCH] iio: Add Maxim MAX11100 driver

2016-12-06 Thread Jacopo Mondi
Add IIO driver for Maxim MAX11100 single-channel ADC. Support raw_read mode only. Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- drivers/iio/adc/Kconfig| 9 +++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/max11100.c | 165 + 3

Re: [PATCH 0/3] Renesas RZ PFC and GPIO driver

2017-01-10 Thread jacopo mondi
Hi Laurent, Chris, On 10/01/2017 02:28, Laurent Pinchart wrote: Hi Chris, On Monday 09 Jan 2017 23:53:39 Chris Brandt wrote: On Monday, January 09, 2017, Laurent Pinchart wrote: Both the existing RZ/A model and the pinctrl model are in my opinion improvements over the RZ/G and R-Car models.

Re: [PATCH 0/3] Renesas RZ PFC and GPIO driver

2017-01-11 Thread jacopo mondi
Hi Laurent, On 11/01/2017 12:22, Laurent Pinchart wrote: Hi Jacopo, [snip] Here is my general question: Which of these 2 approaches are better? A) In the DT, the user ask "enable Ethernet please" and magic happens in the pfc driver. B) In the DT, the user looks up the correct

[PATCH 3/3] arm: dts: r7s72100: Add peripherals nodes

2017-01-09 Thread Jacopo Mondi
From: Magnus Damm <d...@opensource.se> This is a squash of several commits, adding peripherals groups configuration to r7s72100 device tree, and enabling some of them on Genmai evaluation board Signed-off-by: Jacopo Mondi <jacopo+rene...@j

[PATCH 0/3] Renesas RZ PFC and GPIO driver

2017-01-09 Thread Jacopo Mondi
Hello, these patches are the result of a squash and forward porting of Magnus' PFC and GPIO driver from git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git tree genmai-gpio-and-pfc branch to kernel v4.10 The PFC and GPIO driver have been forward ported to v4.10-rc1 with

[PATCH 2/3] gpio: gpio-rz: GPIO driver for Renesas RZ series

2017-01-09 Thread Jacopo Mondi
From: Magnus Damm <d...@opensource.se> This commit combines Magnus' original driver and minor fixes to forward-port it to a more recent kernel version (v4.10) Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- gpio

[PATCH 0/3] pinctrl: sh-pfc: r7s72100: Add IO mode selection

2017-01-09 Thread Jacopo Mondi
last patch enables LVDS, which is a use case for selection of a non-direct I/O mode. Chris, as you have plans to work on LVDS enablement for Renesas' BSP, if you have any time to test this settings and provide some feedback I would really appreciate that :) Thanks j Jacopo Mondi (3): pinct

[PATCH 2/3] pinctrl: sh-pfc: r7s72100: IO mode selection

2017-01-09 Thread Jacopo Mondi
software I/O control, such as LVDS Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/sh-pfc/pfc-r7s72100.c | 124 +++--- 1 file changed, 101 insertions(+), 23 deletions(-) diff --git a/drivers/pinctrl/sh-pfc/pfc-r7s72100.c b/drivers/pinc

[PATCH 1/3] pinctrl: sh-pfc: Add r7s72100 PFC driver

2017-01-09 Thread Jacopo Mondi
From: Magnus Damm <d...@opensource.se> Squash commits in Geert's renesas-driver/genmai-gpio-and-pfc branch that add support for r7s72100 PFC. This squash combines commits for Magnus' original driver and minor fixes to forward-port it to a more recent kernel (v4.10) Signed-off-by: Jacopo

[PATCH 1/3] pinctrl: sh-pfc: r7s72100: Enable DIO mode

2017-01-09 Thread Jacopo Mondi
configuring the pin in PORT mode Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/sh-pfc/pfc-r7s72100.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/sh-pfc/pfc-r7s72100.c b/drivers/pinctrl/sh-pfc/pfc-r7s72100.c index 7

[PATCH 3/3] pinctrl: sh-pfc: r7s72100: Add LVDS pin group

2017-01-09 Thread Jacopo Mondi
The LVDS pin group has to be configured in software driven output mode Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/sh-pfc/pfc-r7s72100.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r7s72100.c b/d

Re: [PATCH 0/3] Renesas RZ PFC and GPIO driver

2017-01-11 Thread jacopo mondi
Hi Laurent, On 11/01/2017 17:31, Laurent Pinchart wrote: Hi Jacopo, [snip] I was wondering if that should not be be turned into something more similar to the pinctrl-single defined ABI. In that case it would look like this (please excuse the pseduo-dts syntax here) scif2_pins:

[PATCH v3] iio: adc: Add Maxim MAX11100 driver

2017-01-12 Thread Jacopo Mondi
From: Jacopo Mondi <jac...@jmondi.org> Add IIO driver for Maxim MAX11100 single-channel ADC. Add DT bindings documentation. Signed-off-by: Jacopo Mondi <jac...@jmondi.org> Tested-by: Marek Vasut <marek.va...@gmail.com> --- Sending v3 incorporating last comments from revie

Re: [PATCH 2/3] gpio: gpio-rz: GPIO driver for Renesas RZ series

2017-01-12 Thread jacopo mondi
Hi Linus, thanks for review On 11/01/2017 15:55, Linus Walleij wrote: On Mon, Jan 9, 2017 at 8:31 PM, Jacopo Mondi <jacopo+rene...@jmondi.org> wrote: +static void rz_gpio_free(struct gpio_chip *chip, unsigned offset) +{ + pinctrl_free_gpio(chip->base + offset); + +

Re: [PATCH v3] iio: adc: Add Maxim MAX11100 driver

2017-01-13 Thread jacopo mondi
Hi Geert, On 13/01/2017 09:27, Geert Uytterhoeven wrote: Hi Jacopo, On Thu, Jan 12, 2017 at 11:51 PM, Jacopo Mondi <jacopo+rene...@jmondi.org> wrote: From: Jacopo Mondi <jac...@jmondi.org> Add IIO driver for Maxim MAX11100 single-channel ADC. Add DT bindings documentation.

[PATCH v4 0/2] iio: adc: Add Maxim MAX11100 driver

2017-01-13 Thread Jacopo Mondi
tation as suggested by Geert. Jacopo Mondi (2): iio: adc: Add Maxim MAX11100 driver dt-bindings: iio: document MAX11100 ADC .../devicetree/bindings/iio/adc/max11100.txt | 19 +++ drivers/iio/adc/Kconfig| 9 + drivers/iio/adc/Makefile

[PATCH v4 1/2] iio: adc: Add Maxim MAX11100 driver

2017-01-13 Thread Jacopo Mondi
From: Jacopo Mondi <jac...@jmondi.org> Add iio driver for Maxim MAX11100 single-channel ADC. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> Tested-by: Marek Vasut <marek.va...@gmail.com> --- drivers/iio/adc/Kconfig| 9 +++ drivers/iio/adc/Makefile | 1

[PATCH v4 2/2] dt-bindings: iio: document MAX11100 ADC

2017-01-13 Thread Jacopo Mondi
Add device tree bindings documentation for Maxim MAX11100 single-channel ADC Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- .../devicetree/bindings/iio/adc/max11100.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devi

Re: [PATCH v4 0/2] iio: adc: Add Maxim MAX11100 driver

2017-01-15 Thread jacopo mondi
Hi Jonathan, thanks for review, On 13/01/2017 10:50, Jacopo Mondi wrote: Hello, sending out v4 splitting device tree bindings documentation and actual ADC driver. No changes in driver code since v3. Same question for iio maintainers here: I would like to have clarified the measure unit

[PATCH v2 0/7] Renesas RZ PFC and GPIO driver

2017-01-11 Thread Jacopo Mondi
Hello, these patches are the result of a squash and forward porting of Magnus' PFC and GPIO driver from git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git tree genmai-gpio-and-pfc branch to kernel v4.10 The PFC and GPIO driver have been forward ported to v4.10-rc1 with

[PATCH v2 1/7] pinctrl: sh-pfc: Add r7s72100 PFC driver

2017-01-11 Thread Jacopo Mondi
From: Magnus Damm <d...@opensource.se> Squash commits in Geert's renesas-driver/genmai-gpio-and-pfc branch that add support for r7s72100 PFC. This squash combines commits for Magnus' original driver and minor fixes to forward-port it to a more recent kernel (v4.10) Signed-off-by: Jacopo

[PATCH v2 7/7] arm: dts: r7s72100-genmai: Add pinctrl for RSPI

2017-01-11 Thread Jacopo Mondi
From: Geert Uytterhoeven Add pinctrl for the existing rspi4 node on Genmai. Signed-off-by: Geert Uytterhoeven --- v5: - Rebased, kept pinctrl only (RSPI nodes have been split off and integrated before) v4: - No changes v3: - No

[PATCH v2 4/7] arm: dts: r7s72100-genmai: SCIF2 PINCTRL configuration

2017-01-11 Thread Jacopo Mondi
From: Magnus Damm Configure the r7s72100 PINCTRL hardware and select pin function for the SCIF2 serial console. Signed-off-by: Magnus Damm Acked-by: Laurent Pinchart --- arch/arm/boot/dts/r7s72100-genmai.dts | 10

[PATCH v2 2/7] gpio: gpio-rz: GPIO driver for Renesas RZ series

2017-01-11 Thread Jacopo Mondi
From: Magnus Damm <d...@opensource.se> This commit combines Magnus' original driver and minor fixes to forward-port it to a more recent kernel version (v4.10) Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- gpio

[PATCH v2 3/7] arm: dts: r7s72100: GPIO and PFC device nodes

2017-01-11 Thread Jacopo Mondi
From: Magnus Damm <d...@opensource.se> Add support for r7s72100 PFC and GPIO device nodes port0 -> port11 and jtagport0. Signed-off-by: Magnus Damm <d...@opensource.se> Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dt

[PATCH v2 5/7] arm: dts: r7s72100-genmai: LED1 and LED2 support

2017-01-11 Thread Jacopo Mondi
From: Magnus Damm Add support for Genmai board LED1 and LED2 via gpio-leds. Signed-off-by: Magnus Damm Acked-by: Laurent Pinchart --- arch/arm/boot/dts/r7s72100-genmai.dts | 11 +++ 1 file changed, 11

[PATCH v2 6/7] arm: dts: r7s72100-genmai:Add ethernet PFC node

2017-01-11 Thread Jacopo Mondi
From: Simon Horman <horms+rene...@verge.net.au> Squash Simon's original commit with his fixup of sh_eth pin names Signed-off-by: Simon Horman <horms+rene...@verge.net.au> Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> [WIP] genmai sh_eth dts fixup Signed-off-by: S

Re: [PATCH 3/3] arm: dts: r7s72100: Add peripherals nodes

2017-01-11 Thread jacopo mondi
Hi Geert, On 10/01/2017 16:07, Geert Uytterhoeven wrote: Hi Jacopo, On Mon, Jan 9, 2017 at 8:31 PM, Jacopo Mondi <jacopo+rene...@jmondi.org> wrote: From: Magnus Damm <d...@opensource.se> This is a squash of several commits, adding peripherals groups configuration to r7s72100

Re: [PATCH 2/3] gpio: gpio-rz: GPIO driver for Renesas RZ series

2017-01-12 Thread jacopo mondi
Hi Chris, On 12/01/2017 15:39, Chris Brandt wrote: Hi Jacopo, On Thursday, January 12, 2017, jacopo mondi wrote: To read the pin direction I would need to add one more register to the "reg" property range provided in the DTS. This is of course doable, but I would have two ques

[PATCH v3] pinctrl: sh-pfc: r8a7791: Add ADI pinconf support

2016-12-01 Thread Jacopo Mondi
Add pin configuration support for Gyro-ADC, named ADI on r8a7791 SoC. Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- Compiled only, not tested with an actual ADC. For reference only, these are the changes introduced by Geert's private review of first sketch of this patch: * separa

[PATCH v2] pinctrl: sh-pfc: r8a7791: Add ADI pinconf support

2016-12-01 Thread Jacopo Mondi
signals (adi_chsel2 and adi_chsel2_b groups) and up to 8 ADCs through 3 channel select signals (adi_chsel3 and adi_chsel3_b groups) Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- Compiled only, not tested with an actual ADC. For reference only, these are the changes introduced by Geert's p

[PATCH] pinctrl: sh-pfc: r8a7791: Add ADI pinconf support

2016-11-29 Thread Jacopo Mondi
signals (adi_chsel2 and adi_chsel2_b groups) and up to 8 ADCs through 3 channel select signals (adi_chsel3 and adi_chsel3_b groups) Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- Compiled only, not tested with an actual ADC. For reference only, these are the changes introduced by G

[RFCv2 0/3] Enable and test MAXREFDES4# on Genmai board

2016-12-05 Thread Jacopo Mondi
he results of successive analog-to-digital conversions and verifying they match the gpio863 output value. Thanks j v1 -> v2: * use "spidev" as compatible string in v1 [2/3] and drop [3/3] consequentially. * incorporate Geert's comments in [2/3] DTS file Jacopo Mon

[RFCv2 2/2] dts: arm: genmai: Add MAXDESREF4x spidev

2016-12-05 Thread Jacopo Mondi
Add device node for the MAX11100 evaluation board connected to Genmai's CN2. The evaluation kit is connected to 3 GPIO lines configured as bitbanged SPI master interface. Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- arch/arm/boot/dts/r7s72100-genmai.dts | 21 +

[RFC 1/3] gpio-rz: Port to v3.18

2016-12-02 Thread Jacopo Mondi
Fix invalid return value in gpio remove function Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- drivers/gpio/gpio-rz.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-rz.c b/drivers/gpio/gpio-rz.c index a933dab..cb8f785 100644 --- a/drivers/gpi

[RFC 2/3] dts: arm: genmai: Add MAXDESREF4x spidev

2016-12-02 Thread Jacopo Mondi
Add device node for the MAX11100 evaluation board connected to Genmai's CN2. The evaluation kit is connected to 4 GPIO lines configured ad bitbanged SPI master interface Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- arch/arm/boot/dts/r7s72100-genmai.dts | 22 ++

[RFC 3/3] spidev: Add back "linux,spidev" as compatible

2016-12-02 Thread Jacopo Mondi
spidev is not meant to be configured directly from DTS anymore. Since we're prototyping, add the "linux,spidev" compatibility string back Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- drivers/spi/spidev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/sp

[RFC 0/3] Enable and test MAXREFDES4# on Genmai board

2016-12-02 Thread Jacopo Mondi
he results of successive analog-to-digital conversions and verifying they match the gpio863 output value. Thanks j Jacopo Mondi (3): gpio-rz: Port to v3.18 dts: arm: genmai: Add MAXDESREF4x spidev spidev: Add back "linux,spidev" as compatible arch/arm/boot/dts/r7s7

Re: [PATCHv2] iio: adc: Add Maxim MAX11100 driver

2017-01-02 Thread jacopo mondi
Hi Jonathan, On 30/12/2016 17:08, Jonathan Cameron wrote: On 13/12/16 12:37, Jacopo Mondi wrote: Add IIO driver for Maxim MAX11100 single-channel ADC. Add DT bindings documentation. Signed-off-by: Jacopo Mondi <jac...@jmondi.org> A quick process related thing. Please don't post

Re: [PATCHv2] iio: adc: Add Maxim MAX11100 driver

2017-01-02 Thread jacopo mondi
documentation. some more comments Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- v1 -> v2: - incorporated pmeerw's review comments - retrieve vref from dts and use that to convert read_raw result to mV - add device tree bindings documentation --- .../devicetree/binding

[PATCH v4 0/4] iio: adc: Maxim max9611 driver

2017-03-27 Thread Jacopo Mondi
es for device name - Change temperature scale to have a value in milli Celsius - Simplify init routine using read_single Jacopo Mondi (4): Documentation: dt-bindings: iio: Add max9611 ADC iio: Documentation: Add max9611 sysfs documentation iio: adc: Add Maxim max9611 ADC driver arm64: dts: s

[PATCH v4 3/4] iio: adc: Add Maxim max9611 ADC driver

2017-03-27 Thread Jacopo Mondi
Add iio driver for Maxim max9611 and max9612 current-sense amplifiers with 12-bits ADC interface. Datasheet publicly available at: https://datasheets.maximintegrated.com/en/ds/MAX9611-MAX9612.pdf Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- Output of iio_info on Salvator-X

[PATCH v4 1/4] Documentation: dt-bindings: iio: Add max9611 ADC

2017-03-27 Thread Jacopo Mondi
Add device tree bindings documentation for Maxim max9611/max9612 current sense amplifier. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- .../devicetree/bindings/iio/adc/max9611.txt| 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documen

[PATCH v2 1/4] Documentation: dt-bindings: iio: Add max9611 ADC

2017-03-23 Thread Jacopo Mondi
Add device tree bindings documentation for Maxim max9611/max9612 current sense amplifier. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- .../devicetree/bindings/iio/adc/max9611.txt| 27 ++ 1 file changed, 27 insertions(+) create mode 100644 Documen

[PATCH v2 0/4] iio: adc: Maxim max9611 driver

2017-03-23 Thread Jacopo Mondi
- Remove wrapper functions around i2c buffer access - Add locking in read_raw() - Make 2 separate attributes for shunt resistor: current and power - Renamed shunt resistor attribute - Fixed several review comments Jacopo Mondi (4): Documentation: dt-bindings: iio: Add max9611 ADC iio: Documentation: A

[PATCH v2 2/4] iio: Documentation: Add max9611 sysfs documentation

2017-03-23 Thread Jacopo Mondi
Add documentation for max9611 driver. Document attributes describing value of shunt resistor installed between RS+ and RS- voltage sense inputs. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- Documentation/ABI/testing/sysfs-bus-iio-adc-max9611 | 16 1 file c

[PATCH v2 3/4] iio: adc: Add Maxim max9611 ADC driver

2017-03-23 Thread Jacopo Mondi
Add iio driver for Maxim max9611 and max9612 current-sense amplifiers with 12-bits ADC interface. Datasheet publicly available at: https://datasheets.maximintegrated.com/en/ds/MAX9611-MAX9612.pdf Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/iio/adc/Kconfig

[PATCH v2 4/4] arm64: dts: salvator-x: Add current sense amplifiers

2017-03-23 Thread Jacopo Mondi
Add device nodes for two Maxim max961x current sense amplifiers sensing VDD_08 and DVFS_08 lines. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm6

[PATCH v3 5/7] arm: dts: genmai: Add SCIF2 pin group

2017-03-24 Thread Jacopo Mondi
Add pin configuration subnode for SCIF2 serial debug interface. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> Reviewed-by: Geert Uytterhoeven <geert+rene...@glider.be> --- arch/arm/boot/dts/r7s72100-genmai.dts | 13 + 1 file changed, 13 insertions(+) diff --gi

[PATCH v3 4/7] arm: dts: r7s72100: Add pin controller node

2017-03-24 Thread Jacopo Mondi
Add pin controller node with 12 gpio controller sub-nodes to r7s72100 dtsi. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> Reviewed-by: Geert Uytterhoeven <geert+rene...@glider.be> --- arch/arm/boot/dts/r7s72100.dtsi | 80 + 1 file

[PATCH v3 7/7] arm: dts: genmai: Add user led device nodes

2017-03-24 Thread Jacopo Mondi
Add device nodes for user leds on Genmai board. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> Reviewed-by: Geert Uytterhoeven <geert+rene...@glider.be> --- arch/arm/boot/dts/r7s72100-genmai.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/

[PATCH v3 2/7] dt-bindings: pinctrl: Add RZ/A1 bindings doc

2017-03-24 Thread Jacopo Mondi
Add device tree bindings documentation for Renesas RZ/A1 gpio and pin controller. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- .../bindings/pinctrl/renesas,rza1-pinctrl.txt | 143 + 1 file changed, 143 insertions(+) create mode 100644 Documen

[PATCH v3 6/7] arm: dts: genmai: Add RIIC2 pin group

2017-03-24 Thread Jacopo Mondi
Add pin configuration subnode for RIIC2 interface. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> Reviewed-by: Geert Uytterhoeven <geert+rene...@glider.be> --- arch/arm/boot/dts/r7s72100-genmai.dts | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/

[PATCH v3 0/8] Renesas RZ/A1 pin and gpio controller

2017-03-24 Thread Jacopo Mondi
unlock - use devm_ version of kasprintf (memory returned was not properly free) - use bitops.h operation ffs and fls to make sure a single bit is set in pmx mask - Add Geert's reviewed-by to DTS patches Jacopo Mondi (8): pinctrl: Renesas RZ/A1 pin and gpio controller dt-bindings: pinctrl: Add RZ/A1 b

  1   2   3   4   5   6   7   8   9   >