From patchwork Tue Jul 12 15:07:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 71861 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp524727qga; Tue, 12 Jul 2016 08:07:16 -0700 (PDT) X-Received: by 10.98.34.15 with SMTP id i15mr45666230pfi.29.1468336036209; Tue, 12 Jul 2016 08:07:16 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q186si4303172pfb.213.2016.07.12.08.07.15; Tue, 12 Jul 2016 08:07:16 -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 S1754423AbcGLPHO (ORCPT + 7 others); Tue, 12 Jul 2016 11:07:14 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:34532 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754154AbcGLPHN (ORCPT ); Tue, 12 Jul 2016 11:07:13 -0400 Received: by mail-lf0-f50.google.com with SMTP id h129so16437625lfh.1 for ; Tue, 12 Jul 2016 08:07: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; bh=67DLt5hU8oYn0FmT3v9Mfb2ANBf0jkMyn/XLoqu1n/0=; b=dzSsMqO1RpD7KNjdiN/gYA+3LvYiJpdlI6DjHspiEN/bWa7BQax/mnJJLql69AbhKC RowLRriBXAEOCDjeZctmg+wOlhohrfE/OFilyFjLPnb62zD4Ny+Usow3GC28lesFvUuT bflQzY1sEq1ht/3vLC/rWDlW7+QGbbBiIYJ40= 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=67DLt5hU8oYn0FmT3v9Mfb2ANBf0jkMyn/XLoqu1n/0=; b=JtkKN5rpwflVyuA4ThL3nhBchRDqc3sbqPJvScxPVk34ZRFYGSAkPAgP20I99G7XD4 gxuAr0tAXYg4+DcgOalo/LohhDtJDrXtmtG6PMA+EpznByhXaRF60JOxqo/faTx02MyB leEIyby1inhYqr17ZeXINZt2qWSVBIU6RtI3MDDu2/HX/ErafhLTQLVg5ZBiAv/rV2U8 OMlm+eTuVs+iXF4aqNnZ5MJJwInZQaIQY76Aa5UozX0dizFstIAKAhYKoGyMIBrQzIvM iKMp8LxwcULx2i6E9BlVkJ99wBeUmwZcgSfVW0i+zHtV9pTmc6HqybXe4bchdMCexj5o kZ+g== X-Gm-Message-State: ALyK8tL63Viv5QczM+oCufCDIceLsUgUdIYFst8UqvQnvthLJaLVgRRXolHgronkOh8fT8mG X-Received: by 10.46.0.219 with SMTP id e88mr1510232lji.55.1468336031566; Tue, 12 Jul 2016 08:07:11 -0700 (PDT) Received: from linuslaptop.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id f64sm792906lfi.36.2016.07.12.08.07.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2016 08:07:10 -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] iio: magn: DT bindings for AK8974 Date: Tue, 12 Jul 2016 17:07:03 +0200 Message-Id: <1468336024-24030-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 Acked-by: Rob Herring Signed-off-by: Linus Walleij --- 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 | 28 ++++++++++++++++++++++ 1 file changed, 28 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..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>; +};