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: 10898813 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 95D7B13B5 for ; Fri, 12 Apr 2019 16:49:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76B2228DA7 for ; Fri, 12 Apr 2019 16:49:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6886C28DC9; Fri, 12 Apr 2019 16:49:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB1E928DA7 for ; Fri, 12 Apr 2019 16:49:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726913AbfDLQtO (ORCPT ); Fri, 12 Apr 2019 12:49:14 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41611 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726870AbfDLQtO (ORCPT ); Fri, 12 Apr 2019 12:49:14 -0400 Received: by mail-wr1-f68.google.com with SMTP id r4so12761258wrq.8 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=brgkosawykWYrLlpHVtEG7bNDxWhGwJYzdEDNyQzTt0caRHhWM+/Eipf+2Ee3PsJZt ki3neS41cMxjrovuI3cVh7bRuHPif6SttDmAS/yw/fI3u7P2RLTX/nFmFYU3iOAz6g36 2l23MPPYG41X+ykKSX+TFQdRZ46zkq+4+csVs1vUYGW5smLRLuYUYrF8n6b+5IjmU2x5 6RierEoXNHkGsEHLs8Sf3897o692V+sbkWxrQaSJhsSYRhAUVgqrnzTHYHto5qjzVUUi hYt8EFG1Kct5zBfacO0uOOpkeil2Rg7QulYab8BBDA18mJyJ97zkw8m/IQZCZE7+cJrB LS/Q== X-Gm-Message-State: APjAAAXQvzBPKk5/2g9By6oyT8MlYTwz5BGx+UXTd1DSuTkAtuowqfHW YjiFD/ZHoZmRU8VJ9V1kgGwA+/9SukE= X-Google-Smtp-Source: APXvYqxvnuK13wquzI3hUIYfEHtQDx/FaNzy/LP5tNLFQ957v94j/IFCZ56RmPQUzVqOuakYwG8e4w== 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: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; +};