From patchwork Mon Jul 25 13:54:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 72731 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1159357qga; Mon, 25 Jul 2016 06:55:10 -0700 (PDT) X-Received: by 10.66.80.136 with SMTP id r8mr30340774pax.72.1469454910195; Mon, 25 Jul 2016 06:55:10 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n127si33818053pfn.241.2016.07.25.06.55.09; Mon, 25 Jul 2016 06:55:10 -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 S1752169AbcGYNzI (ORCPT + 7 others); Mon, 25 Jul 2016 09:55:08 -0400 Received: from mail-lf0-f41.google.com ([209.85.215.41]:35649 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752108AbcGYNzH (ORCPT ); Mon, 25 Jul 2016 09:55:07 -0400 Received: by mail-lf0-f41.google.com with SMTP id f93so129179284lfi.2 for ; Mon, 25 Jul 2016 06:55:06 -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=o8pRecOf+e5vbOZr2DoO8LtpmqCzCqyjojphG9YWjCg=; b=B+FH73dDsG7BvzQYpwk+gBb1CSLxCz/UQUfFXU5n80QSrPYFoHqram3ETsdogtEvpE afW9ZbkoPSzmmn3wAWm1Yd+bFsUlSrFL2B24yZGq78OgDi0j8iSSMfyixH1KzhKmN15q zrxgzCODNhYgVR9IK11j2bT16jUQm9P1WXcOI= 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=o8pRecOf+e5vbOZr2DoO8LtpmqCzCqyjojphG9YWjCg=; b=G6Jwi19MGYcZX+dcdA0TnsSOmbPt2mUXhhRXmgmZYPBlgRGuQ5JwjZeg5RCVKKo2FK ATNyaSJ67lzvhfyCl4SdFodnrRL2qXeGDF8c0fRVWSV9k73+VVac+xOEGTDqDVIZmpO1 hloXbL7qAZD1hGiUtsEz0PsTvegqL2/+oZtIwZm1bNFgo+sSls8ge3X6UulVgYXO2F9F js+GoFmJD9lxFrx17CerJRLcVsDgavMUASeSYicFzQpuoAhpKme06lA0SaA9E6RzDag4 Kh8MpiUvMBZ+k3PzHxmDNMTPx5ZFDFPvp7AnMGe+Wu0WUp49jcYoCXBIErBiWBdvLTfX sDmg== X-Gm-Message-State: AEkoouvFnw+z6r0xoyy1b4k+/HxucXlE5CdOQZ8NRlzX5UZoRA0GWSbz0nFXWxTV7aMQXjwh X-Received: by 10.25.29.85 with SMTP id d82mr7872279lfd.60.1469454904547; Mon, 25 Jul 2016 06:55:04 -0700 (PDT) Received: from linuslaptop.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id 20sm5519965lja.34.2016.07.25.06.55.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jul 2016 06:55:03 -0700 (PDT) From: Linus Walleij To: Jonathan Cameron , linux-iio@vger.kernel.org Cc: Linus Walleij , devicetree@vger.kernel.org, Samu Onkalo , Sebastian Reichel , Peter Meerwald-Stadler Subject: [PATCH 1/2 v5] iio: magn: DT bindings for AK8974 Date: Mon, 25 Jul 2016 15:54:54 +0200 Message-Id: <1469454895-13659-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 Cc: Peter Meerwald-Stadler Acked-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v4->v5: - No changes, just resend. 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>; +};