From patchwork Mon Dec 4 05:38:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 10089681 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7EC506035E for ; Mon, 4 Dec 2017 05:39:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6926428F75 for ; Mon, 4 Dec 2017 05:39:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CCBB28F7A; Mon, 4 Dec 2017 05:39:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EF5F628F75 for ; Mon, 4 Dec 2017 05:39:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=l4s5tFAGEGYsXsMzuSJRrA7qGIdkO+HUnvQMkZgBaF0=; b=Ig+J+NqvhOwBQG YmP/zF49l24AvhZzwKto3oYapE2ADF2/w74wXzz1Bfk1BfWKOn8FnuWwOGeibh8S2xn/G0pLq5vW1 i3fE+IB3U51gP4V/Stm9OVeBL+lK/AUGE0R+FdnCyZuVr337YVKMutIX148OG3/XOExbnlWzInKaU TXGV3dTiaWOuTL4z8ntH2ISuQAbOj5b9ZMdzDo6xFl/Ygv+32k7sPOrWmzsMkraM1nDsnFFjGF9bW zY5fzixELnTIeld44coj4jQqS7plscYHzwDGnygvjWxf6UDGWsrnoRQ/gJ/brvdK/UnGD0mEj7cZp YX3C7tOVgOdxQFATyqOQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eLjTM-000470-Cj; Mon, 04 Dec 2017 05:39:20 +0000 Received: from mail-sh2.amlogic.com ([58.32.228.45]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLjTJ-00045J-Fn; Mon, 04 Dec 2017 05:39:19 +0000 Received: from localhost.localdomain (10.18.20.164) by mail-sh2.amlogic.com (10.18.11.6) with Microsoft SMTP Server id 15.0.1320.4; Mon, 4 Dec 2017 13:38:21 +0800 From: Yixun Lan To: Kevin Hilman , Rob Herring , 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 X-Originating-IP: [10.18.20.164] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171203_213917_683285_CDE90BC3 X-CRM114-Status: UNSURE ( 5.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Neil Armstrong , Yixun Lan , linux-kernel@vger.kernel.org, Carlo Caione , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable IR remote controller which find in Amlogic's Meson-AXG SoC. Signed-off-by: Yixun Lan Reviewed-by: Neil Armstrong --- 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"; + }; }; }; };