From patchwork Wed Jun 22 15:11:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 70662 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp2599369qgy; Wed, 22 Jun 2016 08:11:56 -0700 (PDT) X-Received: by 10.66.245.1 with SMTP id xk1mr1979013pac.58.1466608316655; Wed, 22 Jun 2016 08:11:56 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bw10si414787pab.179.2016.06.22.08.11.56; Wed, 22 Jun 2016 08:11:56 -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 S1751748AbcFVPLy (ORCPT + 7 others); Wed, 22 Jun 2016 11:11:54 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:35299 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751434AbcFVPLx (ORCPT ); Wed, 22 Jun 2016 11:11:53 -0400 Received: by mail-lf0-f54.google.com with SMTP id l188so75566845lfe.2 for ; Wed, 22 Jun 2016 08:11:27 -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=TuW/x0Igb/2SO7pyxKRcdinSKXlYvKNpOeH0FFXX0XI=; b=bBjE4YAiQb+zuxlhfu5jmu4Rr8khndHO4OfdOs2p2YVKaemL/stzWE+zTvwT1A8bi5 M5LrX10CslYIiCXOVibkcs45RiCb9TnncP27f45nMRAPYTujXNgPIKBbPJgp9D7pOxbG TfCgTTsdyat0Onwg5VSuHb5D7zG3yEVHR4xr0= 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=TuW/x0Igb/2SO7pyxKRcdinSKXlYvKNpOeH0FFXX0XI=; b=PnBfLKMHfz3HnR6XMDABJLm+Bdrh0e7POl+N567QeCvqvUQh9a2StR2YVRLVtk0+An KWZJ4G+nJIqtQ4/+SbVZKCIlvQoCS5G8JnxQhOuKzu6ib5V6zKuVIvcSylAE1tElhTlF Mq58cADjyx2fIQGuUtY14H8qfoTuzxEmeSMR8EkZdaHXt7Cz0LJQYT61tg4Ms7M0rHXD yAqVMzvS0NZxLaA6EY+989qtDER0i29O7a0uis6rBUBYYfOnz1hGAygp/yFpIdvgUPJG VBtQrn2IKJuIV7ZEd2yZm2CxbWdR8xZmLMHz6OAyI0uXfe1MChzQ6ars1a/DpTqHujHT M7lA== X-Gm-Message-State: ALyK8tJ/PWae42o4TY6DKf5UlHcjLeUBSU08+kHNWs73d+hvwcgSrqz4Q60mL5Ykb+aTcD7t X-Received: by 10.25.144.16 with SMTP id s16mr5716856lfd.8.1466608286403; Wed, 22 Jun 2016 08:11:26 -0700 (PDT) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id c201sm81186lfe.10.2016.06.22.08.11.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jun 2016 08:11:25 -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: Wed, 22 Jun 2016 17:11:16 +0200 Message-Id: <1466608276-10401-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 --- .../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 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>; +};