Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp297222imm; Tue, 28 Aug 2018 23:46:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdalfA625ZDyH13d3gRKYc8fxydpnh3ODCImScgEt/YSGfSI+GctFIVhEH9N7KGZF55G+drO X-Received: by 2002:a17:902:e20b:: with SMTP id ce11-v6mr4750830plb.136.1535525160656; Tue, 28 Aug 2018 23:46:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1535525160; cv=pass; d=google.com; s=arc-20160816; b=kmO11GzdDSl87s0Y3WZH4mpFoT6jCFopVWESJo51Y64Nt4O7gbffP0wQUQN6M5xcT6 iZhgm+liQKaSUKqs8NoT7GHBuUKsndbLYEBKcx/F4GxEqJmfVAaMo1Hz+KjUb3aqsSBj 7hITlMrpVkh7oXSD958EUd5UlLxB1bbkUwKIClNkS/d3OCywy4HsTgDvOxDbfv5BaipT wh+ZEOn7BzHFkTNpVSSgCx9cJqzQzIb5SISUcMCokcr+75dTjVdiF/7qKIYcb6wPT8IY /DIA1sbJXBS/5adeeTlIg3UQsO+y/xpKnDF8W7MrOcvA2pHy4Nr/pplJPTM9FnTY5ar5 nC3g== ARC-Message-Signature: i=2; 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:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results:arc-message-signature :arc-authentication-results; bh=HImN7DSwPSlqJnVdPLxthaRtlcjcn8ETLq+7BQzaiBA=; b=e6KgTrdg2eJddT0o1dFmHDeQDqBg4lIGmmtDKuV75Ua1xp63A370oAg8XSqFAwjfth 7wMpBaCJdSIZCM5x751P/Oqo/ETf1nHwCPda7tNlp1znfWNQXFRgQd0IJsSBW7IoAvKE xYCDhRcP2exZrD96OMFKefVpdBvPsrolNY6k94KTCIeHShJjydu1JWglMDQ3sGUim3NG 1QaclyEF6WirL91eC5myJwTRDiDW1+efHMTXprBA55lXl7DmpjFIwFa6HnaHDg9IblGg 7pVGepgpw1qBGpkx6SQ/wl2OALR2JuWCRNZNH5vgTLl1VyU+la8KC0xm9nLwehlMGGn/ 2PZA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@az8.co header.s=dkimmail header.b=lVyZGmFu; arc=pass (i=1 spf=pass spfdomain=az8.co dkim=pass dkdomain=az8.co dmarc=pass fromdomain=az8.co>); 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=az8.co Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r16-v6si3079883pgg.254.2018.08.28.23.45.40; Tue, 28 Aug 2018 23:46:00 -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=@az8.co header.s=dkimmail header.b=lVyZGmFu; arc=pass (i=1 spf=pass spfdomain=az8.co dkim=pass dkdomain=az8.co dmarc=pass fromdomain=az8.co>); 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=az8.co Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727482AbeH2Kjm (ORCPT + 99 others); Wed, 29 Aug 2018 06:39:42 -0400 Received: from sender-of-o52.zoho.com ([135.84.80.217]:21368 "EHLO sender-of-o52.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727099AbeH2Kjl (ORCPT ); Wed, 29 Aug 2018 06:39:41 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1535525035; cv=none; d=zoho.com; s=zohoarc; b=eMHbMCZJRS49NmvPwaDX9+h2k02Vjvt+4qF49nEemQiwv9tBZy4t9HCuNz/XN0R2m1K1nxGYV8D0yCIErFdz3E8gCvgA24zReGhQOlg5ES/ed1sz4iHT9shwtCN7KNmm58c5yq+IFXmpOMN3wSNNgTF7y1tXgR3os0jBC6quoUU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1535525035; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=HImN7DSwPSlqJnVdPLxthaRtlcjcn8ETLq+7BQzaiBA=; b=bnUs4k3VaRoXjxYlUdxrL1IgHxlWNCVVz5s6MKoBaEpCsWHbGNodcHiLxT1qU7ATeHOtwCqKXzyglSoTnyxEOF3xdVBLRHLDibIueUug7DooaPP3gRAcdObnsKZL/+JqcHHHz0YbJSbP2nSJ5i4ecbXp0H/1WDn6+dIqVyuR1+w= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=az8.co; spf=pass smtp.mailfrom=afonsobordado@az8.co; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1535525035; s=dkimmail; d=az8.co; i=afonsobordado@az8.co; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References:Content-Type:Mime-Version:Content-Transfer-Encoding; l=1369; bh=HImN7DSwPSlqJnVdPLxthaRtlcjcn8ETLq+7BQzaiBA=; b=lVyZGmFubbJ+7O99Nr3+TKpM/kvy9TimniG+I1gBzMxxnRprG4y0N1K7hYkJuCf/ 4Zazshp4DO9arjQFrDjE2nYgy2X08Ah6mXoSGNCPqO5mAMNFza98+xkXKvKRy5Z2MTc s4liB1Kl6WzwelGPOYA+Z1HAE+oNAC4G3+GhWoAA= Received: from AYYLMAO-H (bl9-77-228.dsl.telepac.pt [85.242.77.228]) by mx.zohomail.com with SMTPS id 1535525035058852.3440447923557; Tue, 28 Aug 2018 23:43:55 -0700 (PDT) Message-ID: <060655b11b68d25fd855e9535df75db4b113a615.camel@az8.co> Subject: Re: [PATCH 2/4] iio: gyro: add device tree support for fxas21002c From: Afonso Bordado To: Jonathan Cameron 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 Date: Wed, 29 Aug 2018 07:43:53 +0100 In-Reply-To: <20180827181341.6563c0bf@archlinux> References: <20180825211910.22929-1-afonsobordado@az8.co> <20180825211910.22929-2-afonsobordado@az8.co> <20180827181341.6563c0bf@archlinux> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-ZohoMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?