Message ID | 20230517195238.34069-1-mmkurbanov@sberdevices.ru |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp17260vqo; Wed, 17 May 2023 12:59:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JbYTVdFxuJoMwrnnMSkW0afJQ5dEE1b+x345F81lCYUFaDKpoPE4FfiQ7PxNvJDihva8W X-Received: by 2002:a17:902:ce91:b0:1ad:ddf0:131f with SMTP id f17-20020a170902ce9100b001adddf0131fmr27251774plg.51.1684353549172; Wed, 17 May 2023 12:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684353549; cv=none; d=google.com; s=arc-20160816; b=cGIs0jWtLUgy/uyZnze6F1/dQRkOVLLOlvSanWGLcefw+kIuCBP92v7TQ9Y1z8q//d cjA/GOF2av7WXf+dm+Kq8a8kx/Jw9M8N/YjaKQnwbpVNQq0oQmQ8WPMJPW941s3fvYPY UlUWd/5nSWqRGsfm3B/l5Hu4FpK/x1G+mf0YNFZwRwaDzKhyemU45qTuMmV64l6YgFWu LB92Cnv2Z/HxmzBNdPwi1lpCK//ILo4FTlEzFkY7uuPv6bfbTUTBRCAhT7n0oGY9nxnJ 4wL9n0HdpEwkj2DJu22hesLUBwkokdM81v7FFKA5ua8PpE7bndUN7Xglb0sPxsDj2n6k diAQ== 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=+c1or6lx/0BL441qXDPsYyKqZz6WlSg7vowBaqLWfAQ=; b=rZP0xqWNBUuXk/XQgvZ8cJ/DkRfW0BuFyrt4x+6o3LpTl4GiTumwHSh/+z1mBQex2z +T067GiltAzFDbS3XziIORl4SQuqSWt4mXo4e174HZugKCkO1+z1/Gr3PCVARmjanwiP BRZ885ETx1NGc6XIAHc8PP8kHvnFwVJs0O2K80NEsC6J+MbXfi7YcUqnM7OGRPINTQG1 aGDHCs03zMpW1RWFNS8iVlY9eTshcPDgxffoEA+SACLKG6ZsV+rjJFk7wBYfi+f+rN5y puHBmTQdhMcaHdGtSpkYPoJM1Kdv/t1MHAJHbka49DBS/KW9MWe5A2g4MgG3rUifTn/4 Ribw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=Z9XJXBRi; 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 l15-20020a170903120f00b001a97fd670e6si22782816plh.208.2023.05.17.12.58.53; Wed, 17 May 2023 12:59:09 -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=Z9XJXBRi; 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 S229814AbjEQTxF (ORCPT <rfc822;abdi.embedded@gmail.com> + 99 others); Wed, 17 May 2023 15:53:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjEQTxA (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 17 May 2023 15:53:00 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E78E759E1; Wed, 17 May 2023 12:52:56 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 244BE5FD46; Wed, 17 May 2023 22:52:54 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1684353174; bh=+c1or6lx/0BL441qXDPsYyKqZz6WlSg7vowBaqLWfAQ=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Z9XJXBRio82SW1XoyBQ8lC17AfugmYVIdqt8O52cehW5xd60P+u1Li4jDqBv+W8y7 5riHRJZdAqkmFdoj0ThfPYOg3NYZ2Ts3yKH9AWv7gESQlqEOqLdmt/FqLtJgrfcF3+ bq4xvddWmnyylxB1RurtUV25LeljzBTEDXhV/h5HtPdHFaFoVH6s5GesR6TovRj1CG bBFnCPZarfbtq/aHb5TiQFvUmvbAt6shbVp4+uZB1y8VcjqvB9rYktUAaBRm2e4Oyi 99SmW0ofXknFPAgiEhdbalmSSFgHp7k/umO1wrvwWTSBdkKPP5wkKuT5uUjrd0BDhx fsCZ/4vX0IaSQ== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Wed, 17 May 2023 22:52:53 +0300 (MSK) From: Martin Kurbanov <mmkurbanov@sberdevices.ru> To: Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Andy Shevchenko <andy.shevchenko@gmail.com> CC: <linux-kernel@vger.kernel.org>, <linux-leds@vger.kernel.org>, <devicetree@vger.kernel.org>, <kernel@sberdevices.ru>, Martin Kurbanov <mmkurbanov@sberdevices.ru> Subject: [PATCH v4 0/2] leds: add aw20xx driver Date: Wed, 17 May 2023 22:52:36 +0300 Message-ID: <20230517195238.34069-1-mmkurbanov@sberdevices.ru> X-Mailer: git-send-email 2.40.0 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/05/17 11:04:00 #21328336 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_NONE, T_SCC_BODY_TEXT_LINE,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: <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?1766172636741634834?= X-GMAIL-MSGID: =?utf-8?q?1766172706791293988?= |
Series |
leds: add aw20xx driver
|
|
Message
Martin Kurbanov
May 17, 2023, 7:52 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/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: v3 -> v4: - Calculate the value of imax instead of retrieving it from a table - Cosmetic changes 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 | 13 + drivers/leds/Makefile | 1 + drivers/leds/leds-aw200xx.c | 593 ++++++++++++++++++ 5 files changed, 738 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.40.0