Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4554444ybi; Mon, 3 Jun 2019 13:02:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUAlNYwb1D3i9xGHg7Su8d2DPosjAzFSh03uprBa078ZiBndF3G78DZ59Tt35WfHZIIiKb X-Received: by 2002:a62:a511:: with SMTP id v17mr32702158pfm.129.1559592122717; Mon, 03 Jun 2019 13:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559592122; cv=none; d=google.com; s=arc-20160816; b=BjufvBP+WK8X/uErcmnjaxhCvzzEG79IluBNBMU1u5/csnQ6aJbhugH6FAK1xsVW/k 7+E5AqWwCO5ydz9uhseDbCp2qQZGxaOhYR1rfoizjix8Di/yc2RWajtgSIhsjR6UOZv9 HL5DEsaO8m64UBWsTN2Uw5XEf7hfdn8AyxEgCqXDLTtACQ0hUGFLlU2vWZOcZPoUoFRV gVUrN+KwHObkQSXI1J26lIEZSXieMp1LKEzo1tIUbWskmSUE1ARFijILOIPaXdD4nDEw AP56kMrWPanSnrBrpoY6eF4bSFlAB/c2y1tnLdZdBb7kBJWsKNIA0MiM8RwLpNleF19D Fd4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zPryCWRXLrnucE/JiySfXexBGbsw2P5i9EkkB29EvlE=; b=XVE727iRdy7dUbBfNpoU+dkBOZ2CsQcz4S5LFwsMdwfnCKQlILpJOyxVvCByz1nGFp LoTaF4cw/xtCN9gdo0t5SRFtYtZB9yn9HgLJm7ghxNU1kk4VYqUPnJc6gu7h5SUWnsAi SqIn1vj5Jq6NzInDTIPYl+2AXDlMexh/9ZI+TruP20hUJdCmh5cXxsNbtbMmlSWRWAjj iMa30onGqQWYBeWso2mTuGPVqifJMs7BSAiKmJARBVn6CpnolSU8j7l1svAbihQV8/zI h+So2loy+NOsuxVXbI7iDAnKqPBDO6i70c7wGUpe2yB2o5vTmlW2r9zSxx4dJ7pSLJQP tkhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="HLZNA8/Z"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si22076722plg.248.2019.06.03.13.01.45; Mon, 03 Jun 2019 13:02:02 -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=@gmail.com header.s=20161025 header.b="HLZNA8/Z"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726714AbfFCT6g (ORCPT + 99 others); Mon, 3 Jun 2019 15:58:36 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:45081 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbfFCT6g (ORCPT ); Mon, 3 Jun 2019 15:58:36 -0400 Received: by mail-yw1-f68.google.com with SMTP id m16so1948990ywh.12; Mon, 03 Jun 2019 12:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=zPryCWRXLrnucE/JiySfXexBGbsw2P5i9EkkB29EvlE=; b=HLZNA8/ZMSuzdLWUPd4akHsIoEpYyGMtqR3HnJRPDBzklcWqP6gjMSNIXSDelJSVEW 0wNE4StLBsfUYnsnHUKpFd7VNbBWqrfJOZrEH3SgIeL17ZXPXL/xcEkSiiVvYdh+9slb 2NnpcvWS8HoiqZeR+0eYK2AUr5jNztb969b+o31CSMw01nsrl+ViEipKBHbtgG8bqSyk OqtL3KSE4mOsvz7AHivcmik0/fmJBXnFiIOSID5pJN10fGyZHnS5xftTM7oGXzoKNzKU S3awdcqnUupx2m0brs0AM6e5sgMmu7sx0SFOpef0J8wNAVNnbb5+RMVrWKcMpZwFgVUE Ncdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=zPryCWRXLrnucE/JiySfXexBGbsw2P5i9EkkB29EvlE=; b=JpNE3NsQN3Uzk5RLg4s6Tg/itHPGWTnV+W01xtU8CBCdZa8LPaTHHY1r+rWNv/WwOV Dz8wMFRrErzo+bkrlQmid/LUnGUgc46YDxm1bwb6l8p//rrCR0o2qy/6OZ4aZRq11K3+ X8dFl2+MlzJcZgm1GBXFZHFPHpvi9Zq8YVrletBnkdSb0geau/5nEhTG66ANgXBnBMi8 8M6iddJRxMYLrwtX4kr4ErFe4hBfWdOoSzmG0lHKjxNdB3UyaubnhaZbdX3bN37tqz5/ MAnEgK09oR1diGqTtRux+NfOS87oZ425sQpQcBf36ilmISV9dUrMD1iG2RykifFjUXUZ AMog== X-Gm-Message-State: APjAAAW9NTSsrHi2UJyNw6uvwXJ5Va1TxBfXAD/8HxMTqrw+SK6h2nQ5 r68udfQurH5ma6rBiIPRtRjhl5sOJlK+mTbrlek= X-Received: by 2002:a0d:de01:: with SMTP id h1mr14385025ywe.349.1559591914679; Mon, 03 Jun 2019 12:58:34 -0700 (PDT) MIME-Version: 1.0 References: <20190528161440.27172-1-peron.clem@gmail.com> <20190528161440.27172-11-peron.clem@gmail.com> <20190530145550.amalnxmx7kpokykv@core.my.home> <20190531124630.q2guo54kjfzr7rkn@core.my.home> In-Reply-To: <20190531124630.q2guo54kjfzr7rkn@core.my.home> From: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Date: Mon, 3 Jun 2019 21:58:23 +0200 Message-ID: Subject: Re: [linux-sunxi] Re: [PATCH v3 10/12] arm64: dts: allwinner: h6: Add IR receiver node 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ondrej, On Fri, 31 May 2019 at 14:46, Ond=C5=99ej Jirman wrote: > > Hello Cl=C3=A9ment, > > On Fri, May 31, 2019 at 12:25:32AM +0200, Cl=C3=A9ment P=C3=A9ron wrote: > > Hi Ondrej, > > > > On Thu, 30 May 2019 at 16:55, Ond=C5=99ej Jirman wr= ote: > > > > > > Hello Cl=C3=A9ment, > > > > > > On Tue, May 28, 2019 at 06:14:38PM +0200, Cl=C3=A9ment P=C3=A9ron wro= te: > > > > Allwinner H6 IR is similar to A31 and can use same driver. > > > > > > > > Add support for it. > > > > > > > > Signed-off-by: Cl=C3=A9ment P=C3=A9ron > > > > --- > > > > 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/ar= m64/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 =3D "PL0", "PL1"; > > > > function =3D "s_i2c"; > > > > }; > > > > + > > > > + r_ir_rx_pin: r-ir-rx-pin { > > > > + pins =3D "PL9"; > > > > + function =3D "s_cir_rx"; > > > > + }; > > > > + }; > > > > + > > > > + r_ir: ir@7040000 { > > > > + compatible =3D "allwinner,sun50i-h6-i= r", > > > > + "allwinner,sun6i-a31-ir"= ; > > > > + reg =3D <0x07040000 0x400>; > > > > + interrupts =3D ; > > > > + clocks =3D <&r_ccu CLK_R_APB1_IR>, > > > > + <&r_ccu CLK_IR>; > > > > + clock-names =3D "apb", "ir"; > > > > + resets =3D <&r_ccu RST_R_APB1_IR>; > > > > + pinctrl-names =3D "default"; > > > > + pinctrl-0 =3D <&r_ir_rx_pin>; > > > > + status =3D "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 d= isable > it. The comment is still necessary. I have pushed a new version on my github. https://github.com/clementperon/linux/commits/h6_ir_v4 I will submit it, if you are ok with it. Thanks, Cl=C3=A9ment > > 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 Grou= ps "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/m= sgid/linux-sunxi/CAJiuCce7nHSktVsDKcR8GLRpD3WrN5yP3Nb_Hbu_Q9NjUQbSMw%40mail= .gmail.com. > > For more options, visit https://groups.google.com/d/optout.