Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1280580

[PATCH 4/7] ARM: dts: sun9i: Add consumer IR receiver device node and pinmux settings

From Chen-Yu Tsai <wens@csie.org>
Newsgroups linux.kernel
Subject [PATCH 4/7] ARM: dts: sun9i: Add consumer IR receiver device node and pinmux settings
Date 2015-12-01 06:50 +0100
Message-ID <qALZ7-5tj-9@gated-at.bofh.it> (permalink)
References <qALZ7-5tj-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The Allwinner A80 SoC has a consumer IR receiver, which is the same as
older SoCs.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
 arch/arm/boot/dts/sun9i-a80.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi
index d02ee5d520e2..80777a33ee78 100644
--- a/arch/arm/boot/dts/sun9i-a80.dtsi
+++ b/arch/arm/boot/dts/sun9i-a80.dtsi
@@ -858,6 +858,18 @@
 			#reset-cells = <1>;
 		};
 
+		r_ir: ir@08002000 {
+			compatible = "allwinner,sun5i-a13-ir";
+			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
+			pinctrl-names = "default";
+			pinctrl-0 = <&r_ir_pins>;
+			clocks = <&apbs_gates 1>, <&r_ir_clk>;
+			clock-names = "apb", "ir";
+			resets = <&apbs_rst 1>;
+			reg = <0x08002000 0x40>;
+			status = "disabled";
+		};
+
 		r_uart: serial@08002800 {
 			compatible = "snps,dw-apb-uart";
 			reg = <0x08002800 0x400>;
@@ -881,6 +893,13 @@
 			#address-cells = <1>;
 			#size-cells = <0>;
 			#gpio-cells = <3>;
+
+			r_ir_pins: r_ir {
+				allwinner,pins = "PL6";
+				allwinner,function = "s_cir_rx";
+				allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+				allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+			};
 		};
 	};
 };
-- 
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/7] ARM: sun9i: R_PIO, IR receiver and RSB support Chen-Yu Tsai <wens@csie.org> - 2015-12-01 06:50 +0100
  [PATCH 5/7] ARM: dts: sun9i: optimus: Enable consumer IR receiver Chen-Yu Tsai <wens@csie.org> - 2015-12-01 06:50 +0100
    Re: [PATCH 5/7] ARM: dts: sun9i: optimus: Enable consumer IR receiver Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-12-01 14:20 +0100
  [PATCH 4/7] ARM: dts: sun9i: Add consumer IR receiver device node and pinmux settings Chen-Yu Tsai <wens@csie.org> - 2015-12-01 06:50 +0100
    Re: [PATCH 4/7] ARM: dts: sun9i: Add consumer IR receiver device  node and pinmux settings Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-12-01 14:10 +0100
  [PATCH 7/7] ARM: dts: sun9i: optimus: Enable Reduced Serial Bus controller Chen-Yu Tsai <wens@csie.org> - 2015-12-01 06:50 +0100
    Re: [PATCH 7/7] ARM: dts: sun9i: optimus: Enable Reduced Serial Bus  controller Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-12-01 14:20 +0100
  [PATCH 6/7] ARM: dts: sun9i: Add Reduced Serial Bus controller device node to A80 dtsi Chen-Yu Tsai <wens@csie.org> - 2015-12-01 06:50 +0100
    Re: [PATCH 6/7] ARM: dts: sun9i: Add Reduced Serial Bus controller  device node to A80 dtsi Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-12-01 14:20 +0100
  [PATCH 2/7] ARM: dts: sun9i: Add A80 R_PIO pin controller device node Chen-Yu Tsai <wens@csie.org> - 2015-12-01 06:50 +0100
    Re: [PATCH 2/7] ARM: dts: sun9i: Add A80 R_PIO pin controller device  node Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-12-01 14:10 +0100
  [PATCH 1/7] pinctrl: sunxi: Add A80 special pin controller Chen-Yu Tsai <wens@csie.org> - 2015-12-01 06:50 +0100
    Re: [PATCH 1/7] pinctrl: sunxi: Add A80 special pin controller Rob Herring <robh@kernel.org> - 2015-12-04 15:40 +0100
  [PATCH 3/7] ARM: dts: sun9i: optimus: Enable LED3 Chen-Yu Tsai <wens@csie.org> - 2015-12-01 07:00 +0100
    Re: [PATCH 3/7] ARM: dts: sun9i: optimus: Enable LED3 Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-12-01 14:10 +0100

csiph-web