From patchwork Mon Sep 16 19:00:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Duszynski X-Patchwork-Id: 11147687 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DFF2476 for ; Mon, 16 Sep 2019 19:01:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BD9AF214D9 for ; Mon, 16 Sep 2019 19:01:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FMVkQonC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390696AbfIPTBJ (ORCPT ); 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-Google-Smtp-Source: APXvYqxZofAFtbsd6wnuxMtHBbE3ssYtyu0+jzniPABwWRU7sHnYjLPfNGt2wY8ZZt86c6541hkyAw== 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 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Convert existing device tree bindings to yaml. Signed-off-by: Tomasz Duszynski Reviewed-by: Rob Herring --- .../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>; + }; + }; + +... From patchwork Mon Sep 16 19:00:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Duszynski X-Patchwork-Id: 11147685 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3446214ED for ; Mon, 16 Sep 2019 19:01:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 11D8D206A4 for ; Mon, 16 Sep 2019 19:01:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="R9jk8HNG" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728077AbfIPTBK (ORCPT ); Mon, 16 Sep 2019 15:01:10 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:43464 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbfIPTBJ (ORCPT ); Mon, 16 Sep 2019 15:01:09 -0400 Received: by mail-lf1-f66.google.com with SMTP id u3so796384lfl.10; Mon, 16 Sep 2019 12:01:07 -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=J2qEccuK5M0KaH9plkbZML+GYrMGeAxlIfBWhOFICTs=; b=R9jk8HNGUF1B1xokpI6pOJu72n/BjXgo8Svaaslkju05WtSqxhkqLjYno7HaS3B0Ln ezNFYvl10xAPTQpgL8/WmMcCYgVeJyDzgS6qhKgb7RAf9qdvsPnSU4djUo5iw/iwelwv u2N09LuAq/vy8Ts48pnABo3oja+IR+PQnfhRKfNa7eJdHkHPntpK80s4hbs1v2Sr7Yld AP9U38wmayYYts57xG1Z9FEcAGBIugGZ0Rcuy9VVmCNYz9Nd6IM7t5n4knVKFAY8QYhW Y/MrPjugZ1vmFFzjzvQHTQF1PrPJWXmcegzv56NBgvAq8zjWdZkQL54hYPMdBetkd7is 8WHA== 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=J2qEccuK5M0KaH9plkbZML+GYrMGeAxlIfBWhOFICTs=; b=GkJgygKboCdqlaE3JcNXcqS4npCPqphxsdwloI53ocjaPzzcYOBwGZGUMmqzNzf65x FU3lgQSykkFSdCiQ5/LNP3KuRR0+7SwcLFRGPp4zHBsPxgX3tEQlFFw19wQBptvmRv7+ hERS9EGthEaSDvoG3KtQc4kRTJhm3kVVlL3lcnybiLFi2qtV74Od7BP0V6VFuv1+ZwNw sZJq0Ryk08Cps0+31UC5fkUSRpSJ4dtnAqPiy9pk3Mev9hXoPHLdZVk91DitwlNhpJGQ W+1hL5KL1C+/zZCx82tDVk8awAkqxbtCRWnBuFNQc+PJt8ShaB8LLxIF2b3wgl2rn8Ei fqMA== X-Gm-Message-State: APjAAAWHghM9LWSLaH574flSnl47snMTKSwTFg1PxNFIO6AW8TNBBRPP 2lyzIfNuKwD/bgkNvTBkaiEAKzoopyXQIA== X-Google-Smtp-Source: APXvYqxC7lPyWDsE2FiRJETKwl4ssw78oh+b7m3LidNF7YQupn5sqcpmQ4S2mH3sZ2gOu43WSUsODw== X-Received: by 2002:ac2:4853:: with SMTP id 19mr475207lfy.69.1568660466662; Mon, 16 Sep 2019 12:01:06 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 12:01:06 -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 2/2] MAINTAINERS: add entry for ROHM BH1750 driver Date: Mon, 16 Sep 2019 21:00:24 +0200 Message-Id: <20190916190024.9955-3-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 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add myself as a ROHM BH1750 ambient light sensor driver maintainer. Signed-off-by: Tomasz Duszynski --- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f0c03740b9fb..928059c5cd49 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13792,6 +13792,12 @@ L: linux-serial@vger.kernel.org S: Odd Fixes F: drivers/tty/serial/rp2.* +ROHM BH1750 AMBIENT LIGHT SENSOR DRIVER +M: Tomasz Duszynski +S: Maintained +F: drivers/iio/light/bh1750.c +F: Documentation/devicetree/bindings/iio/light/bh1750.yaml + ROHM MULTIFUNCTION BD9571MWV-M PMIC DEVICE DRIVERS M: Marek Vasut L: linux-kernel@vger.kernel.org