From: Yu Tu Date: Fri, 2 Feb 2018 04:23:57 +0000 (+0800) Subject: remote in: add remote dtsi config for G12A X-Git-Tag: khadas-vims-v0.9.6-release~2494 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14d9ad563de6fe4099a67ee1b97d7ebfcd98579d;p=platform%2Fkernel%2Flinux-amlogic.git remote in: add remote dtsi config for G12A PD#156734: remote in: add remote dtsi config for G12A Change-Id: Ia38c95bf8b16be9bafad396fc681405c98d6bc35 Signed-off-by: Yu Tu --- diff --git a/arch/arm64/boot/dts/amlogic/mesong12a.dtsi b/arch/arm64/boot/dts/amlogic/mesong12a.dtsi index 8706294..b9c3b81 100644 --- a/arch/arm64/boot/dts/amlogic/mesong12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesong12a.dtsi @@ -524,6 +524,165 @@ }; /* end of soc*/ + 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 = ; + }; + }; + };/* end of / */ &pinctrl_aobus { @@ -651,3 +810,19 @@ }; }; }; + +&pinctrl_aobus { + remote_pins:remote_pin { + mux { + groups = "remote_input_ao"; + function = "remote_input_ao"; + }; + }; + + irblaster_pins:irblaster_pin { + mux { + groups = "remote_out_ao"; + function = "remote_out_ao"; + }; + }; +}; /* end of pinctrl_aobus */