From patchwork Fri Oct 11 18:48:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 176023 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1140551ill; Fri, 11 Oct 2019 11:49:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzg5C8AZiIcAWChxQDDeZAnFMO5qYwgPpJOawoyF49e/kKz8N4hoPEXvGUNMqa0ABHaIfl+ X-Received: by 2002:a05:6402:1694:: with SMTP id a20mr15084424edv.277.1570819754661; Fri, 11 Oct 2019 11:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570819754; cv=none; d=google.com; s=arc-20160816; b=bHs+BMCR7xS/5yUf1XiyHH4MIdjvqRK9ZNqybdQzxVrrvHxdbS7CgL+1aMZYdY3CY5 zj0xp6SqLTuMkmYENtlFo3jPkGpUTM9o340eE8qa2JUv12lqKfDlNVruS0CTx8xDL4Aq eZn9PBEupuu63i07nN9qWn8pIjHbR81N62bw8OMtVYl/V05dMEmQEOk0oLM++xrcPm/A 1ERxBSliz29JklZvGMGhLKM3dbVDGulWeuJlXNhgp5ziNYioBSqoVBJaQrSc0nqEhJcq blIrpue8dwRWQq+l35q/H5BbIktPW9cwAp64Wqe1bbC6HYLt95wXqS85vllAl0CX9iYn ftVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=UBpxkrL7tKtRXDCw9jTxzLjYHb3eYmsJbnS949ORXyY=; b=u31LTa6q19t5FqlKu33EUgs3hIZdoTKuLlUu0PQqYW5HkdLxG/GWlerszz31ql3pry iD7NBZW9QIp9Un49SoUN6iY3pOfDbFV8kcMcMzdrMMqd0fwsYiM0kXW8ibOmypd/mhts ZanjIhU9EHcDGDnoRf4WMAgTSm0l62+HfVmJnI62XbTffBp/BXmeOcYTSwJr7RdGgPNw LniERO4zKQi6K6pyM/99K7+fuG6VTCHXaGFpFQ+aXVS0m2hb9a0WAhnZs0oDmZXCKKKn D4ofYELY3rGN9Uc/RSVScta5fudsyuBgk3vha8UyIFoUYFR7+Yk5i80W3lgElQ1bQegF Ne6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wR7b4t8w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si5872903ejp.418.2019.10.11.11.49.14; Fri, 11 Oct 2019 11:49:14 -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 header.i=@linaro.org header.s=google header.b=wR7b4t8w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728962AbfJKStK (ORCPT + 20 others); Fri, 11 Oct 2019 14:49:10 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:33745 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728374AbfJKStK (ORCPT ); Fri, 11 Oct 2019 14:49:10 -0400 Received: by mail-pf1-f194.google.com with SMTP id q10so6611376pfl.0 for ; Fri, 11 Oct 2019 11:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UBpxkrL7tKtRXDCw9jTxzLjYHb3eYmsJbnS949ORXyY=; b=wR7b4t8wiKB1zRfIkb8Ljj8NDXM8pfWH1+h6ohkMaqOTccYaQbclt3YjdbDEixiooF IDrKFliJUFwWCgTS8nsd5hVivMEZZ2FXCWbfK6EZU0LW/dZdye3VbqMlsjvefV7AWN9M Yit4F6mdtbNSxanYWJMLq8DnMRSV7xLA4XFQ2McB0jIL+db/X1Qwb+UT7KdzJtvez9wp XJzHJnI8f7+F1n8s2VXVCP/mI3/GPj8xGTCriPly2jTdxtIyhpELEv31o71IIKYovCj2 Xqn+zRTbs9/TeMzrMY61Fzq4yWXMJPKLPNB+SibztJMogoCwuz3B1DsXnJwgROY0nq/9 3Rlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UBpxkrL7tKtRXDCw9jTxzLjYHb3eYmsJbnS949ORXyY=; b=tTwMWNdXoeHibCuT6nuO/YUqLIn/qokOGNFABVYnm/HXxRmkUcb6G5lV5Vx39MtKJe xvcGsbxtforakvCPj53F3q/g5FBdgr80VbF2pSwI66mC+wbeofkjyTEUo3PCmv3TXry0 +0cz1gD4LkLd1/U6aeQobktreCrqLojUFWeKq/zuuh73Abt/GX7XLOTCCqo/X4bXcmZ/ ffN69tjN7GswnTQuIn0e3y0ketBsD6qv3k1XbTSDjyODcUBhY3cP873vEjUhyInwikq8 CTfgkijn0x0/2/mIri18dEpQAkdnG1H4oQNSX0PSpVV5hfUo1+qX0ag36f5l3C+uYFbz Vl8A== X-Gm-Message-State: APjAAAUMgZk/9AjTuTLhDI+b+i2/Qg5wstl/dauYR11LUK5WGBO0kKOy cVAPsgHjf8guc6a5kIoxUCv6 X-Received: by 2002:a65:4188:: with SMTP id a8mr17912797pgq.81.1570819749573; Fri, 11 Oct 2019 11:49:09 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6407:a090:18a3:ff6e:e66c:65b0]) by smtp.gmail.com with ESMTPSA id 68sm10031497pgb.39.2019.10.11.11.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 11:49:09 -0700 (PDT) From: Manivannan Sadhasivam To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, robh+dt@kernel.org Cc: alexandru.Ardelean@analog.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v3 1/2] dt-bindings: iio: light: Add binding for ADUX1020 Date: Sat, 12 Oct 2019 00:18:51 +0530 Message-Id: <20191011184852.12202-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191011184852.12202-1-manivannan.sadhasivam@linaro.org> References: <20191011184852.12202-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree binding for Analog Devices ADUX1020 Photometric sensor. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring --- .../bindings/iio/light/adux1020.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/adux1020.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/iio/light/adux1020.yaml b/Documentation/devicetree/bindings/iio/light/adux1020.yaml new file mode 100644 index 000000000000..69bd5c06319d --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/adux1020.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/adux1020.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices ADUX1020 Photometric sensor + +maintainers: + - Manivannan Sadhasivam + +description: | + Photometric sensor over an i2c interface. + https://www.analog.com/media/en/technical-documentation/data-sheets/ADUX1020.pdf + +properties: + compatible: + enum: + - adi,adux1020 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +examples: + - | + #include + + i2c { + + #address-cells = <1>; + #size-cells = <0>; + + adux1020@64 { + compatible = "adi,adux1020"; + reg = <0x64>; + interrupt-parent = <&msmgpio>; + interrupts = <24 IRQ_TYPE_LEVEL_HIGH>; + }; + }; +...