Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp356035yba; Wed, 24 Apr 2019 02:23:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7MzNLhhv3FpJickwFrcFM4iv5fu6p68HpE7CyFSOngeuvYvZELuuMuzABT1ZVDx7r9UuP X-Received: by 2002:aa7:9466:: with SMTP id t6mr32407898pfq.246.1556097838950; Wed, 24 Apr 2019 02:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556097838; cv=none; d=google.com; s=arc-20160816; b=FLfnk0U/PsYErn521TV9RsGrzGrw3DY8OYnhktfApvtP15zlU6G3NGTY9LzgzaxCYv LHCfsPljpiH8gZMx8xmQX98QwDggusbMLCdGxjMDsuE695bci1PXHO8JHRdUYSYHjlbs q1HlchVZGQ0NmujzZvy2pSaf+hNHJW0kzCcNI1S0pL70lYMLqb2tgudr8YJ5Md8635Tn vgSHCDM4lROfrkQoLPPbbKDMRZ5ge9rGSN2GGgCavAJDdwUakpPt6tXMD3HsuITPIBbn eD2hgx3PrcaQmssHDU6x/+OPWksENoM6J1kMPuxrb+wsu4bw++3F/bxeEG6v3w4knIHk n/ug== 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=wI4okYB9Mx/zryoG4t0nhmOnBXwOWS9+FkgRlanb+GI=; b=aRw8GME+eN3xZzgrkYc+K6PW38TU1PF05AS9/gzgFGVRMc11/TdDNq8CV6DxNnXHKn PtAwgsn+K2B4WudVvCNxiKPXnPbKwwowr9qx4Gb8x2aTmAj1K/jQLGlTeK4guAE33ItN 8liI6tmul0xnk026iT/Iyt/PwkT4FQVcWaZOlGPDZbeqKvEQ11KrPWpz0uDggBkcNGa+ 9ci2UemYlabMzMYZFdk00LshQqy7EAv8NhJb1OXLqXFL493in2sSBkx++rtYFT0hQE3M qlR/9P0wOTtOhfN59GFdwvJv0Fiiog46g8x0ObFD2Zvdt8rJGlwmQt5BPL0T92Rjkc0b EsmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=BqJuFkrn; 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 x10si17938173plo.422.2019.04.24.02.23.43; Wed, 24 Apr 2019 02:23:58 -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=BqJuFkrn; 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 S1728244AbfDXJWu (ORCPT + 99 others); Wed, 24 Apr 2019 05:22:50 -0400 Received: from onstation.org ([52.200.56.107]:38204 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726657AbfDXJWq (ORCPT ); Wed, 24 Apr 2019 05:22:46 -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 5852B44712; Wed, 24 Apr 2019 09:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1556097765; bh=pX7e5bQjHIQyDMEUniVF45vctpknbuAnjJ7y5xQOkX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BqJuFkrnCPl2qlk1OiWUpBr4y02OpIM7AmPlXn5T7FB2zAsKOWhtV1SOeT0aaEC4y iDsHcl00FtrtNYzbXGWbSUcourDp/iCZYD9ueysVk4zmKBXr9AXSo2HNc8N17od9av iahpPuNTgFhKKGcJmyCYbzUMYWB+6C/Fz4R19xRU= From: Brian Masney To: jic23@kernel.org, robh+dt@kernel.org Cc: lars@metafoo.de, pmeerw@pmeerw.net, mark.rutland@arm.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: iio: tsl2583: convert bindings to YAML format Date: Wed, 24 Apr 2019 05:22:38 -0400 Message-Id: <20190424092238.6381-2-masneyb@onstation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190424092238.6381-1-masneyb@onstation.org> References: <20190424092238.6381-1-masneyb@onstation.org> 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 tsl2583 device tree bindings to the new YAML format. Signed-off-by: Brian Masney --- Changes since v1: - Dropped description from reg and interrupts properties. - Dropped $ref from vcc-supply property. - Changed 'tsl2581@29' in example to 'als-sensor@29' I can no longer find the data sheet for this device linked on AMS's site. The datasheet is still on Digikey [1], however I didn't include it in the binding document since I assume that we should only link to the manufacturer's website. https://media.digikey.com/pdf/Data%20Sheets/Austriamicrosystems%20PDFs/TSL2581,83.pdf .../devicetree/bindings/iio/light/tsl2583.txt | 25 ---------- .../bindings/iio/light/tsl2583.yaml | 46 +++++++++++++++++++ 2 files changed, 46 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/light/tsl2583.txt create mode 100644 Documentation/devicetree/bindings/iio/light/tsl2583.yaml diff --git a/Documentation/devicetree/bindings/iio/light/tsl2583.txt b/Documentation/devicetree/bindings/iio/light/tsl2583.txt deleted file mode 100644 index 059dffa1829a..000000000000 --- a/Documentation/devicetree/bindings/iio/light/tsl2583.txt +++ /dev/null @@ -1,25 +0,0 @@ -* TAOS TSL 2580/2581/2583 ALS sensor - -Required properties: - - - compatible: Should be one of - "amstaos,tsl2580" - "amstaos,tsl2581" - "amstaos,tsl2583" - - 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: - -tsl2581@29 { - compatible = "amstaos,tsl2581"; - reg = <0x29>; -}; diff --git a/Documentation/devicetree/bindings/iio/light/tsl2583.yaml b/Documentation/devicetree/bindings/iio/light/tsl2583.yaml new file mode 100644 index 000000000000..6989a8a54c5c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/tsl2583.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/tsl2583.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMS/TAOS Ambient Light Sensor (ALS) + +maintainers: + - Brian Masney + +description: | + Ambient light sensing with an i2c interface. + +properties: + compatible: + enum: + - amstaos,tsl2580 + - amstaos,tsl2581 + - amstaos,tsl2583 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vcc-supply: + description: Regulator that provides power to the sensor + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + als-sensor@29 { + compatible = "amstaos,tsl2581"; + reg = <0x29>; + }; + }; +... -- 2.20.1