From patchwork Tue Jan 28 13:30:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Heidelberg X-Patchwork-Id: 11354257 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3CCC91398 for ; Tue, 28 Jan 2020 13:31:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1BA5D24686 for ; Tue, 28 Jan 2020 13:31:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726034AbgA1Nb1 (ORCPT ); Tue, 28 Jan 2020 08:31:27 -0500 Received: from ip-78-45-52-129.net.upcbroadband.cz ([78.45.52.129]:38982 "EHLO ixit.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbgA1Nb1 (ORCPT ); Tue, 28 Jan 2020 08:31:27 -0500 Received: from localhost.localdomain (227.146.230.94.awnet.cz [94.230.146.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ixit.cz (Postfix) with ESMTPSA id 70F5F251E0; Tue, 28 Jan 2020 14:31:23 +0100 (CET) From: David Heidelberg To: linux-iio@vger.kernel.org Cc: David Heidelberg , Daniel Baluta , devicetree@vger.kernel.org, Dmitry Osipenko , Hartmut Knaack , Jonathan Cameron , Lars-Peter Clausen , Mark Rutland , =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= , Peter Meerwald-Stadler , Rob Herring Subject: [PATCH 0/7] iio: light: AL3010 introduction Date: Tue, 28 Jan 2020 14:30:45 +0100 Message-Id: <20200128133052.201587-1-david@ixit.cz> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org These patches implement support for simple iio light sensor AL3010 and also improves and align formating of AL3320a which is origin of al3010 driver. AL3010 is used in many devices, mostly tegra2/3 based. This effort is aimed for reducing number of out-of-tree patches for tegra tablets and phones. This sensor is tested on Nexus 7 (2012, grouper/tilapia). David Heidelberg (7): dt-bindings: iio: light: add support for Dyna-Image AL3320A dt-bindings: iio: light: add support for Dyna-Image AL3010 iio: light: al3320a slightly improve code formatting iio: light: add Dyna-Image AL3010 driver iio: light: al3010 implement suspend support iio: light: al3320a implement suspend support iio: light: al3320a allow module autoload and polish .../devicetree/bindings/iio/light/al3010.yaml | 40 +++ .../bindings/iio/light/al3320a.yaml | 40 +++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/iio/light/Kconfig | 10 + drivers/iio/light/Makefile | 1 + drivers/iio/light/al3010.c | 237 ++++++++++++++++++ drivers/iio/light/al3320a.c | 63 +++-- 7 files changed, 379 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/light/al3010.yaml create mode 100644 Documentation/devicetree/bindings/iio/light/al3320a.yaml create mode 100644 drivers/iio/light/al3010.c