]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sun8i: Add ir receiver nodes to H3 dtsi
authorHans de Goede <hdegoede@redhat.com>
Tue, 23 Feb 2016 23:03:16 +0000 (00:03 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 25 Feb 2016 19:38:42 +0000 (11:38 -0800)
The H3 ir receiver is completely compatible with the one found in the A31.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun8i-h3.dtsi

index c3b73d7f074d686fbf918cc47ecb59190abe270e..dadb7f60c06237054a22e9ec247a0d05126f75f6 100644 (file)
@@ -295,6 +295,14 @@ apb0_gates: clk@01f01428 {
                        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 {
@@ -519,6 +527,16 @@ apb0_reset: reset@01f014b0 {
                        #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>;
@@ -529,6 +547,13 @@ r_pio: pinctrl@01f02c00 {
                        #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>;
+                       };
                };
        };
 };