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: 161169 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp5024257jan; Tue, 26 Mar 2019 03:17:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqVlhhLY5sWH4/TIjpISzDKglPi8U7Dq2ELCSj+9my6TjAHXSCai15gz1jxRL+mYqMKgT9 X-Received: by 2002:a65:6109:: with SMTP id z9mr2534634pgu.419.1553595429583; Tue, 26 Mar 2019 03:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553595429; cv=none; d=google.com; s=arc-20160816; b=GoYT7C7F819BPS6xa0ztr/yrxU/K06UQYKnmGPVBik6WWFCMy/9rTqHCS+VTWigL6V 2pxH571C60EywsrOkSgOmt5ItuG30IYgRR4FQjo+otHdW4g65w3gefJJUXdK8sgTnTHd sSSF3A7zaDj0BdZx5gDRAZ8q3yRI9LwVtkdNHZZhSpnVwgmQwy89XZPZhpCPaZVbu30A 3GOSmaiFRaRBLhCZgtOLu+HCpmz51dvd37o/7rTqkxF51PYLHaOPFIrbcbuXJitM6H/D XmFqjlXWx92lCIdpTaSNYRlM67yhNPI4Xujg4kEao6lqVMtHpZdkKCb1GLzFr+g3+Wzy wFlg== 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:date:subject:cc:to:from :dkim-signature; bh=hsHbm6H4k3Rr7SoTD7ilcig3tjV30GukFS8w5W/eA04=; b=xrVufhXSFiXIbdPlfgOE9p6SPvRMY4la/WFAAFu7blR+aDBl2UyQATXrehhivINAAH xQ4MH2jqJTbli1okf8rvRXaetAZx4ZORttLyaNJUykDaa0uoq7WOdTMP5FM3mlM75rjd IVlZLXZUE2P/y4raFdXC7NcF+YOavQIwYcbZHh2/G5uV6z6q/eOm+pPdF5YHOAxomRLX eGZDK6QebwinM+u3qVX8rBR0KtcwZRVehLiH1eqwuftuzEoQEaUatx/ZsMcetspVjWuG SeMvbv1ZPA6tbPGjeCJshstrggHiofX/41gJRVyRDhSnz8LRInJ+OuJQyHkCKFZ/bEUk rb9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RxTr9WOK; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g1si16358589plp.406.2019.03.26.03.17.09; Tue, 26 Mar 2019 03:17:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@linaro.org header.s=google header.b=RxTr9WOK; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726553AbfCZKRI (ORCPT + 7 others); 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-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 --- .../bindings/iio/gyroscope/nxp,fxas21002c.txt | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.txt -- 2.21.0 Reviewed-by: Rob Herring 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>; +};