From patchwork Thu Apr 13 11:03:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 8125 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp954471vqo; Thu, 13 Apr 2023 04:17:32 -0700 (PDT) X-Google-Smtp-Source: AKy350YUMMHdUcn1Yf8T5kXmqAXrDHPlsNZ+JfY3Kqxm5DhDPNgbRV/DMUIWhoY+AF5HGkse8oME X-Received: by 2002:a17:907:c011:b0:885:fee4:69ee with SMTP id ss17-20020a170907c01100b00885fee469eemr2519942ejc.59.1681384652454; Thu, 13 Apr 2023 04:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681384652; cv=none; d=google.com; s=arc-20160816; b=CuFj+Y8kv8RH40FroJ9XSozDp4S2+GL44Mgx12FMTy6BO5si3ujrU88np7av3RRnlZ xnGOTGuv7/WC7KwH0JboKkpEgnRFBduv/QPfHveXbRyNwjGRJqXTN5nhvVTW4wNemc8T l/VO4qkOs1c2mpdH5lAspDVJ+WQfr+JSl1vEWVj2BpKyrvoVE7cG0Tex1VIh59eBKdiS iV1Z75wVWWb39JXaifNYE1K2XufMYO6BjOwlef9hIni6HgOwDjpivPjDHsx2a7yYE8l6 +dn+6b9PhbFnJAQ0Oz4gidLbUf4RKviQVYW99GilbnhmHHr0/VkqJ4yV0nTe3pgBR2lM W2rA== 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=oIUmYWM6zhuJ9l1gXs9MiIPZKOxoKp5Tp3WUcMY3fJE=; b=GrFp1ehVcfOwSCd6agupTLTb+xcjpbq2nxMFs5hTe8cY8pWHj/9qBrIEeBJaIneIYJ M8V6H3laz57wV+m9Xu7NMJbBdkESFhVFg5z5KU8paW8R5kqLDVqNr1yUcYJmtJGrhvpp aecXCIbNO55iSJaJ6DFzmB/M8UGjZy0g+pWP3w/aOzZhJGDbEldI2HfT3a6HgFKfu7Ax 3CVzdwelDfctsj1+BoEuMNebz/U+ooMjuHfXPhqz4cQrnso0uCCuDVWEn9n4f0ZXub80 hqqz7OQLxu2/mBsKxCgSwbdpA9cuuqiQZJgof0jNjyzrAXLCPTJpGoEL+Xd8Ils0r2MZ j+8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b="xi/qGSv9"; 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 eq22-20020a170907291600b0092d0f8f0111si1606608ejc.340.2023.04.13.04.17.06; Thu, 13 Apr 2023 04:17:32 -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="xi/qGSv9"; 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 S231292AbjDMLDX (ORCPT + 99 others); Thu, 13 Apr 2023 07:03:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjDMLDV (ORCPT ); Thu, 13 Apr 2023 07:03:21 -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 C5AC1270D; Thu, 13 Apr 2023 04:03:19 -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=oIUmYWM6zhuJ9l1gXs9MiIPZKOxoKp5Tp3WUcMY3fJE=; b=xi/qGSv9q+hDl+npZqIzjxFy2q 0boF0mmmDYYCRk1Qx/FkPxEeMNkssfDjDLGo8CGKwbpyXotH7h0INrutlWSMXpOb3hVy5T8Cb+kw5 g72YJLbziFXXIkKacjE6XZodlIUZBC5+IslTQ8UTHUsE1Yh3eMoZolnqYGst5sd3LbgfHgkVAiuTS 1auq+j71aofQTslIqo3TjaxkRVJ1fGt1GQXV1AFbIuke05inRg/ONMrvWhIcNUulY+Nu0WWf9fjIg cyUx1GYafficws1Gw/depwA2IBdPnxth0Tu7i6O7yLd+/GoavX3us6u9b2xJf710ziENL0/tKoQVK gZBNMmnQ==; Received: from p200300ccff17dc001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff17:dc00: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 1pmujR-0003Mx-Oa; Thu, 13 Apr 2023 13:03:13 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1pmujR-001ItV-0T; Thu, 13 Apr 2023 13:03:13 +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 v3 0/2] leds: Add a driver for the BD2606MVV Date: Thu, 13 Apr 2023 13:03:05 +0200 Message-Id: <20230413110307.310944-1-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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, 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?1763059593658806224?= X-GMAIL-MSGID: =?utf-8?q?1763059593658806224?= Add the binding description and the corresponding driver for the BD2606. 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 driver 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 | 143 ++++++++++++++++++ 4 files changed, 236 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/rohm,bd2606mvv.yaml create mode 100644 drivers/leds/leds-bd2606mvv.c