From 656e4b6eba71dfecc55c794591a3385199fd4634 Mon Sep 17 00:00:00 2001 From: Zan Peng Date: Mon, 5 Jun 2017 20:37:57 +0800 Subject: [PATCH] dtsi: axg: add remote config PD#142470: dtsi: axg add remote config Change-Id: Idb10aea3385d5f48f89fe0dd9fa8c76d4bb49fac Signed-off-by: Zan Peng --- arch/arm64/boot/dts/amlogic/mesonaxg.dtsi | 161 ++++++++++++++++++++++ 1 file changed, 161 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/mesonaxg.dtsi b/arch/arm64/boot/dts/amlogic/mesonaxg.dtsi index 1e0949f240b9..eff5aaf0f113 100644 --- a/arch/arm64/boot/dts/amlogic/mesonaxg.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesonaxg.dtsi @@ -22,6 +22,8 @@ #include #include #include +#include +#include / { cpus:cpus { @@ -402,6 +404,165 @@ ssctl = <0>; }; + remote:rc@0xff808040 { + compatible = "amlogic, aml_remote"; + dev_name = "meson-remote"; + reg = <0x0 0xff808040 0x00 0x44>, /*Multi-format IR controller*/ + <0x0 0xff808000 0x00 0x20>; /*Legacy IR controller*/ + status = "okay"; + protocol = ; + interrupts = <0 196 1>; + pinctrl-names = "default"; + pinctrl-0 = <&remote_pins>; + map = <&custom_maps>; + max_frame_time = <200>; /*set software decoder max frame time*/ + }; + + custom_maps:custom_maps { + mapnum = <3>; + map0 = <&map_0>; + map1 = <&map_1>; + map2 = <&map_2>; + map_0: map_0{ + mapname = "amlogic-remote-1"; + customcode = <0xfb04>; + release_delay = <80>; + size = <50>; /*keymap size*/ + keymap = ; + }; + map_1: map_1{ + mapname = "amlogic-remote-2"; + customcode = <0xfe01>; + release_delay = <80>; + size = <53>; + keymap = ; + }; + map_2: map_2{ + mapname = "amlogic-remote-3"; + customcode = <0xbd02>; + release_delay = <80>; + size = <17>; + keymap = ; + }; + }; + i2c_ao: i2c@ff805000{ /*I2C-AO*/ compatible = "amlogic, meson-i2c"; dev_name = "i2c-AO";