Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1096366ybg; Mon, 27 Jul 2020 07:50:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7C6V5814oij1a5ecZ1xPuWEsc18Qtb5/uJTmmho8+espdlSCEvoxNttxDn56XBOTMQEWe X-Received: by 2002:a05:6402:1346:: with SMTP id y6mr22133754edw.192.1595861433432; Mon, 27 Jul 2020 07:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595861433; cv=none; d=google.com; s=arc-20160816; b=gYR9cLp7WbqFG9el2HZEYt8tR1GNN90oYgMiCZyjAIRXvlFBuIAO62w5ISAS8z+81L PKS7f1bJuIpdjuxcYMxVPUtetuguIC03zcZjL4szfQEOnz3LyXDLPcJH54MVPUQRtkJa y0Jhh/8KjgUQWeFqZ4dMU1SGKl3KyOVUzolk3KzJUzqrRvOE0M5iPhg4T3Epr9EppqoE nAeiEk2ISIOqy7mlVIBIdxsLU3Ig3dCh84PZM0oSFKjOg+rtT0RdEW+EKz46kw+WASUq 56Vj+MbEIEod8/kSTQbxLWrK5LUSAcZEwE3tlbf88aBF//LXaw/P5OtAOM8rCyM9nCtQ 7Ehw== 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=WhDk7VG0IvFiQjJaEvmhxQBKUPKAEijFNtGA05NGnU0=; b=E2sEZP7kZZe3DG6jVh1dBSgreFqfKN4CYeB1O68GA5jjQfg4lFUSedOPef7s0bhJEt k+a9H16nmRB7k0J55tCoK/JFDl6oUUGuQyaCuHNFzxwMHfzPo2hu2EC0x29VaIyXLxgo qsDr4/F6XZ5YV1MloQbXjKQXfB9XorOD1VKyzZZ774RndeUGjtFRh1LsjuHp9ybgzdcY GCz2N95lnnvwCKZSBgnrU4BExh/yDOYlPoBG0+2lIWwf+EhtyzXVWbW1CiowqoKCWEPl Q0pPuZqkCWULNqgK8lQioGJ7YQr8YSD/8MJXJFo1MjWso/pTGohNpvmC+x1vz4KeojSw dLRQ== 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 bh1si5889533ejb.453.2020.07.27.07.50.10; Mon, 27 Jul 2020 07:50:33 -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 S1729265AbgG0OtT (ORCPT + 99 others); Mon, 27 Jul 2020 10:49:19 -0400 Received: from mailout02.rmx.de ([62.245.148.41]:46941 "EHLO mailout02.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbgG0OtT (ORCPT ); Mon, 27 Jul 2020 10:49:19 -0400 Received: from kdin02.retarus.com (kdin02.dmz1.retloc [172.19.17.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout02.rmx.de (Postfix) with ESMTPS id 4BFjPQ0vN4zNkNc; Mon, 27 Jul 2020 16:49:14 +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 kdin02.retarus.com (Postfix) with ESMTPS id 4BFjNs2bF8z2TTJK; Mon, 27 Jul 2020 16:48:45 +0200 (CEST) Received: from N95HX1G2.wgnetz.xx (192.168.54.121) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 27 Jul 2020 16:48:45 +0200 From: Christian Eggers To: Rob Herring , Jonathan Cameron CC: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , , , , "Christian Eggers" Subject: [PATCH 1/2] dt-bindings: iio: light: add AMS AS73211 support Date: Mon, 27 Jul 2020 16:47:40 +0200 Message-ID: <20200727144741.3927-2-ceggers@arri.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200727144741.3927-1-ceggers@arri.de> References: <20200727144741.3927-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.121] X-RMX-ID: 20200727-164845-4BFjNs2bF8z2TTJK-0@kdin02 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..25808123a434 --- /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/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). + 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