From patchwork Wed Mar 13 18:39:57 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: 160265 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp14636966jad; Wed, 13 Mar 2019 11:40:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZwFldLOkn7XHvvsMcSmngxxEtveQP27wo1I2BTeBpZf93Dnm3k002Xs0SYsC0g54pHzr/ X-Received: by 2002:a63:234c:: with SMTP id u12mr42197227pgm.282.1552502417281; Wed, 13 Mar 2019 11:40:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552502417; cv=none; d=google.com; s=arc-20160816; b=xpAvsTB5QVwTHfIG6Vvcpvos8bWwW+CJ5Hob7x7MgfrrMQyHGWYrcTcAwjElGx8Xx0 WJOuUm9Wqh60ba1wVijCHZWnsNVyhkuUx80u740b5pCkz7tPBifuz29ieXUGwKD7aEE4 2zhQVEDlIH9KrDhCriUNAFuhZi37au0EO+tRKRYCdoS6htBc3TrLiyz2RtVtcjy/Z7bN /RzG9V/HHrcdlgQQK+tSBeYz+fHrdnNEcTdAmd+V0ULXMaH4QSKPj0Z852KdwmXq5EPv Dlp0QF95mNqFa08d3zwG1BMhZw+LFXMKr2gV9eNbBh1e06Zp8i4T6QW6iw03zcFxrD4b fEeg== 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=7OCibVDj3ON11Iv/B5fQbr5wmXHceO6Y9v3ZEb/PvXw=; b=oHlqAJMbhI6MsQ1wwac0iyEpP+SRypCC+keV9BNx8rxX9IeEqWvdJ4PwFTTKq9pS0x U8UOykKz5HHYcaSB8ybpX9Bo4/byIj6g7uQxJGaq+zX2bCMEHdoaH4PmG4vBsFU9WtkB LR78kWAaFjbInQce0h14EpZUgofSas8ipKc7IGHi544qXcBXRZtIV5jKyj+nqxOAEgdo 2H7s6cN4AVYU4MQypSr1miv139phAX206TDs6iKvjLiIqDP/wxNuB4b2X6+Q3C7kJbqn 74maQwi9FrHKpLSgIMnZJl+Wvt80dMi6/Q43fFPMFVc8xHHDUHIUWY1AcZyFeJBwiI0c OjIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GZFKU34S; 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 i4si10114961pgs.408.2019.03.13.11.40.17; Wed, 13 Mar 2019 11:40:17 -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=GZFKU34S; 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 S1727136AbfCMSkO (ORCPT + 7 others); Wed, 13 Mar 2019 14:40:14 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:32918 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727116AbfCMSkO (ORCPT ); Wed, 13 Mar 2019 14:40:14 -0400 Received: by mail-wr1-f66.google.com with SMTP id i8so3165653wrm.0 for ; Wed, 13 Mar 2019 11:40:12 -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=7OCibVDj3ON11Iv/B5fQbr5wmXHceO6Y9v3ZEb/PvXw=; b=GZFKU34S2Lbx6DqysakGu7w/AXr0EKkf9jtsvsWBUqgpXPcOPQq7742J26yfxhbR// Nx/zswMUYxhTce7T9oOxQDeDcg/5M9lBp9f76DS0hAzhCGv2ONEUQL+BIxA4p2TyWxCA 0KthCXFbxL/BweQb3SDsBHJKaGTbohGVD5x5vkp8AkKIquvjxDl1E2Gtsb5l/DxCmMru xYyrOXcsVU6/F4vwpVp26+TtVzUrb3oB25sNYdfYfdBHYxeEJ6NPHJwZ40NbQNPz4Apo lXqSb8x9aWtTtDNe7dyEMJV6x9izYW3ezMOx71YmTAbWe1cwzXpWyOCaixAYZU141O8T RlTQ== 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=7OCibVDj3ON11Iv/B5fQbr5wmXHceO6Y9v3ZEb/PvXw=; b=BSR8Z+B0PDMmVM1VhtU1xtfd5gEkO80K8RQNOPR8RlDdFkZWCLVsNUYgxI4t80mWGo SDPLXuCofPVfpGakgF47HXX0gd9XgOnzsu/EB0LjCF6dzDRODa597b6l7gNCG5stVZ7c RJV9v9Bp2orUadh/NgV05oTV+/s9NKre2XpBzFEKtLT1IeJ6w22k4xtre2he7uUWVQZ2 SXYpIOn4e+FN3hi0dSALU/F0yCF18+6KrvFsq4crkueRXu0b+ub8DLzyxokvUUTfIC2o YvE7V2KBGT66K39HKyiMO4wL+4WiP8AEeadol6Aa3tv+Cemy4EJoxPw4Yhzeqc9QvJ3J zs9A== X-Gm-Message-State: APjAAAU2bxsGtiSqQKL/8Nz+qDgEMXxg9XUxwCcP0mhXGHL5v05fh8wb Rmq9+U+J7jE5ExWNww/ZF1OHng== X-Received: by 2002:a05:6000:8b:: with SMTP id m11mr27770411wrx.243.1552502412067; Wed, 13 Mar 2019 11:40:12 -0700 (PDT) Received: from arch-late.localdomain ([87.196.73.151]) by smtp.gmail.com with ESMTPSA id p17sm3829660wmi.35.2019.03.13.11.40.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Mar 2019 11:40:11 -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 v3 1/6] iio: gyro: add DT bindings to fxas21002c Date: Wed, 13 Mar 2019 18:39:57 +0000 Message-Id: <20190313184002.2501-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190313184002.2501-1-rui.silva@linaro.org> References: <20190313184002.2501-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 | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.txt -- 2.20.1 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..68b4cd283d1d --- /dev/null +++ b/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.txt @@ -0,0 +1,26 @@ +* 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. + See interrupt-controller/interrupts.txt + - interrupt-names: should contain "INT1" or "INT2", the gyroscope interrupt + line in use. + +Example: + +gyroscope@20 { + compatible = "nxp,fxas21002c"; + reg = <0x20>; + vdd-supply = <®_peri_3p15v>; + vddio-supply = <®_peri_3p15v>; +};