Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1776107pxy; Mon, 2 Aug 2021 09:54:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3fA2of9EgOMF/UW8AnwOYNU18Yya95tSOvjvWwthGDq9UQnzpDYa3jmNpBXZrRBoLaXV4 X-Received: by 2002:a17:907:9546:: with SMTP id ex6mr16363927ejc.441.1627923256402; Mon, 02 Aug 2021 09:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627923256; cv=none; d=google.com; s=arc-20160816; b=kY8HKF/w72eAfx9Se2ncSa3jahI4XOhFyvb+iHquEq1FnZwxzixCKHY9qPdXTdhvho k4oU5SCYWy8RzUsvjXyavfiPbH9I4ohXsxlZTM3cAxpdLr7zufLaTzO2TcwqFXMeg4XP g2/SA5xp+eSsUDIsT+agymXfXF//1wyw5Gl3UxY1mqsVGLYu8IOZYBUfYAjdTQRvvlvx 1qwciDg5R51mlboqTD9H13KKbxoBpOEzQB7nSt4oBqilVgGTFLtjFhniUbtENthHNKzU D1r+XfEa7vbbCTlb5KRxVIDJtpL6oQaOM+B868/uK23zYzBP/7IknuoJCyUkpZ/X4WwR URMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GJ/wB5SaZNzipWzV3cX8x7hHQDMnNXMgy0/0mwF3c/c=; b=Mxt5bX/7iS6KNvBAWuFEB3BRpTjiX22RO/hhrH8QfuWRIMJTFEckXXMGt4uUg2nVyJ Y2PTsD8LddL8zXXv58MU+2F92egsXRNTFf7D6a3y+t4yQr8XfdqMdcjaKja+u9OynL6m JYS5bAojyGFLLQRjbr0FABbbIPKzM6PtI8Z01FCA/XdG3oIaOpxmDpTXhRjxv9WnBjEZ zi7wnEpZtVj0qzieh4H+eq0MygawIrPB2Tso26qlMS2BiTxFAD5CTVXk+xQ2ChrJRfKk qf+BzyZ8KAy5z17i4o+eWzLaYe/QHpE5gK+yfcHM4ZUZJlELA7mELp+3OrVQfV3OKcZw ATSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="c/WdP0Xb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id la20si12372804ejc.685.2021.08.02.09.53.52; Mon, 02 Aug 2021 09:54:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="c/WdP0Xb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232875AbhHBQuI (ORCPT + 99 others); Mon, 2 Aug 2021 12:50:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbhHBQuI (ORCPT ); Mon, 2 Aug 2021 12:50:08 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94418C06175F; Mon, 2 Aug 2021 09:49:57 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id a19so24853640oiw.6; Mon, 02 Aug 2021 09:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GJ/wB5SaZNzipWzV3cX8x7hHQDMnNXMgy0/0mwF3c/c=; b=c/WdP0XbjY5Obu7GQps6Gyr4MVEfRvQUrAKedEOu6g6uu0PqglzkzCHtGJHf6nQu7F HYKTahBkB8pPc6aHO9l1OwVWVAyhLai6im+cfV4E53zGI5pVf3QmdSjmp1zdRKPvHi40 f+mwRZHh7w0p9xZVI5MzZFLFwv4tCLMY6O7Ym7SAu47MA/9PKVeYULlifp31FgRXBoUc I2cE2LmL/pc9r4mfGOT+k/pDpiWIYXE/Yc+yAyH87TAmYktX/3sEqrlcvheNiDeNYcZg gD6qhtRx2NRRB1AGD0fTX0iP41Mgt3BEfZKp/6iu0RxyCQSQFwMkOzsFaXDtOTijnKop UF8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GJ/wB5SaZNzipWzV3cX8x7hHQDMnNXMgy0/0mwF3c/c=; b=lzCqFWnCy32eIBKtQuITpLcPAAVNY7b6agbjQzZ5bu9fJhXif6pNf+W3r1sCK0GsEW PLR0Dk8rdCh7pJ4XD2n3/WLUUE9y4g0kVKuuUCyZmqX4vJDCbrJmYsK/yF/fGy8KqDXa 9QiDv3K54ebXfgDsFh679CPVpyXxTlMdutkRThC66kuuvcKm6U4b6ZPflGN7cDuWpGwc aBzgdHXyEGEOPOl67JvPvr+0yZfu5F5C0pclcQwHapfIXjehrqI8yAXLgw/cL4lCXyI/ MQ3vWLewRGyc9JyT2OQElsf2c1ystxUzzrLFuQiwt+iSgmoNtJddxG04pbHM3KQk0tE7 iBuQ== X-Gm-Message-State: AOAM5302QsD/OKpKXzd3z03n4P1y7jrV/322qZQsIBx62kzCNZrRZrNt yFwPEdwRYzLIZFEfQ7R2MmGUtxUA932xJVQkCRo= X-Received: by 2002:aca:3644:: with SMTP id d65mr11317889oia.88.1627922997057; Mon, 02 Aug 2021 09:49:57 -0700 (PDT) MIME-Version: 1.0 References: <1e652b88a367824e58fb71896b4a660204bd7a88.1627709571.git.lucas.p.stankus@gmail.com> <20210801190422.28fd5334@jic23-huawei> In-Reply-To: <20210801190422.28fd5334@jic23-huawei> From: Lucas Stankus Date: Mon, 2 Aug 2021 13:49:21 -0300 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: iio: accel: Add binding documentation for ADXL313 To: Jonathan Cameron Cc: Lars-Peter Clausen , "Hennerich, Michael" , robh+dt@kernel.org, "Bogdan, Dragos" , "Berghe, Darius" , linux-iio , devicetree@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 1, 2021 at 3:01 PM Jonathan Cameron wrote: > > On Sat, 31 Jul 2021 17:36:31 -0300 > Lucas Stankus wrote: > > > Add device tree binding documentation for ADXL313 3-axis accelerometer. > > > > Signed-off-by: Lucas Stankus > > Hi Lucas, > > A few minor requests for additions inline, so we include everything > that is likely to be used by the driver in the longer term. > > > --- > > .../bindings/iio/accel/adi,adxl313.yaml | 75 +++++++++++++++++++ > > 1 file changed, 75 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/accel/adi,adxl313.yaml > > > > diff --git a/Documentation/devicetree/bindings/iio/accel/adi,adxl313.yaml b/Documentation/devicetree/bindings/iio/accel/adi,adxl313.yaml > > new file mode 100644 > > index 000000000000..31f11d7eaaae > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/accel/adi,adxl313.yaml > > @@ -0,0 +1,75 @@ > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/iio/accel/adi,adxl313.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Analog Devices ADXL313 3-Axis Digital Accelerometer > > + > > +maintainers: > > + - Lucas Stankus > > + > > +description: | > > + Analog Devices ADXL313 3-Axis Digital Accelerometer that supports > > + both I2C & SPI interfaces. > > + https://www.analog.com/en/products/adxl313.html > > + > > +properties: > > + compatible: > > + enum: > > + - adi,adxl313 > > + > > + reg: > > + maxItems: 1 > > + > > + spi-3wire: true > > + > > + spi-cpha: true > > + > > + spi-cpol: true > > + > > + spi-max-frequency: true > > + > > + interrupts: > > + maxItems: 2 > > As board designers have an annoying habit of wiring up the second > interrupt only, please also provide interrupt-names so we can > know which one is connected if it's only one. > > From a quick glance at the datasheet, I see this also has two powersupplies. > Please include > vddio-supply > vs-supply - annoyingly the s just stands for supply, but v-supply seems a bit to minimal. > Thanks for the feedback, I'll change it for the v2! > > + > > +required: > > + - compatible > > + - reg > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + #include > > + i2c0 { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + /* Example for a I2C device node */ > > + accelerometer@53 { > > + compatible = "adi,adxl313"; > > + reg = <0x53>; > > + interrupt-parent = <&gpio0>; > > + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; > > + }; > > + }; > > + - | > > + #include > > + #include > > + spi { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + /* Example for a SPI device node */ > > + accelerometer@0 { > > + compatible = "adi,adxl313"; > > + reg = <0>; > > + spi-max-frequency = <5000000>; > > + spi-cpol; > > + spi-cpha; > > + interrupt-parent = <&gpio0>; > > + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; > > + }; > > + }; >