Message ID | 20230228211046.109693-1-mmkurbanov@sberdevices.ru |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3256553wrd; Tue, 28 Feb 2023 13:12:48 -0800 (PST) X-Google-Smtp-Source: AK7set/4ngYvV5LGB1rffd9ezFiMHEfziJ2N0yHrMV2yrW4bHl8G693gMTnGLRm7gDJGx4+KxRFL X-Received: by 2002:a05:6a21:788f:b0:b8:723f:e21b with SMTP id bf15-20020a056a21788f00b000b8723fe21bmr5926975pzc.3.1677618767923; Tue, 28 Feb 2023 13:12:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677618767; cv=none; d=google.com; s=arc-20160816; b=0cyKsrESUaXmjLw146SwHJBnBrSdOMVGq5VX3GU1THB9bpDcTSpSg+Ugcw0CCdGArm IQxjgSpKvmFSU9558qT78hBfQB4G7CH/0WGHKyC/AQQJbs68XPQsz4+LDVYVkiSl4XYS BlKq7lPxqa2qBIorcF+fYkc6gTfyhoyqmtd/FE47gJQwWM10VMPwJpJ/TQJ0GNnAAZLz B0WmFVo/b4Vqe2U0pZMYOzYpUb3Lf3MEZ41zdl5L24uE44mjhNVvsBS9VpyfyQv0c0hl IHt3KBxljmVke9hXaB4KdfYhZlqwVQ+F+HFUeetqy+GRFRPqlTMNkO7yrPMrDEolFKwX PCFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pgQxgtsN8c/gxCxs+9mAc2jJsLaDMPf7RRR/AHAAC4c=; b=EGWq46h7UVW5JD4QnRFsDd+63fJ/tzYJPj9EYSCBv9PTTUMN0bqAjbAazZIgs4Mikr sBGjVVHuUw9YOyF5yiM5CmCcvBIBQoqQEVffA7UN3nQnSivGRWl9jJ6bwTiTaflJkC0L zbuYDNn3842Ju/rNqIdctSTZsA+V7hOWA1bxlc37z1NmjWxeJ9nXsusuHf9ACorhWKmR Cpykc9rLfxc69b3kc9NAANQiVKbnbBjBn6N/HofKXH1WMTf/fefgC2MvaKaewUYYijwP yCsC+ap9L+qudxGlNMbTzZMwF5bJyw6pi+ItHZFI2+VuxvP5UQAH+4V1X5yZLOAktA4r 8IsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=UFEi2oVn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020aa79430000000b005a90ca008a9si10599000pfo.350.2023.02.28.13.12.33; Tue, 28 Feb 2023 13:12:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=UFEi2oVn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230030AbjB1VMB (ORCPT <rfc822;aaron.seo0120@gmail.com> + 99 others); Tue, 28 Feb 2023 16:12:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229915AbjB1VLx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 28 Feb 2023 16:11:53 -0500 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 142F52CC40; Tue, 28 Feb 2023 13:11:29 -0800 (PST) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id D4D3B5FD09; Wed, 1 Mar 2023 00:11:25 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1677618685; bh=pgQxgtsN8c/gxCxs+9mAc2jJsLaDMPf7RRR/AHAAC4c=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=UFEi2oVntTZ+iFJX3/2p7kX3/86556SroG1zvxiKoWsXM5qw/BOknqeFBELWjTYIy aSvFjIyIUv1osAeylq6GmA2i811zh4F3icqw811OSk9ZDbyqiHy0rxb7nitgL0zZ4Q F7tfMp8G2ECZ2v/YeSNvR+MKEl47i3no0tWjkxeZaKGgh5Axfp28iOF4ttSZ4V0mrn 9xJFcM1bZ1BD9QdSW/POD/yVRrFCuFBSbpzzKDFs+pWhrDhwI7SqXiupgZy2K4Yy67 zgP0dv90fXsXcVdkFcp0xWeye0YRFP/FU/WGCYM1bRiCiEcgpYMJNvZP9ysTYMrBJh JOpqHB87nJ0pA== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Wed, 1 Mar 2023 00:11:24 +0300 (MSK) From: Martin Kurbanov <mmkurbanov@sberdevices.ru> To: Pavel Machek <pavel@ucw.cz>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Lee Jones <lee@kernel.org>, Andy Shevchenko <andy.shevchenko@gmail.com> CC: <linux-leds@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <kernel@sberdevices.ru>, Martin Kurbanov <mmkurbanov@sberdevices.ru> Subject: [PATCH v2 0/2] leds: add aw20xx driver Date: Wed, 1 Mar 2023 00:10:44 +0300 Message-ID: <20230228211046.109693-1-mmkurbanov@sberdevices.ru> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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/02/28 15:18:00 #20903376 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759110777382317691?= X-GMAIL-MSGID: =?utf-8?q?1759110777382317691?= |
Series |
leds: add aw20xx driver
|
|
Message
Martin Kurbanov
Feb. 28, 2023, 9:10 p.m. UTC
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/Public/Uploads/uploadfile/files/20200509/20200509151532_5eb65894d205a.pdf aw20054 - https://www.awinic.com/Public/Uploads/uploadfile/files/20200509/20200509151602_5eb658b2b77cb.pdf aw20072 - https://www.awinic.com/Public/Uploads/uploadfile/files/20200509/20200509151754_5eb659227a145.pdf Add YAML dt-binding schema for AW200XX. Changelog: v1 -> v2: - Remove the hardware pattern support (I will send a separate patch) - Support the 'led-max-microamp' property Martin Kurbanov (2): dt-bindings: leds: add binding for aw200xx leds: add aw20xx driver .../testing/sysfs-class-led-driver-aw200xx | 4 + .../bindings/leds/awinic,aw200xx.yaml | 126 ++++ drivers/leds/Kconfig | 10 + drivers/leds/Makefile | 1 + drivers/leds/leds-aw200xx.c | 649 ++++++++++++++++++ 5 files changed, 790 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.38.1