OSDN Git Service

ARM64: dts: meson-axg: enable IR controller
authorYixun Lan <yixun.lan@amlogic.com>
Fri, 15 Dec 2017 14:59:06 +0000 (22:59 +0800)
committerKevin Hilman <khilman@baylibre.com>
Fri, 5 Jan 2018 23:27:31 +0000 (15:27 -0800)
Enable IR remote controller which found in Amlogic's Meson-AXG SoCs.

Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
arch/arm64/boot/dts/amlogic/meson-axg.dtsi

index 70eca1f..e85fb66 100644 (file)
@@ -20,3 +20,9 @@
 &uart_AO {
        status = "okay";
 };
+
+&ir {
+       status = "okay";
+       pinctrl-0 = <&remote_input_ao_pins>;
+       pinctrl-names = "default";
+};
index e2b8a9c..1c4f1aa 100644 (file)
                                        #gpio-cells = <2>;
                                        gpio-ranges = <&pinctrl_aobus 0 0 15>;
                                };
+
+                               remote_input_ao_pins: remote_input_ao {
+                                       mux {
+                                               groups = "remote_input_ao";
+                                               function = "remote_input_ao";
+                                       };
+                               };
                        };
 
                        pwm_AO_ab: pwm@7000 {
                                clock-names = "xtal", "pclk", "baud";
                                status = "disabled";
                        };
+
+                       ir: ir@8000 {
+                               compatible = "amlogic,meson-gxbb-ir";
+                               reg = <0x0 0x8000 0x0 0x20>;
+                               interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
+                               status = "disabled";
+                       };
                };
        };
 };