ARM: STi: STIH415: Add IR support.
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>
Mon, 11 Nov 2013 13:19:18 +0000 (13:19 +0000)
committerSrinivas Kandagatla <srinivas.kandagatla@st.com>
Tue, 11 Mar 2014 10:04:27 +0000 (10:04 +0000)
This patch adds IRB support to STiH415 platforms.

Tested on B2000 and B2020 development boards.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
arch/arm/boot/dts/stih415-pinctrl.dtsi
arch/arm/boot/dts/stih415.dtsi

index 9ca20aafba241ade3ab462f952f0f547397849c9..f09fb10a3791a7e4fc238f4e47548fc7f86da705 100644 (file)
                                };
                        };
 
+                       rc{
+                               pinctrl_ir: ir0 {
+                                       st,pins {
+                                               ir = <&PIO4 0 ALT2 IN>;
+                                       };
+                               };
+                       };
+
                        gmac1 {
                                pinctrl_mii1: mii1 {
                                                st,pins {
index cc9b22bc747218af89931b20df7396818d8e8a7a..d89064c20c8a43ed3bdfd5e934526f72c5da5a54 100644 (file)
                        clock-names     = "stmmaceth";
                        clocks          = <&CLKS_ETH1_PHY>;
                };
+
+               rc: rc@fe518000 {
+                       compatible      = "st,comms-irb";
+                       reg             = <0xfe518000 0x234>;
+                       interrupts      =  <0 203 0>;
+                       clocks          = <&CLK_SYSIN>;
+                       rx-mode         = "infrared";
+                       pinctrl-names   = "default";
+                       pinctrl-0       = <&pinctrl_ir>;
+                       resets          = <&softreset STIH415_IRB_SOFTRESET>;
+               };
        };
 };