Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp882417imm; Sun, 2 Sep 2018 02:17:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZacyvf6aEIvQzYYYVBQouwpBuaCjQfoNIVgzjK2WDfMB63NQ5eanxLah1b2XrkFaFZg+9V X-Received: by 2002:a65:6413:: with SMTP id a19-v6mr14050666pgv.359.1535879848344; Sun, 02 Sep 2018 02:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535879848; cv=none; d=google.com; s=arc-20160816; b=ga8wQujabtBvovHR7MTRZSTCxNC7Rzrgqmuc7Rbb/276AVJuhI4EOhlC1dO+ANcDM6 e38mPKyWU9k/ps3uWK2w3iQfmI/gZwulDWlmsdalKaYOVVrRTIvtuyEJPsdw0SRlBnU1 k+Bbx6WeovwcfkouLWQjUM+e1hGhfNd67FvKNO8k8KUfpdZOB5+PMUbWd7Tvg6xX7j4J Oj/bakR60aeH5aq2XfB7LMx9fzM9prS8fBxNIKVw+tsxKJOBpNGhp4kpZqO7+jnGiRo7 TCk+Hh/vyhlHJGh5+Qh/pqBHp6MjrB/vTrSvvQ2JCMPLFOQoNnD/ZKLQQgsaY/c2mxHn /oOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=6yhBnakoQ621vR4/ofJu6oSh0GJMvcRWMb6m7VYSFEI=; b=W4iOW9owIqwHT1W5L2vB/Th5NlCeyh0rJcNYexnPPn8LHEaRw/568M48EXOadz2fSs Sr061acfUIjjCfgVT9DUK3wABfBNTPJI4SGuclth/a4NIDiYnX/cR5UuzD2Z8986NeUH gZWzjUt0N27IIMNPxjZYNzXfRULTmS0QXiT2nwl5+FJ3ydXOpoqzey2pL5v/zes78vMT KQNR+QoJglAtahuYPdJoBH5/u60oWt3rquH38ND2IJwrJP/CBc/r1f3QH/4GViqyCqvk bd7TdrODDrD9iXz+vMio4dCVg+ZNDIuYDhwjkXxxzcSuui9g3K2M1tWr+ZyxHtoTM9DH jf2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nNfLdK6e; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k91-v6si14802998pld.187.2018.09.02.02.17.01; Sun, 02 Sep 2018 02:17:28 -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=pass header.i=@kernel.org header.s=default header.b=nNfLdK6e; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726944AbeIBNaV (ORCPT + 99 others); Sun, 2 Sep 2018 09:30:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:33768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726003AbeIBNaU (ORCPT ); Sun, 2 Sep 2018 09:30:20 -0400 Received: from archlinux (82-132-217-68.dab.02.net [82.132.217.68]) (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 87FAC20841; Sun, 2 Sep 2018 09:15:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535879716; bh=69FKzhrE9FRzSRhD9+KzGOOka9KwAomQvmiIE8u2P10=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nNfLdK6enFIpgi9Wh73SrDainjnMKbvYD/hPdr57+fwNxRtLb3GZWriMdPWb3hZVa VZGvoio8UjX3RA+f0PwRBWph4qYk0EoHTQEo4KCWvRiSa4azvKBLAKQP3HnKXLO+J8 S151vQrYBBXhVnc/SaW5Re0qhoinz6RJLlTxr7i4= Date: Sun, 2 Sep 2018 10:15:10 +0100 From: Jonathan Cameron To: Afonso Bordado Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 2/4] iio: gyro: add device tree support for fxas21002c Message-ID: <20180902101510.01225f8d@archlinux> In-Reply-To: <060655b11b68d25fd855e9535df75db4b113a615.camel@az8.co> References: <20180825211910.22929-1-afonsobordado@az8.co> <20180825211910.22929-2-afonsobordado@az8.co> <20180827181341.6563c0bf@archlinux> <060655b11b68d25fd855e9535df75db4b113a615.camel@az8.co> X-Mailer: Claws Mail 3.17.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Aug 2018 07:43:53 +0100 Afonso Bordado wrote: > On Mon, 2018-08-27 at 18:13 +0100, Jonathan Cameron wrote: > > On Sat, 25 Aug 2018 22:19:08 +0100 > > Afonso Bordado wrote: > > > > > This patch adds device tree support for the fxas21002c driver, > > > including > > > bindings. > > > > > > Signed-off-by: Afonso Bordado > > > > Now, the devicetree bindings should not reflect just what the driver > > uses right now, but rather describe the hardware. > > > > There are interrupts on there for starters that definitely want to be > > described from the start. Also there is a reset line that should > > probably > > be here from the start. > > > > Potentially also the two power supplies though that's less critical > > (nice to have though) > > > > It is also an i2c and spi part though that can probably be added > > later as > > we can argue we are only documenting the bindings for the device in > > i2c mode > > for now. > > > > So what is here is fine, but I think we need to describe more. > > > > It's all well understood details of how it is connected so no need to > > have tested it with a driver to be sure it will be right. > > > > Jonathan > > Ok, so i'm thinking about adding both interrupts, the reset line and > the regulators. If i say they are optional in the device tree document, > i shouldn't need to add any more code immediately and could just > implement support for it later right? > Absolutely, as long as you are happy to keep them optional as you add the features to the driver. Regulators make that easy by providing stubs (as long as you don't need to read their voltages). Reset and interrupts will need to be handled explicitly by the driver. Thanks, Jonathan >