From patchwork Wed May 29 14:24:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 1941285 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=mWP+eEgF; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=BgTXZ8lI; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VqBr94ZYmz20f3 for ; Thu, 30 May 2024 00:40:24 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7B8RshLa6FBo5gRo9qrMZWtFP9/S8RJmVb6m5jG8iTU=; b=mWP+eEgFsHCAs4 QdBHOCir8c15r9n3tzwgdx2Ap710RZsBz6tIfJUw67znejPo9jAhBBtZRxr37IESc5BPsf9HPeVQw /gEJWfu8a1mihhjQpbIn0wm9wr3fVVdDNqtuO455E+71ouFnp5XDeLb2eEmFbLB24x2EV2HLBwQGZ Bgsxt/1YddRdGyfGXZRIqUrM+VRCptzJG4Yb+MSvBOqVuz11ofZag2GEHuHZ8w6ofAhROZCF92N8U raqkRWq5otugG7/SLkb2slOyIwko2Jk13iMCI/N/xbj50e2EAr5uABxYc07ruOaZfn2tlThNFt8EU o350+qs018cyNSJMQRBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCKSD-00000004UaV-3Krt; Wed, 29 May 2024 14:39:01 +0000 Received: from terefe.re ([5.255.96.200]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCKRy-00000004UUK-1mBY for openwrt-devel@lists.openwrt.org; Wed, 29 May 2024 14:38:48 +0000 Received: from localhost.localdomain (unknown [212.106.161.98]) by terefe.re (Postfix) with ESMTPSA id B8931203BF; Wed, 29 May 2024 16:38:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1716993516; bh=JOzZMvpdID7ADcfC6U3ufr67mnQjvVmQWCJEa6z1tpw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BgTXZ8lIq3CpKvFQU9yZyAHZtbHnva+19YSPpqFs9pDRYNtZ0MFzAlyjxrgKj+jvD tGEUoi5ZZrWbBYlUeeLgsVQnr5yY7dVbwezcaJa8jg3H/RJG5Oqqns6WlZNvlqo2QQ zte3MsBz3dg/PsWrirkY9eLOyuzzrgVVC/vr4bInSJj0dwLWAsk2p9zzAO1D0Qo+aL 4pi0KS27PdLkbjyk1lp3mk9orRe0uzORO6zGYPqp+RSH1XuhWXXnN9VKNM5uIf+PiG AQB+X+sj5rrlQQ2mI7Vxci3OAATB/GXU99OwBOXsinhyIrXegn6n5+mLk/XODqQPWn eASKpPVSn+rOg== From: Tomasz Maciej Nowak To: openwrt-devel@lists.openwrt.org Cc: Hauke Mehrtens , Tomasz Maciej Nowak Subject: [PATCH v2 8/8] tegra: trimslice: adjust LED patch to upstream changes Date: Wed, 29 May 2024 16:24:11 +0200 Message-ID: <20240529143825.5472-9-tmn505@terefe.re> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240529143825.5472-1-tmn505@terefe.re> References: <20240529143825.5472-1-tmn505@terefe.re> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_073846_789953_56462578 X-CRM114-Status: UNSURE ( 6.98 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Tomasz Maciej Nowak LED subsystem has undergone changes how the function and color of LEDs should be specified, so use that, while still keeping the old label. Signed-off-by: Tomasz Maciej Nowak --- ...enable-front-panel-leds-in-TrimSlice.patch | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-) Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Tomasz Maciej Nowak LED subsystem has undergone changes how the function and color of LEDs should be specified, so use that, while still keeping the old label. Signed-off-by: Tomasz Maciej Nowak --- ...enable-front-panel-leds-in-TrimSlice.patch | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/target/linux/tegra/patches-6.6/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch b/target/linux/tegra/patches-6.6/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch index 9ec7f8b839f6..fa6d6db861f4 100644 --- a/target/linux/tegra/patches-6.6/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch +++ b/target/linux/tegra/patches-6.6/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch @@ -1,6 +1,14 @@ --- a/arch/arm/boot/dts/nvidia/tegra20-trimslice.dts +++ b/arch/arm/boot/dts/nvidia/tegra20-trimslice.dts -@@ -201,16 +201,17 @@ +@@ -2,6 +2,7 @@ + /dts-v1/; + + #include ++#include + #include "tegra20.dtsi" + #include "tegra20-cpu-opp.dtsi" + +@@ -201,16 +202,17 @@ conf_ata { nvidia,pins = "ata", "atc", "atd", "ate", "crtp", "dap2", "dap3", "dap4", "dta", @@ -23,20 +31,26 @@ nvidia,pull = ; nvidia,tristate = ; }; -@@ -408,6 +409,20 @@ +@@ -408,6 +410,26 @@ }; }; -+ gpio-leds { ++ leds { + compatible = "gpio-leds"; + -+ ds2 { -+ label = "trimslice:green:right"; ++ led-ds2 { ++ label = "green:right"; ++ color = ; ++ function = LED_FUNCTION_STATUS; ++ function-enumerator = <1>; + gpios = <&gpio TEGRA_GPIO(D, 2) GPIO_ACTIVE_LOW>; + }; + -+ ds3 { -+ label = "trimslice:green:left"; ++ led-ds3 { ++ label = "green:left"; ++ color = ; ++ function = LED_FUNCTION_STATUS; ++ function-enumerator = <2>; + gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_LOW>; + }; + };