* [PATCH 0/2] ARM: dts: sun8i: Add ir receiver nodes for H3 @ 2016-02-23 23:03 Hans de Goede [not found] ` <1456268597-13692-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Hans de Goede @ 2016-02-23 23:03 UTC (permalink / raw) To: Maxime Ripard Cc: Jelle van der Waa, Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw 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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <1456268597-13692-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* [PATCH 1/2] ARM: dts: sun8i: Add ir receiver nodes to H3 dtsi [not found] ` <1456268597-13692-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2016-02-23 23:03 ` Hans de Goede [not found] ` <1456268597-13692-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 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: Maxime Ripard Cc: Jelle van der Waa, Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Hans de Goede The H3 ir receiver is completely compatible with the one found in the A31. Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> --- 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@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@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@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@0 { + allwinner,pins = "PL11"; + allwinner,function = "s_cir_rx"; + allwinner,drive = <SUN4I_PINCTRL_10_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; }; }; }; -- 2.7.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 6+ messages in thread
[parent not found: <1456268597-13692-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH 1/2] ARM: dts: sun8i: Add ir receiver nodes to H3 dtsi [not found] ` <1456268597-13692-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 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: Hans de Goede Cc: Jelle van der Waa, Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 370 bytes --] 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-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] ARM: dts: sun8i: Enable ir receiver on orangepi pc [not found] ` <1456268597-13692-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 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 [not found] ` <1456268597-13692-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 1 sibling, 1 reply; 6+ messages in thread From: Hans de Goede @ 2016-02-23 23:03 UTC (permalink / raw) To: Maxime Ripard Cc: Jelle van der Waa, Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Hans de Goede Enable the ir receiver found on the orangepi pc board. Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> --- 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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 6+ messages in thread
[parent not found: <1456268597-13692-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH 2/2] ARM: dts: sun8i: Enable ir receiver on orangepi pc [not found] ` <1456268597-13692-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2016-02-24 12:16 ` Krzysztof Adamski [not found] ` <20160224121640.GA25658-xLeyfSbClftGit24Ens98Q@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Krzysztof Adamski @ 2016-02-24 12:16 UTC (permalink / raw) To: Hans de Goede Cc: Maxime Ripard, Jelle van der Waa, Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw 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-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> >--- > 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
[parent not found: <20160224121640.GA25658-xLeyfSbClftGit24Ens98Q@public.gmane.org>]
* Re: [linux-sunxi] [PATCH 2/2] ARM: dts: sun8i: Enable ir receiver on orangepi pc [not found] ` <20160224121640.GA25658-xLeyfSbClftGit24Ens98Q@public.gmane.org> @ 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: Krzysztof Adamski Cc: Maxime Ripard, Jelle van der Waa, Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw 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-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> >> --- >> 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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ 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 [not found] ` <1456268597-13692-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2016-02-23 23:03 ` [PATCH 1/2] ARM: dts: sun8i: Add ir receiver nodes to H3 dtsi Hans de Goede [not found] ` <1456268597-13692-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 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 [not found] ` <1456268597-13692-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2016-02-24 12:16 ` Krzysztof Adamski [not found] ` <20160224121640.GA25658-xLeyfSbClftGit24Ens98Q@public.gmane.org> 2016-02-24 13:26 ` [linux-sunxi] " 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).