From patchwork Thu May 19 19:10:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Kalscheuer X-Patchwork-Id: 1633484 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=BURIFGEo; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L3zyr2Qxhz9sGj for ; Fri, 20 May 2022 05:13:04 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type:List-Help: Reply-To:List-Archive:List-Unsubscribe:List-Subscribe:From:List-Post:List-Id: Message-ID:MIME-Version:Date:Subject:To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=xC3ZQPJxgvogSVBjK+8bNr+1pkWQzI/TyfP13XM6GfM=; b=BURIFGEouVS1+3Qm4+v4JqPqjw kzU8wLzuxvXCESbDl9fqu4Vam18OcorSiNEHcJbkg9aI/bhbF3x6zghUWkDCo2Ol6jZOVxjOEi8AV zdtjPYZyoOpHw0IsClQJpyLok3ApG2r3iTkSRex1NlTlOTlYu8NCf4fM6+fRNCwkW+QP18uDTwf90 N6bcFtI6zO7g7PrVespwXDNZdfMLlQJRrnshWtn2QECdoUKL9ogIKnfK+gtj5frqF6NDK/jQw277z +unI9Iw0HdqVJVwekurH4+EejeiyN/ZCbEmdXmsktqKOCmw8ZZBRIx+bA0Rht+kEsGBmI/Vr3dHLa /k5WbWNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nrlY4-0095no-05; Thu, 19 May 2022 19:11:00 +0000 To: openwrt-devel@lists.openwrt.org Subject: [PATCH] kernel: add kmod-leds-turris-omnia Date: Thu, 19 May 2022 21:10:34 +0200 MIME-Version: 1.0 Message-ID: List-Id: OpenWrt Development List List-Post: X-Patchwork-Original-From: Stefan Kalscheuer via openwrt-devel From: Stefan Kalscheuer Precedence: list X-Mailman-Version: 2.1.34 X-BeenThere: openwrt-devel@lists.openwrt.org List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Stefan Kalscheuer List-Help: Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software. Add support for LEDs of the CZ.NIC Turris Omnia using the upstream driver. There is no generic way to control the LEDs in UCI manner, however the kernel module is the first step to actually use the RGB LEDs in custom logic. Signed-off-by: Stefan Kalscheuer --- package/kernel/linux/modules/leds.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk index 33b9f612ae..9885e0c16c 100644 --- a/package/kernel/linux/modules/leds.mk +++ b/package/kernel/linux/modules/leds.mk @@ -180,6 +180,22 @@ endef $(eval $(call KernelPackage,leds-tlc591xx)) +define KernelPackage/leds-turris-omnia + SUBMENU:=$(LEDS_MENU) + TITLE:=LED support for CZ.NIC's Turris Omnia + DEPENDS:=@TARGET_mvebu_cortexa9 + KCONFIG:=CONFIG_LEDS_TURRIS_OMNIA + FILES:=$(LINUX_DIR)/drivers/leds/leds-turris-omnia.ko + AUTOLOAD:=$(call AutoLoad,60,leds-turris-omnia,1) +endef + +define KernelPackage/leds-turris-omnia/description + This option enables support for the LEDs of the CZ.NIC Turris Omnia. +endef + +$(eval $(call KernelPackage,leds-turris-omnia)) + + define KernelPackage/leds-uleds SUBMENU:=$(LEDS_MENU) TITLE:=Userspace LEDs