Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4282527ybi; Mon, 3 Jun 2019 08:24:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0xwj4LVTYihJK/wWo+x6w6wU5VIx3kdHVZ1w05uElQD9jsHDXCcL72C1TC6b4n0s/f0ll X-Received: by 2002:a63:e408:: with SMTP id a8mr29562324pgi.146.1559575444922; Mon, 03 Jun 2019 08:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559575444; cv=none; d=google.com; s=arc-20160816; b=qH2hATOjAKzwJows76dDHpcsU/dwX65grtGiHtObOQ///adHqIwW6WmDoicOrgLJ5M +1KapjAV1eBztt2GdUZ3Wk4QcYz1EBUkPqzJPqSwFWqhvKN3cl4PspuRLH+Z+afsRq3V EWMpIBp0JExXoyDsMsBQKWRNNgqHNk79XPPanNnqCCSJjDFgLpWSdnKGdRWYbCzKkADs YutJaZbp8Q1rPeXo7MjkK7jrsOjAXEQVj06UlBRWJW01w5wyGOAvbJn6lh9wIbpxu2yF z3fQquTacecocJCIsEaXuk71xLmvWXpI8pFkfDlrWK+6hwWTU9HomR5+KOKCqZpAol8l EMAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Yx9sKj7ihEjwj1Bn7I4hzzzZWoPdUyUz+n93M9EQO4c=; b=eNJWXYMHsSoss53JDFRcFp134acMhvCobBURFIcqFrd6m00ojBTHn7j+sk3LjdT7pY JZjW3Wb+X2ZgTyfwVMAJuhEXtu/hluIybhIL7dlrbPlUzqM8HdONFyVWTrQWEZpxX6S+ 4+CMc4lt2IakOM4rMN+aEo3xxWHxGd4PTcGv7c/juT/n5kMyphxWb7Ka7MP9qW5i+jRA PMnkJzWn52Nbg+t63mS70AQRGxH5lrR/KuX5EaUaY1H7LCIurl5/13lzLMMKWoHzX7gc pS6C6Dps0iUTw3rTw59xE8BOfY+pzYYbptwEa4eSjkNSAvTSk2b2zQTM8cjGGXxDzycV PZWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=NcfueCi9; 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 l1si18925344plb.302.2019.06.03.08.23.47; Mon, 03 Jun 2019 08:24:04 -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=NcfueCi9; 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 S1729282AbfFCPVM (ORCPT + 99 others); Mon, 3 Jun 2019 11:21:12 -0400 Received: from mail.z3ntu.xyz ([128.199.32.197]:53974 "EHLO mail.z3ntu.xyz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729149AbfFCPVL (ORCPT ); Mon, 3 Jun 2019 11:21:11 -0400 Received: from g550jk.localnet (80-110-121-20.cgn.dynamic.surfer.at [80.110.121.20]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 2DA26C1EA1; Mon, 3 Jun 2019 15:21:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1559575268; bh=7lWq2A3Lrc28KJtfHYy0Wb+Zh4J86K9tw6JaC+YS190=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=NcfueCi9EZ+5MR4qMjNwW7RWSbqdzNVZ//pdTCqaUdOg8Vgf+yZ/9P2FisvGPEt60 Yhcm2gZ2u0yRi+oi3/zmq4mQc/sxQVOl1ySw5iVzLb+mO34+PWZlRVHu2KXRsN8s+q RZKOdsqSWS68fgvD4d3TpsRPmw9mCWxG2gCRS35w= From: Luca Weiss 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 Subject: Re: [PATCH] arm64: dts: allwinner: a64: Add lradc node Date: Mon, 03 Jun 2019 17:20:51 +0200 Message-ID: <3880268.VpfjThaCW4@g550jk> In-Reply-To: <20190603074247.hlayod2pxq55f6ci@flea> References: <20190518170929.24789-1-luca@z3ntu.xyz> <6901794.oDhxEVzEqc@g550jk> <20190603074247.hlayod2pxq55f6ci@flea> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4884027.SNrMX4W1oj"; micalg="pgp-sha256"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart4884027.SNrMX4W1oj Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Montag, 3. Juni 2019 09:42:47 CEST Maxime Ripard wrote: > Hi, > > On Fri, May 31, 2019 at 12:27:55PM +0200, Luca Weiss wrote: > > On Freitag, 24. Mai 2019 11:20:01 CEST Maxime Ripard wrote: > > > It would be great to drop the -keys from the compatible, and to > > > document the bindings > > > > > > Looks good otherwise > > > > > > Maxime > > > > So I should just document the "allwinner,sun50i-a64-lradc" string in > > Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt ? Don't I > > also > > have to add the compatible to the driver code then? Just adding the a64 > > compatible to a dts wouldn't work without that. > > What I meant was that you needed both, something like: > > compatible = "allwinner,sun50i-a64-lradc", "allwinner,sun8i-a83t-lradc"; > > That way, the OS will try to match a driver for the A64 compatible if > any, and fallback to the A83's otherwise. And since we don't have any > quirk at the moment, there's no change needed to the driver. > > Maxime > > -- > Maxime Ripard, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com Hi Maxime, sorry for the long back and forth, I hope I understood you correctly now. Here's what I would submit as v2 then (I'll split the two files into seperate patches as the devicetree documentation suggests) Documentation/devicetree/bindings/input/sun4i-lradc-keys.txt: - compatible: should be one of the following string: "allwinner,sun4i-a10-lradc-keys" "allwinner,sun8i-a83t-r-lradc" + "allwinner,sun50i-a64-lradc", "allwinner,sun8i-a83t-r-lradc" arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi: + lradc: lradc@1c21800 { + compatible = "allwinner,sun50i-a64-lradc", + "allwinner,sun8i-a83t-r-lradc"; + reg = <0x01c21800 0x400>; + interrupts = ; + status = "disabled"; + }; + Thanks, Luca --nextPart4884027.SNrMX4W1oj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE66ocILd+OiPORlvAOY2pEqPLBhkFAlz1OtMACgkQOY2pEqPL BhniWhAAlYK190VpcKotzROcAO4PQWaBW+NvYV6iqItgjYPBg88mefVeqvnC1P8n aga2RYwebN4iL8W3Rr+jyAzMza2B0ofuyn/2FTSizOxnfF6IgmEUvs2VehLPHSM8 oYD/J2aGB8aBVMRfGLmEaI2Ky47lnDCfoBS8iF6sh4ownDJyWrKVctwjqg5yTidq sA2Qr8VnJyRdu75RAz9mJ9xKxiSOOK1IZlBlcuJBWpHHP9RBga8vNX12iKAwSpy6 wScB1JSUV3SzrarYn0Rp5CgQ1GocJJBM7I41si3cTkkhGdcngto+j3D5b/EZl61U yv4BMhBhPpXsWhlRiWu0AeixVMBahlmNIkxKouehpMs1OvsgtVamdo/KLXzi/q9A yN1Ut/WJkC3l8LzRg7ZQ9eXGO2HcbEmgNos2b5q6MgG55SyLVOmnpH7wGqdVnXNB HTOfA0j2GCnJGWfVySBXXKLn4uIVrRyDeX0grO8nJp74f6Xp1iX4MC8jOjLidFPk wPZmzgiGNzajyDLwyHt2Ir94n2qCRDxdp4Oh6mdXBxIDc0UDWEW58VcDZCdYDiL3 93BM+E1+3sQpIzryj1K9IElpGsUhcLYRemD+TchmNLKJAlLb+KlKac6ykLwMNwat 510fwJqUGSMJdgM4TldRE8sNLjJFRtUsJRDQ0yti6lkfDIBS5kA= =CDr4 -----END PGP SIGNATURE----- --nextPart4884027.SNrMX4W1oj--