From patchwork Wed Aug 2 16:07:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 710459 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 5EFE2C001DF for ; Wed, 2 Aug 2023 16:08:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231766AbjHBQIN (ORCPT ); Wed, 2 Aug 2023 12:08:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235052AbjHBQHz (ORCPT ); Wed, 2 Aug 2023 12:07:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6324F198A for ; Wed, 2 Aug 2023 09:07:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E02AB61A18 for ; Wed, 2 Aug 2023 16:07:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C956C433C8; Wed, 2 Aug 2023 16:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690992472; bh=LS/hzCHnMZGkygLiyYSNo0gKng+PKlNYWfkl8NzGJGE=; h=From:To:Cc:Subject:Date:From; b=XxoQf78FM+y2xAE4eL7IHFfSYsigQLIjJwba/6iws2a1PLBHUyNigrxIPOFkphgdF /ZyYyeCLGF+SW3G4iluj8aJWSwK0Y639wtYPT6/+DSgxIsCEPh7OPc0hoHP2tH6yNQ ZK20JnhCYNRKoMaUPRkXOYi8rE1GjjGPNwxEKLoOWBHTsrkpbHBVBaIUj/URVto9Bd 5mhmb5pZpFgBV7HY7AmqRnEBN62/Y880OETbIna3lRsACTyNqIv2fQWiPILUcPLmlC IxDsQuMDXuSw4f/zLVdeMk1eQMHfC4sbJuy41Ru864+Zn0Gw5QfV/2dTDGXxoIlnE2 dI/o4edI+eWxA== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Pavel Machek , Lee Jones , linux-leds@vger.kernel.org Cc: =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH v3 0/6] leds: turris-omnia: updates Date: Wed, 2 Aug 2023 18:07:42 +0200 Message-ID: <20230802160748.11208-1-kabel@kernel.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Hi Pavel, Lee, I am sending version 3 of Turris Omnia's LED controller updates. Please read the summary (changes from version 2): - added patch 1, which drops unnecessary mutex locking - added patch 2, which changes SMBUS calls to regular I2C transfers - added patch 3, changing sprintf() to dedicated sysfs_emit() - patch 4 replaces patch 1 from v2, which changed max_brightness to 1. Instead, we make set_brightness() more effective by avoiding unnecessary I2C transactions (for example if brightness is being changed between 0 and 255, we do not send the color changing I2C command, only the enabling/disabling command) - patch 5 is updated patch 3 from v2, which adds support for enabling HW blinking mode on the LEDs - patch 6 adds support for enabling/disabling HW gamma correction of the RGB LEDs. Gamma correction is supported by newer MCU firmware versions Marek Marek BehĂșn (6): leds: turris-omnia: drop unnecessary mutex locking leds: turris-omnia: do not use SMBUS calls leds: turris-omnia: use sysfs_emit() instead of sprintf() leds: turris-omnia: make set_brightness() more efficient leds: turris-omnia: support HW controlled mode via private trigger leds: turris-omnia: add support for enabling/disabling HW gamma correction .../sysfs-class-led-driver-turris-omnia | 14 + drivers/leds/Kconfig | 1 + drivers/leds/leds-turris-omnia.c | 363 +++++++++++++++--- 3 files changed, 329 insertions(+), 49 deletions(-)