summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@st.com>2013-11-11 13:20:44 +0000
committerSrinivas Kandagatla <srinivas.kandagatla@st.com>2014-03-11 10:04:38 +0000
commite063735f9155826ee96a9bbc5407a1ead192f295 (patch)
tree00b8f93c46efc0622a4c8d3673796d6dc2671560
parent8ccd3f3acfd8903fbc6540f81d16da1b42d156cc (diff)
downloadop-kernel-dev-e063735f9155826ee96a9bbc5407a1ead192f295.zip
op-kernel-dev-e063735f9155826ee96a9bbc5407a1ead192f295.tar.gz
ARM: STi: STIH416: Add IR support.
This patch adds IRB support to STiH416 platforms. Tested on B2000 and B2020 development board Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
-rw-r--r--arch/arm/boot/dts/stih416-pinctrl.dtsi7
-rw-r--r--arch/arm/boot/dts/stih416.dtsi12
2 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stih416-pinctrl.dtsi b/arch/arm/boot/dts/stih416-pinctrl.dtsi
index 77b7725..e7f8b5f 100644
--- a/arch/arm/boot/dts/stih416-pinctrl.dtsi
+++ b/arch/arm/boot/dts/stih416-pinctrl.dtsi
@@ -106,6 +106,13 @@
st,retime-pin-mask = <0x7f>;
};
+ rc{
+ pinctrl_ir: ir0 {
+ st,pins {
+ ir = <&PIO4 0 ALT2 IN>;
+ };
+ };
+ };
sbc_serial1 {
pinctrl_sbc_serial1: sbc_serial1 {
st,pins {
diff --git a/arch/arm/boot/dts/stih416.dtsi b/arch/arm/boot/dts/stih416.dtsi
index a96055b..8299a7b 100644
--- a/arch/arm/boot/dts/stih416.dtsi
+++ b/arch/arm/boot/dts/stih416.dtsi
@@ -200,5 +200,17 @@
clock-names = "stmmaceth";
clocks = <&CLK_S_ETH1_PHY>;
};
+
+ rc: rc@fe518000 {
+ compatible = "st,comms-irb";
+ reg = <0xfe518000 0x234>;
+ interrupts = <0 203 0>;
+ rx-mode = "infrared";
+ clocks = <&CLK_SYSIN>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ir>;
+ resets = <&softreset STIH416_IRB_SOFTRESET>;
+ };
+
};
};
OpenPOWER on IntegriCloud