Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3243033imu; Sat, 24 Nov 2018 00:55:30 -0800 (PST) X-Google-Smtp-Source: AJdET5ekTmukAPC+4pDm5hhr7FHHj1lgB8hDa9iZhDI5GM9EbJ39BfvYFBMH3d5edIAhzMFmhXpI X-Received: by 2002:a63:d904:: with SMTP id r4mr17294567pgg.207.1543049730724; Sat, 24 Nov 2018 00:55:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543049730; cv=none; d=google.com; s=arc-20160816; b=r4Vi/FAJDBbKvG3RFGT+HRkuwJ+3wdq8lqzVUVshIYsusUNP/+Ez145rzVmAYpvKhl clRtCtslWFNgQ3+hwBBL5Ve5IJpVffOsQFoURhfQz4NsBd/p8/0zd7ZWLUgQdutJF4rp Ko+Q276SnQdQMm00F19gSRiKEFIznc5GEZacQa4ESFO3ahWKtmolnJda5sC+ByW4bH5M 4NjPNEykw8xcGMv1njaKWFRz+MtA8u0pyYNTljx73uKkiJV4q8nM65H/E5c5Q2w7z9f0 SLZcVTYoz6W+syN7LstlUYFrva7dVNHgM0G03W/HQsZYr+skTTkCr0SlgdC7U2SYtOS/ Go6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=oroyWqz7mhwKQukHd290ZNW1AWaEfORaZNjSC7qXdww=; b=EOAD5BCfpexwBj1dJtj4D7x/aB1Rz/9/n5JO3k6AsvmpggNd8PLvpPX9St8tddtD/7 JltKh8SsXmruSHbwDU/PpPOBj0NYjDmIsvfPT4qbB605t3h/LSCtZFSrRcH348I+U141 QEFqKC2THDhAf45Oat82OStarrjAR7IB5RreYsINQTtxvHr/Uo7ag2tPVCZ/a50A53aE T1anySfEHbgHYKNwPkKdEZEkxOigoNkMh2JVj5KcHq8bHo0mHRiwSJuNnPU5QLQhe5SR aH7iN13Ef4CdoQgjyUZUZ0xzAzKJg6J0BhvZPOTIGRU3GeIylJkSVgV0UEnNAa67Vj7G 0log== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=BYGwc2t+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si5373242pls.34.2018.11.24.00.55.16; Sat, 24 Nov 2018 00:55: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=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=BYGwc2t+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728340AbeKXLKF (ORCPT + 99 others); Sat, 24 Nov 2018 06:10:05 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:40489 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728312AbeKXLKE (ORCPT ); Sat, 24 Nov 2018 06:10:04 -0500 Received: by mail-qt1-f194.google.com with SMTP id k12so12040327qtf.7 for ; Fri, 23 Nov 2018 16:23:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp-br.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oroyWqz7mhwKQukHd290ZNW1AWaEfORaZNjSC7qXdww=; b=BYGwc2t+78nSAvWlAoJvLaAmAwN1ZVk/Qj4LJBbed0k+XO9/aUiy2xhGc+hK/hAZkZ pMd3w5zXmFXuwuf2G243LRnK0uNgHb9aqyFJektF4xj6Q+yUQ3iXwBmgRSaRC9iO3IUf 31slpD2Wj0RlAyR8AvmRyZPQvtIzskP2hActL81Z9i9Xx1J2vfAQSGVuwAdfX0q1orH6 ZpOz19zw+LV323H1nDqnm/Hcc1ZRyJmLOnSZmLvktSGtW3nKXbG7LXRDrhHqEJvwEG1g Qc+Vs9BxjQgALn1oDeUu9+dQoo336blSsGIqYtVH+wyGW7g/p6vard7M3meDK6+7owe/ 1Jiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oroyWqz7mhwKQukHd290ZNW1AWaEfORaZNjSC7qXdww=; b=V9q8hg7isIUqs09Z4Zs1jRwi4c02y8jmP1vIgYnAh8vTvGyIW6V6OlCmQN3x4/jtgV pIOUqZIy0heiuZD9CuFihQ8hDh7EvX8gpSKpD+kUIcmHruiY2oJviBINfTCZH2bslbhR d9N+qhirqJDoHace0qcgNKblv4HYfnnU9Whe/wtPBtMf/Thgplht4M3u2lzisLd9+bOE cSJz9rcLTINHiuy7KYCw12ANK7QShmiPILekmyfioEU9bo8cO7uEEux0WvoDvoETn+wI +VNQ5ip/Db2MGO1QnkfNa5LY/Z6IQyHKoi15o+cUVAnpROvPRywkMMrXBkxK0/ji4yEw 3UEQ== X-Gm-Message-State: AA+aEWbW8r2smX6ECpXHYbu28lGFY4AdvGjju/IkyE0HkEVKGi4BMO9W nqOmDQhwnXI35TiGiohgHVn6Ig== X-Received: by 2002:ac8:543:: with SMTP id c3mr16913925qth.34.1543019022545; Fri, 23 Nov 2018 16:23:42 -0800 (PST) Received: from mango.spo.virtua.com.br ([2804:14c:81:942d::3]) by smtp.gmail.com with ESMTPSA id o34sm26707515qte.4.2018.11.23.16.23.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 16:23:42 -0800 (PST) From: Matheus Tavares To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , Rob Herring , Mark Rutland Cc: 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 Subject: [PATCH v3 4/7] dt-bindings:iio:resolver: Add docs for ad2s90 Date: Fri, 23 Nov 2018 22:23:09 -0200 Message-Id: <20181124002312.6923-5-matheus.bernardino@usp.br> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181124002312.6923-1-matheus.bernardino@usp.br> References: <20181124002312.6923-1-matheus.bernardino@usp.br> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the device tree binding documentation for the ad2s90 resolver-to-digital converter. Signed-off-by: Matheus Tavares --- Changes in v3: - Added reference to spi-bus documentation after spi properties, as suggested by Alexandru Ardelean. Changes in v2: - Rewritten 'spi-cpol and spi-cpha' item to say that the device can work in either mode (0,0) or (1,1) and explain how they should be specified in DT. .../bindings/iio/resolver/ad2s90.txt | 31 +++++++++++++++++++ 1 file changed, 31 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..477d41fa6467 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/resolver/ad2s90.txt @@ -0,0 +1,31 @@ +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: + Either SPI mode (0,0) or (1,1) must be used, so specify none or both of + spi-cpha, spi-cpol. + +See for more details: + Documentation/devicetree/bindings/spi/spi-bus.txt + +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; +}; -- 2.18.0