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: 6623 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1804834wrd; Tue, 14 Mar 2023 07:54:34 -0700 (PDT) X-Google-Smtp-Source: AK7set8sqy9sb4cbfJNJBfah5XY7daRMnQvTNFaT7+lbrq3kmrKAgmFJtDZd/h+ECKmp/CfKj39w X-Received: by 2002:a17:90b:1a87:b0:230:bb46:787d with SMTP id ng7-20020a17090b1a8700b00230bb46787dmr39920423pjb.37.1678805673972; Tue, 14 Mar 2023 07:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678805673; cv=none; d=google.com; s=arc-20160816; b=SbU1hB88j87Gl8DvLO3O7a2hLQA3ilkeN287p141TuObzzn1pEU+tAIimYWXSESY0H 8k6qwypp7+H6CRBrT4zBWwGftsqqGGYvOuUu1kIFavLzTFMiclKax4Ojf4FhLhFvYtqq VUoEj3GXezTqOHB/H+AuA7qR+DhL9ZyIvlIe80oc0SfrybucjZgCppOeo8ZuBLF1fbud vs7Jx8j3WTyVWEioQukG0KMV3e6ieVzgCEcKYduWODQR0ERxI5yfCFQgqnAsF6qsyWFS j/I6PtksiQ7e5rPKj87h0i/Xfb/ez84WQoMq/RcoCQzCWh1q+g1SU2Gb2+0srVZwm2OT KI/g== 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=jjpy6DCx05VoZ+mAapsIt74dyDOi6BiXXaYW1L+8OeA=; b=CCAB6O8wG/fgcmI0wseB5OETxX58qE7yMj1UnD++2SNwr0KplCOeiq/EjasL/95Afu y77JPZ/X361mNNtBAypR9zlg4VF/T4C58o44cUuAdcfqBhXnPkui691RUQd0CQJ+FaAH UyxrIr9fyDTzHXlQpiPpY8MvZg6g81FEkmyVggvgH6tPTyO1gxUhtCCI94IhICjhN+mv FWlmMQ2x4EaZBnxj0NInfNJRr33oGEwUDxWBoleZi+6hTuxs178fONmVBtHYVmG1Nobf sVHTcMgCFCqIcSMS5RJ3PLs+tcje1FDQkoujfoG2L3CKw/hIa6lzFSjbFSKWOCVdJO4+ xORg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b="BO+/6xXj"; 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 d93-20020a17090a6f6600b0023d1e317716si2605407pjk.40.2023.03.14.07.54.21; Tue, 14 Mar 2023 07:54:33 -0700 (PDT) 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="BO+/6xXj"; 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 S231543AbjCNOa6 (ORCPT + 99 others); Tue, 14 Mar 2023 10:30:58 -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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760345367537856943?= X-GMAIL-MSGID: =?utf-8?q?1760355338374478168?= 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