From: Nick Date: Tue, 4 Jun 2019 01:51:54 +0000 (+0800) Subject: arm64: dts: VIM1/VIM2: add remote support X-Git-Tag: khadas-vims-v0.9.6-release~615 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97b24ff295359ae402c10bc4e0710d877eb7f5dc;p=platform%2Fkernel%2Flinux-amlogic.git arm64: dts: VIM1/VIM2: add remote support --- diff --git a/arch/arm64/boot/dts/amlogic/mesongxl.dtsi b/arch/arm64/boot/dts/amlogic/mesongxl.dtsi index bad3e044..0e79063 100644 --- a/arch/arm64/boot/dts/amlogic/mesongxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesongxl.dtsi @@ -1222,147 +1222,92 @@ }; custom_maps:custom_maps { - mapnum = <3>; + mapnum = <2>; map0 = <&map_0>; map1 = <&map_1>; - map2 = <&map_2>; map_0: map_0{ - mapname = "amlogic-remote-1"; - customcode = <0xfb04>; + mapname = "khadas-ir"; + customcode = <0xff00>; release_delay = <80>; - size = <50>; /*keymap size*/ - keymap = ; + fn_key_scancode = <0x5c>; + fn_key_scancode_other = <0x5b>; + cursor_left_scancode = <0x0e>; + cursor_right_scancode = <0x1a>; + cursor_up_scancode = <0x03>; + cursor_down_scancode = <0x02>; + cursor_ok_scancode = <0x07>; + size = <13>; + keymap = ; }; + map_1: map_1{ - mapname = "amlogic-remote-2"; + mapname = "dvb-ir"; customcode = <0xfe01>; release_delay = <80>; - size = <53>; - keymap = ; - }; - map_2: map_2{ - mapname = "amlogic-remote-3"; - customcode = <0xbd02>; - release_delay = <80>; - size = <17>; - keymap = ; + fn_key_scancode = <0x0d>; + cursor_left_scancode = <0x54>; + cursor_right_scancode = <0x15>; + cursor_up_scancode = <0x59>; + cursor_down_scancode = <0x51>; + cursor_ok_scancode = <0x55>; + size = <45>; + keymap = ; }; }; aml_reboot{ diff --git a/arch/arm64/boot/dts/amlogic/mesongxm.dtsi b/arch/arm64/boot/dts/amlogic/mesongxm.dtsi index 92bd78b..d2355f3 100644 --- a/arch/arm64/boot/dts/amlogic/mesongxm.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesongxm.dtsi @@ -1300,141 +1300,92 @@ }; custom_maps:custom_maps { - mapnum = <3>; + mapnum = <2>; map0 = <&map_0>; map1 = <&map_1>; - map2 = <&map_2>; map_0: map_0{ - mapname = "amlogic-remote-1"; - customcode = <0xfb04>; + mapname = "khadas-ir"; + customcode = <0xff00>; release_delay = <80>; - size = <44>; /*keymap size*/ - keymap = ; + fn_key_scancode = <0x5c>; + fn_key_scancode_other = <0x5b>; + cursor_left_scancode = <0x0e>; + cursor_right_scancode = <0x1a>; + cursor_up_scancode = <0x03>; + cursor_down_scancode = <0x02>; + cursor_ok_scancode = <0x07>; + size = <13>; + keymap = ; }; + map_1: map_1{ - mapname = "amlogic-remote-2"; + mapname = "dvb-ir"; customcode = <0xfe01>; release_delay = <80>; - size = <53>; - keymap = ; - }; - map_2: map_2{ - mapname = "amlogic-remote-3"; - customcode = <0xbd02>; - release_delay = <80>; - size = <17>; - keymap = ; + fn_key_scancode = <0x0d>; + cursor_left_scancode = <0x54>; + cursor_right_scancode = <0x15>; + cursor_up_scancode = <0x59>; + cursor_down_scancode = <0x51>; + cursor_ok_scancode = <0x55>; + size = <45>; + keymap = ; }; }; aml_reboot{