From patchwork Sun Feb 10 20:38:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Eshleman X-Patchwork-Id: 1039485 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UH3FvHX4"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43yLP84rTBz9sCh for ; Mon, 11 Feb 2019 07:39:08 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726029AbfBJUjH (ORCPT ); Sun, 10 Feb 2019 15:39:07 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35187 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbfBJUjH (ORCPT ); Sun, 10 Feb 2019 15:39:07 -0500 Received: by mail-pl1-f196.google.com with SMTP id p8so4313640plo.2; Sun, 10 Feb 2019 12:39:07 -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=ArTrIZZhrWlHTpLnvz292rS3KEiXNeIIUmm0L6+dn1g=; b=UH3FvHX46BetjXOETJrbsHWLMvDaMrTtGcf4VT0R+fPqxKjLLzPcvpiAaqqkRmve8I JRxy0AaftPwnMt87YKKrtDVChR6W3e9/1OlwMVc3JwDgtLgqhmXfJpFpuv9biubZALmT EDzh+AWIb52J1cH5yQo+XsWsCZ+JQXhw6WFk0lxZaucp+treF1ePpIU3f+rHrsv9lWAz XbetfAjNaiEO6JvtWW4CGevdHwdshVaWzHP12yHfo2H397JJAJJwgsD2gNieE5/VnjWa Y8k/xD2d1abaKT677D0OqJVpqXJ+v2zcsBqq8aLWR+wxvFMxGoQyJXWGSK5DYqIwTejj yvHw== 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=ArTrIZZhrWlHTpLnvz292rS3KEiXNeIIUmm0L6+dn1g=; b=alEakHy9O+zkinTxUUrMG8PdXqotoATkySWWqSs+El6iXMALat2DaexH6Zfc+YjAFP uYeSPtpt67RveQiRTBotis1pwKrd2nsRKHaciI/VQdiygqaU5PeDq+PVsxEBqTuBJGON pR11Wsaj/+KxTmfXA2IOvplGrrhF8DQ2NrojjQkztcj8fCrvNUCyEEvZ2JOK8sj0+xIc GiQ3FLLb24/H7Mh9tcs+nI9GaUk0tczH3BuKzRx52I0/pKiLAKltKlzGRr2HJQ3Iv/Lw rmhBwCbQwBW78ZANC95yRSM2tgdVfNyTdvoT1/kic9V2eHGixJXePVZhZ7wc5cul1WWd gLqQ== X-Gm-Message-State: AHQUAuYJNqJmCsatwJrj3SsOMw02olS0Dh91OQz5DsLPaYjMVGYIVfEw a3a8b6YWSs/2j74BN7GwHC4= X-Google-Smtp-Source: AHgI3IapnqpZJwzRVAmOQUdFJ1A46WkXwCRQgFgDkggK+vLyWetdAdNH8MzyLrR1DMC/f0jXzKQCKA== X-Received: by 2002:a17:902:8687:: with SMTP id g7mr34061435plo.96.1549831146771; Sun, 10 Feb 2019 12:39:06 -0800 (PST) Received: from bobby.hsd1.or.comcast.net ([2601:1c0:5501:37e2::8c]) by smtp.googlemail.com with ESMTPSA id t5sm13522205pgo.70.2019.02.10.12.39.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Feb 2019 12:39:06 -0800 (PST) From: Robert Eshleman To: bobbyeshleman@gmail.com Cc: Rob Herring , Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: vendor-prefix: add prefix for Lite-On Corp. Date: Sun, 10 Feb 2019 12:38:13 -0800 Message-Id: <3a4b0255b14d5107a906a39834953f5fa5f33afc.1549828313.git.bobbyeshleman@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <89716a4433cd83aea5f4200359b184b0ee2cc8bd.1549828313.git.bobbyeshleman@gmail.com> References: <89716a4433cd83aea5f4200359b184b0ee2cc8bd.1549828313.git.bobbyeshleman@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds a vendor-prefix for the Lite-On Semiconductor Corporation. Signed-off-by: Robert Eshleman --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 389508584f48..e487a5d95ba9 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -219,6 +219,7 @@ linaro Linaro Limited linksys Belkin International, Inc. (Linksys) linux Linux-specific binding linx Linx Technologies +liteon Lite-On Semiconductor Corporation lltc Linear Technology Corporation logicpd Logic PD, Inc. lsi LSI Corp. (LSI Logic) From patchwork Sun Feb 10 20:39:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Eshleman X-Patchwork-Id: 1039486 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YqhRcuCP"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43yLPv66gGz9sBZ for ; Mon, 11 Feb 2019 07:39:47 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726096AbfBJUjq (ORCPT ); Sun, 10 Feb 2019 15:39:46 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36140 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbfBJUjq (ORCPT ); Sun, 10 Feb 2019 15:39:46 -0500 Received: by mail-pg1-f195.google.com with SMTP id n2so4020262pgm.3; Sun, 10 Feb 2019 12:39:45 -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=YqhRcuCPy8J4btNLqf9iF75fpCfisCpYdLcrdjMvjojj/JK7v7zG6kQYkO/j+hManU p56zdFBWzQ1L3b8LQGgsOmu9kw3vHApzTWHcs7WRu1yKD1cVT7emycoR8A+CauRH+6My rRNi4CfXs0n4UekDcy+0zH3UWj9NiDPm4eUVnKsWMVbcoTdsjxzVf3Qs1jVrGcbSh3Mm bKAj+r+fbPByUKrg/afs/+9zx85z0HE0Sclxn44aYlBCkCdQJsuTdruqvmgwuGIOzpgS L5AppYeSvEbnMrIFUk1gEJtSeZhC/gHPkSp/dEG4jPypq0qBYH3JtzKJAEwdXpkEeAH0 lw9g== 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=hsncBIjfXT9LTo+XTn1FQgvyYsIIF93ooyzonJxmGoMrbpbUzcFo+41A5G2mw4pPAG 2+/i+dME4aEEeT1oZOZZ2a9xDwMk6ApN1bbn/TZFV87dPL+hzT5VuE2YZ62BCd+mZFv6 sT5848Fst+hOrqVGVa35v1Oyz3d3wBP/+f4wbc89ewAxnUEcLkIQjTgsiRHJF7eWOPJx mLckr8SxU7vrshkDwX3Vy0CmTTurD9SKDBIkde9JubX0TnFveosM52QiobEL40ZjXkVG JJgcFXhGaiVMyHkQrDHROPWduJpPPMZW0Wa7FcAYG6H/h/r0EGEeG8OeBKIjNe220UTM UnMQ== X-Gm-Message-State: AHQUAuboz5yuOXoMAgsZZIVpgVg6DMBgnNVbtkCorxGUaoVlhdpjH0ml hBGpsrtxU+eSJl1oKAGoJY8= X-Google-Smtp-Source: AHgI3IYhvbbTjH/RIBSP/hFvGCRjaWNDGG942Qv93NhYc/xN3d4Al82g692OZzsToIJOKrcSw7sy0A== X-Received: by 2002:a63:eb41:: with SMTP id b1mr30659252pgk.188.1549831185392; Sun, 10 Feb 2019 12:39:45 -0800 (PST) Received: from bobby.hsd1.or.comcast.net ([2601:1c0:5501:37e2::8c]) by smtp.googlemail.com with ESMTPSA id b24sm12188843pfe.136.2019.02.10.12.39.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Feb 2019 12:39:44 -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 3/3] dt-bindings: iio: light: Add ap3216c Date: Sun, 10 Feb 2019 12:39:47 -0800 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: <89716a4433cd83aea5f4200359b184b0ee2cc8bd.1549828313.git.bobbyeshleman@gmail.com> References: <89716a4433cd83aea5f4200359b184b0ee2cc8bd.1549828313.git.bobbyeshleman@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Adds device tree bindings for the ap3216c ambient light and proximity sensor. Signed-off-by: Robert Eshleman --- .../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>; +};