From patchwork Mon Sep 2 12:40:56 2024 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: 13787223 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 smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C886CD13CF for ; Mon, 2 Sep 2024 12:41:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) id EFA2FC4CEC6; Mon, 2 Sep 2024 12:41:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23FA0C4CEC2; Mon, 2 Sep 2024 12:41:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725280870; bh=zW/MH3mw+Dzek1nzViHs0K1rsisWdenDXoEOQmUJCdY=; h=From:To:List-Id:Cc:Subject:Date:From; b=RcXHg7/j9LSPOmw8mVOU5Vv184mUO8ZbHzHvSXfVW9MW2E5eYL9jQB9lOgrZIchnT jNM+T+I5lkVu6C01AQ1vI1c545N0vZLsaJOYWHedt7OOALVimpL8hF0RZnDD3ynryP 3tAt4xIOlhXGs97w9UbiWMMO/v7FSJXBmZcMorXCw296jObO77UL1VN7xePH+6wmsf hd3i6HWDg3ov7jyQwz59RidouT/j5aEIwKAmqIsCMyeFuMT/SNbKabCZI00TFpWQnC PfbAh2FUORWZ7kinU7DlJ9aDMfM7OD88HEb3nizXunWh/Vcjhtb3iwuMRTqmPV5VzB bHY5xKcPVoqHA== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: Lee Jones List-Id: Cc: Pavel Machek , linux-leds@vger.kernel.org, Arnd Bergmann , soc@kernel.org, Gregory CLEMENT , arm@kernel.org, Andy Shevchenko , Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Andrew Lunn , Sebastian Hesselbarth , =?utf-8?q?Marek_Be?= =?utf-8?q?h=C3=BAn?= Subject: [PATCH leds 0/8] Turris Omnia LED driver changes Date: Mon, 2 Sep 2024 14:40:56 +0200 Message-ID: <20240902124104.14297-1-kabel@kernel.org> X-Mailer: git-send-email 2.44.2 MIME-Version: 1.0 Hello Lee, this series is for 6.12, but it depends on changes that have been merged to 6.11-rc3. Your for-leds-next branch is based on 6.11-rc1, so it won't apply there. This series does two things: 1. It drops the code for executing MCU commands from the LEDs driver and instead starts using the functions from the turris-omnia-mcu platform driver. This is so that we don't have the same code at two places. 2. It adds support for the global LED brightness change interrupt to the LED driver. This interrupt is exposed by the MCU driver. Userspace can poll for global LED brightness change (triggered by pressing the front button) by polling the corresponding sysfs file, /sys/class/leds//device/brightness, documented in Documentation/ABI/testing/sysfs-class-led-driver-turris-omnia. Marek Marek BehĂșn (8): turris-omnia-mcu-interface.h: Move command execution function to global header leds: turris-omnia: Use command execution functions from the MCU driver turris-omnia-mcu-interface.h: Add LED commands related definitions to global header leds: turris-omnia: Use global header for MCU command definitions leds: turris-omnia: Notify sysfs on MCU global LEDs brightness change platform: cznic: turris-omnia-mcu: Inform about missing LED panel brightness change interrupt feature leds: turris-omnia: Inform about missing LED gamma correction feature in the MCU driver ARM: dts: turris-omnia: Add global LED brightness change interrupt .../dts/marvell/armada-385-turris-omnia.dts | 1 + drivers/leds/leds-turris-omnia.c | 228 +++++++++--------- .../platform/cznic/turris-omnia-mcu-base.c | 3 + drivers/platform/cznic/turris-omnia-mcu.h | 130 ---------- include/linux/turris-omnia-mcu-interface.h | 147 +++++++++++ 5 files changed, 259 insertions(+), 250 deletions(-)