Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2911651imu; Sun, 11 Nov 2018 03:49:30 -0800 (PST) X-Google-Smtp-Source: AJdET5eFxt8mOqNX7iGuGc5pwD4nq75/0Y3oGQylUJ+rbdIlRoHSIMY8/y2UX4d19rUipkOKVEGU X-Received: by 2002:a17:902:8486:: with SMTP id c6-v6mr15505693plo.119.1541936970807; Sun, 11 Nov 2018 03:49:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541936970; cv=none; d=google.com; s=arc-20160816; b=Y/nHMm9Ftcf6090021OI7mRoik/JoHBYacVhe3dajhTpT7QLbQ0zPeehWhSD3USHGO KDDv5TvrGLBx2TdteSmybhd179VH/GQReWWH4u7odhBygni0iSxMVGpXIwCrnWMVgDpn iumfY2vgmnty3YEcQjQRCLW/Yb8n4aaMOoa7YmWgla82GlLvwjmI6em1qBqyGHKFX3AA YSBIc6LBPwhr1thkv9KG7hOTco6+cbZEG1hq0p9NzZVzqler4JAozXHprI2RVg9fC+DT xqbu5HB0orFJottQKzgtwREuv488Sh1tn8evCc4qAgTu7+OA5ieD2Foz9w0TyUm6EgOO e0Lw== 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; bh=2xMgVTNnR1lm/qYA+JjDVGLiAJ51qM0bld94hsll1ks=; b=UjDJnOWP3N9lmsy4leiZgJXqmRQ5QbH84dnySXuVRDdURLckiXEtEPVFBe7ElkEg/J DdU0K6gr15kWBHuaP45ZopWFfT3gWHxHXApYLBRXiCxuYadWXu6xvZJ+ebELnVwZUDJW qWrB2yjquN3MUtfc4wLDdM+BWvUUYQIn74/vN/Uxds5j0vWRpscHHYHWB2C/qgnXz3hu tg0mIr+j5wLGJNbWr7BIoii3o+nuOH7Je+KN0KkMPGknae8Y8Pk4evKjm9KGLpqydqSN +1wDWc0brU1u4Bt0OFlvnFJShgdsF7089m8NMKf8SsVzOald+0V2Mo8StUmpzuJqq1u6 YDvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O3yXwfOx; 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 z3-v6si15563465pfl.209.2018.11.11.03.49.15; Sun, 11 Nov 2018 03:49:30 -0800 (PST) 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=O3yXwfOx; 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 S1727823AbeKKVhP (ORCPT + 99 others); Sun, 11 Nov 2018 16:37:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:58408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727510AbeKKVhP (ORCPT ); Sun, 11 Nov 2018 16:37:15 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (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 1183A20866; Sun, 11 Nov 2018 11:48:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541936934; bh=EgN4fWcY1wL7m5PyWEo4qb0ogZSCXVDnMBvtzAbieGM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=O3yXwfOxE7J14vE6EiwZiEes5FU4unZhUrWzJpR0mPriWh6wlvWZEt9c9w/lMAqW/ r3nuFMAbkk5Qz+eWwTGSh5L9Kdi27KiLyjvdzXqb+3DGXQKUMWyCdIXBBx05+WEA30 PS5JUi1XklkxJb0M9y+56BsF48eNKlWlcK6bAy2s= Date: Sun, 11 Nov 2018 11:48:48 +0000 From: Jonathan Cameron To: Matheus Tavares Cc: Lars-Peter Clausen , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , Rob Herring , Mark Rutland , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandru Ardelean , kernel-usp@googlegroups.com, victorcolombo@gmail.com, broonie@kernel.org Subject: Re: [PATCH 4/6] dt-bindings:iio:resolver: Add docs for ad2s90 Message-ID: <20181111114848.266d3937@archlinux> In-Reply-To: <20181109220044.24843-5-matheus.bernardino@usp.br> References: <20181109220044.24843-1-matheus.bernardino@usp.br> <20181109220044.24843-5-matheus.bernardino@usp.br> X-Mailer: Claws Mail 3.17.1 (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 Fri, 9 Nov 2018 20:00:42 -0200 Matheus Tavares wrote: > This patch adds the device tree binding documentation for the ad2s90 > resolver-to-digital converter. > > Signed-off-by: Matheus Tavares > --- > .../bindings/iio/resolver/ad2s90.txt | 26 +++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/resolver/ad2s90.txt > > diff --git a/Documentation/devicetree/bindings/iio/resolver/ad2s90.txt b/Documentation/devicetree/bindings/iio/resolver/ad2s90.txt > new file mode 100644 > index 000000000000..b42cc7752ffd > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/resolver/ad2s90.txt > @@ -0,0 +1,26 @@ > +Analog Devices AD2S90 Resolver-to-Digital Converter > + > +https://www.analog.com/en/products/ad2s90.html > + > +Required properties: > + - compatible : should be "adi,ad2s90" > + - reg : SPI chip select number for the device > + - spi-max-frequency : set maximum clock frequency, must be 830000 > + - spi-cpol and spi-cpha : must be defined to enable SPI mode 3 As the part only works in mode 3, my gut feeling is that this belongs in the driver, not here. Rob, what do you think? > + > +Note about max frequency: > + Chip's max frequency, as specified in its datasheet, is 2Mhz. But a 600ns > + delay is expected between the application of a logic LO to CS and the > + application of SCLK, as also specified. And since the delay is not > + implemented in the spi code, to satisfy it, SCLK's period should be at most > + 2 * 600ns, so the max frequency should be 1 / (2 * 6e-7), which gives > + roughly 830000Hz. > + > +Example: > +resolver@0 { > + compatible = "adi,ad2s90"; > + reg = <0>; > + spi-max-frequency = <830000>; > + spi-cpol; > + spi-cpha; > +};