From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751819AbdLAJZq (ORCPT ); Fri, 1 Dec 2017 04:25:46 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39556 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751682AbdLAJZl (ORCPT ); Fri, 1 Dec 2017 04:25:41 -0500 X-Google-Smtp-Source: AGs4zMaKVJZiYfoM/k++QcZtgtG4CcgdTtzLzPtDPxFFMREfyjHtSXW1HI70UEPEbYXL1iaW4hcpqA== Message-ID: <1512120338.4667.4.camel@baylibre.com> Subject: Re: [PATCH] ARM64: dts: meson-axg: enable IR controller From: Jerome Brunet To: Yixun Lan , Kevin Hilman , Rob Herring , devicetree@vger.kernel.org Cc: Neil Armstrong , Mark Rutland , Carlo Caione , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Fri, 01 Dec 2017 10:25:38 +0100 In-Reply-To: <20171201013612.13927-1-yixun.lan@amlogic.com> References: <20171201013612.13927-1-yixun.lan@amlogic.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.2 (3.26.2-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2017-12-01 at 09:36 +0800, Yixun Lan wrote: > Enable IR remote controller which find in Amlogic's Meson-AXG SoC. > > Signed-off-by: Yixun Lan > --- > 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..80d5b8c13fac 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-gx- > ir","amlogic,meson-gxbb-ir"; The order is bad here (Yes the same mistake is present a *LOT* in the gx family - I'm preparing a patch for that). In addition, "amlogic,meson-gx-ir" is unmatched, undocumented and unlikely to be ever used since every compatible SoC will use the gxbb compatible string. You may as well drop it and just keep the gxbb one > + reg = <0x0 0x8000 0x0 0x20>; > + interrupts = IRQ_TYPE_EDGE_RISING>; > + status = "disabled"; > + }; > }; > }; > };