From patchwork Tue Mar 14 12:02:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kurbanov X-Patchwork-Id: 664380 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FE27C74A5B for ; Tue, 14 Mar 2023 14:30:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbjCNOa5 (ORCPT ); Tue, 14 Mar 2023 10:30:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231343AbjCNOaa (ORCPT ); Tue, 14 Mar 2023 10:30:30 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73DE22C654; Tue, 14 Mar 2023 07:30:24 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id C80C55FD62; Tue, 14 Mar 2023 15:03:00 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1678795380; bh=jjpy6DCx05VoZ+mAapsIt74dyDOi6BiXXaYW1L+8OeA=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=BO+/6xXjLHbfTrjKomCsZYI90orCZj9neHT8C1hHGvIPQ5VW71qVlKae+s2OlRSaJ a77fNW+BdVVSDx9ad7XeSr3DN/cUkRcKSmlZbwk9VA1eXJAhH2YaNprKhqOCQ1VoIC b4zH7dn25Jpa5xOpzTKBu/n7J6QlCb+8S8SCgYrotnX6xe4kfd+Fm2cBHE0BgAEGh6 5kxd3g+/dswG4DrB1W1wXilDCLpmXuGYh2TfarTplCgw8h3odAe7JFS7CXc2iO9xOQ hagpVkJeCAeWaMRC/Lccm4toesY7/6czghogjLGpr4ZEFA3DjZ4SoJL9yaMcsbiqQz oJKpbcfXTJn1g== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Tue, 14 Mar 2023 15:02:59 +0300 (MSK) From: Martin Kurbanov To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Andy Shevchenko CC: , , , , Martin Kurbanov Subject: [PATCH v3 0/2] leds: add aw20xx driver Date: Tue, 14 Mar 2023 15:02:50 +0300 Message-ID: <20230314120252.48263-1-mmkurbanov@sberdevices.ru> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH01.sberdevices.ru (172.16.1.4) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/03/14 06:01:00 #20942017 X-KSMG-AntiVirus-Status: Clean, skipped Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org This patch series adds support for AWINIC AW20036/AW20054/AW20072 LED driver programmed via an I2C interface. This driver supports following AW200XX features: - Individual 64-level DIM currents Datasheet: aw20036 - https://www.awinic.com/en/productDetail/AW20036QNR#tech-docs aw20054 - https://www.awinic.com/en/productDetail/AW20054QNR#tech-docs aw20072 - https://www.awinic.com/en/productDetail/AW20072QNR#tech-docs Add YAML dt-binding schema for AW200XX. Changelog: v2 -> v3: - Update datasheet links - Make cosmetic changes as Andy suggested at [1] v1 -> v2: - Remove the hardware pattern support (I will send a separate patch) - Support the 'led-max-microamp' property [1] https://lore.kernel.org/all/20230228211046.109693-1-mmkurbanov@sberdevices.ru/ Martin Kurbanov (2): dt-bindings: leds: add binding for aw200xx leds: add aw20xx driver .../testing/sysfs-class-led-driver-aw200xx | 5 + .../bindings/leds/awinic,aw200xx.yaml | 126 ++++ drivers/leds/Kconfig | 14 + drivers/leds/Makefile | 1 + drivers/leds/leds-aw200xx.c | 638 ++++++++++++++++++ 5 files changed, 784 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-led-driver-aw200xx create mode 100644 Documentation/devicetree/bindings/leds/awinic,aw200xx.yaml create mode 100644 drivers/leds/leds-aw200xx.c --- 2.37.2