From patchwork Sun Apr 16 21:15:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 673714 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 C614BC77B61 for ; Sun, 16 Apr 2023 21:16:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbjDPVQc (ORCPT ); Sun, 16 Apr 2023 17:16:32 -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 ); 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 ) id 1po9jM-0002l4-0M; Sun, 16 Apr 2023 23:16:16 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1po9jL-003myg-1X; Sun, 16 Apr 2023 23:16:15 +0200 From: Andreas Kemnade 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 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 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org 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 Acked-by: Pavel Machek Reviewed-by: Rob Herring