From patchwork Mon Jul 4 09:08:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 71345 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1454121qgy; Mon, 4 Jul 2016 02:08:21 -0700 (PDT) X-Received: by 10.98.36.130 with SMTP id k2mr20960704pfk.118.1467623301316; Mon, 04 Jul 2016 02:08:21 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7si2848661pal.170.2016.07.04.02.08.21; Mon, 04 Jul 2016 02:08:21 -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 S1753344AbcGDJIU (ORCPT + 7 others); Mon, 4 Jul 2016 05:08:20 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:35559 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753325AbcGDJIT (ORCPT ); Mon, 4 Jul 2016 05:08:19 -0400 Received: by mail-lf0-f42.google.com with SMTP id l188so113077237lfe.2 for ; Mon, 04 Jul 2016 02:08:18 -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; bh=0//JRr8r6GP8x4y/VQpmv5MC2NkMuuMwaUJ+iPxiORQ=; b=E/Qa5UIUbKA9dvsyZIl/iQLeR7ZfEjmRiKLkyjOfZ1d0xyUrN/f+HCylsQ76DMNsTX yoS+VFpzoj0ajNRXleKft1HTVsrRMbm6UII9ytLsyItlnh2QIzOx3vp8LxnGT6RF+HSY DIqVDcQyFIAZJBymcjw7goIg5Kjc5oGZazmUo= 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; bh=0//JRr8r6GP8x4y/VQpmv5MC2NkMuuMwaUJ+iPxiORQ=; b=Y+YRpgXmoockTjI9OAWPWkr2v0fc0K84axiI1jbV1Am0JbDEjAftdHo+fvGQVrYGqN arlMWoPxKfF+tuUauzuAJReDt/F30fKJFzz5H/kZ3qiqok4/olNPSOwTf0ziy/phs0x0 RC+JJHa0A1H+0ZqVUng3aIA/EjI85jTwfvoA2rwAMrHxiZ1Gw7RsZAI2WPBdocoKE1rJ eHgGtOhaTPjVZfoCYpbDunPdjW07XRGgE1cq0/bPusGfs9N72ngmmd1iUCuFv7JJIC5D FuQSqOR1Yc3/H3MORG9j1YuUGuV9xafPjbxWbwb5htXUHzSxBLISoSHqvMQ6nfF41u6j U3WQ== X-Gm-Message-State: ALyK8tIi5U26jdIClddO6smI3bHOEDJIZ2cgnD+l8iYdIl4/gjs1bPinpuoLprzBey7GXBcR X-Received: by 10.25.159.17 with SMTP id i17mr2827030lfe.76.1467623297321; Mon, 04 Jul 2016 02:08:17 -0700 (PDT) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id 76sm4532812lfu.26.2016.07.04.02.08.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jul 2016 02:08:16 -0700 (PDT) From: Linus Walleij To: Jonathan Cameron , linux-iio@vger.kernel.org Cc: Linus Walleij , devicetree@vger.kernel.org, Samu Onkalo Subject: [PATCH 1/2 v2] iio: magn: DT bindings for AK8974 Date: Mon, 4 Jul 2016 11:08:06 +0200 Message-Id: <1467623287-9877-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.11 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds device tree bindings for the AK8974 magnetometer, similar to those for the AK8975. Cc: devicetree@vger.kernel.org Cc: Samu Onkalo Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - No changes, just reposting to keep together with the series --- .../bindings/iio/magnetometer/ak8974.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/ak8974.txt -- 2.4.11 -- 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/magnetometer/ak8974.txt b/Documentation/devicetree/bindings/iio/magnetometer/ak8974.txt new file mode 100644 index 000000000000..967f8e9b9319 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/ak8974.txt @@ -0,0 +1,28 @@ +* Asahi Kasei AK8974 magnetometer sensor + +Required properties: + +- compatible : should be "asahi-kasei,ak8974" +- reg : the I2C address of the magnetometer + +Optional properties: + +- avdd-supply: regulator supply for the analog voltage + (see regulator/regulator.txt) +- dvdd-supply: regulator supply for the digital voltage + (see regulator/regulator.txt) +- interrupts: data ready (DRDY) and interrupt (INT1) lines + from the chip, the DRDY interrupt must be placed first. + The interrupts can be triggered on rising or falling + edges alike. + +Example: + +ak8974@0f { + compatible = "asahi-kasei,ak8974"; + reg = <0x0f>; + avdd-supply = <&foo_reg>; + dvdd-supply = <&bar_reg>; + interrupts = <0 IRQ_TYPE_EDGE_RISING>, + <1 IRQ_TYPE_EDGE_RISING>; +};