]> www.infradead.org Git - linux.git/commitdiff
arm64: dts: meson: add IR controller for Meson-S4 SoC
authorZelong Dong <zelong.dong@amlogic.com>
Fri, 25 Aug 2023 11:53:10 +0000 (19:53 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 11 Sep 2023 09:42:52 +0000 (11:42 +0200)
Add the IR controller device of Meson-S4 SoC family.

Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20230825115310.39993-4-zelong.dong@amlogic.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts
arch/arm64/boot/dts/amlogic/meson-s4.dtsi

index 8ffbcb2b1ac594f0d47470406f192cf7c0cbb435..c1f322c7398261b5d7aa47310d31c0786139f16e 100644 (file)
@@ -28,3 +28,9 @@
 &uart_B {
        status = "okay";
 };
+
+&ir {
+       status = "okay";
+       pinctrl-0 = <&remote_pins>;
+       pinctrl-names = "default";
+};
index f24460186d3d828bc333f95c231c5be622bc8a0e..5a3abcc08ee5fe01a4adca77837295e7423aee78 100644 (file)
                                        #gpio-cells = <2>;
                                        gpio-ranges = <&periphs_pinctrl 0 0 82>;
                                };
+
+                               remote_pins: remote-pin {
+                                       mux {
+                                               groups = "remote_in";
+                                               function = "remote_in";
+                                               bias-disable;
+                                       };
+                               };
                        };
 
                        gpio_intc: interrupt-controller@4080 {
                                reg = <0x0 0x2000 0x0 0x98>;
                                #reset-cells = <1>;
                        };
+
+                       ir: ir@84040 {
+                               compatible = "amlogic,meson-s4-ir";
+                               reg = <0x0 0x84040 0x0 0x30>;
+                               interrupts = <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
+                               status = "disabled";
+                       };
                };
        };
 };