From patchwork Fri Apr 12 16:48:56 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: 162126 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp857967jan; Fri, 12 Apr 2019 09:49:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYo+T/6ZplvacN1+zW/wrTh3+HDCMW3smMnNiDmC3snCtVT48YZTyF04u0RvV0FV6poNOR X-Received: by 2002:a62:1385:: with SMTP id 5mr58107063pft.221.1555087755166; Fri, 12 Apr 2019 09:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555087755; cv=none; d=google.com; s=arc-20160816; b=HgFt3qZ9dP0i4BASv0jQCPVbxjl3R3DplZKbpooLgeT2UKzEoo5Hg9wCFjYYJDoic4 agdDEv1/7bZjR52moHD3FhGaKSyP746Ol/k7mj/zkfLlIRM6KB6J0pcTdnUzfbrNpNmn XCb53jHW1iMYj9BWH9QqBcJDsI4GrPhMVK+FW7kGeNIAQIKIXfXbroxankc3ZBLlrTMY ph7UpK08ypPKKPhWPNqR3JjrSZ3QU9qXB2BDGCap6faqihSCGAga7JxgztNpvqWTFFhf dF+817csxenkFMoVr1n2Qn4tWU0+FiHB7uxgi1xW0i7m9ehexTX0aWNeDnVeJ3t7pn2T NtDA== 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=xndsdNKupCrtLI+E4Zuybchip1AkkdCy59d6FVBn3vA=; b=DxYqiJZ3LX82kOK5i36pkLvaHAtlks/6zL+DbZBIe299VNccAhwmk69soE0pELOSWr CV7ep5vPtJx65agvSOI/p+cwDpSIwJJqt3LB9UaJBvAZlt5L/fU5QAQgu/mr919II1zm h9jWk+2WYfu+ziTfSCiM1Cxo++TUdbx1Mq+iI20ZuF4U6y74uWbMdzJC8Y/8HAoiwAVR s22GjVrO9+CnQVkb49TYRVNYHdw53hlp2Y7Ch+PIlb8MRR36MAVMWiqzuhXuFdj+3g4a OFZ1gN6OGAtIm6sf4vpTKp4wDTISoiXghWNBfrGX1AlePQK6rvaqg335TNj3MkNmK5KK AVEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="t34mCP/1"; 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 m5si37190885pll.132.2019.04.12.09.49.14; Fri, 12 Apr 2019 09:49:15 -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="t34mCP/1"; 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 S1726815AbfDLQtO (ORCPT + 7 others); Fri, 12 Apr 2019 12:49:14 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34370 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726884AbfDLQtO (ORCPT ); Fri, 12 Apr 2019 12:49:14 -0400 Received: by mail-wr1-f67.google.com with SMTP id p10so12831089wrq.1 for ; Fri, 12 Apr 2019 09:49:13 -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=xndsdNKupCrtLI+E4Zuybchip1AkkdCy59d6FVBn3vA=; b=t34mCP/1SgyP5uDN5yldWxX6OO0yrISdzpuRYplaBJ10+rFfo4jhGKu9H4Vu66ZtxZ uYFTfQOV2xibxSCQciuvz0E2/J9ANiqZzJCzI31AjzIe1ugmclZeNNRyG+3f0nYb+t+V AgXjAGCbWKQJrJCKYx5wY7zK/MmcNWhXUNp6X3nxj7L0w6galNi2iLsR8A5ZakUmIyOA qou0xowynoRJ+E748prjx4+yJPjtPAK+SMdLmJBy/3m7Uxw+Eg8dmY+yEFk3/Pw+0mCN GI06dw/SiCZzZZgS0fDnUvSzMy1lgJ/zueV+QYhuz8RiNpGioAEILy5+zSvo1V2EiDov ZgZA== 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=xndsdNKupCrtLI+E4Zuybchip1AkkdCy59d6FVBn3vA=; b=C5vWPj14k4HaNZ4mybUZ51EiVj/0QnxVDqFRYqyVdU2S3ThePzseTYLeVLqF3WuzkC qfdHFUOe4Sfrbiy7yOGBEUnfze7V9jO0jDnFaW0nrIOFv7hqW2oDG/w20tH9BoNyg8TH dx07o42GX9SoRK7HkUX6wT8bERR2VnPTlBDfk6QO/L78NzRcjmCMPndMaysNcIYp8e3G jb85elLq/8Q0jQDM1Ag4fPrXWjTL58BXh306JCk0YJhB/nCvXAibSZ6gVH6dMrQMt9Nk JO/9rq93diHubYKiHiu7BxxoYR5JrTOw/m7YNeg5x+rnj6ckY3tEKmzyfe/MLitGVGJR X6pA== X-Gm-Message-State: APjAAAWGBzvwpxehl3sLvpAzJGPwp4kWztJXjg/9D+Oa7IoPzfu3npWG 8guazc942n+ALrQnKjepaOKGeg== X-Received: by 2002:a5d:68cf:: with SMTP id p15mr15787348wrw.301.1555087752448; Fri, 12 Apr 2019 09:49:12 -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 h10sm73863141wrs.27.2019.04.12.09.49.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 09:49:12 -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 , Rob Herring Subject: [PATCH v6 1/6] iio: gyro: add DT bindings to fxas21002c Date: Fri, 12 Apr 2019 17:48:56 +0100 Message-Id: <20190412164901.2321-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190412164901.2321-1-rui.silva@linaro.org> References: <20190412164901.2321-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 -- 2.21.0 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>; +};