[RFC 0/5] IR support for A83T - sunxi-ir driver update

2017-12-15 Thread Philipp Rossak
to ask you to give me some feedback about the patch series, before I finialize it. Thanks in advance! Philipp Philipp Rossak (5): [media] rc: update sunxi-ir driver to get base frequency from devicetree [media] dt: bindings: Update binding documentation for sunxi IR controller ARM

[RFC 5/5] ARM: dts: sun8i: a83t: bananapi-m3: Enable IR controller

2017-12-15 Thread Philipp Rossak
The Bananapi M3 has an onboard IR receiver. This enables the onboard IR receiver subnode. Other than the other IR receivers this one needs a base clock frequency of 300 Hz (3 MHz), to be able to work. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t-ba

[RFC 4/5] ARM: dts: sun8i: a83t: Add support for the ir interface

2017-12-15 Thread Philipp Rossak
The ir interface is like the H3 at 0x01f02000 located and is exactly the same. This patch adds support for the ir interface on the A83T. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git

[RFC 2/5] [media] dt: bindings: Update binding documentation for sunxi IR controller

2017-12-15 Thread Philipp Rossak
This patch updates documentation for Device-Tree bindings for sunxi IR controller and adds the new requiered property for the base clock frequency. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 14 -- 1 file chan

[RFC 1/5] [media] rc: update sunxi-ir driver to get base frequency from devicetree

2017-12-15 Thread Philipp Rossak
This patch updates the sunxi-ir driver to set the ir base clock from devicetree. This is neccessary since there are different ir recievers on the market, that operate with different frequencys. So this value needs to be set depending on the attached receiver. Signed-off-by: Philipp Rossak <e

[RFC 3/5] ARM: dts: sun8i: a83t: Add the ir pin for the A83T

2017-12-15 Thread Philipp Rossak
The CIR Pin of the A83T is located at PL12 Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 19acae1b4089..5edb64

[PATCH v2 1/6] media: rc: update sunxi-ir driver to get base clock frequency from devicetree

2017-12-18 Thread Philipp Rossak
, than the default 8 MHz. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- drivers/media/rc/sunxi-cir.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index 97f367b446c4..f500cea228a9

[PATCH v2 5/6] arm: dts: sun8i: a83t: bananapi-m3: Enable IR controller

2017-12-18 Thread Philipp Rossak
The Bananapi M3 has an onboard IR receiver. This enables the onboard IR receiver subnode. Unlike the other IR receivers this one needs a base clock frequency of 300 Hz (3 MHz), to be able to work. Signed-off-by: Philipp Rossak <embe...@gmail.com> Acked-by: Chen-Yu Tsai <w...

[PATCH v2 6/6] arm: dts: sun8i: h3-h8: ir register size should be the whole memory block

2017-12-18 Thread Philipp Rossak
The size of the register should be the size of the whole memory block, not just the registers, that are needed. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/su

[PATCH v2 2/6] media: dt: bindings: Update binding documentation for sunxi IR controller

2017-12-18 Thread Philipp Rossak
This patch updates documentation for Device-Tree bindings for sunxi IR controller and adds the new optional property for the base clock frequency. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 3 +++ 1 file changed, 3 inse

[PATCH v2 0/6] arm: sunxi: IR support for A83T

2017-12-18 Thread Philipp Rossak
inal. If the property is not available in the dtb the driver uses the default base clock frequency. * the driver prints out the the selected base clock frequency. * changed devicetree property from base-clk-frequency to clock-frequency Regards, Philipp Philipp Rossak (6): media: rc: update sunx

[PATCH v2 3/6] arm: dts: sun8i: a83t: Add the cir pin for the A83T

2017-12-18 Thread Philipp Rossak
The CIR Pin of the A83T is located at PL12. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index de5119a2a91c..feffca

[PATCH v2 4/6] arm: dts: sun8i: a83t: Add support for the cir interface

2017-12-18 Thread Philipp Rossak
The cir interface is like on the H3 located at 0x01f02000 and is exactly the same. This patch adds support for the ir interface on the A83T. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff

Re: [PATCH 1/5] media: rc: update sunxi-ir driver to get base clock frequency from devicetree

2017-12-18 Thread Philipp Rossak
Hey Andi, thanks for the feedback. I will fix that in the next version of this patch series! On 18.12.2017 03:44, Andi Shyti wrote: Hi Philipp, just a couple of small nitpicks. + u32 b_clk_freq; [...] + /* Base clock frequency (optional) */ + if

[PATCH v3 2/6] media: dt: bindings: Update binding documentation for sunxi IR controller

2017-12-19 Thread Philipp Rossak
This patch updates documentation for Device-Tree bindings for sunxi IR controller and adds the new optional property for the base clock frequency. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 3 +++ 1 file changed, 3 inse

[PATCH v3 6/6] arm: dts: sun8i: h3-h8: ir register size should be the whole memory block

2017-12-19 Thread Philipp Rossak
The size of the register should be the size of the whole memory block, not just the registers, that are needed. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/su

[PATCH v3 5/6] arm: dts: sun8i: a83t: bananapi-m3: Enable IR controller

2017-12-19 Thread Philipp Rossak
The Bananapi M3 has an onboard IR receiver. This enables the onboard IR receiver subnode. Unlike the other IR receivers this one needs a base clock frequency of 300 Hz (3 MHz), to be able to work. Signed-off-by: Philipp Rossak <embe...@gmail.com> Acked-by: Chen-Yu Tsai <w...

[PATCH v3 4/6] arm: dts: sun8i: a83t: Add support for the cir interface

2017-12-19 Thread Philipp Rossak
The cir interface is like on the H3 located at 0x01f02000 and is exactly the same. This patch adds support for the ir interface on the A83T. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff

[PATCH v3 3/6] arm: dts: sun8i: a83t: Add the cir pin for the A83T

2017-12-19 Thread Philipp Rossak
The CIR Pin of the A83T is located at PL12. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index de5119a2a91c..06e96d

[PATCH v3 0/6] arm: sunxi: IR support for A83T

2017-12-19 Thread Philipp Rossak
ency to clock-frequency Regards, Philipp Philipp Rossak (6): media: rc: update sunxi-ir driver to get base clock frequency from devicetree media: dt: bindings: Update binding documentation for sunxi IR controller arm: dts: sun8i: a83t: Add the cir pin for the A83T arm: dts: sun8i: a83t:

[PATCH v3 1/6] media: rc: update sunxi-ir driver to get base clock frequency from devicetree

2017-12-19 Thread Philipp Rossak
, than the default 8 MHz. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- drivers/media/rc/sunxi-cir.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index 97f367b446c4..f500cea228a9

Re: [RFC 1/5] [media] rc: update sunxi-ir driver to get base frequency from devicetree

2017-12-16 Thread Philipp Rossak
:49:10 +0100 Philipp Rossak <embe...@gmail.com> escreveu: Hi Phillip, This is not a full review of this patchset. I just want to point you that you should keep supporting existing DT files. This patch updates the sunxi-ir driver to set the ir base clock from devicetree. This is necc

[PATCH 0/5] arm: sunxi: IR support for A83T

2017-12-17 Thread Philipp Rossak
@vger.kernel.org/msg123359.html Philipp Rossak (5): media: rc: update sunxi-ir driver to get base clock frequency from devicetree media: dt: bindings: Update binding documentation for sunxi IR controller arm: dts: sun8i: a83t: Add the ir pin for the A83T arm: dts: sun8i: a83t: Add

[PATCH 5/5] arm: dts: sun8i: a83t: bananapi-m3: Enable IR controller

2017-12-17 Thread Philipp Rossak
The Bananapi M3 has an onboard IR receiver. This enables the onboard IR receiver subnode. Other than the other IR receivers this one needs a base clock frequency of 300 Hz (3 MHz), to be able to work. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t-ba

[PATCH 3/5] arm: dts: sun8i: a83t: Add the ir pin for the A83T

2017-12-17 Thread Philipp Rossak
The CIR Pin of the A83T is located at PL12. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index a384b766f3dc..954c23

[PATCH 2/5] media: dt: bindings: Update binding documentation for sunxi IR controller

2017-12-17 Thread Philipp Rossak
This patch updates documentation for Device-Tree bindings for sunxi IR controller and adds the new optional property for the base clock frequency. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- Documentation/devicetree/bindings/media/sunxi-ir.txt | 2 ++ 1 file changed, 2 inse

[PATCH 1/5] media: rc: update sunxi-ir driver to get base clock frequency from devicetree

2017-12-17 Thread Philipp Rossak
the default 8 MHz. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- drivers/media/rc/sunxi-cir.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/media/rc/sunxi-cir.c b/drivers/media/rc/sunxi-cir.c index 97f367b446c4..9bbe55a76860

[PATCH 4/5] arm: dts: sun8i: a83t: Add support for the ir interface

2017-12-17 Thread Philipp Rossak
The ir interface is like on the H3 located at 0x01f02000 and is exactly the same. This patch adds support for the ir interface on the A83T. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [PATCH v3 0/6] arm: sunxi: IR support for A83T

2018-01-09 Thread Philipp Rossak
On 05.01.2018 15:59, Maxime Ripard wrote: Hi, On Fri, Jan 05, 2018 at 12:02:53PM +, Sean Young wrote: On Tue, Dec 19, 2017 at 09:07:41AM +0100, Philipp Rossak wrote: This patch series adds support for the sunxi A83T ir module and enhances the sunxi-ir driver. Right now the base clock

[PATCH v5 6/6] arm: dts: sun8i: h3-h5: ir register size should be the whole memory block

2018-01-30 Thread Philipp Rossak
The size of the register should be the size of the whole memory block, not just the registers, that are needed. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/su

[PATCH v5 5/6] arm: dts: sun8i: a83t: bananapi-m3: Enable IR controller

2018-01-30 Thread Philipp Rossak
The Bananapi M3 has an onboard IR receiver. This enables the onboard IR receiver subnode. Unlike the other IR receivers this one needs a base clock frequency of 300 Hz (3 MHz), to be able to work. Signed-off-by: Philipp Rossak <embe...@gmail.com> Acked-by: Chen-Yu Tsai <w...

[PATCH v5 4/6] arm: dts: sun8i: a83t: Add support for the cir interface

2018-01-30 Thread Philipp Rossak
The cir interface is like on the H3 located at 0x01f02000 and is exactly the same. This patch adds support for the ir interface on the A83T. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 13 + 1 file changed, 13 insertions(+) diff

[PATCH v5 0/6] IR support for A83T

2018-01-30 Thread Philipp Rossak
to clock-frequency Regards, Philipp Philipp Rossak (6): media: rc: update sunxi-ir driver to get base clock frequency from devicetree media: dt: bindings: Update binding documentation for sunxi IR controller arm: dts: sun8i: a83t: Add the cir pin for the A83T arm: dts: sun8i: a83t: Add

[PATCH v5 2/6] media: dt: bindings: Update binding documentation for sunxi IR controller

2018-01-30 Thread Philipp Rossak
This patch updates documentation for Device-Tree bindings for sunxi IR controller and adds the new optional property for the base clock frequency. Signed-off-by: Philipp Rossak <embe...@gmail.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Reviewed-by: Rob Herring <

[PATCH v5 3/6] arm: dts: sun8i: a83t: Add the cir pin for the A83T

2018-01-30 Thread Philipp Rossak
The CIR Pin of the A83T is located at PL12. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 7f4955a5fab7..f7f78a

[PATCH v5 1/6] media: rc: update sunxi-ir driver to get base clock frequency from devicetree

2018-01-30 Thread Philipp Rossak
, than the default 8 MHz. Signed-off-by: Philipp Rossak <embe...@gmail.com> Reviewed-by: Andi Shyti <andi.sh...@samsung.com> Acked-by: Sean Young <s...@mess.org> --- drivers/media/rc/sunxi-cir.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git

[PATCH v4 1/6] media: rc: update sunxi-ir driver to get base clock frequency from devicetree

2018-01-29 Thread Philipp Rossak
, than the default 8 MHz. Signed-off-by: Philipp Rossak <embe...@gmail.com> Reviewed-by: Andi Shyti <andi.sh...@samsung.com> Acked-by: Sean Young <s...@mess.org> --- drivers/media/rc/sunxi-cir.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git

[PATCH v4 2/6] media: dt: bindings: Update binding documentation for sunxi IR controller

2018-01-29 Thread Philipp Rossak
This patch updates documentation for Device-Tree bindings for sunxi IR controller and adds the new optional property for the base clock frequency. Signed-off-by: Philipp Rossak <embe...@gmail.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Reviewed-by: Rob Herring <

[PATCH v4 3/6] arm: dts: sun8i: a83t: Add the cir pin for the A83T

2018-01-29 Thread Philipp Rossak
The CIR Pin of the A83T is located at PL12. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index de5119a2a91c..06e96d

[PATCH v4 4/6] arm: dts: sun8i: a83t: Add support for the cir interface

2018-01-29 Thread Philipp Rossak
The cir interface is like on the H3 located at 0x01f02000 and is exactly the same. This patch adds support for the ir interface on the A83T. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff

[PATCH v5 5/6] arm: dts: sun8i: a83t: bananapi-m3: Enable IR controller

2018-01-29 Thread Philipp Rossak
The Bananapi M3 has an onboard IR receiver. This enables the onboard IR receiver subnode. Unlike the other IR receivers this one needs a base clock frequency of 300 Hz (3 MHz), to be able to work. Signed-off-by: Philipp Rossak <embe...@gmail.com> Acked-by: Chen-Yu Tsai <w...

[PATCH v4 6/6] arm: dts: sun8i: h3-h8: ir register size should be the whole memory block

2018-01-29 Thread Philipp Rossak
The size of the register should be the size of the whole memory block, not just the registers, that are needed. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/su

[PATCH v4 0/6] arm: sunxi: IR support for A83T

2018-01-29 Thread Philipp Rossak
vailable in the dtb the driver uses the default base clock frequency. * the driver prints out the the selected base clock frequency. * changed devicetree property from base-clk-frequency to clock-frequency Regards, Philipp Philipp Rossak (6): media: rc: update sunxi-ir driver to get ba

Re: [PATCH v5 0/6] IR support for A83T

2018-02-12 Thread Philipp Rossak
On 30.01.2018 18:46, Philipp Rossak wrote: This patch series adds support for the sunxi A83T ir module and enhances the sunxi-ir driver. Right now the base clock frequency for the ir driver is a hard coded define and is set to 8 MHz. This works for the most common ir receivers. On the Sinovoip

[RESEND PATCH v5 0/6] IR support for A83T

2018-02-13 Thread Philipp Rossak
to clock-frequency Regards, Philipp Philipp Rossak (6): media: rc: update sunxi-ir driver to get base clock frequency from devicetree media: dt: bindings: Update binding documentation for sunxi IR controller arm: dts: sun8i: a83t: Add the cir pin for the A83T arm: dts: sun8i: a83t: Add

[RESEND PATCH v5 1/6] media: rc: update sunxi-ir driver to get base clock frequency from devicetree

2018-02-13 Thread Philipp Rossak
, than the default 8 MHz. Signed-off-by: Philipp Rossak <embe...@gmail.com> Reviewed-by: Andi Shyti <andi.sh...@samsung.com> Acked-by: Sean Young <s...@mess.org> --- drivers/media/rc/sunxi-cir.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git

[RESEND PATCH v5 3/6] arm: dts: sun8i: a83t: Add the cir pin for the A83T

2018-02-13 Thread Philipp Rossak
The CIR Pin of the A83T is located at PL12. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index 7f4955a5fab7..f7f78a

[RESEND PATCH v5 5/6] arm: dts: sun8i: a83t: bananapi-m3: Enable IR controller

2018-02-13 Thread Philipp Rossak
The Bananapi M3 has an onboard IR receiver. This enables the onboard IR receiver subnode. Unlike the other IR receivers this one needs a base clock frequency of 300 Hz (3 MHz), to be able to work. Signed-off-by: Philipp Rossak <embe...@gmail.com> Acked-by: Chen-Yu Tsai <w...

[RESEND PATCH v5 2/6] media: dt: bindings: Update binding documentation for sunxi IR controller

2018-02-13 Thread Philipp Rossak
This patch updates documentation for Device-Tree bindings for sunxi IR controller and adds the new optional property for the base clock frequency. Signed-off-by: Philipp Rossak <embe...@gmail.com> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> Reviewed-by: Rob Herring <

[RESEND PATCH v5 4/6] arm: dts: sun8i: a83t: Add support for the cir interface

2018-02-13 Thread Philipp Rossak
The cir interface is like on the H3 located at 0x01f02000 and is exactly the same. This patch adds support for the ir interface on the A83T. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 13 + 1 file changed, 13 insertions(+) diff

[RESEND PATCH v5 6/6] arm: dts: sun8i: h3-h5: ir register size should be the whole memory block

2018-02-13 Thread Philipp Rossak
The size of the register should be the size of the whole memory block, not just the registers, that are needed. Signed-off-by: Philipp Rossak <embe...@gmail.com> --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/su

Re: [RESEND PATCH v5 0/6] IR support for A83T

2018-03-02 Thread Philipp Rossak
On 13.02.2018 13:29, Philipp Rossak wrote: This patch series adds support for the sunxi A83T ir module and enhances the sunxi-ir driver. Right now the base clock frequency for the ir driver is a hard coded define and is set to 8 MHz. This works for the most common ir receivers. On the Sinovoip