From patchwork Fri Sep 28 00:29:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Yang X-Patchwork-Id: 10618751 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2913214BD for ; Fri, 28 Sep 2018 00:30:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 150502B22E for ; Fri, 28 Sep 2018 00:30:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08D3C2B262; Fri, 28 Sep 2018 00:30:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2FE12B22E for ; Fri, 28 Sep 2018 00:30:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728251AbeI1GvM (ORCPT ); Fri, 28 Sep 2018 02:51:12 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:44251 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbeI1GvM (ORCPT ); Fri, 28 Sep 2018 02:51:12 -0400 Received: by mail-io1-f67.google.com with SMTP id u12-v6so3140703ioc.11; Thu, 27 Sep 2018 17:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=uhdMuGSgilQYdfghsiQsGyl22I3jhLnaWudIsjlWo5k=; b=nPHOtlCJBHHMcYNVoH3gfY4Reo94K+uwfTO7gi+bzOtNR5n3RKWcc10qCNpqqGQD9k O+6Mgcm807Ne5vjIoWPi0jShS7ZnSNrJhDxQsZjJ0T/T5MnuBIHQQ82dgrslsZWntqh/ 91C66TF2kHNcXv1ZhJMakPZnSJsLjiYUaegaRqSR2mYcezTty6pTB504jJmUKhxQYjKP B1inZijmSAk/4+DsDHyWndEHqnomN/kTKb9hYITkru7BR4Zv0lFYyJm5Kcwm8hzO4E2Z enSmuf7gfj4RrV/9kAHIXienCMoTfp751sWltlafyvysQcE3fEQ1ievvnIm3/LdmsG9F W93Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uhdMuGSgilQYdfghsiQsGyl22I3jhLnaWudIsjlWo5k=; b=TCh+ivtlUOT2hmgpwbIE60jG+RlKRbUrwCozM7voglFhbQui0Y1Eid/a3JjmLvplR3 k6JW1ALjlqGduKty7eWtgxG1o8vPKLM835dRZMBk0uoWcfZpVrzAVdE9innEepjTOiGN TPnV523NEkwgWqqr6iJ/ggifp9/P3lErMLS0O9vQ64eIaXLLa3j1IZ6RlQF4OxxxUZBd C4pg8lkpYSziyxGuhUvXocP6wcjczc9dWtt25QZR2Gb//VzFLVdkALAXvew4U/bs7WG/ kyFwciWf1LOE4dnsRRBZReTVg6BXmqbxJG64OdfT/XXnWqgWOBI93GIOCP9+BCvbZJNC 5LQA== X-Gm-Message-State: ABuFfojPzTUQsrUzG6rOC1w/LOX4ftOKJg6ecHAIUq8Jh70edaKiYL5K hiSeDHohuFfaUK7J9xlrrg== X-Google-Smtp-Source: ACcGV60h7BwVvxlxAOTXWsI7G6Wi4qgyuWNVlm1u0ZO6kKx+v7kj4LbwFBYmQjecUIn5tJUePpdhOA== X-Received: by 2002:a6b:8b8b:: with SMTP id n133-v6mr9992702iod.234.1538094614831; Thu, 27 Sep 2018 17:30:14 -0700 (PDT) Received: from localhost.localdomain (CPE1cabc0918a93-CM1cabc0918a90.cpe.net.cable.rogers.com. [99.229.26.117]) by smtp.gmail.com with ESMTPSA id i8-v6sm1355106ioa.6.2018.09.27.17.30.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Sep 2018 17:30:13 -0700 (PDT) From: ryang To: Jonathan Cameron Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ryang Subject: [PATCH v4 1/2] dt-bindings: iio: light: bh1750: Add device tree binding documentation Date: Thu, 27 Sep 2018 20:29:57 -0400 Message-Id: <20180928002958.3935-1-decatf@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Document device tree bindings for ROHM BH1750 ambient light sensor driver. Signed-off-by: ryang --- Changes in v4: - Change example node-name to light-sensor .../devicetree/bindings/iio/light/bh1750.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.txt diff --git a/Documentation/devicetree/bindings/iio/light/bh1750.txt b/Documentation/devicetree/bindings/iio/light/bh1750.txt new file mode 100644 index 000000000000..1e7685797d7a --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/bh1750.txt @@ -0,0 +1,18 @@ +ROHM BH1750 - ALS, Ambient light sensor + +Required properties: + +- compatible: Must be one of: + "rohm,bh1710" + "rohm,bh1715" + "rohm,bh1721" + "rohm,bh1750" + "rohm,bh1751" +- reg: the I2C address of the sensor + +Example: + +light-sensor@23 { + compatible = "rohm,bh1750"; + reg = <0x23>; +};