Received: by 2002:ac8:45c5:0:b0:405:464a:c27a with SMTP id e5csp1270103qto; Thu, 27 Jul 2023 09:25:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlFz5WW6LwNzfPQc4+erm7g9zXJX8TVIwfl+h0KX8WyO3BRosHxdJrv6MGVA3M50Hrf8vTks X-Received: by 2002:a17:90a:6746:b0:268:553f:1938 with SMTP id c6-20020a17090a674600b00268553f1938mr3883440pjm.4.1690475126784; Thu, 27 Jul 2023 09:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690475126; cv=none; d=google.com; s=arc-20160816; b=DzFmP3AOB3w1o21o1yCHOlPCT/JkuS/0G+fWecM2tH9ot6uW0/v4zgB8R0/+op5LrJ SGSURsghOQ76tisWMfGED+JweXJeRJvYKgydiuI3sNR8IW9xeB1T8GBB9ZyBV89Q5lAo jaO4gvpDq//fwJrjiIpdsaCT6RTA7zn5uxTK7KJLnoYsULFRuxF+40x0braIFA5Z+h20 0ySVuT5lmAyRjc7OCETGGqDRkTSDVYypfNy8Ev94mnfYn7mq5KNUlE+hJGnyaSz3oLgz O1ZF+pOohLz6F8z7IJ1Sd+beJ8l1t8vf1FsAiGoAxfCJGKWEFSkxrhXvdoLp+89d9yIc coDA== 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=ghQ9oJMe79WnJT3o+FUEMqmGRHeXyn/vOaNIARdZMlo=; fh=z43FC99YW0uJih9XPKaIzAIV+1OfKDcM5XeY1rpOK1M=; b=mRXcFy8vY3am3nwVPKBbLiMOYxTCkyWKFV96zFXexDbc0mRZCbHL9Gx5mZeaEBeNJL eh6UEstwq3T4Pscu3mLUNhei7AeLByj6xN6sam+7AMSaLGQ31K8gDFK8tDk0CvJ8ntgg 8FlL2L9aehsFKhX/GHGBz1BAyhxAy0yJL6xLG5qvM0NBt9XLPoD/RGvETEA9Zo4GWFzg npJ5KaDYfn1gXrVJU58QptZ3yeQ+JA6SjoreGpSKewoouL032pcVznmys8Ojr/XiGgLG 3qt+xuvfEuURse9jyfc/bOerE1+0fSxT20RKw5NEABEIGGa8qKy1FtLl7MlhudBjqAmO d5hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=EOqkESrP; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a17090a674300b0026369cc7286si3080720pjm.154.2023.07.27.09.25.13; Thu, 27 Jul 2023 09:25:26 -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=@gmail.com header.s=20221208 header.b=EOqkESrP; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232021AbjG0QGR (ORCPT + 99 others); Thu, 27 Jul 2023 12:06:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231792AbjG0QGQ (ORCPT ); Thu, 27 Jul 2023 12:06:16 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAE54110; Thu, 27 Jul 2023 09:06:14 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fbf09a9139so1994110e87.2; Thu, 27 Jul 2023 09:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690473973; x=1691078773; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ghQ9oJMe79WnJT3o+FUEMqmGRHeXyn/vOaNIARdZMlo=; b=EOqkESrPKZDi2asIGomeoS/PVI+Cy/lYXLKVovdy3GHfINcwdwn71gDzA8UoVVw6Na mAfub10O2W4J3jc2BEhv5n+VGRpT2HLGnpOgMJcARUaf5Z9QUnULMsNWcBPfHQBotdUb R5AbAzgfrYVozRho2FNgjvjBMuXGRLx2x22QkCqwlaHsIad9B/54RbZMFDu2qo4r2lpz Ny1/jPCUE8xzr++66MCTfh4TkJOsUH5zUVbbg4I9YqX9izrnMUNaiFuAPvFQLVKEIXig RGICu2bGSkJyhEzaxWweyhydyY5osp1gNgCnIQI/eT3wvhr4VhC7xKb/85QFPggIKhA1 5LMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690473973; x=1691078773; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ghQ9oJMe79WnJT3o+FUEMqmGRHeXyn/vOaNIARdZMlo=; b=HGTaUSu5Pcpu26vc/ZXQCGeossbNIs5G1eylX/AmUSt9Dc5xnilFVUVSv3s70SueAu H2axrOr9d7ytuDuXWeauLwePZbOq7J6Tdsa6OKx5XLtd1bLJF0+QIb4joEUkFdMLEzAL iA/DE7vbwBWt8ehqVmGpiV5wJeoYri5/0sQYmAzsRB38JMW3FKi2rCiSSmfSTNVKmmKU AGgEoRCQz8MOlBYTZx5CTEt2PiVtuvJCqiO1EiVe97vU+avh+LaPn+I1NovpdLO7I8e4 S7r/lUF6HVn26DPJI0GFSP1bAnVPULRbSOvFNTzdjknlS1Cb/N3p47JyZrRfbxL0ZCKZ RJcw== X-Gm-Message-State: ABy/qLbAVZ5MREset+6QG6hASSXh0gKz4N6Wmp36S1wTBcLDgpmL59CN 4M4RTjuwk8LdxXqkrcPVFdKjSsWJyLvkmA== X-Received: by 2002:a05:6512:2107:b0:4f9:5d2a:e0f5 with SMTP id q7-20020a056512210700b004f95d2ae0f5mr2048763lfr.19.1690473972727; Thu, 27 Jul 2023 09:06:12 -0700 (PDT) Received: from localhost.localdomain ([2a01:c844:242b:b300:215:5dff:fe78:868]) by smtp.gmail.com with ESMTPSA id ck8-20020a170906c44800b00982be08a9besm936540ejb.172.2023.07.27.09.06.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 09:06:12 -0700 (PDT) From: Matus Gajdos To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Matus Gajdos Subject: [PATCH 0/3] leds: Add Broadchip BCT3024 LED driver Date: Thu, 27 Jul 2023 18:05:22 +0200 Message-Id: <20230727160525.23312-1-matuszpd@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi, I'm sending a series of patches to add support for the Broadchip BCT3024 LED driver. The first adds Broadchip to the DT vendor prefixes, the second is the DT bindings documentation and the third is the driver itself. The Broadchip BCT3024 is an I2C LED driver with 24 independent channels, each with 256 brightness levels. It is targeted mainly for mobile phones and other hand-held devices. As we use the chip in a device that needs to keep its power consumption to a minimum, I added support for the runtime PM to let the kernel disable the chip and its power supply when brightness is set to zero. Any comments are welcome. Matus Gajdos (3): dt-bindings: Add vendor prefix for Broadchip Technology Group Co., Ltd. dt-bindings: leds: Add binding for Broadchip BCT3024 LED driver leds: Add Broadchip BCT3024 LED driver .../bindings/leds/broadchip,bct3024.yaml | 89 +++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/leds/Kconfig | 9 + drivers/leds/Makefile | 1 + drivers/leds/leds-bct3024.c | 564 ++++++++++++++++++ 5 files changed, 665 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/broadchip,bct3024.yaml create mode 100644 drivers/leds/leds-bct3024.c -- 2.25.1