Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753142AbdLDFi6 (ORCPT ); Mon, 4 Dec 2017 00:38:58 -0500 Received: from mail-sh2.amlogic.com ([58.32.228.45]:51679 "EHLO mail-sh2.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751205AbdLDFi5 (ORCPT ); Mon, 4 Dec 2017 00:38:57 -0500 From: Yixun Lan To: Kevin Hilman , Rob Herring , CC: Neil Armstrong , Jerome Brunet , Mark Rutland , Carlo Caione , Yixun Lan , , , Subject: [PATCH v2] ARM64: dts: meson-axg: enable IR controller Date: Mon, 4 Dec 2017 13:38:58 +0800 Message-ID: <20171204053858.1697-1-yixun.lan@amlogic.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.18.20.164] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1705 Lines: 64 Enable IR remote controller which find in Amlogic's Meson-AXG SoC. Signed-off-by: Yixun Lan --- Changes since v1 at [1]: - drop the compatbile 'amlogic,meson-gx-ir' [1] http://lists.infradead.org/pipermail/linux-amlogic/2017-November/005527.html --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 6 ++++++ arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 14 ++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts index 0864d1ff2d9b..ca676cafdbb3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts +++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts @@ -34,3 +34,9 @@ pinctrl-0 = <&i2c1_z_pins>; pinctrl-names = "default"; }; + +&ir { + status = "okay"; + pinctrl-0 = <&remote_input_ao_pins>; + pinctrl-names = "default"; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index 9bb85893c1b7..f68f709762dd 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -616,6 +616,13 @@ #gpio-cells = <2>; gpio-ranges = <&pinctrl_aobus 0 0 15>; }; + + remote_input_ao_pins: remote_input_ao { + mux { + groups = "remote_input_ao"; + function = "remote_input_ao"; + }; + }; }; i2c_AO: i2c@5000 { @@ -664,6 +671,13 @@ clock-names = "xtal", "pclk", "baud"; status = "disabled"; }; + + ir: ir@8000 { + compatible = "amlogic,meson-gxbb-ir"; + reg = <0x0 0x8000 0x0 0x20>; + interrupts = ; + status = "disabled"; + }; }; }; }; -- 2.15.0