Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1498565pxa; Sun, 2 Aug 2020 09:41:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy16a9EPbX1JdZNAOXPasXxWDYG7WiwBFPjkAZar3+Yi1WN1cCac4dF8h4qfObtPI8OR8VX X-Received: by 2002:a05:6402:6cc:: with SMTP id n12mr12873510edy.258.1596386491648; Sun, 02 Aug 2020 09:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596386491; cv=none; d=google.com; s=arc-20160816; b=FamEYS5jA6XuADnsyNf3navZQQ6sUoVZPoO+Z4nH00ipioIsY6QM3SswKlljKzD9b8 oOFpVVHHWMqgnP49mMk4HaLnNeFUC1NekmQ71BzpJYLARz7PYmhv1xsXKvSodpulseSh Qo0efiaZgj9L3EffOu9WDe8UkS3/G3+TANRgEQLJe6UANVlneA3622C6F98YJtYe8ujh GyEtICjNjWPVhWVqzLOvfvQ/7qoM7p9/MMhiQ/rX3OLj3AEFNrYsozOiaiUaAlRwPmvZ ynBCieFzWdI3JtEHcQ73xs8MIOnQCuNwe1MbfJEAvA21vPKG/B4IbsPKGDCOkgIllTDX jFQw== 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=RJiagetmQP/QXvCrFCtapulRS0mGQ+tBzB1q7mEiG5c=; b=yeFnVOc7iDHsFIxKYfA+LtDI0OBdGzrgCFHDJ2NGnbLSBiOLl35r1FhfRPhlGnvKs+ w+Zg+4GZNvUyQ3K6/OXOFMHVQpr/sd9cH5H2zy47lRXggMyunIqTb+5sHUu5G9TCw0Ya eNKs0YaU7QI0DzSYzEOBfJLn08ZgZ063UJ1zWIgH7OIYPbWAwQtE/TEQWiJ7BEXcEwlH P+4If2pap7HcxigdjSh+bRJ5gw3Z0GV5D1rQbEykRRvhKibOAU0MB1NVs/OsXhQcdSzH ornEOLenu27MN6dNy1qxKqj/fHakZljvPS5SAqTomGA/+F9tzQAjvzjdZfzg1I4zMEOI +g5A== 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 m22si5991986edr.374.2020.08.02.09.41.10; Sun, 02 Aug 2020 09:41:31 -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 S1726962AbgHBQkC (ORCPT + 99 others); Sun, 2 Aug 2020 12:40:02 -0400 Received: from mailout06.rmx.de ([94.199.90.92]:55378 "EHLO mailout06.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbgHBQkC (ORCPT ); Sun, 2 Aug 2020 12:40:02 -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 mailout06.rmx.de (Postfix) with ESMTPS id 4BKRZP25g2z9sWy; Sun, 2 Aug 2020 18:39:57 +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 4BKRYS3kF2z2TRmB; Sun, 2 Aug 2020 18:39:08 +0200 (CEST) Received: from N95HX1G2.wgnetz.xx (192.168.54.16) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 2 Aug 2020 18:38:55 +0200 From: Christian Eggers To: Rob Herring , Andy Shevchenko , Jonathan Cameron , Jonathan Cameron CC: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , , , , "Christian Eggers" , Rob Herring Subject: [PATCH v5 1/2] dt-bindings: iio: light: add AMS AS73211 support Date: Sun, 2 Aug 2020 18:37:34 +0200 Message-ID: <20200802163735.76617-2-ceggers@arri.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200802163735.76617-1-ceggers@arri.de> References: <20200802163735.76617-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.16] X-RMX-ID: 20200802-183916-4BKRYS3kF2z2TRmB-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 Reviewed-by: Rob Herring --- .../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