Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1286688imu; Fri, 9 Nov 2018 14:02:19 -0800 (PST) X-Google-Smtp-Source: AJdET5fbcW2o6aFpL28CIxBDEWHYj77KyDNv2LgiWtS07im9tmlslFisF3LG6kvjg5qqkIkZ/plf X-Received: by 2002:a63:4f20:: with SMTP id d32mr8987075pgb.47.1541800939071; Fri, 09 Nov 2018 14:02:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541800939; cv=none; d=google.com; s=arc-20160816; b=RfURV/VhZH32rNIxO3rzWQ7OK8gaFJvGd6i9N2l/IiHVRM3ZA4RiKDajx++OsiMiDC rc7Rq92GjygP+aXc/EDtiZn1UZwed7Lr8E8cZC6nSC8dVVb7u30IboRwsMoZSnspfPgn 2bQO9idd32UZ4WqC3ot5/EvOv78miLk145RRiEbN+zkFzdQQeHmtjqzy7ZLrtWQ2/bbG ihX9+z4DLUNrkzgMiq5TxdKThZAfSnnTUqgjc+UoV1HTnpi/FrTPghW/HaGCj2zsYZI6 R74r31x+Xf+DMkcmJCP9dUiwKoOkTLsqa09078ZY3XDfW9iJGaPLfV88uCR7bnwAluwu Vmsg== 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=LhpxHGS44Lcj5Lch5D6YJeYb8TZ7ZrrJRAOf+39PfYk=; b=HRmCP8PTfL4fEesRBA4MHhwAcR9nwmPp+JTxItocS7S+x+bKyY52tthHL6UNe/0X+y hRsgtIjdNH74i2wMk4dbL7xpsBIaJo1z0lN7DW498Ax6SxZhHd/icLikphUv+um+S/mm /N0xQcFKqAbV6tOULjfLZxsnIHMuH543hanDiMw9jmw+13bOGSlVwmnCVpGjWIKaj6yL q+4K5Mud1PKnYqs72pYqtQ6F6ar14IVsJQApP6YTT/1I8u5Y7j7HlHu9EajeXWwuE58e vdVB/M8n2udjFflM+AQ7H5uenRZDwg2eQGaCyi7Gg84MmbY1Mx4ZFRa7w+SvokvDypbH liXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp-br.20150623.gappssmtp.com header.s=20150623 header.b=ahqEazFP; 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 d32-v6si9195131pld.238.2018.11.09.14.02.04; Fri, 09 Nov 2018 14:02:19 -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=ahqEazFP; 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 S1728576AbeKJHoA (ORCPT + 99 others); Sat, 10 Nov 2018 02:44:00 -0500 Received: from mail-qk1-f175.google.com ([209.85.222.175]:43037 "EHLO mail-qk1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728532AbeKJHoA (ORCPT ); Sat, 10 Nov 2018 02:44:00 -0500 Received: by mail-qk1-f175.google.com with SMTP id r71so4343326qkr.10 for ; Fri, 09 Nov 2018 14:01:30 -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=LhpxHGS44Lcj5Lch5D6YJeYb8TZ7ZrrJRAOf+39PfYk=; b=ahqEazFPXrR326X1+ybyRmOJ54W6cO27ZGRlOy4Nn929cxSXbcA6ac+BrYxLEZkiQW bCGG/IbrQo3dkvj3h9xmZSzoPKrE5ArMVbTuMoo8hg83QvLFkcF7rjoimSM9zjoazo2G /8dL8/WQVmkUIyboPHNj7Nv5wIC5zQosAZd58BMNGEelZ3KzC+EFfkUMGQVn8BD0L87w l9C3uYJD5dpLf4PM0QgmWwaLRMSg0FyNgYxbv8bTwVzijdXsRmUfTPQUHvZjDetKBw76 vZoGEE0HL+JQJOCtU4OrTpdr255YHCecMUfdEHB+05mgD4dppvY5F6BGI8SEHQv6WvZz QNrQ== 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=LhpxHGS44Lcj5Lch5D6YJeYb8TZ7ZrrJRAOf+39PfYk=; b=fly1wMjAsHICFQfRlPr6Mv/ydowsEh3OTaJ0YnLQJXW06V57BKBisZa2S4Z1tySnfE KsH6XG4e6mbp6wxoSxiuA49jboI74PCrvsGGi2vMTrc+3gma3bH4F5ugyV05C640zGcs Zemd1mg7Abjff81z4Z1sx19GwY4TfBhVglJuAV+O/foq/30SGzfg0a1R+x2GPKpGVD0r v/MZoC71tisu0K8D4XZ8EYJc8g6WUk41EsAce13QejhmEP5jqGSdQyLuhWJmCbmOX/F5 0wFrN3MepHxVuDkeaw+tA41HGzMGgcxM8SgedQtMBE3ZamvHyD1m0d77K/5piw5J4xjP 2Djg== X-Gm-Message-State: AGRZ1gKI4ugoLVe/z0wqQl0yN+w7kXxp7tobVVGkyF2gswF6NUVyRql4 tVSs4mDyf3hgHCyFGAiPAKmiHQ== X-Received: by 2002:a37:2008:: with SMTP id g8mr9822709qkg.120.1541800889594; Fri, 09 Nov 2018 14:01:29 -0800 (PST) Received: from mango.spo.virtua.com.br ([2804:14c:81:942d::1]) by smtp.gmail.com with ESMTPSA id k6sm6082723qtk.41.2018.11.09.14.01.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Nov 2018 14:01:29 -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 4/6] dt-bindings:iio:resolver: Add docs for ad2s90 Date: Fri, 9 Nov 2018 20:00:42 -0200 Message-Id: <20181109220044.24843-5-matheus.bernardino@usp.br> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181109220044.24843-1-matheus.bernardino@usp.br> References: <20181109220044.24843-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 --- .../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 + +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