From patchwork Tue Aug 16 13:33:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 74017 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp2005616qga; Tue, 16 Aug 2016 06:33:58 -0700 (PDT) X-Received: by 10.66.222.202 with SMTP id qo10mr8411337pac.76.1471354438311; Tue, 16 Aug 2016 06:33:58 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m22si32242480pfg.0.2016.08.16.06.33.58; Tue, 16 Aug 2016 06:33:58 -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=neutral (body hash did not verify) header.i=@linaro.org; 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=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752434AbcHPNd5 (ORCPT + 7 others); Tue, 16 Aug 2016 09:33:57 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:38120 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753421AbcHPNd4 (ORCPT ); Tue, 16 Aug 2016 09:33:56 -0400 Received: by mail-wm0-f42.google.com with SMTP id o80so168370032wme.1 for ; Tue, 16 Aug 2016 06:33:55 -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; bh=IPjTcBKCOnOjskiEhWCMBzdaaNGN8oClk6tlP3ZIf3o=; b=iMSUH9PYIl6yrn5rL3ZDQbs9ivn1NTKrR6dDxQZ20xRp08ZYf5l6vcUVee665fXgsH WrAS3Micqg4PpBeTpUySVW0Vyf22BQRScx01R4IycVzzJo41HLPd11os4fakXfmh+RJ8 6bTRp9Z+GVFWlOI7z/AU4LbPUs7bkB5f4nxJQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IPjTcBKCOnOjskiEhWCMBzdaaNGN8oClk6tlP3ZIf3o=; b=GBovsfmxCKGqXxosc0a7A1WRhowA6DgE6CDgxlnSmFf8ItesejqJvSYley7SyE3HOs EDnr6YvCJlqR47r10Cd8SB28KzQVcmU1ebLncDt2C/mWBboYLVoSkI2uqdBmseYFbLHY DBZ6WuCGyFjw116TSDZSK2U9WAUFBEmz5mSr/bUO224Spnilg3f6MmgP7RMuOAYy0ucg F63rrtdTMOSMIn5I4hvAFwXllR7bxALVgJb7W3pf9FEqXiScMthw8VyA7i3L83ekOplx 29xdqPU2vtkm65Ep7umDAhmIkTvdhmqi2FxOds65OfHMuPSDm6lNRI9yOLeuPchk9fSI mJHw== X-Gm-Message-State: AEkoouvQOeZMbIf1jG/rBrXO/B0y1wdAHEKQcS9t3SIpGahTAGHnncL9Zg3zXgO7ofb2y589 X-Received: by 10.25.207.10 with SMTP id f10mr6102012lfg.108.1471354434470; Tue, 16 Aug 2016 06:33:54 -0700 (PDT) Received: from localhost.localdomain.localdomain (c-357171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.53]) by smtp.gmail.com with ESMTPSA id 74sm813056ljb.36.2016.08.16.06.33.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Aug 2016 06:33:53 -0700 (PDT) From: Linus Walleij To: Jonathan Cameron , linux-iio@vger.kernel.org Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 01/17] iio: accel: kxsd9: Add device tree bindings Date: Tue, 16 Aug 2016 15:33:27 +0200 Message-Id: <1471354423-19186-2-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1471354423-19186-1-git-send-email-linus.walleij@linaro.org> References: <1471354423-19186-1-git-send-email-linus.walleij@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This accelerometer can be probed from the device tree, so it needs to have proper documentation of it's device tree bindings. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- .../devicetree/bindings/iio/accel/kionix,kxsd9.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/accel/kionix,kxsd9.txt -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Rob Herring diff --git a/Documentation/devicetree/bindings/iio/accel/kionix,kxsd9.txt b/Documentation/devicetree/bindings/iio/accel/kionix,kxsd9.txt new file mode 100644 index 000000000000..b25bf3a77e0f --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/kionix,kxsd9.txt @@ -0,0 +1,22 @@ +Kionix KXSD9 Accelerometer device tree bindings + +Required properties: + - compatible: should be set to "kionix,kxsd9" + - reg: i2c slave address + +Optional properties: + - vdd-supply: The input supply for VDD + - iovdd-supply: The input supply for IOVDD + - interrupts: The movement detection interrupt + - mount-matrix: See mount-matrix.txt + +Example: + +kxsd9@18 { + compatible = "kionix,kxsd9"; + reg = <0x18>; + interrupt-parent = <&foo>; + interrupts = <57 IRQ_TYPE_EDGE_FALLING>; + iovdd-supply = <&bar>; + vdd-supply = <&baz>; +};