Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1985546yba; Sat, 27 Apr 2019 11:26:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhRop+gSnewGbClRbX3SYlbtIfGV1DMGsvzYDk/y2O6Ppih4IezSrRQRLhDsLqxvCxMqnf X-Received: by 2002:a63:ff26:: with SMTP id k38mr50543209pgi.123.1556389612646; Sat, 27 Apr 2019 11:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556389612; cv=none; d=google.com; s=arc-20160816; b=l8Tlnt2duqxGgUMrH1JvWv872kULdO7kyhaZB2Sx1qIgj2KQcb/xjBvTHFnpMI5gky 9LtfJ9TvUnI7+4WxTrPTT4YaR3U2R5HHqmXR6Id852fu8TLvX4T+dsMuutJdfmlrkkkU +4iuHHqzdbjU4ckdO8Xw7TItuzDXxb6vR7v3sWRpLh3Jqy9bL55MTD9wPapX3e/8He8v NKbBqtxzpr7IbKwXtALQrGb+7DOuWkJw+y0bWjyMFBuC3MCi+OOhtgoRRc39S8OnvjbD ahOmG2/6nZJr1KANKFdSH2MmsMbJB3PDd8gA4VfgO2FztTJDfEAM0js+IEF/07xpILlq vd3A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=y7ru/dUWZQT2uOQgaj1CfHp/NjnyLlA3/hX5ek88C0M=; b=Oh2lxY++dPn7T5Az7bS+nVPk2WH5Y6EIkJervds12gFxlXuUtSxOYajbPTO8urvhQO kHpGbZ2OjiJc8t7enM4tYqyaGURXQxK9DeH3Bh6/MZKaCN0GEkPqIfrIrC43vb4/eQzl 9c//6S5omdqjgGHGGFcFAjhn1b5Jyz4dK9kDOKq0NSiMxJtO4bDxoTg0XNS810Khy+aT 2xfWbIlH0+8wmGTJ4aXQyf2WliHVgXWBnnXLdpVQYz6GaRwe3hxFi/Ixx8QyI8DtperW 7Pj1dzBdDGTB/2NTCwf820W4owCEfpI9dbedo9/cOlNVCQCPXUK1cRuLkYnBFiMHo8pX ZvrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=fgoWSiWR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si27316869pgh.448.2019.04.27.11.26.37; Sat, 27 Apr 2019 11:26:52 -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 (test mode) header.i=@onstation.org header.s=default header.b=fgoWSiWR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726344AbfD0SZY (ORCPT + 99 others); Sat, 27 Apr 2019 14:25:24 -0400 Received: from onstation.org ([52.200.56.107]:53464 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbfD0SZY (ORCPT ); Sat, 27 Apr 2019 14:25:24 -0400 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 4CCA03E93F; Sat, 27 Apr 2019 18:25:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1556389523; bh=BWIBvQzUZK2Ol1QHN0Z+llq/hFlZfM3/sDYxGcaanFY=; h=From:To:Cc:Subject:Date:From; b=fgoWSiWRg1oBcJ76/WV6s9Sl+L9YI4QZvkZHlYOIbddJ9DwW+SG4GJkP2DzqxB+Hk SdYXGmBUdkLPPsOG5ucJhxBJqyHMor8liu1fKs967tXDPeS3SYcct9i2eqb1187buN apgQKdSiWeH+f5OUoOpQcMyVPoFVlBTM+QheLwEA= From: Brian Masney To: jic23@kernel.org, robh+dt@kernel.org Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, mark.rutland@arm.com, anson.huang@nxp.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, ldewangan@nvidia.com, rklein@nvidia.com Subject: [PATCH] dt-bindings: iio: isl29018: convert bindings to YAML format Date: Sat, 27 Apr 2019 14:23:59 -0400 Message-Id: <20190427182359.27254-1-masneyb@onstation.org> X-Mailer: git-send-email 2.20.1 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 the isl29018 device tree bindings to the new YAML format. Signed-off-by: Brian Masney --- I'm willing to be listed as the maintainer since this is one of the drivers that I moved out out of staging unless one of the original authors wants to be listed instead. I added the BSD-2-Clause to the new binding document. I wrote the original document and the only commit since then was from Rob in commit 791d3ef2e111 ("dt-bindings: remove 'interrupt-parent' from bindings") .../bindings/iio/light/isl29018.txt | 27 --------- .../bindings/iio/light/isl29018.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/light/isl29018.txt create mode 100644 Documentation/devicetree/bindings/iio/light/isl29018.yaml diff --git a/Documentation/devicetree/bindings/iio/light/isl29018.txt b/Documentation/devicetree/bindings/iio/light/isl29018.txt deleted file mode 100644 index b9bbde3e13ed..000000000000 --- a/Documentation/devicetree/bindings/iio/light/isl29018.txt +++ /dev/null @@ -1,27 +0,0 @@ -* ISL 29018/29023/29035 I2C ALS, Proximity, and Infrared sensor - -Required properties: - - - compatible: Should be one of - "isil,isl29018" - "isil,isl29023" - "isil,isl29035" - - reg: the I2C address of the device - -Optional properties: - - - interrupts: the sole interrupt generated by the device - - Refer to interrupt-controller/interrupts.txt for generic interrupt client - node bindings. - - - vcc-supply: phandle to the regulator that provides power to the sensor. - -Example: - -isl29018@44 { - compatible = "isil,isl29018"; - reg = <0x44>; - interrupt-parent = <&gpio>; - interrupts = ; -}; diff --git a/Documentation/devicetree/bindings/iio/light/isl29018.yaml b/Documentation/devicetree/bindings/iio/light/isl29018.yaml new file mode 100644 index 000000000000..cbb00be8f359 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/isl29018.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/isl29018.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: | + Intersil 29018/29023/29035 Ambient Light, Infrared Light, and Proximity Sensor + +maintainers: + - Brian Masney + +description: | + Ambient and infrared light sensing with proximity detection over an i2c + interface. + + https://www.renesas.com/us/en/www/doc/datasheet/isl29018.pdf + https://www.renesas.com/us/en/www/doc/datasheet/isl29023.pdf + https://www.renesas.com/us/en/www/doc/datasheet/isl29035.pdf + +properties: + compatible: + enum: + - isil,isl29018 + - isil,isl29023 + - isil,isl29035 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vcc-supply: + description: Regulator that provides power to the sensor + +required: + - compatible + - reg + +examples: + - | + #include + + i2c { + + #address-cells = <1>; + #size-cells = <0>; + + sensor@44 { + compatible = "isil,isl29018"; + reg = <0x44>; + interrupts-extended = <&msmgpio 61 IRQ_TYPE_LEVEL_HIGH>; + }; + }; +... -- 2.20.1