From patchwork Sun Feb 24 20:33:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bobby Eshleman X-Patchwork-Id: 10828051 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 278EA1575 for ; Sun, 24 Feb 2019 20:33:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1656C2AB4C for ; Sun, 24 Feb 2019 20:33:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A6162ABDF; Sun, 24 Feb 2019 20:33:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA8302AB4C for ; Sun, 24 Feb 2019 20:33:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728407AbfBXUdp (ORCPT ); Sun, 24 Feb 2019 15:33:45 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:38186 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbfBXUdo (ORCPT ); Sun, 24 Feb 2019 15:33:44 -0500 Received: by mail-pl1-f196.google.com with SMTP id g37so661404plb.5; Sun, 24 Feb 2019 12:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KnnxHwkDJFIYf3W9dWpRpBGaF42LRM0p/MCcNDxRd+E=; b=G5E238wTz3ko9ARX0FzIuZ6Dsv++poSBZhwhSAmots9FzBMCadcMTkXg/EECFdy/GO ME3ukX40PkccPuhu2wV8+ywJCboaCmP9aedkIKMcvI7G7rN/MuHun/6XJyHwuzoDSrS/ sWyGkHG87ezV8C1eYwyd9q3jnhJZu7sCy1H1M7s4jpzdfx1JPoLJeDjBkj9U9Wrr3dYy yHzgSJyx1H3a4WTRDtVgp+L2NrI09Y1w/zSIg1dSaWYGNTYCJAjdNOiAgIQBCxPFsb2/ nV01+WXuwdmNNEvSN9hCw41iMKq09vdVKOavYX/nZZVu8a3qgpoEki/9Z5wm4Un0NV3q 7cYw== 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:mime-version:content-transfer-encoding; bh=KnnxHwkDJFIYf3W9dWpRpBGaF42LRM0p/MCcNDxRd+E=; b=THyGsN4ABEX3/23ixAEvC2dhnVKvfJR3+Ci3TveV2voOthTykcZmeWx13/m2/Y+n01 Moxu6wQWqGcPyZkrUlSCjM6yomxZWDQVj2mgweI8qEuwlyPufwOerB3RIRQVNHBFZYoY ooWydM0r7tpVtQ7fTDPt1ZSBtTePJ4aohrD3qpfvoAO8cQPO9BzH1S+vQ0Q0tCMFT6t+ gXmJbjiXWKQ0zMxFqP+DJWpdZVV7/MjcRMRNhJqEugLk7qFG6bti/+WjkOfci6dz63ih sBokKMLeOMIZH9CE3tyG0vQw+JNEIsKDSK+bLgZPdgN5nfTflvS0F37nuIEy2SK6ijsv NwKg== X-Gm-Message-State: AHQUAuYQf22gkO+PRJ7GKD652zEv8f0pCGHgezn8+lWM39nEEwCDIhVB C7DDqs+g0zIgP0SHXhWJtiY= X-Google-Smtp-Source: AHgI3IYSkoMu8iFfOkRNLemNOJK67HMqduXj7Rfo35bEb2b0RKjUosTyhviihirW38li95+BENJx2Q== X-Received: by 2002:a17:902:7688:: with SMTP id m8mr15054553pll.248.1551040423865; Sun, 24 Feb 2019 12:33:43 -0800 (PST) Received: from bobby.hsd1.or.comcast.net ([2601:1c0:5501:37e2::e774]) by smtp.googlemail.com with ESMTPSA id 70sm24105423pfr.43.2019.02.24.12.33.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Feb 2019 12:33:43 -0800 (PST) From: Robert Eshleman To: bobbyeshleman@gmail.com Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] dt-bindings: iio: light: Add ap3216c Date: Sun, 24 Feb 2019 12:33:51 -0800 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: <42dbbd7568e4216a320c6fd617bd91c1ee045af0.1551037168.git.bobbyeshleman@gmail.com> References: <42dbbd7568e4216a320c6fd617bd91c1ee045af0.1551037168.git.bobbyeshleman@gmail.com> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adds device tree bindings for the ap3216c ambient light and proximity sensor. Signed-off-by: Robert Eshleman Reviewed-by: Rob Herring --- .../devicetree/bindings/iio/light/ap3216c.txt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/ap3216c.txt diff --git a/Documentation/devicetree/bindings/iio/light/ap3216c.txt b/Documentation/devicetree/bindings/iio/light/ap3216c.txt new file mode 100644 index 000000000000..c5ae80c79dd8 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/ap3216c.txt @@ -0,0 +1,22 @@ +* AP3216C Ambient Light and Proximity Sensor + +Required properties: + - compatible: should be "liteon,ap3216c" + - reg: the I2C address of the sensor (default is <0x1e>) + +Optional properties: + - interrupts: interrupt mapping for GPIO IRQ. Should be configured with + IRQ_TYPE_EDGE_FALLING. + +Refer to interrupt-controller/interrupts.txt for generic interrupt client +node bindings. + +Example: + +light-sensor@1e { + compatible = "liteon,ap3216c"; + reg = <0x1e>; + + interrupt-parent = <&gpio1>; + interrupts = <17 IRQ_TYPE_EDGE_FALLING>; +};