Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp551644pxj; Fri, 7 May 2021 14:44:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfyah3zk61SxGP7YTv+bu/7beKa1QbY8Qbr9ECef+UXF3z+QxXk8jEQHJoCeAx9Sj+JZSs X-Received: by 2002:a17:907:98a7:: with SMTP id ju7mr12732601ejc.515.1620423894804; Fri, 07 May 2021 14:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620423894; cv=none; d=google.com; s=arc-20160816; b=bDU4+RdmADTEh8Er2knLI9VD32nu6VpiLC8victryn7AwjeHPw0nKBg6rMkVrQCU/F epIMUFJWNzN6psswM669LxV4MaZx8MUMlRLEh5eg95GrZdYqi+A5dM3hXVxnaC82hb7w UjVY0Ogy8bn69106a3tCsNcnwyxcWFMjrmv4fd8wY15hugVJhfz9EvftZx5t3oqOYAuo uh+52HCV7Pjbr59Oqji1O1bwsxmW54thuRYwYLOFEmpcR686e1YF9MEv9bQZBHoow/JD eL6gkFENh8wMG+KOWq4TWetnhnG1bZheYTMf2X0Fsf1Vnguxjrb5UAwi9SS840QLycEE w9Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=1jPYaiJ3mpOsE5i/q/eUuwCFtgMQJcQzg5PuBr/sjHs=; b=J0+UGVqp1Ryfw0JpBcyINoe4nDyNaueFU8aBQiz72ljZnAu8AnFjNOSozjmlFuXfUk wpZe7w3X5DgK84O0LEuR2BsoJkcVEOF1JPZGg26nDjRo5oPesUs+x/MGX0yPeZ4i9+2x 31kejpRWZiUqxRhvnunYNTWjSb1P2fLxVXECMXmY9l3ZLjoHTwSEUaF/HsWKMWpVV5wk WELc3Yd+rDCpPrlJuQ55Yy2R14le4bUWqDOXrS89cXmo+dH+F0MQ22wzOv7QM7ZNpQR8 aW2W0CbbQY+1hI7SD28P1igXsvrkA/8JoUe6TJP/EnshJgjJ4mwu3sYThPNmYomHAPYL ECBA== 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 d4si6216432eds.364.2021.05.07.14.44.30; Fri, 07 May 2021 14:44:54 -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 S229742AbhEGVo2 (ORCPT + 99 others); Fri, 7 May 2021 17:44:28 -0400 Received: from mail-ot1-f45.google.com ([209.85.210.45]:38579 "EHLO mail-ot1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbhEGVo1 (ORCPT ); Fri, 7 May 2021 17:44:27 -0400 Received: by mail-ot1-f45.google.com with SMTP id q7-20020a9d57870000b02902a5c2bd8c17so9151555oth.5; Fri, 07 May 2021 14:43:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1jPYaiJ3mpOsE5i/q/eUuwCFtgMQJcQzg5PuBr/sjHs=; b=HfIj4r8ONjBXYl30I1cj8QvuoHjTvW5VbZTCSml/fskrofCabVCmzBJD1EHEZU+x+6 kMZqkC9NDbFsNVnAgiytMlp1VJ7a+CkGsC+4lapjJFkfhVq6wmaafqLo1QUwQpOTGxmV uvR4rc2mwI1pQWQ4mCucArGjgxYif6E+HGcldA1qCq24CB+J5X1RRV0D6fhIi3CmHwb7 a5mAVbsg+uinkbMYMY/29I5SGmqVAEUOW5fUzQHE3kYtJehXqtKUw5w+wTZR7g9YvvkA 8ZJF7qE1UnYnXLGy9bJMkeXSP9O5AftrXFkAwqRe5HdUnEihOhH66UWihiDkogvSjMlo 7G9A== X-Gm-Message-State: AOAM532ZOQh/fbLmp6cDYTYQfvK6ZZAUFli1RHVrfgXKLVWThmZwtDIy lWGDC8d00ViizBTdZqss7Vx36OLGvQ== X-Received: by 2002:a05:6830:1450:: with SMTP id w16mr9903118otp.305.1620423805659; Fri, 07 May 2021 14:43:25 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id c65sm1202316oia.47.2021.05.07.14.43.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 May 2021 14:43:24 -0700 (PDT) Received: (nullmailer pid 2942658 invoked by uid 1000); Fri, 07 May 2021 21:43:23 -0000 Date: Fri, 7 May 2021 16:43:23 -0500 From: Rob Herring To: Grygorii Strashko Cc: Andreas Kemnade , Vignesh Raghavendra , linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Linux ARM Mailing List , Tony Lindgren , Nishanth Menon Subject: Re: [PATCH v2] dt-bindings: i2c: Move i2c-omap.txt to YAML format Message-ID: <20210507214323.GB2902038@robh.at.kernel.org> References: <20210506140026.31254-1-vigneshr@ti.com> <429a740a-c2b9-1cf8-ed2b-0fb7b1bea422@ti.com> <20210507163602.219894f4@aktux> <1ef076ac-e0de-a0df-a918-aeb8ed6c5956@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1ef076ac-e0de-a0df-a918-aeb8ed6c5956@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 07, 2021 at 08:24:59PM +0300, Grygorii Strashko wrote: > > > On 07/05/2021 17:36, Andreas Kemnade wrote: > > On Fri, 7 May 2021 19:45:45 +0530 > > Vignesh Raghavendra wrote: > > > > > On 5/7/21 12:24 PM, Grygorii Strashko wrote: > > > > > > > > > > > > On 06/05/2021 17:00, Vignesh Raghavendra wrote: > > > > > Convert i2c-omap.txt to YAML schema for better checks and documentation. > > > > > > > > > > Following properties were used in DT but were not documented in txt > > > > > bindings and has been included in YAML schema: > > > > > 1. Include ti,am4372-i2c compatible > > > > > 2. Include dmas property used in few OMAP dts files > > > > > > > > The DMA is not supported by i2c-omap driver, so wouldn't be better to > > > > just drop dmas from DTBs to avoid confusions? > > > > It can be added later. > > > > > > Will do.. I will also send patches dropping dmas from dts that currently > > > have them populated. > > > > > hmm, we have > > - DO attempt to make bindings complete even if a driver doesn't support some > > features. For example, if a device has an interrupt, then include the > > 'interrupts' property even if the driver is only polled mode. > > > > in Documentation/devicetree/bindings/writing-bindings.rst > > Shouln't the dma stay there if the hardware supports it? Devicetree > > should describe the hardware not the driver if I understood things > > right. > > True. But my above statement is also valid - it introduces confusion from user point of view. In my OS, 'robOS', the driver supports DMA. > More over, 'dmas' is not part of original binding and were randomly added to some SoCs. > And it's much more easy to extend binding (in the future) then remove something after. In this case, probably given that how it would be extended is already known, but it depends how you extend a binding. My above statement was born out of incomplete MFD and system controller bindings for the most part. > I leave it to Vignesh, Tony to decide. Fine with me. Actually, for DMA with I2C I'd like to see someone show a usecase and data where it's actually beneficial. Rob