ARM: dts: sun8i: r40: Add IR nodes
authorJernej Skrabec <jernej.skrabec@siol.net>
Tue, 25 Aug 2020 17:13:57 +0000 (19:13 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 27 Aug 2020 15:12:38 +0000 (17:12 +0200)
Allwinner R40 has two IR cores, add nodes for them.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20200825171358.1286902-3-jernej.skrabec@siol.net
arch/arm/boot/dts/sun8i-r40.dtsi

index d481fe7..dff9a3d 100644 (file)
                                function = "i2c4";
                        };
 
+                       ir0_pins: ir0-pins {
+                               pins = "PB4";
+                               function = "ir0";
+                       };
+
+                       ir1_pins: ir1-pins {
+                               pins = "PB23";
+                               function = "ir1";
+                       };
+
                        mmc0_pins: mmc0-pins {
                                pins = "PF0", "PF1", "PF2",
                                       "PF3", "PF4", "PF5";
                        clocks = <&osc24M>;
                };
 
+               ir0: ir@1c21800 {
+                       compatible = "allwinner,sun8i-r40-ir",
+                                    "allwinner,sun6i-a31-ir";
+                       reg = <0x01c21800 0x400>;
+                       pinctrl-0 = <&ir0_pins>;
+                       pinctrl-names = "default";
+                       clocks = <&ccu CLK_BUS_IR0>, <&ccu CLK_IR0>;
+                       clock-names = "apb", "ir";
+                       interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&ccu RST_BUS_IR0>;
+                       status = "disabled";
+               };
+
+               ir1: ir@1c21c00 {
+                       compatible = "allwinner,sun8i-r40-ir",
+                                    "allwinner,sun6i-a31-ir";
+                       reg = <0x01c21c00 0x400>;
+                       pinctrl-0 = <&ir1_pins>;
+                       pinctrl-names = "default";
+                       clocks = <&ccu CLK_BUS_IR1>, <&ccu CLK_IR1>;
+                       clock-names = "apb", "ir";
+                       interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&ccu RST_BUS_IR1>;
+                       status = "disabled";
+               };
+
                ths: thermal-sensor@1c24c00 {
                        compatible = "allwinner,sun8i-r40-ths";
                        reg = <0x01c24c00 0x100>;