Message ID | 20230416211550.903240-1-andreas@kemnade.info |
---|---|
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 b10csp1744394vqo; Sun, 16 Apr 2023 14:18:05 -0700 (PDT) X-Google-Smtp-Source: AKy350ZBTONkPTySBWdFnVj+t1p00U4l/Pk8bBqmjgDtyvPmVpJvpLKO4C1KiUOLFThYwx6Wk12t X-Received: by 2002:a05:6a20:bf22:b0:d5:6e91:f019 with SMTP id gc34-20020a056a20bf2200b000d56e91f019mr11526818pzb.33.1681679885579; Sun, 16 Apr 2023 14:18:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681679885; cv=none; d=google.com; s=arc-20160816; b=khTopGcx5SodH3+G5TdCdFcXysJDKQG8XBJ+YFGHaT+/hLQlwoTcHtFSvxow7lG+w/ /tBkdpoIu5OTkxdwdEnIFNTerRC9zhK40TiDEihWYTLCqEpJgP2MgRkThjKFu4u8UsPR uqddoRLbGM9qCBhvIvmKbUe+oJTlSgS6GifdkBv7eXT2r1KQBqOcNlakGf08vT2VvDlM bO/AYFeVPKxHrtbIRurytDUXWKU0QwBHBJUwX6WTprJ6BLbcj4QwbcVnHdeqqVxe3h8c q5wpiKInhk5T9yR+52V7B6F+PkTNGla7RelP6WI7dl3Px5Jq32fLvtI2xBcMS/NVwgAn 6sTw== 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:to:from:dkim-signature; bh=5me5pxJ6a8FqPCQ0T5mNkj05b0ksWoceay3+eghGtcc=; b=vwuQnzKPgHfIRhi0bZlHlPwRtsaSYb7PdCPwxi+xoGL+WsAOd05koOHzBaJrHYmNIn 0GL4Zl/IomQVy5qtj7Qn3xaNEDLSPvFxiNZgHserwAMvLJIks9oZQuoI28becMQ62Buc xI3FY4HKhsVE29Q/4AKE1ioIiBh1wIy++T2fue1lG2Eh1dLdEBpQ1e+3BLSmKUM+VZIk k6JuJY+n+HRbio+Z63BvZywbkWvtNE1SiVdP9E8aBxXSJypWly7NWFatqwZejesr2XKo R2K3oZy+fT/Wl9cA2wEz8aTquvWwXqcFX1PwCafXw4E3AGGkHvY+nkaw/eOPbahUd29l /l/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=1viSOHvT; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b00502d75b6681si10737789pgk.228.2023.04.16.14.17.53; Sun, 16 Apr 2023 14:18:05 -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=fail header.i=@kemnade.info header.s=20220719 header.b=1viSOHvT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbjDPVQf (ORCPT <rfc822;yuanzuo1009@gmail.com> + 99 others); Sun, 16 Apr 2023 17:16:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjDPVQb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 16 Apr 2023 17:16:31 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41DF01992; Sun, 16 Apr 2023 14:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5me5pxJ6a8FqPCQ0T5mNkj05b0ksWoceay3+eghGtcc=; b=1viSOHvTgArIPHrusFHEPzalcR HTNDhrv6jz0QVZc0rUqMG9m3RS9RPcKl+l+hKBkm70pNBg29ObCsO6gIr7H4yGltQcQ8K/FxBA4Cv UaCf2ZM+wJAG8bqjP2STwoD1EFZUVeY5id02sgycsgD9CpVex7N34Go7PJCuPQaF6Y/Ht/lga+dHJ dhGeOh8nTZziJYtg8JEUj562+/vz88dZDyoKiW8bb6wCLfGi/V9+qu68CZAb3q6t8+/kxfE7uuEE7 Fqn6wBlvxYBXaagOvAXmOxX9sTRtu5cxdegF5+XQsKj6ThFZzy94TRuiPpOlh85rHEyAou1iZ0Ow3 0kMDu6pw==; Received: from p200300ccff45ca001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff45:ca00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <andreas@kemnade.info>) id 1po9jM-0002l4-0M; Sun, 16 Apr 2023 23:16:16 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from <andreas@kemnade.info>) id 1po9jL-003myg-1X; Sun, 16 Apr 2023 23:16:15 +0200 From: Andreas Kemnade <andreas@kemnade.info> To: pavel@ucw.cz, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andreas@kemnade.info, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Matti Vaittinen <mazziesaccount@gmail.com> Subject: [PATCH v5 0/2] leds: Add a driver for the BD2606MVV Date: Sun, 16 Apr 2023 23:15:48 +0200 Message-Id: <20230416211550.903240-1-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.0 (-) 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, 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?1763369167723368085?= X-GMAIL-MSGID: =?utf-8?q?1763369167723368085?= |
Series |
leds: Add a driver for the BD2606MVV
|
|
Message
Andreas Kemnade
April 16, 2023, 9:15 p.m. UTC
Add the binding description and the corresponding driver for the BD2606. Changes in V5: - remove "driver" from the binding subject line - avoid presenting shared brightness to the userspace by allowing only on/off in such cases. Changes in V4: - minor tuning of description in bindings Changes in V3: - binding cleanup - move active variable from long-living struct onto stack Changes in V2: - Add Datasheet link - use fwnode api - remove childnode count check, that will bail out anyways later. - add enable-gpios to binding but not to driver due to lack of testing ability Andreas Kemnade (2): dt-bindings: leds: Add ROHM BD2606MVV LED leds: bd2606mvv: Driver for the Rohm 6 Channel i2c LED driver .../bindings/leds/rohm,bd2606mvv.yaml | 81 +++++++++ drivers/leds/Kconfig | 11 ++ drivers/leds/Makefile | 1 + drivers/leds/leds-bd2606mvv.c | 156 ++++++++++++++++++ 4 files changed, 249 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml create mode 100644 drivers/leds/leds-bd2606mvv.c