* [PATCH 0/2] ARM: dts: sun8i: Add ir receiver nodes for H3 @ 2016-02-23 23:03 Hans de Goede 2016-02-23 23:03 ` [PATCH 1/2] ARM: dts: sun8i: Add ir receiver nodes to H3 dtsi Hans de Goede 2016-02-23 23:03 ` [PATCH 2/2] ARM: dts: sun8i: Enable ir receiver on orangepi pc Hans de Goede 0 siblings, 2 replies; 6+ messages in thread From: Hans de Goede @ 2016-02-23 23:03 UTC (permalink / raw) To: linux-arm-kernel Hi All, Here is a set of patches for H3 ir receiver support, tested on an orangepi pc. This series applies on top of the R_PIO series for H3. Regards, Hans ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] ARM: dts: sun8i: Add ir receiver nodes to H3 dtsi 2016-02-23 23:03 [PATCH 0/2] ARM: dts: sun8i: Add ir receiver nodes for H3 Hans de Goede @ 2016-02-23 23:03 ` Hans de Goede 2016-02-25 19:38 ` Maxime Ripard 2016-02-23 23:03 ` [PATCH 2/2] ARM: dts: sun8i: Enable ir receiver on orangepi pc Hans de Goede 1 sibling, 1 reply; 6+ messages in thread From: Hans de Goede @ 2016-02-23 23:03 UTC (permalink / raw) To: linux-arm-kernel The H3 ir receiver is completely compatible with the one found in the A31. Signed-off-by: Hans de Goede <hdegoede@redhat.com> --- arch/arm/boot/dts/sun8i-h3.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index 3fdf213..c2f63c5 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts/sun8i-h3.dtsi @@ -307,6 +307,14 @@ clock-indices = <0>, <1>; clock-output-names = "apb0_pio", "apb0_ir"; }; + + ir_clk: ir_clk at 01f01454 { + compatible = "allwinner,sun4i-a10-mod0-clk"; + reg = <0x01f01454 0x4>; + #clock-cells = <0>; + clocks = <&osc32k>, <&osc24M>; + clock-output-names = "ir"; + }; }; soc { @@ -632,6 +640,16 @@ #reset-cells = <1>; }; + ir: ir at 01f02000 { + compatible = "allwinner,sun5i-a13-ir"; + clocks = <&apb0_gates 1>, <&ir_clk>; + clock-names = "apb", "ir"; + resets = <&apb0_reset 1>; + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; + reg = <0x01f02000 0x40>; + status = "disabled"; + }; + r_pio: pinctrl at 01f02c00 { compatible = "allwinner,sun8i-h3-r-pinctrl"; reg = <0x01f02c00 0x400>; @@ -642,6 +660,13 @@ #gpio-cells = <3>; interrupt-controller; #interrupt-cells = <3>; + + ir_pins_a: ir at 0 { + allwinner,pins = "PL11"; + allwinner,function = "s_cir_rx"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; }; }; }; -- 2.7.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 1/2] ARM: dts: sun8i: Add ir receiver nodes to H3 dtsi 2016-02-23 23:03 ` [PATCH 1/2] ARM: dts: sun8i: Add ir receiver nodes to H3 dtsi Hans de Goede @ 2016-02-25 19:38 ` Maxime Ripard 0 siblings, 0 replies; 6+ messages in thread From: Maxime Ripard @ 2016-02-25 19:38 UTC (permalink / raw) To: linux-arm-kernel On Wed, Feb 24, 2016 at 12:03:16AM +0100, Hans de Goede wrote: > The H3 ir receiver is completely compatible with the one found in the A31. > > Signed-off-by: Hans de Goede <hdegoede@redhat.com> Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160225/230266bd/attachment.sig> ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] ARM: dts: sun8i: Enable ir receiver on orangepi pc 2016-02-23 23:03 [PATCH 0/2] ARM: dts: sun8i: Add ir receiver nodes for H3 Hans de Goede 2016-02-23 23:03 ` [PATCH 1/2] ARM: dts: sun8i: Add ir receiver nodes to H3 dtsi Hans de Goede @ 2016-02-23 23:03 ` Hans de Goede 2016-02-24 12:16 ` [linux-sunxi] " Krzysztof Adamski 1 sibling, 1 reply; 6+ messages in thread From: Hans de Goede @ 2016-02-23 23:03 UTC (permalink / raw) To: linux-arm-kernel Enable the ir receiver found on the orangepi pc board. Signed-off-by: Hans de Goede <hdegoede@redhat.com> --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts index 4b25dcc..dc73b2a 100644 --- a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts @@ -72,6 +72,12 @@ status = "okay"; }; +&ir { + pinctrl-names = "default"; + pinctrl-0 = <&ir_pins_a>; + status = "okay"; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>; -- 2.7.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [linux-sunxi] [PATCH 2/2] ARM: dts: sun8i: Enable ir receiver on orangepi pc 2016-02-23 23:03 ` [PATCH 2/2] ARM: dts: sun8i: Enable ir receiver on orangepi pc Hans de Goede @ 2016-02-24 12:16 ` Krzysztof Adamski 2016-02-24 13:26 ` Hans de Goede 0 siblings, 1 reply; 6+ messages in thread From: Krzysztof Adamski @ 2016-02-24 12:16 UTC (permalink / raw) To: linux-arm-kernel On Wed, Feb 24, 2016 at 12:03:17AM +0100, Hans de Goede wrote: >Enable the ir receiver found on the orangepi pc board. > >Signed-off-by: Hans de Goede <hdegoede@redhat.com> >--- > arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts I don't think this file is avaiable in mainline. Wouldn't it be better to use patch against existing orangepi-plus dts file? Otherwise I tested this patch and it works fine on my Orangepi PC (some data is splitted out when reading /dev/input/event0). Best regards, Krzysztof Adamski ^ permalink raw reply [flat|nested] 6+ messages in thread
* [linux-sunxi] [PATCH 2/2] ARM: dts: sun8i: Enable ir receiver on orangepi pc 2016-02-24 12:16 ` [linux-sunxi] " Krzysztof Adamski @ 2016-02-24 13:26 ` Hans de Goede 0 siblings, 0 replies; 6+ messages in thread From: Hans de Goede @ 2016-02-24 13:26 UTC (permalink / raw) To: linux-arm-kernel Hi, On 24-02-16 13:16, Krzysztof Adamski wrote: > On Wed, Feb 24, 2016 at 12:03:17AM +0100, Hans de Goede wrote: >> Enable the ir receiver found on the orangepi pc board. >> >> Signed-off-by: Hans de Goede <hdegoede@redhat.com> >> --- >> arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts > > I don't think this file is avaiable in mainline. Wouldn't it be better to use patch against existing orangepi-plus dts file? > > Otherwise I tested this patch and it works fine on my Orangepi PC (some data is splitted out when reading /dev/input/event0). Ah yes, that is my bad, I've been waiting with upstreaming an orangepi-pc dts until all the usb bits are upstream as my dts has usb host support enabled, I should probably split out the usb-host support and upstream the rest already. Regards, Hans ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-02-25 19:38 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-02-23 23:03 [PATCH 0/2] ARM: dts: sun8i: Add ir receiver nodes for H3 Hans de Goede 2016-02-23 23:03 ` [PATCH 1/2] ARM: dts: sun8i: Add ir receiver nodes to H3 dtsi Hans de Goede 2016-02-25 19:38 ` Maxime Ripard 2016-02-23 23:03 ` [PATCH 2/2] ARM: dts: sun8i: Enable ir receiver on orangepi pc Hans de Goede 2016-02-24 12:16 ` [linux-sunxi] " Krzysztof Adamski 2016-02-24 13:26 ` Hans de Goede
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).