From patchwork Tue Mar 26 10:16:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 1065391 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="RxTr9WOK"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44T6W93QG9z9sSZ for ; Tue, 26 Mar 2019 21:17:09 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726553AbfCZKRI (ORCPT ); Tue, 26 Mar 2019 06:17:08 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40156 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbfCZKRI (ORCPT ); Tue, 26 Mar 2019 06:17:08 -0400 Received: by mail-wr1-f67.google.com with SMTP id t5so13550111wri.7 for ; Tue, 26 Mar 2019 03:17:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hsHbm6H4k3Rr7SoTD7ilcig3tjV30GukFS8w5W/eA04=; b=RxTr9WOKVgMkQ3FDYS93MYDdmi+tJcmYCYQTh4+WLSxbjvCB4m8A1W8Hd0N+S+E248 D35ZpcK5Aoo7ti5lXyioRxtzfV8OkEsim+3yDkEqXu+1EdR/Y6J6J1SHXCh8BES6hS4I Qh3pojeEhvOyLRiq9GvPtdCQR1F1H2F/cpHSFuJjf99gPN/uBS08uZ16LkDEiKjL5DUl UlqJSl3HdhRHjv4rVkq0rAlvLVSexIutuHVqG3w/q/+Ia3OVOAh9PhJ2vVMQQUrKIDN6 T/WArG4uoQtXyzCF8kEz4zL6J76tNIde9y5iTSaR7wp7+EBtjzZIYlY7IRYU3yjcLIZq yP1Q== 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:mime-version:content-transfer-encoding; bh=hsHbm6H4k3Rr7SoTD7ilcig3tjV30GukFS8w5W/eA04=; b=hGJ4tZ2pQpIjjWbDvIrp8mURfGl/wLUgVXHiDhH8Ga1cGJa8gp0X2DvGL8swXMdSTY 0GXq0qqkjYL2hNewa0gT5wuoT3QoLkz8/w5dbvIEe1JUAgh1L3qFgFJ0aycEA063o4AM a6ltYVIc+nYyq2QPOQzoXHk2Nr1siXk+KyT1FcXOq8VT4ylNDOIuSFaHn+ZR+nRCbj5A k4mi+lfMM8e/swwNVJuuHk996ArnL5YozvaMGU4DBlfj5v0Gji8vb6Y/QG51v1bRhR7i WeADzpaGq7ZJzOy3ZOckU7zXBnWS6IdaBjlyO8CjrTwpG9t3MIsKMu+jbYRH3jqeImAN S4YA== X-Gm-Message-State: APjAAAWYVNu5Khl5srh5lyIh9erQAV/jgqsdKjhIPuFO55YbLb9Ev6kY JE4/KhLm2qgtXyMa4lxwVeakHA== X-Google-Smtp-Source: APXvYqzA/sTYD9gcxp0MVg0oAbILzwogjaJja0tQNd/u7po5p60P5nSVYWQwa2zijnLLIegYfEVAMw== X-Received: by 2002:adf:ee91:: with SMTP id b17mr19127096wro.234.1553595426821; Tue, 26 Mar 2019 03:17:06 -0700 (PDT) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id j1sm22281024wme.4.2019.03.26.03.17.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 03:17:06 -0700 (PDT) From: Rui Miguel Silva To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Shawn Guo , Rob Herring , Fabio Estevam Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Rui Miguel Silva Subject: [PATCH v5 1/6] iio: gyro: add DT bindings to fxas21002c Date: Tue, 26 Mar 2019 10:16:46 +0000 Message-Id: <20190326101651.25056-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190326101651.25056-1-rui.silva@linaro.org> References: <20190326101651.25056-1-rui.silva@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add device tree bindings for the FXAS21002C gyroscope. Signed-off-by: Rui Miguel Silva Reviewed-by: Rob Herring --- .../bindings/iio/gyroscope/nxp,fxas21002c.txt | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.txt diff --git a/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.txt b/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.txt new file mode 100644 index 000000000000..465e104bbf14 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.txt @@ -0,0 +1,31 @@ +* NXP FXAS21002C Gyroscope device tree bindings + +http://www.nxp.com/products/sensors/gyroscopes/3-axis-digital-gyroscope:FXAS21002C + +Required properties: + - compatible : should be "nxp,fxas21002c" + - reg : the I2C address of the sensor or SPI chip select number for the + device. + - vdd-supply: phandle to the regulator that provides power to the sensor. + - vddio-supply: phandle to the regulator that provides power to the bus. + +Optional properties: + - reset-gpios : gpio used to reset the device, see gpio/gpio.txt + - interrupts : device support 2 interrupts, INT1 and INT2, + the interrupts can be triggered on rising or falling edges. + See interrupt-controller/interrupts.txt + - interrupt-names: should contain "INT1" or "INT2", the gyroscope interrupt + line in use. + - drive-open-drain: the interrupt/data ready line will be configured + as open drain, which is useful if several sensors share + the same interrupt line. This is a boolean property. + (This binding is taken from pinctrl/pinctrl-bindings.txt) + +Example: + +gyroscope@20 { + compatible = "nxp,fxas21002c"; + reg = <0x20>; + vdd-supply = <®_peri_3p15v>; + vddio-supply = <®_peri_3p15v>; +};