Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp980266ybm; Tue, 21 May 2019 06:55:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIzthp2vmr3Ao6OM7VU4xxnuEMJWOsC6Zm043N+Y2GcD+NQ7aoLL3IWS3MBey0ufspVIRn X-Received: by 2002:aa7:9a1d:: with SMTP id w29mr65842502pfj.81.1558446922661; Tue, 21 May 2019 06:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558446922; cv=none; d=google.com; s=arc-20160816; b=ENyRaxi2nmrQx+n5gAbrkbBXBcXNdgaAzbFTAHifSscxd/yDWOZgoJ5exc6hT5C0Wx 6VIRohpR2GxWIwgmyONA/c8lwdsyW/DOhsLOyOFLidIqQZMVRswR6xjaCs7ptwEATwer qsdZKsrDGnRdS7n4VIiJU6oxmvoSkCobqIcKDGPAeC4+Y+b2t07fG6lctI4PYtP52o+B XWLldSbVCoo+GSoeCBIvGRXPukY8xIvN/uiJlpdKYelK3p0F9rGd/0rUB+lp/3PSGTIq 0b4iYaF7QtD93CfmLqXBYh7+Lyi9WR0xYu216dK6EuvZ7WTlHps/C9hbMevof4Mih7mX q3PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject:autocrypt :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=eXZHST9TksNA1LF7Js6F+mj7dd8l/S+dzCwZdb2sFRQ=; b=pA9o3ZPAobF88EQPwd+f1Z7qGvKrHCEl97wL/lia2fMALlIy0EZmis3qHy7KlV4oVy bj1V3O4cIyL7s6LFWcQoW1kTZMwTW7PCnqS9jzxE6ow9+3vSTn6ik2HZvSU0CG8+qKk9 aZmSN5IkMqYaMSTstIoBvtwwGtTfKR8kjy3FqKypmnCA7ibyoKnOlN2bF6H6CT39/aKW +K3tgsvsSGayVU2H1TYvQZaXl5KEMd38JCffTOiJ5PiXGBSe+Ck3ZT2GdBsxitKxkWnS i6lTMIxpJis/ubfvm0OyC7sNygm4NPe6RV/aewvDBbmELah0bssKJZJEABR+iNgjoOhz k44A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=Dr3t4YCm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j38si21109236plb.308.2019.05.21.06.55.05; Tue, 21 May 2019 06:55:22 -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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=Dr3t4YCm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728283AbfEUNw4 (ORCPT + 99 others); Tue, 21 May 2019 09:52:56 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:54378 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727819AbfEUNw4 (ORCPT ); Tue, 21 May 2019 09:52:56 -0400 Received: from [172.27.227.142] (unknown [185.69.244.31]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id A1BC1C1489; Tue, 21 May 2019 13:52:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1558446773; bh=T5HvSzh7U58yDS/HdAzE5Y5CTmjj27w0sEugeGRIUTs=; h=Date:In-Reply-To:References:Subject:To:CC:From; b=Dr3t4YCm2LWkf3tR2qCVQGR+EU4Ucnmn4iXcRC8dZBZWD1NEGFCiwiMI82PU34vN3 rESl6X/w3cD4bxNdZFhyT9Nc/wwKKeOVAmZczVIY9J25+Hq9XFOBK/9NLDljl0ZZ9L rE+SaKlq3RLTuo58/ediIVunL1YOnBQD9Ag6mdl0= Date: Tue, 21 May 2019 15:52:47 +0200 User-Agent: K-9 Mail for Android In-Reply-To: <20190521130955.3omqwpx3i7njsb3t@flea> References: <20190518170929.24789-1-luca@z3ntu.xyz> <20190520110742.ykgxwaabzzwovgpl@flea> <9B2B83DF-2C91-4DDA-B707-664A792A8BCF@z3ntu.xyz> <20190521130955.3omqwpx3i7njsb3t@flea> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Autocrypt: addr=luca@z3ntu.xyz; keydata= mQINBFgc0/QBEACzBE9TBfe+O2TARphhmhVgMd2zo3lkvjWdohb9mg9+NvUq7swQR2l8davgwaTN VwDUA9jdzfjp4GShf0VFnqqFGouEc3OMeuHFdtjG4RoYGW+XvEoAcTWgY6glANmMZMi33D+2wnQQ Qziie3LMTQ7Tlpk8at8Ck4ShmmGTmek9LNFq1eHs3IHK5eH0fDA/rYvPxFMmwbHRDjdwtXjZlXBC nxEXK8CJkNG58G+RbtPU0I8Iu02TDOkr9x6KwLT1lJmq03wCkuQEXrDAzo6kkeAMhzWBtBtxTB1M byOZqNlbzEtxOTK9iA74U6POyN//876ESQ87LicFS4mgoyHL0Vt7ro9CSH7Imzv96Ae8HDZqIcBy Bn9YMBswjy4JOsC9JP/oDhr71y40nnrVvgx4ZesJM0PL9J1JYQWJQ22GoinnDwSB11Re51OYsK+l xEqph38N+AjcNYm+l85O/l+BkkULC+0kHWG6wQCv67KyeYCJJhNqJucXj2gXXaKyv2ltWPwHgK6w OAtN9QbimcYV2PUgfx6hl5r7buwc3tefp9ccmtoLq74mgrKiLurHqa4pKCa1uqfhBEN5/Os5tMrX IGa2sRvKHK0Pn7iyJQyuclyOp4r9W+QUw2DENm4n6ovkl7rfriL6ibBgVLcnexdG/8LZRaWFV96G YY3VCcRlz8SCwQARAQABtBtMdWNhIFdlaXNzIDxsdWNhQHozbnR1Lnh5ej6JAj0EEwEIACcFAlgc 0/QCGy8FCQWjmoAFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQ+vac9s0tAs3X3BAAo6F00XKQ LAvQl/nTK4+2EHjtFUF0OnUK0rIN1b1l5WMVHFF8njcVqG1Qc7CKyYCS6mN6bbYkXsj3TXy8Vx9R P4ek8UoxEnVXYeayF5D+ke7yCmOJjSEBZVh/meA2jYOnPXEXR7bTT+PNaCTIgS6MucYous3ngiIL kDT9Q09ESjs9xhoqbpBr19fqE9HpuWCaVGi5tt8EQAVq32kfq9DFqanjuaz18/I3VV1fMKWoNZBu qJKveh9oDmkKe32PTVV8ak1tpWYNRhoIL8jZgJkzG8cMPdi6fi8xy7wIaT49py+0rndGF7i79nAx Sq3vlt6dMgcOlMYTZMw1O8Y28eiHm5DCzyPR5FkQvQ1xY2TPTZh9H4zukBLBkctDtccosGwZt3tb uoQ2Nelm12ldf4kdbGmWdSIEgTWLJb8LfiNe4PIPnWU2Ho0EbHs2RBa81Y83NEZpXYWpYLwUafkE 5GG4E6tG1aUU2g/HSf+3BaHYVZ7vv2Zc7DmCkeYS5VyzZvajmVWj4pjPY5RrNbDKWOIIOc5ow+5e eLFX6wHWFlgM3zPr4IU/XqKhDUydx8pyRHEfDUTRJHokP4Ga3DyvfqtfF8zQQwIGbc+D8Tdt9JbM Op7ZhZwmE0J3q5DUuYVXFO9kWT5Rf2QvNNmbBNQnpXXUirwztbKA6BWoygQDVvVgdrQ= Subject: Re: [PATCH] arm64: dts: allwinner: a64: Add lradc node To: Maxime Ripard CC: Chen-Yu Tsai , Rob Herring , Mark Rutland , "moderated list:ARM/Allwinner sunXi SoC support" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list From: luca@z3ntu.xyz Message-ID: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On May 21, 2019 3:09:55 PM GMT+02:00, Maxime Ripard wrote: >On Tue, May 21, 2019 at 08:43:45AM +0200, luca@z3ntu=2Exyz wrote: >> On May 20, 2019 1:07:42 PM GMT+02:00, Maxime Ripard > wrote: >> >On Sat, May 18, 2019 at 07:09:30PM +0200, Luca Weiss wrote: >> >> Add a node describing the KEYADC on the A64=2E >> >> >> >> Signed-off-by: Luca Weiss >> >> --- >> >> arch/arm64/boot/dts/allwinner/sun50i-a64=2Edtsi | 7 +++++++ >> >> 1 file changed, 7 insertions(+) >> >> >> >> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64=2Edtsi >> >b/arch/arm64/boot/dts/allwinner/sun50i-a64=2Edtsi >> >> index 7734f70e1057=2E=2Edc1bf8c1afb5 100644 >> >> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64=2Edtsi >> >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64=2Edtsi >> >> @@ -704,6 +704,13 @@ >> >> status =3D "disabled"; >> >> }; >> >> >> >> + lradc: lradc@1c21800 { >> >> + compatible =3D "allwinner,sun4i-a10-lradc-keys"; >> >> + reg =3D <0x01c21800 0x100>; >> >> + interrupts =3D ; >> >> + status =3D "disabled"; >> >> + }; >> >> + >> > >> >The controller is pretty different on the A64 compared to the A10=2E >The >> >A10 has two channels for example, while the A64 has only one=2E >> > >> >It looks like the one in the A83t though, so you can use that >> >compatible instead=2E >> >> Looking at the patch for the A83t, the only difference is that it >> uses a 3/4 instead of a 2/3 voltage divider, nothing is changed with >> the channels=2E > >I guess you can reuse the A83t compatible here then, and a more >specific a64 compatible in case we ever need to fix this=2E > >> But I'm also not sure which one (or a different one) >> is used from looking at the "A64 User Manual"=2E > >I'm sorry, what are you referring to with "one" in that sentence? > >Maxime > >-- >Maxime Ripard, Bootlin >Embedded Linux and Kernel engineering >https://bootlin=2Ecom Hi, Sorry, I meant I didn't find anything in the A64 user manual whether a 3/4= or a 2/3 voltage divider (or one with different values) is used on the A64= =2E Luca