Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4574432ybe; Mon, 16 Sep 2019 14:44:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDdGzIPvHEURE0/L5GREDhq86ZIRNt1YsrqiiTtGfEOCtER75OdetaxA0uEeQQGBoAEfbO X-Received: by 2002:a50:b0c6:: with SMTP id j64mr1438018edd.267.1568670294548; Mon, 16 Sep 2019 14:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568670294; cv=none; d=google.com; s=arc-20160816; b=TVhgGH89KTAu5cH/j0t8cvH6qJOj7cfcvP7yDxFqnVi4fpncNifcfMVOydfSkRudy0 zoBagHynDpbXSrAb/OzC2/Ti3UWc0MmM2nskxwx/SznALmc1kx/ujBWaWWbqwCs0xhst H+oJPwhIS3bDQ5ZIjo4/jgB0gm38aSCuWdyGTtxGt5O7vSb4pJOIO+uMZWj/cCZIuR5Z OU5UVVKnivfhk2hdt+Lqz0zQfDzAgH/9qOTyTLTXQ9Oa3RBo1bF/DUy8PjkiwGVhsR/o hJO55Fo8uszk2EZvM7Zm9DuBTVhyCuDRQvNiVdEXUyoy49lVttkeNlvkp7fH2NZuhOh7 ueQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MdFwrVwEUeAJ2VkARMdjmgSlNTftRBjAbtQ5/KVV2eg=; b=oS2Kuak+AVPxnqi8JG6SF7vAMHWY7WlRUCeIcN9xmiKL7RicBBnmOZScmDr3rjxVSE m6jMyOpGvxKo9qt5KlNlHBhFWsDGyZRZ4UKvhfEPjRJceuiBORKTjn/jGAwX6EcNy1TV PUsmsEd4Qm+P+7XVUJX/7yjyn8LYYoyL82J98DSnIonkEnLhPtxcV2KCIXTBTvtcFt6R 2cCRZRhIkVmLLCozgVO+hf2RpQgijO1paP6+gOkOO5Yy/ZwNaFznpOpo9Zh4zolroHQR gIFhfWJWrZKERT98gal56nHdavLLySku7CN+vgetQl9UkyuUA5BsBAKvjhsbTcS4C/Eh H0Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FMVkQonC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mh25si95202ejb.81.2019.09.16.14.44.31; Mon, 16 Sep 2019 14:44:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FMVkQonC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390705AbfIPTBJ (ORCPT + 99 others); Mon, 16 Sep 2019 15:01:09 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:40381 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728077AbfIPTBI (ORCPT ); Mon, 16 Sep 2019 15:01:08 -0400 Received: by mail-lf1-f68.google.com with SMTP id d17so818984lfa.7; Mon, 16 Sep 2019 12:01:06 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=MdFwrVwEUeAJ2VkARMdjmgSlNTftRBjAbtQ5/KVV2eg=; b=FMVkQonCdVSH/hR0LlqfJmZq0V2ZeKqQjdyuZZh9k979QNY8a/wSyLiA7HwqHbgqQU KyfRakFCjhiqK+/UQnkjPaWVhnkE52hkioxLeAZFefPI7QYjukOWnNTmZqIDh1CcSWqW iVMevvVn9Tya7qJ9kBRmvvZNr3XdFGFpItIpwbEISLr+12G79LHCAQJhgmXeHHyzPBFj 6nXO9Sm1UilWdlOuLYIzckydvROdUpmkAzMb5Whyh1f6DmocEad6Wr1SSa8mFWB7tRXY Z9VaEvSx6YpJwL27c1WUSbhJRV/093QzgkTMq627SkIcCQ6KzpbDoZJIA9a+U6hbpoE7 vTxw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=MdFwrVwEUeAJ2VkARMdjmgSlNTftRBjAbtQ5/KVV2eg=; b=ftxfC4NLyh3JHVJeps1ZYj5eKthLsRqpTOxLcuDDJGct2Q3j5h9hhvQqeWqghLzq0O PDstHWE1HxBt6gshulZi160WmSSJ2/Rof/cVWDsxvfn00Ut22QCzrbb3XcIwiwCnSgv1 nf/Sm57VHGo1kpG/+C2dzbuI3JrKVSxaQX0LOn6txOPy2hZWCZEmeoyk5TFELiJq3bIX +/h+HQC47O7o4DQ2oyr8eKtx8gj0IM7jZcp9AoGyCsOTOd/dvrdP/fcVzmnq87PJH8Qs jHEgU7UNW0ZEH4aartj1hyCS0mKNLm7l9PMmnEhaJuek0Kj6zvfOHm0fmreDmzMLE631 G8sA== X-Gm-Message-State: APjAAAXOs5mfybzPoPBr6aBS/d5J3SNQqggT9JyV2u/cyZ1PZk3TwWI9 hg3as9QDD3a4DEewxHeUV9OcO9He44L1Lg== X-Received: by 2002:a19:4b4a:: with SMTP id y71mr489234lfa.118.1568660465364; Mon, 16 Sep 2019 12:01:05 -0700 (PDT) Received: from arch.lan (89-70-31-203.dynamic.chello.pl. [89.70.31.203]) by smtp.gmail.com with ESMTPSA id z9sm8414053ljn.78.2019.09.16.12.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 12:01:03 -0700 (PDT) From: Tomasz Duszynski To: linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, jic23@kernel.org, robh+dt@kernel.org, Tomasz Duszynski Subject: [PATCH 1/2] dt-bindings: iio: light: bh1750: convert bindings to yaml Date: Mon, 16 Sep 2019 21:00:23 +0200 Message-Id: <20190916190024.9955-2-tduszyns@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190916190024.9955-1-tduszyns@gmail.com> References: <20190916190024.9955-1-tduszyns@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert existing device tree bindings to yaml. Signed-off-by: Tomasz Duszynski --- .../devicetree/bindings/iio/light/bh1750.txt | 18 -------- .../devicetree/bindings/iio/light/bh1750.yaml | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.txt create mode 100644 Documentation/devicetree/bindings/iio/light/bh1750.yaml diff --git a/Documentation/devicetree/bindings/iio/light/bh1750.txt b/Documentation/devicetree/bindings/iio/light/bh1750.txt deleted file mode 100644 index 1e7685797d7a..000000000000 --- a/Documentation/devicetree/bindings/iio/light/bh1750.txt +++ /dev/null @@ -1,18 +0,0 @@ -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>; -}; diff --git a/Documentation/devicetree/bindings/iio/light/bh1750.yaml b/Documentation/devicetree/bindings/iio/light/bh1750.yaml new file mode 100644 index 000000000000..1cc60d7ecfa0 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/bh1750.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/bh1750.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BH1750 ambient light sensor + +maintainers: + - Tomasz Duszynski + +description: | + Ambient light sensor with an i2c interface. + +properties: + compatible: + enum: + - rohm,bh1710 + - rohm,bh1715 + - rohm,bh1721 + - rohm,bh1750 + - rohm,bh1751 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@23 { + compatible = "rohm,bh1750"; + reg = <0x23>; + }; + }; + +... -- 2.23.0