aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/patches-3.14/282-dt-sun7i-add-ir-ctrlers.patch
diff options
context:
space:
mode:
authorZoltan Herpai <wigyori@uid0.hu>2014-09-21 16:25:45 +0000
committerZoltan Herpai <wigyori@uid0.hu>2014-09-21 16:25:45 +0000
commite6d53c13662bb717b36f274df8a65397b18cf42f (patch)
treef1b9b0d517092323791ca530ff90301641691205 /target/linux/sunxi/patches-3.14/282-dt-sun7i-add-ir-ctrlers.patch
parente02dd2f19c3d99e20fc3ed063f706d023004f3cf (diff)
downloadupstream-e6d53c13662bb717b36f274df8a65397b18cf42f.tar.gz
upstream-e6d53c13662bb717b36f274df8a65397b18cf42f.tar.bz2
upstream-e6d53c13662bb717b36f274df8a65397b18cf42f.zip
sunxi: add support for infra receiver on A20, along with IR-related backports from 3.15
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 42630
Diffstat (limited to 'target/linux/sunxi/patches-3.14/282-dt-sun7i-add-ir-ctrlers.patch')
-rw-r--r--target/linux/sunxi/patches-3.14/282-dt-sun7i-add-ir-ctrlers.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-3.14/282-dt-sun7i-add-ir-ctrlers.patch b/target/linux/sunxi/patches-3.14/282-dt-sun7i-add-ir-ctrlers.patch
new file mode 100644
index 0000000000..4a544cd695
--- /dev/null
+++ b/target/linux/sunxi/patches-3.14/282-dt-sun7i-add-ir-ctrlers.patch
@@ -0,0 +1,42 @@
+From 0af3258f87d590864187b0187c7aa7428801ef80 Mon Sep 17 00:00:00 2001
+From: Alexander Bersenev <bay@hackerdom.ru>
+Date: Mon, 9 Jun 2014 00:08:12 +0600
+Subject: [PATCH] ARM: sunxi: Add IR controllers on A20 to dtsi
+
+This patch adds records for two IR controllers on A20
+
+Signed-off-by: Alexander Bersenev <bay@hackerdom.ru>
+Signed-off-by: Alexsey Shestacov <wingrime@linux-sunxi.org>
+---
+ arch/arm/boot/dts/sun7i-a20.dtsi | 18 ++++++++++++++++++
+ 1 file changed, 18 insertions(+)
+
+diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
+index 4e4d6ce..3050369 100644
+--- a/arch/arm/boot/dts/sun7i-a20.dtsi
++++ b/arch/arm/boot/dts/sun7i-a20.dtsi
+@@ -784,6 +784,24 @@
+ #pwm-cells = <3>;
+ };
+
++ ir0: ir@01c21800 {
++ compatible = "allwinner,sun7i-a20-ir";
++ clocks = <&apb0_gates 6>, <&ir0_clk>;
++ clock-names = "apb", "ir";
++ interrupts = <0 5 4>;
++ reg = <0x01c21800 0x40>;
++ status = "disabled";
++ };
++
++ ir1: ir@01c21c00 {
++ compatible = "allwinner,sun7i-a20-ir";
++ clocks = <&apb0_gates 7>, <&ir1_clk>;
++ clock-names = "apb", "ir";
++ interrupts = <0 6 4>;
++ reg = <0x01c21c00 0x40>;
++ status = "disabled";
++ };
++
+ lradc: lradc@01c22800 {
+ compatible = "allwinner,sun4i-lradc-keys";
+ reg = <0x01c22800 0x100>;