Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp560995ybi; Fri, 31 May 2019 05:47:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkW2Hn1g5IwdR+pL/93HLaY5rMxV6tQR4bXDk/CXVSKLnn6H1yyL3nMaR4FQtmQMP6dGYO X-Received: by 2002:a65:63cd:: with SMTP id n13mr8955583pgv.153.1559306879734; Fri, 31 May 2019 05:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559306879; cv=none; d=google.com; s=arc-20160816; b=A9f1L44WmMnblPKHXq/jz6PQ6oxDc6chWAj3RRWiRPGAF+2h/nlaKy9J1kPZT9NzkH rYRwQ4TW9q0QzusKxjD1vR/MIvpJMJ/1l9N0CLFL7FSumovQ9VAxjdP5TpuKc5jN89zx UJ/nozPizqgPHHZSdkPQL6+W3w29iMdrfDTt09e33LHZcVJcvun2JuPkNRUcDkp+Ww4H JVtXazyYyXM4kpGhXzhrl5AKPZmtw9F93ojfS6KZ+a9peFdf5TDNtoN22XlCOLh72flV DHLvvkCnnDtWlDVIVwCDmZKZyYg+PMspm/p5Ri3LNyjw4lhphPv7ai2oi7lJcWxCGJpy I6xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=YF0JA0IiF1qtMCXZmmDeOLuko037R7CmSa/ThgrCn7Y=; b=Dxpw8Q+OTBvSAHCk0EmL07ORqGxVqU3C4Nuou/PKlCuLnPM+PcVF71hKH5brrXGZ66 jYSdZ9zSMgTTL1fTU5fmCD/IvrAgikvA1boRWDAdZpA46MOsRbFMLDHIqBoAxA+sJfFB apy/bqPRyHMAkNe20H7xELVBzgvdRkyYVMMq5FtWxj0Mpa2V37Qj2gl1JdvgNibaJmMm 0jJdsSQ0IPJrWkT42Eb5YNyOMdzY1NyNyQ8qUpCOX1Un0OI08SHuDSzJLCAttWPXjIaB bAmKaGc/SB/1s93ZGoCrz/ruUOBeNE3IleYavhAcak+dJ8HTWC2j6+9/xBT3h4SVEHyL UMCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=r7SNqaIw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a128si6133474pgc.242.2019.05.31.05.47.43; Fri, 31 May 2019 05:47:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=r7SNqaIw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727366AbfEaMqf (ORCPT + 99 others); Fri, 31 May 2019 08:46:35 -0400 Received: from vps.xff.cz ([195.181.215.36]:49248 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726403AbfEaMqe (ORCPT ); Fri, 31 May 2019 08:46:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1559306791; bh=Vq6PHN+aRiKBxc4hddRHLSZfiSd9bUvG627zPC4o9vY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r7SNqaIwNqwOb9guoWHE+5kcqm8Eu7YcYIULLPtYivZ8AwmvJo/eJZGEmRO1PppSD sTdI0zKF207BU/1eEZQuURPmnPPtCk//a5UQlBB0RqHTU9jsBnN14mUimA6O4If6tq 3YsMz2n2ah8SkyCqn84s9ElTauLkHFeD0Xypwu1E= Date: Fri, 31 May 2019 14:46:30 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , devicetree , linux-kernel , linux-sunxi , linux-arm-kernel , linux-media@vger.kernel.org Subject: Re: [linux-sunxi] Re: [PATCH v3 10/12] arm64: dts: allwinner: h6: Add IR receiver node Message-ID: <20190531124630.q2guo54kjfzr7rkn@core.my.home> Mail-Followup-To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , devicetree , linux-kernel , linux-sunxi , linux-arm-kernel , linux-media@vger.kernel.org References: <20190528161440.27172-1-peron.clem@gmail.com> <20190528161440.27172-11-peron.clem@gmail.com> <20190530145550.amalnxmx7kpokykv@core.my.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Clément, On Fri, May 31, 2019 at 12:25:32AM +0200, Clément Péron wrote: > Hi Ondrej, > > On Thu, 30 May 2019 at 16:55, Ondřej Jirman wrote: > > > > Hello Clément, > > > > On Tue, May 28, 2019 at 06:14:38PM +0200, Clément Péron wrote: > > > Allwinner H6 IR is similar to A31 and can use same driver. > > > > > > Add support for it. > > > > > > Signed-off-by: Clément Péron > > > --- > > > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 19 +++++++++++++++++++ > > > 1 file changed, 19 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > index 16c5c3d0fd81..649cbdfe452e 100644 > > > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > > @@ -647,6 +647,25 @@ > > > pins = "PL0", "PL1"; > > > function = "s_i2c"; > > > }; > > > + > > > + r_ir_rx_pin: r-ir-rx-pin { > > > + pins = "PL9"; > > > + function = "s_cir_rx"; > > > + }; > > > + }; > > > + > > > + r_ir: ir@7040000 { > > > + compatible = "allwinner,sun50i-h6-ir", > > > + "allwinner,sun6i-a31-ir"; > > > + reg = <0x07040000 0x400>; > > > + interrupts = ; > > > + clocks = <&r_ccu CLK_R_APB1_IR>, > > > + <&r_ccu CLK_IR>; > > > + clock-names = "apb", "ir"; > > > + resets = <&r_ccu RST_R_APB1_IR>; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&r_ir_rx_pin>; > > > + status = "disabled"; > > > }; > > > > Please make a comment here, that this is known broken on some boards and may > > result IRQ flood if enabled. Otherwise noone will know. > > I'm planning to send a v4 next week with the IRQ_NONE return as Maxime > suggested it. > https://github.com/clementperon/linux/tree/h6_ir_v4 > > But maybe we could also use the bit 5 of the IRQ status. Thanks, that's nice, but that will not make the HW work. That will just disable it. The comment is still necessary. thank you, o. > Regards, Clement > > > > > thanks, > > o. > > > > > r_i2c: i2c@7081400 { > > > -- > > > 2.20.1 > > > > > > > > > _______________________________________________ > > > linux-arm-kernel mailing list > > > linux-arm-kernel@lists.infradead.org > > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. > To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/CAJiuCce7nHSktVsDKcR8GLRpD3WrN5yP3Nb_Hbu_Q9NjUQbSMw%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout.