Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp388417pxy; Sat, 31 Jul 2021 10:26:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK+VtiI5ROhJNrCiYCbYfB1m+UDWNKmw4Jx1xGZ3Jrg1aEBKFx9eOT4muRbgr7DMOn3/uw X-Received: by 2002:a05:6402:34e:: with SMTP id r14mr9902152edw.6.1627752411412; Sat, 31 Jul 2021 10:26:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627752411; cv=none; d=google.com; s=arc-20160816; b=mN7vIN79etwvisPVYiWVALZ3/hLKSOxsgeoE0ha7QtUAugxFFF3BYQXWw1qV0PMr1z Zluf1AWMXaPo0Q5T0gZesLN29+PMkeg27qbOHLgEttut5e/ot63r2UYPnbMxBvtt5t85 yR3NRqgoJ5v7Frrejg8IatSF3USAytjaGX18C3GTAW+sXztWN9IIVjJAG1XKF+ugAL5u FZAvLHWVv7q4WgwE9Pkdg8tg2acl+ATujb1YzuCKnLfiwv0NabZczw+Eee7wOYsQ/dED jGYcjMYhAAJxxNuVqy7Ksg0Lzpl9n5tSGJyWzGAxM2Kv/CTqd7ff/GY1eOWtK++NM5PI tzTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=XGoVa1VVAqWP7+aWpB39u7eK3TITqz6GPnIrE2S/w10=; b=nxK0oW9vCVtdg862/wMmrA48qDrniqaCQbN00yiL5047Acf4wQ2n8wbt0BTGhbxTmJ 8B175hN/MHIQ9CEK1tq6pZatU5dlQEjpN9V2362HtjBwU/diKnXtgS1S/sHrJ4pg2wWP yyIRZ7qVw7hB5Fz5ZUpnJHJjKI16wOSFMLS9R/ZFzCoT0TY2EjbxJxgn3wbLCzVpePvc ncv6UngtJDiTJd0aApDu4dKKmJehgB9yR3nqwjHRXdv4XTSU/q7Z9z5IsutzqlJ5tWeg FhLipvT03d2oaAb66NB764lH7KVsujrZEeeueE3AJUSnTAV3Q6HABlZK/srOxPIikbeh p7wQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hy15si5628277ejc.28.2021.07.31.10.26.27; Sat, 31 Jul 2021 10:26:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229953AbhGaRYq (ORCPT + 99 others); Sat, 31 Jul 2021 13:24:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:44596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbhGaRYq (ORCPT ); Sat, 31 Jul 2021 13:24:46 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E763D61042; Sat, 31 Jul 2021 17:24:34 +0000 (UTC) Date: Sat, 31 Jul 2021 18:27:14 +0100 From: Jonathan Cameron To: Rob Herring Cc: Billy Tsai , Jonathan Cameron , "lars@metafoo.de" , "pmeerw@pmeerw.net" , "joel@jms.id.au" , "andrew@aj.id.au" , "p.zabel@pengutronix.de" , "linux-iio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-aspeed@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , BMC-SW Subject: Re: [v2 1/8] dt-bindings: iio: adc: rename the aspeed adc yaml Message-ID: <20210731182714.7197bdcc@jic23-huawei> In-Reply-To: References: <20210723081621.29477-1-billy_tsai@aspeedtech.com> <20210723081621.29477-2-billy_tsai@aspeedtech.com> <20210723154456.00006744@Huawei.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Jul 2021 14:31:35 -0600 Rob Herring wrote: > On Mon, Jul 26, 2021 at 06:53:07AM +0000, Billy Tsai wrote: > > Hi Jonathan, > > > > On 2021/7/23, 10:45 PM, "Jonathan Cameron" wrote: > > > > On Fri, 23 Jul 2021 16:16:14 +0800 > > Billy Tsai wrote: > > > > > > The aspeed,ast2400-adc.yaml not only descriptor the bindings of ast2400. > > > > Rename it to aspeed,adc.yaml for all of the aspeed adc bindings. > > > > > > > > Signed-off-by: Billy Tsai > > > > > We try to avoid 'wild' card type namings most of the time and instead > > > name after a particular part number. I say try because clearly > > > we let a few in over the years :( > > > > > It is very hard to know if this binding will apply to 'all' future > > > aspeed ADCs. > > > > > As such I'm not sure this particular rename makes sense. > > > > If I want to extend the yaml file to compatible more versions of the aspeed adc. > > Would you suggest to add new files call aspeed,ast2600-adc.yaml or just append it > > to the aspeed,ast2400-adc.yaml? > > If 2600 is not backwards compatible with 2400, then probably a new > schema file. Given you are adding new properties (which only apply to > 2600?), then most likely a new schema file. Depends at which point there > are too many conditional (if/then/else) schemas. Agreed. It's a judgement call you need to make on when it is worth the new file. Note that doesn't have anything to do with splitting the driver. We have mulitple binding files for single drivers and for that matter multiple drivers for single binding files. If it is 'compatible' enough to not make the file to complex, then add to the existing ast2400 file without renaming. Jonathan > > Rob