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

[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 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 3/7] arm: dts: dt-bindings: Add Renesas RZ pinctrl header

2017-03-24 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 | 36 ++ 1 file changed, 36 insertions(+) create mode 100644 include/dt-bindings/pinctrl/r7

[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 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 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 1/7] pinctrl: Renesas RZ/A1 pin and gpio controller

2017-03-24 Thread Jacopo Mondi
Add combined gpio and pin controller driver for Renesas RZ/A1 r7s72100 SoC. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/Kconfig| 10 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-rza1.c

[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

[PATCH v2 0/7] Renesas RZ/A1 pin and gpio controller

2017-03-20 Thread Jacopo Mondi
ess verbose Jacopo Mondi (7): pinctrl: Renesas RZ/A1 pin and gpio controller dt-bindings: pinctrl: Add RZ/A1 bindings doc arm: dts: dt-bindings: Add Renesas RZ pinctrl header arm: dts: r7s72100: Add pin controller node arm: dts: genmai: Add SCIF2 pin group arm: dts: genmai: Add RIIC2 pin gr

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

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

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

2017-03-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 v2 1/7] pinctrl: Renesas RZ/A1 pin and gpio controller

2017-03-20 Thread Jacopo Mondi
Add combined gpio and pin controller driver for Renesas RZ/A1 r7s72100 SoC. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/Kconfig| 10 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-rza1.c

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

2017-03-20 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> --- arch/arm/boot/dts/r7s72100.dtsi | 80 + 1 file changed, 80 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100.

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

2017-03-20 Thread Jacopo Mondi
Add pin configuration subnode for SCIF2 serial debug interface. 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/r7s72100-genmai.dts b/arch/arm/boot/dts/r7

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

2017-03-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 | 36 ++ 1 file changed, 36 insertions(+) create mode 100644 include/dt-bindings/pinctrl/r7

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

2017-03-20 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 | 144 + 1 file changed, 144 insertions(+) create mode 100644 Documen

[PATCH v4 4/9] arm: dts: dt-bindings: Add Renesas RZ/A1 pinctrl header

2017-04-05 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 | 16 1 file changed, 16 insertions(+) create mode 100644 include/dt-bindings/pinctrl/r7s72100-pin

[PATCH v4 5/9] arm: dts: r7s72100: Add pin controller node

2017-04-05 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 | 78 + 1 file

[PATCH v4 8/9] arm: dts: genmai: Add user led device nodes

2017-04-05 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 v4 6/9] arm: dts: genmai: Add SCIF2 pin group

2017-04-05 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 | 12 1 file changed, 12 insertions(+) diff --gi

[PATCH v4 9/9] arm: dts: genmai: Add ethernet pin group

2017-04-05 Thread Jacopo Mondi
Add pin configuration subnode for ETHER ethernet controller. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s72100-genmai.dts | 41 +++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts

[PATCH v4 3/9] dt-bindings: pinctrl: Add RZ/A1 bindings doc

2017-04-05 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 | 218 + 1 file changed, 218 insertions(+) create mode 100644 Documen

[PATCH v4 2/9] pinctrl: Renesas RZ/A1 pin and gpio controller

2017-04-05 Thread Jacopo Mondi
Add combined gpio and pin controller driver for Renesas RZ/A1 r7s72100 SoC. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/Kconfig| 11 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-rza1.c

[PATCH v4 1/9] pinctrl: generic: Add bi-directional and output-enable

2017-04-05 Thread Jacopo Mondi
syntactic sugar to specify that a pin shall operate in output mode, ignoring the provided argument. This pairs with input-enable pin configuration option. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt | 2 ++ drivers/p

[PATCH v4 0/9] Renesas RZ/A1 pin and gpio controller

2017-04-05 Thread Jacopo Mondi
ge DT bindings to use GENERIC_PINCONF - change DT bindings to allow sub-nodes to have "pinmux" property specified - several renames (register names, DT parse functions, set_mux() function) Jacopo Mondi (9): pinctrl: generic: Add bi-directional and output-enable pinctrl: Renesas RZ/A

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

2017-04-05 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/

[RFC] Documentation: pinctrl: Add "pinmux" property

2017-04-06 Thread Jacopo Mondi
Document "pinmux" property as part of generic pin controller documentation. Fix 2 minor typos in documentation while at there. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- Hi Linus and linux-gpio community. During development of Renesas RZ/A1 pin controller I'v

[PATCH v5 03/10] pinctrl: Renesas RZ/A1 pin and gpio controller

2017-04-27 Thread Jacopo Mondi
Add combined gpio and pin controller driver for Renesas RZ/A1 r7s72100 SoC. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/Kconfig| 11 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-rza1.c

[PATCH v5 10/10] arm: dts: genmai: Add ethernet pin group

2017-04-27 Thread Jacopo Mondi
Add pin configuration subnode for ETHER ethernet controller. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s72100-genmai.dts | 41 +++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts

[PATCH v5 07/10] arm: dts: genmai: Add SCIF2 pin group

2017-04-27 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 | 12 1 file changed, 12 insertions(+) diff --gi

[PATCH v5 08/10] arm: dts: genmai: Add RIIC2 pin group

2017-04-27 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 v5 01/10] pinctrl: generic: Add bi-directional and output-enable

2017-04-27 Thread Jacopo Mondi
syntactic sugar to specify that a pin shall operate in output mode, ignoring the provided argument. This pairs with input-enable pin configuration option. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt | 2 ++ drivers/p

[PATCH v5 02/10] pinctrl: generic: Add macros to unpack properties

2017-04-27 Thread Jacopo Mondi
Add PIN_CONF_UNPACK_PARAM and PIN_CONF_UNPACK_ARGS macros useful to unpack generic properties and their arguments Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- include/linux/pinctrl/pinconf-generic.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/i

[PATCH v5 05/10] arm: dts: dt-bindings: Add Renesas RZ/A1 pinctrl header

2017-04-27 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 | 16 1 file changed, 16 insertions(+) create mode 100644 include/dt-bindings/pinctrl/r7s72100-pin

[PATCH v5 04/10] dt-bindings: pinctrl: Add RZ/A1 bindings doc

2017-04-27 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 | 219 + 1 file changed, 219 insertions(+) create mode 100644 Documen

[PATCH v5 00/10] Renesas RZ/A1 pin and gpio controller

2017-04-27 Thread Jacopo Mondi
unction) v4 -> v5: - use pinctrl_enable() function in pin controller registration function - update bindings documentation to incorporate Geert's comments - add generic properties unpack macros Jacopo Mondi (10): pinctrl: generic: Add bi-directional and output-enable pinctrl: generic: Add macr

[PATCH v5 09/10] arm: dts: genmai: Add user led device nodes

2017-04-27 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 v5 06/10] arm: dts: r7s72100: Add pin controller node

2017-04-27 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 | 78 + 1 file

[PATCH v2] pinctrl: generic: Add output-enable property

2017-06-22 Thread Jacopo Mondi
Add output-enable generic pin configuration property. This properties allows enabling/disabling pin's output capabilities without actually driving any value on the line. --- v1->v2: - Expand the property description as suggested by Laurent. I ended up mentioning the in-famous output buffer :)

[PATCH v6 2/8] dt-bindings: pinctrl: Add RZ/A1 bindings doc

2017-06-22 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 | 221 + 1 file changed, 221 insertions(+) create mode 100644 Documen

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

2017-06-22 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 v6 1/8] pinctrl: Renesas RZ/A1 pin and gpio controller

2017-06-22 Thread Jacopo Mondi
Add combined gpio and pin controller driver for Renesas RZ/A1 r7s72100 SoC. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/pinctrl/Kconfig| 11 + drivers/pinctrl/Makefile |1 + drivers/pinctrl/pinctrl-rza1.c

[PATCH v6 00/8] Renesas RZ/A1 pin and gpio controller

2017-06-22 Thread Jacopo Mondi
o incorporate Geert's comments - add generic properties unpack macros v5 -> v6: - add tables in driver to manage bi-directional and swio flags - drop dependecies on new generic pin configuration properties Jacopo Mondi (8): pinctrl: Renesas RZ/A1 pin and gpio controller dt-bindings: pinctrl:

[PATCH v6 8/8] arm: dts: genmai: Add ethernet pin group

2017-06-22 Thread Jacopo Mondi
Add pin configuration subnode for ETHER ethernet controller. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s72100-genmai.dts | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts

[PATCH v6 4/8] arm: dts: r7s72100: Add pin controller node

2017-06-22 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 | 78 + 1 file

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

2017-06-22 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 | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/

[PATCH v6 5/8] arm: dts: genmai: Add SCIF2 pin group

2017-06-22 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 | 12 1 file changed, 12 insertions(+) diff --gi

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

2017-06-22 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 | 16 1 file changed, 16 insertions(+) create mode 100644 include/dt-bindings/pinctrl/r7s72100-pin

[PATCH] arm: dts: r7s72100: Add support for GR-Peach

2017-05-23 Thread Jacopo Mondi
Add device tree source for Renesas GR-Peach board. GR-Peach is an RZ/A1H based board with 10MB of on-chip SRAM and 8MB QSPI flash storage. Add support for the board, and create a 2MB partition to use as rootfs. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- v1->v2 - s/g

[PATCH] arm: dts: r7s72100: Add support for GR-Peach

2017-05-23 Thread Jacopo Mondi
Add device tree source for Renesas GR-Peach board. GR-Peach is an RZ/A1H based board with 10MB of on-chip SRAM and 8MB QSPI flash storage. Add support for the board, and create a 2MB partition to use as rootfs. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- Documentation/devi

[PATCH v1] pinctrl: generic: Add output-enable property

2017-06-16 Thread Jacopo Mondi
Add output-enable generic pin configuration property. This properties allows enabling/disabling pin's output capabilities without actually driving any value on the line. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- So, after that many discussions I'm now sending this, tha

[PATCH 3/3] ARM: dts: gr-peach: Add ETHER pin group

2017-10-05 Thread Jacopo Mondi
Add pin configuration subnode for ETHER pin group and enable the interface. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s72100-gr-peach.dts | 38 + 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/r7s72

[PATCH 2/3] ARM: dts: gr-peach: Enable MTU2 timer pulse unit

2017-10-05 Thread Jacopo Mondi
MTU2 multi-function/multi-channel timer/counter is not enabled for GR-Peach board. The timer is used as clock event source to schedule wake-ups, and without this enabled all sleeps not performed through busy waiting hang the board. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> ---

[PATCH 0/3] ARM: dts: gr-peach: Mix DTS fixes/updates

2017-10-05 Thread Jacopo Mondi
for timer event generations and wake-ups. After enabling the MTU unit, ETHER is now working properly, so I am re-proposing this patch, which had been left out from previous gr-peach DTS series because the interface was not working correctly. Thanks j Jacopo Mondi (3): ARM: dts: gr-peach: Fix

[PATCH 1/3] ARM: dts: gr-peach: Fix 'leds' node name indent

2017-10-05 Thread Jacopo Mondi
Fix 'leds' node name indent as it was wrongly aligned. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s72100-gr-peach.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r7s72100-gr-peach.dts b/arch/arm/boot/dts/r7s72

Re: [PATCH] arm: dts: gr-peach: Reduce extal_clk resolution

2017-10-05 Thread jacopo mondi
Hi Geert On Wed, Oct 04, 2017 at 05:54:46PM +0200, Geert Uytterhoeven wrote: > Hi Jacopo, > > On Wed, Oct 4, 2017 at 5:40 PM, Jacopo Mondi <jacopo+rene...@jmondi.org> > wrote: > > The system clock described by extal_clk is reported to have a frequency > > of 13.333

[PATCH] arm: dts: gr-peach: Reduce extal_clk resolution

2017-10-04 Thread Jacopo Mondi
s obtained through division accepted by RIIC driver. Please note that other r7s72100 boards, such as Genmai, report the same "reduced accuracy" frequency, even if their external clock sources are effectively 13.333Mhz as gr-peach one. Signed-off-by: Jacopo Mondi <jacopo+rene...@jm

Re: [PATCH 3/3] ARM: dts: gr-peach: Add ETHER pin group

2017-10-06 Thread jacopo mondi
Hi Simon, On Thu, Oct 05, 2017 at 10:58:20AM +0200, Jacopo Mondi wrote: > Add pin configuration subnode for ETHER pin group and enable the interface. > > Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> > --- > arch/arm/boot/dts/r7s72

[PATCH] pinctrl: rza1: Remove suffix from gpiochip label

2017-08-24 Thread Jacopo Mondi
The OF node name already contains the gpio chip identifier, no need to append it when creating the label. The following debug message clearly shows the suffix is not required "pinctrl-rza1 fcfe3000.pin-controller: Parsed gpiochip gpio-0-0 with 6 pins" Signed-off-by: Jacopo Mondi &l

[PATCH 2/2] ARM: dts: gr-peach: Enable ostm0 and ostm1 timers

2017-10-09 Thread Jacopo Mondi
, resolution 30ns, wraps every 64440619504ns ostm: used for clocksource ostm: used for clock events Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> Suggested-by: Chris Brandt <chris.bra...@renesas.com> --- arch/arm/boot/dts/r7s72100-gr-peach.dts | 8 1 file changed,

[PATCH 1/2] ARM: dts: gr-peach: Add ETHER pin group

2017-10-09 Thread Jacopo Mondi
Add pin configuration subnode for ETHER pin group. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s72100-gr-peach.dts | 39 + 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100-gr-peach.dts b/arch/ar

[PATCH 0/2] ARM: dts: gr-peach: ETHER and OS Timers enable

2017-10-09 Thread Jacopo Mondi
suggested by Chris, as that's how the BSP initializes timers by default. Thanks j Jacopo Mondi (2): ARM: dts: gr-peach: Add ETHER pin group ARM: dts: gr-peach: Enable ostm0 and ostm1 timers arch/arm/boot/dts/r7s72100-gr-peach.dts | 47 + 1 file changed, 47

Re: [PATCH v1 01/10] dt-bindings: media: Add Renesas CEU bindings

2017-11-15 Thread jacopo mondi
Hi Geert, On Wed, Nov 15, 2017 at 02:07:31PM +0100, Geert Uytterhoeven wrote: > Hi Jacopo, > > CC devicetree folks Yeah, sorry I forgot them. Sorry about this and thanks for adding the address back! > > On Wed, Nov 15, 2017 at 11:55 AM, Jacopo Mondi > <jacopo+rene...@jmond

Re: [PATCH v1 03/10] v4l: platform: Add Renesas CEU driver

2017-11-25 Thread jacopo mondi
Hi Sakari! On Sat, Nov 25, 2017 at 05:56:14PM +0200, Sakari Ailus wrote: > On Fri, Nov 17, 2017 at 10:33:55AM +0100, jacopo mondi wrote: > > Hi Sakari! > > [snip] > > I would like to make sure we're all on the same page with this. My > > preference would be: > >

Re: [PATCH v1 03/10] v4l: platform: Add Renesas CEU driver

2017-12-18 Thread jacopo mondi
Hi Laurent, thanks for review comments... On Mon, Dec 11, 2017 at 06:15:23PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > [snip] > > + > > +/** > > + * ceu_buffer - Link vb2 buffer to the list of available buffers > > If you use kerneldoc comments please make

Re: [PATCH v1 03/10] v4l: platform: Add Renesas CEU driver

2017-12-18 Thread jacopo mondi
Hi Hans, thanks for review comments On Wed, Dec 13, 2017 at 01:03:03PM +0100, Hans Verkuil wrote: > On 15/11/17 11:55, Jacopo Mondi wrote: > > Add driver for Renesas Capture Engine Unit (CEU). > > + > > + /* Register the video device */ > > + strncpy(vdev

Re: [PATCH v1 03/10] v4l: platform: Add Renesas CEU driver

2017-12-19 Thread jacopo mondi
Hi Laurent, a few more details on subdevice management On Mon, Dec 11, 2017 at 06:15:23PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > [snip] > > > +static int ceu_sensor_bound(struct v4l2_async_notifier *notifier, > > + struct v4l2_subdev

Re: [PATCH v1 03/10] v4l: platform: Add Renesas CEU driver

2017-11-17 Thread jacopo mondi
Hi Sakari! On Fri, Nov 17, 2017 at 02:36:51AM +0200, Sakari Ailus wrote: > Hi Jacopo, > > On Wed, Nov 15, 2017 at 03:25:11PM +0100, jacopo mondi wrote: > > Hi Sakari, > >thanks for review! > > You're welcome! > > > On Wed, Nov 15, 2017 at 02:45:51PM +0200,

Re: [PATCH v1 06/10] sh: sh7722: Rename CEU clock

2017-11-17 Thread jacopo mondi
Hi Geert, On Wed, Nov 15, 2017 at 02:13:43PM +0100, Geert Uytterhoeven wrote: > Hi Jacopo, > > On Wed, Nov 15, 2017 at 11:55 AM, Jacopo Mondi > <jacopo+rene...@jmondi.org> wrote: > > Rename CEU clock to match the new platform driver name used in Migo-R. > > >

Re: [PATCH v1 08/10] media: i2c: ov772x: Remove soc_camera dependencies

2017-11-17 Thread jacopo mondi
Hi Sakari! On Fri, Nov 17, 2017 at 02:43:15AM +0200, Sakari Ailus wrote: > Hi Jacopo, > > On Wed, Nov 15, 2017 at 11:56:01AM +0100, Jacopo Mondi wrote: > > [snip] > > +#include > > #include > > #include > > #include > > @@ -25,8 +26,8 @@ &g

[PATCH v1 10/10] media: i2c: tw9910: Remove soc_camera dependencies

2017-11-15 Thread Jacopo Mondi
Remove soc_camera framework dependencies from tw9910 sensor driver. - Handle clock directly - Register async subdevice - Add platform specific enable/disable functions - Adjust build system This commit does not remove the original soc_camera based driver. Signed-off-by: Jacopo Mondi <jacopo+r

[PATCH v1 03/10] v4l: platform: Add Renesas CEU driver

2017-11-15 Thread Jacopo Mondi
. Tested with ov7725 camera sensor on SH4 platform Migo-R. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/media/platform/Kconfig |9 + drivers/media/platform/Makefile |2 + drivers/media/platform/renesas-ceu.c | 1768 ++ 3

[PATCH v1 05/10] arch: sh: migor: Use new renesas-ceu camera driver

2017-11-15 Thread Jacopo Mondi
for CEU video buffers is now reserved with membocks APIs, and need to be declared as dma_coherent during machine initialization to remove that architecture specific part from CEU driver. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/sh/boards/mach-migor/setup.c

[PATCH v1 09/10] v4l: i2c: Copy tw9910 soc_camera sensor driver

2017-11-15 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/media/i2c/tw9910.c | 999 + 1 file change

[PATCH v1 01/10] dt-bindings: media: Add Renesas CEU bindings

2017-11-15 Thread Jacopo Mondi
Add bindings documentation for Renesas Capture Engine Unit (CEU). Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- .../devicetree/bindings/media/renesas,ceu.txt | 87 ++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bi

[PATCH v1 08/10] media: i2c: ov772x: Remove soc_camera dependencies

2017-11-15 Thread Jacopo Mondi
Remove soc_camera framework dependencies from ov772x sensor driver. - Handle clock directly - Register async subdevice - Add platform specific enable/disable functions - Adjust build system This commit does not remove the original soc_camera based driver. Signed-off-by: Jacopo Mondi <jacopo+r

[PATCH v1 07/10] v4l: i2c: Copy ov772x soc_camera sensor driver

2017-11-15 Thread Jacopo Mondi
Copy the soc_camera based driver in v4l2 sensor driver directory. This commit just copies the original file without modifying it. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/media/i2c/ov772x.c | 1124 1 file changed

[PATCH v1 06/10] sh: sh7722: Rename CEU clock

2017-11-15 Thread Jacopo Mondi
Rename CEU clock to match the new platform driver name used in Migo-R. There are no other sh7722 based devices Migo-R apart, so we can safely rename this. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 2 +- 1 file changed, 1 insertion

[PATCH v1 00/10] Renesas Capture Engine Unit (CEU) V4L2 driver

2017-11-15 Thread Jacopo Mondi
. Thanks j Jacopo Mondi (10): dt-bindings: media: Add Renesas CEU bindings include: media: Add Renesas CEU driver interface v4l: platform: Add Renesas CEU driver ARM: dts: r7s72100: Add Capture Engine Unit (CEU) arch: sh: migor: Use new renesas-ceu camera driver sh: sh7722: Rename CEU

[PATCH v1 04/10] ARM: dts: r7s72100: Add Capture Engine Unit (CEU)

2017-11-15 Thread Jacopo Mondi
Add Capture Engine Unit (CEU) node to device tree. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm/boot/dts/r7s72100.dtsi | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi

[PATCH v1 02/10] include: media: Add Renesas CEU driver interface

2017-11-15 Thread Jacopo Mondi
Add renesas-ceu header file. Do not remove the existing sh_mobile_ceu.h one as long as the original driver does not go away. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- include/media/drv-intf/renesas-ceu.h | 23 +++ 1 file changed, 23 insertions(+)

[PATCH v2 1/2] sh: migor: Reserve memory block for CEU

2017-11-14 Thread Jacopo Mondi
lock_steal()' function. Suggested-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/sh/boards/mach-migor/setup.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git

[RFC v2 2/2] base: dma-mapping: Postpone page_to_pfn() on mmap()

2017-11-14 Thread Jacopo Mondi
a proper fix mainline. Not sending for inclusion at the moment. Suggested-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- drivers/base/dma-mapping.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/

[PATCH v2 0/2] Migo-R: reserve memory block with memblock APIs

2017-11-14 Thread Jacopo Mondi
chitecture, but please do not consider that patch for inclusion for now. Thanks j Jacopo Mondi (2): sh: migor: Reserve memory block for CEU base: dma-mapping: Postpone page_to_pfn() on mmap() arch/sh/boards/mach-migor/setup.c | 29 +++-- drivers/base/dma-mapping.c

Re: [PATCH] sh: migor: Reserve memory block for CEU

2017-11-14 Thread jacopo mondi
y patches to move Migo-R to use the new CEU driver on top of them. Thanks j > > On Wednesday, 8 November 2017 20:05:46 EET Jacopo Mondi wrote: > > A memory region for CEU video buffer has to be reserved during machine > > initialization. > > > > Originally, i

Re: [PATCH v1 03/10] v4l: platform: Add Renesas CEU driver

2017-11-15 Thread jacopo mondi
utines apart, there's not that much code shared between the two... > > The same goes for the two V4L2 SoC camera sensor / video decoder drivers at > the end of the set. > Also in this case I prefer not to remove existing code, as long as there are platforms using it.. > On Wed, Nov 15, 2017 at

[PATCH] sh: migor: Reserve memory block for CEU

2017-11-08 Thread Jacopo Mondi
lock_steal()' function. Suggested-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/sh/boards/mach-migor/setup.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/arc

[PATCH] sh: defconfig: Remove NUMA support from Migo-R

2017-10-30 Thread Jacopo Mondi
: 8c002000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/sh/configs/migor_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sh/configs/migor_defconfig b/arch/sh/configs/migor_defconfig index e

Re: [PATCH 3/3] arm64: dts: renesas: draak: Describe HDMI input

2018-05-14 Thread jacopo mondi
Hi Niklas, On Sun, May 13, 2018 at 02:57:55PM +0200, Niklas Söderlund wrote: > Hi Jacopo, > > Thanks for your patch. > > On 2018-05-11 12:00:02 +0200, Jacopo Mondi wrote: > > Describe HDMI input connected to VIN4 interface for R-Car D3 Draak > > development board. &g

Re: [PATCH 2/2] media: i2c: mt9t112: Add device tree support

2018-05-14 Thread jacopo mondi
Hi Sakari, On Mon, May 07, 2018 at 12:32:19PM +0300, Sakari Ailus wrote: > Hi Jacopo, > > On Wed, Apr 25, 2018 at 01:00:14PM +0200, Jacopo Mondi wrote: [snip] > > static int mt9t112_probe(struct i2c_client *client, > > const struct i2c_device_id *did)

Re: [PATCH 2/2] media: i2c: mt9t112: Add device tree support

2018-05-15 Thread jacopo mondi
Hi Sakari, On Tue, May 15, 2018 at 12:50:04AM +0300, Sakari Ailus wrote: > Hi Jacopo, > > On Mon, May 14, 2018 at 04:30:44PM +0200, jacopo mondi wrote: > > Hi Sakari, > > > > On Mon, May 07, 2018 at 12:32:19PM +0300, Sakari Ailus wrote: > > > Hi Jacopo, >

Re: [PATCH 2/3] arm64: dts: renesas: r8a77995: Add VIN4

2018-05-13 Thread jacopo mondi
Hi Simon, On Fri, May 11, 2018 at 03:45:16PM +0200, Simon Horman wrote: > On Fri, May 11, 2018 at 01:25:23PM +0200, Niklas Söderlund wrote: > > Hi Jacopo, > > > > Thanks for your work. > > > > On 2018-05-11 12:00:01 +0200, Jacopo Mondi wrote: > > > Des

[PATCH 1/3] dt-bindings: media: rcar-vin: Add R8A77995 support

2018-05-11 Thread Jacopo Mondi
Add compatible string for R-Car D3 R8A7795 to list of SoCs supported by rcar-vin driver. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- Documentation/devicetree/bindings/media/rcar_vin.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings

[PATCH 0/3] arm64: dts: Draak: Enable HDMI input and VIN4

2018-05-11 Thread Jacopo Mondi
are available at: git://jmondi.org/linux d3/media-master/driver git://jmondi.org/linux d3/media-master/dts git://jmondi.org/linux d3/media-master/test git://jmondi.org/vin-tests d3 Thanks j Jacopo Mondi (3): dt-bindings: media: rcar-vin: Add R8A77995 support arm64: dts: renesas: r8a77995: Add VIN4

[PATCH 2/3] arm64: dts: renesas: r8a77995: Add VIN4

2018-05-11 Thread Jacopo Mondi
Describe VIN4 interface for R-Car D3 R8A77995 SoC. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch/arm64/boot/dts/r

[PATCH 3/3] arm64: dts: renesas: draak: Describe HDMI input

2018-05-11 Thread Jacopo Mondi
Describe HDMI input connected to VIN4 interface for R-Car D3 Draak development board. Signed-off-by: Jacopo Mondi <jacopo+rene...@jmondi.org> --- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 68 ++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/bo

Re: [PATCH v2 3/3] arm64: dts: renesas: draak: Describe HDMI input

2018-05-17 Thread jacopo mondi
Hi Niklas, On Thu, May 17, 2018 at 12:23:18AM +0200, Niklas Söderlund wrote: > Hi Jacopo, > > Thanks for your patch. > > On 2018-05-16 15:42:09 +0200, Jacopo Mondi wrote: > > Describe HDMI input connector and ADV7612 HDMI decoder installed on > > R-Car Gen3 Draak boar

  1   2   3   4   5   6   7   8   9   10   >