Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5125597ybi; Tue, 4 Jun 2019 01:30:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIkctnpGDAw7lOitQkd7TUN9MnNmkVtPBQyEzIqIoeAyWJJ3vtZwQZ3GBC9oUQKEAHoLiY X-Received: by 2002:a65:534b:: with SMTP id w11mr34241044pgr.210.1559637050086; Tue, 04 Jun 2019 01:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559637050; cv=none; d=google.com; s=arc-20160816; b=VWgD6KmkZmQaLjF5XyXGEjkgMWfrNl3q9cxbt6kFQGmsS9v/I6qeDy9PyUfW7/Ktef MhI92h7hry60VT2t/KTB/Z+eNMSnjRv9l0xo9c8lRx6x8tki71+ak3ZnHM4pOoiC+SHy i+OrDWy4cGQPrUfewHfLG4JsdpP/ZiXgTFCMcyQn3CnbxDkaw+co6HAyM9mS7o+HqHkk j3HQ7qMHCtSFptNDV1RdQQX+wbcSRgyX5A/NwUxSWS1D5mzLuw3yqvqzirOcuRcEdkuE iIrNj+9yjALC6SStWwiN1q9rgXjXbUzrVRn161kGvhlMrHlKLZOX2JpCERCltAg7aBlq dTVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=iU09/CO9csdD41PNk8ETRXcbfUDy65MssTQFNyuH6QM=; b=eBZk0mTBmH5xPzpZQbGqaRO8HWi4/xYFtWdVgRpzgxET4q3BBwhOSNBlBBYmldPsr1 cPrHBFFi0FYUwJV9OJV2ILS3HLcSoEkjax/szGnZJvgknrDQDe/cV9BF/kbs8ThsZnPA Z5VqjcoaH/qrKABKTdD30Z6TjqEAkwpCUDrY5RzxZAIV4fT/qeezk33dAuipVabEewRi KtjNDMf1M6EDcOr2NjsYyFdLIUUCzcOr1xIiI9hEoF28oHU9pWLyag4xCwsWcP5DMz4v aiNMAua0vu6aFDESebTH9vSC3zO8/Os+GUhx81CNez8k5BXwLoIzFmCWO7MAqCWv0qb2 EwDg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m189si24427493pfm.17.2019.06.04.01.30.32; Tue, 04 Jun 2019 01:30:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726949AbfFDI2K (ORCPT + 99 others); Tue, 4 Jun 2019 04:28:10 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:35023 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726642AbfFDI2K (ORCPT ); Tue, 4 Jun 2019 04:28:10 -0400 X-Originating-IP: 90.88.144.139 Received: from localhost (aaubervilliers-681-1-24-139.w90-88.abo.wanadoo.fr [90.88.144.139]) (Authenticated sender: maxime.ripard@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 3117D6000D; Tue, 4 Jun 2019 08:28:06 +0000 (UTC) Date: Tue, 4 Jun 2019 10:28:06 +0200 From: Maxime Ripard To: Luca Weiss 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 Message-ID: <20190604082806.smght44dmhuoxw2u@flea> References: <20190518170929.24789-1-luca@z3ntu.xyz> <6901794.oDhxEVzEqc@g550jk> <20190603074247.hlayod2pxq55f6ci@flea> <3880268.VpfjThaCW4@g550jk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rokvu4c2fxf472od" Content-Disposition: inline In-Reply-To: <3880268.VpfjThaCW4@g550jk> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --rokvu4c2fxf472od Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 03, 2019 at 05:20:51PM +0200, Luca Weiss wrote: > 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. > > 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 That looks correct :) Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --rokvu4c2fxf472od Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXPYrlgAKCRDj7w1vZxhR xZ4wAQDYf4iwJpFsfR8XtFStVojYJ+87YKlwxsWeyc2AY+blqwD/bkhJERAV91vH je0Y6DGnu87Ep+qyk/Jh5W384aSsxgM= =Mcc7 -----END PGP SIGNATURE----- --rokvu4c2fxf472od--