Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2473681ybg; Fri, 31 Jul 2020 00:03:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9VJ/oXB+haxh1x+rtuBa2foQRjIWTgGmNFjrc8sbZRYKOsJMZNHr0qIdDovPC0gaK0vWk X-Received: by 2002:a17:906:a1c7:: with SMTP id bx7mr2684361ejb.388.1596179008813; Fri, 31 Jul 2020 00:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596179008; cv=none; d=google.com; s=arc-20160816; b=qxYkEIYozSZ2yBvLuqqDy3oa1lmiUm5VWxkpCcK0ASH5Z0g1XppUWWpxO3nZJjwhhO mRRP8hl8YAb/he+0p7Zm+3N2ojzauL2nXn37FdgeaSygzeyM4kJQ/BtK332Tik7l0bxV 6kWT4gnsI7br+DRzKlwIAd+VO4zmWdN6L/Tqw5odf9Wl/hAg8Y5Q/NGtSalBmx2H8WNb zqGE06K/eW+WPVZUGvyV8a70eNSgEhDV5LFR9zJBv24/32n44EuKh/eQK7Daat8hFV5M /y36x6c+FOyy2I+YuwzVeV2auHDmhLMKH9RPVibxK6nozyRE1e9hl+T07wkesw55kxMf 4yFg== 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; bh=srN3m4dx0q82S9xUakslQSLjuP8eOFDwkJwLhpxVzXU=; b=L9bfCc+mOJoshtFctEmAY0DvR0+fODiLfBdY0mrEx5bP2QTN56UGmKLFDz1dmdPkm+ p7nCEnYfwYJOLcgcS1QjeEL6daoNwakoRX97m5VjblGX3Lolir4mbRG2ajS688KkNK88 Ap/m4PFwGR8cvvvTMG4Wwpv8ckiTQrCYSI0sSdgHdrv3clZalPGfP0mQ4ObYIhnreudR oCX87XIpZzlUpwELbWtOxOq0n9kjp3YCzDk35ruf1ySDWfwBLHFhAp//VbiogZGu9GjU 6SuZev9I9w+nL9Kt3wRxuMfXhWzwE4OvqOuEM2PF+G+XmBoacBYvPMhVY9fCqI18BHxW +zkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m29si4443014edb.298.2020.07.31.00.03.06; Fri, 31 Jul 2020 00:03:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731555AbgGaHCx (ORCPT + 99 others); Fri, 31 Jul 2020 03:02:53 -0400 Received: from mailout09.rmx.de ([94.199.88.74]:54839 "EHLO mailout09.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731375AbgGaHCx (ORCPT ); Fri, 31 Jul 2020 03:02:53 -0400 Received: from kdin01.retarus.com (kdin01.dmz1.retloc [172.19.17.48]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout09.rmx.de (Postfix) with ESMTPS id 4BHysN3DlZzbmq2; Fri, 31 Jul 2020 09:02:48 +0200 (CEST) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin01.retarus.com (Postfix) with ESMTPS id 4BHyrb3MGvz2yrR; Fri, 31 Jul 2020 09:02:07 +0200 (CEST) Received: from N95HX1G2.localdomain (192.168.54.61) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 31 Jul 2020 09:01:58 +0200 From: Christian Eggers To: Rob Herring , Andy Shevchenko , Jonathan Cameron , Jonathan Cameron CC: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , , , , "Christian Eggers" Subject: [PATCH v4 1/2] dt-bindings: iio: light: add AMS AS73211 support Date: Fri, 31 Jul 2020 09:01:13 +0200 Message-ID: <20200731070114.40471-2-ceggers@arri.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200731070114.40471-1-ceggers@arri.de> References: <20200731070114.40471-1-ceggers@arri.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.54.61] X-RMX-ID: 20200731-090207-4BHyrb3MGvz2yrR-0@kdin01 X-RMX-SOURCE: 217.111.95.66 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT bindings for AMS AS73211 XYZ True Color Sensor. Signed-off-by: Christian Eggers --- .../bindings/iio/light/ams,as73211.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/ams,as73211.yaml diff --git a/Documentation/devicetree/bindings/iio/light/ams,as73211.yaml b/Documentation/devicetree/bindings/iio/light/ams,as73211.yaml new file mode 100644 index 000000000000..0e8cd02759b3 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/ams,as73211.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/ams,as73211.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMS AS73211 JENCOLOR(R) Digital XYZ Sensor + +maintainers: + - Christian Eggers + +description: | + XYZ True Color Sensor with I2C Interface + https://ams.com/documents/20143/36005/AS73211_DS000556_3-01.pdf/a65474c0-b302-c2fd-e30a-c98df87616df + +properties: + compatible: + enum: + - ams,as73211 + + reg: + description: + I2C address of the device (0x74...0x77). + maxItems: 1 + + interrupts: + description: + Interrupt specifier for the READY interrupt generated by the device. + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + as73211@74 { + compatible = "ams,as73211"; + reg = <0x74>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_color_sensor>; + interrupt-parent = <&gpio2>; + interrupts = <19 IRQ_TYPE_EDGE_RISING>; /* READY */ + }; + }; +... -- Christian Eggers Embedded software developer Arnold & Richter Cine Technik GmbH & Co. Betriebs KG Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRA 57918 Persoenlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRB 54477 Geschaeftsfuehrer: Dr. Michael Neuhaeuser; Stephan Schenk; Walter Trauninger; Markus Zeiler