From patchwork Sun Jul 24 07:51:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 72657 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp604017qga; Sun, 24 Jul 2016 00:51:45 -0700 (PDT) X-Received: by 10.66.185.228 with SMTP id ff4mr5894707pac.41.1469346705913; Sun, 24 Jul 2016 00:51:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ik5si26759259pac.111.2016.07.24.00.51.45; Sun, 24 Jul 2016 00:51:45 -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 S1751845AbcGXHvo (ORCPT + 7 others); Sun, 24 Jul 2016 03:51:44 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:33504 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562AbcGXHvn (ORCPT ); Sun, 24 Jul 2016 03:51:43 -0400 Received: by mail-lf0-f54.google.com with SMTP id b199so110272553lfe.0 for ; Sun, 24 Jul 2016 00:51:42 -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=JHKm8r0GXnNxEa4Ku8yy1ABkacHTbbxPlSRVSsnrWuE=; b=HG735Redh6izsVLEIqTVa5YP2erSs7p6m+aAgIH9FGDWPGoyeKwHdZEzhiywk7L0Gr KjhLrgL2eK1xwOIkw8R94ul3gbf0C5pCDQbbwQkcSi25FbWbABohk4KdTuRIhlWC/JtM Y/0UOrKYLLei/0mKWzThCsIXW+/hiAeTO90As= 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=JHKm8r0GXnNxEa4Ku8yy1ABkacHTbbxPlSRVSsnrWuE=; b=O8APdNbRXx/j3XQm9196byrdJW/o7OILLlJSRHRg5Nq+iHNkd7o+gZTMYRBedO1ASn ddJFbQjqMwx+g4JmY/UJimMrX2l1Q5TkC4uI10+7dvvxM3Ea8Pn9TQ0Xy4FMxTQmYm3C lz+3cv+2qlSIoPNCimzIwp/Va4uZ3HdJtET9NzcX/qDgXwj0YOb8Wrl6Qjz2DTeRzWdO RMW2duJDRKCVzXpQ0cTwm/3g3mk3t/8gnceb2BK56o1KyyyfVXpBkJ9SOEaEGKhhjEix T0DyxxyQTAy0lGsIMrTNZsSObv9eIAgEXK3Q1HDiRgeoAcQlrhWJlsY+GBK/Vhd+OLDm nRxw== X-Gm-Message-State: AEkoouu91moSpExclkLIW03xw2X1eMhvyykBfDByISrDXJRRyVEvySUI6gNPTQAEScz/Smkd X-Received: by 10.25.209.195 with SMTP id i186mr5897371lfg.230.1469346701694; Sun, 24 Jul 2016 00:51:41 -0700 (PDT) Received: from localhost.localdomain.localdomain (c-cc7c71d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.124.204]) by smtp.gmail.com with ESMTPSA id m62sm4500795lfe.44.2016.07.24.00.51.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jul 2016 00:51:40 -0700 (PDT) From: Linus Walleij To: Jonathan Cameron , linux-iio@vger.kernel.org Cc: Linus Walleij , devicetree@vger.kernel.org, Samu Onkalo , Sebastian Reichel Subject: [PATCH 1/2] iio: magn: DT bindings for AK8974 Date: Sun, 24 Jul 2016 09:51:35 +0200 Message-Id: <1469346695-15302-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 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 Cc: Sebastian Reichel Acked-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v3->v4: - Add support for an optional mounting matrix ChangeLog v2->v3: - No changes, just reposting to keep together with the series ChangeLog v1->v2: - No changes, just reposting to keep together with the series --- .../bindings/iio/magnetometer/ak8974.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/ak8974.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 diff --git a/Documentation/devicetree/bindings/iio/magnetometer/ak8974.txt b/Documentation/devicetree/bindings/iio/magnetometer/ak8974.txt new file mode 100644 index 000000000000..77d5aba1bd8c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/ak8974.txt @@ -0,0 +1,29 @@ +* 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. +- mount-matrix: an optional 3x3 mounting rotation matrix + +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>; +};