From patchwork Sun Sep 27 19:38:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksander Jan Bajkowski X-Patchwork-Id: 3514 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 8B9E61C2CFE for ; Sun, 27 Sep 2026 22:08:36 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=wp.pl; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-26348-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-26348-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 6737A2A524 for ; Sun, 27 Sep 2026 20:08:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A786D377A83; Sun, 27 Sep 2026 20:08:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b="DayQRYMx" X-Original-To: linux-sunxi@lists.linux.dev Received: from mx4.wp.pl (mx4.wp.pl [212.77.101.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC7DB3148D0 for ; Sun, 27 Sep 2026 20:08:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.77.101.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790539713; cv=none; b=XJeYk2aOoY8agmkiOLmN+34QhXlZZ4DwIaPYXQj+6LSV7KJ+MAZRZO598bNfiqFTMJ13BiHoMAPt9zo63TvEGdcPLjU7k0gHjdXidCBY/pk1YhlEc1ML9FxnzurRmK/qeZlAKZKX2BdweilevLQ/2el5vIF7/aiGtYf1o4TFJmE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790539713; c=relaxed/simple; bh=Lagu8Xk5DErxyxxxYxSPGQDCPQt0qhxDq+aml5JTvz8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VVV2hx0Y8O1Fmrr4p11I1eWAGYlsIliIlJL/uNOTFV7WJcuS5FFuA9b4qNezEpOMI6GKrIc+LncuBK9Xu7fsBCZmLZn8I3xPMANmhgtlZ4MB4M06xZ+wd4uTIa0z9s8uX5xqYn/hEdmtEJF6e3gzFROE9fBKqoOxdUzSn9WKIj4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl; spf=pass smtp.mailfrom=wp.pl; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b=DayQRYMx; arc=none smtp.client-ip=212.77.101.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wp.pl Received: (wp-smtpd smtp.wp.pl 34551 invoked from network); 27 Sep 2026 22:08:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=20241105; t=1790539702; bh=TnQxYgpCNkWFsilYnSP0IcpmCqqzaPwYvLR7k4wkAvk=; h=From:To:Cc:Subject; b=DayQRYMxvGbmOy99dc+WfOpWTrknJd6y84OnpyqBtZlFno5LbL6N99/KQaCuH2Fk3 BheIhW6B0uFWPo7fZR3HcssKxh+p+YlnGLLwrkVlrB9nrMWLEaQbXT4j6aEXAOsG54 /uk+ESmW7WPO8J70kdUsms2eTKf0amuQI+QnYo+SwoW4ZsvIE6W15HwwQyLSjwaH4v n3TH74v9uD6qyMxrMGyQ+F6Vj1S+K8lFCiy8ywLqA4Whhgg2IcPPX/xe9cj1fs2b/H thhJuYNLGjihbkGmpe0b78SK1CgqOh/aDLVN3IqWUd83xRox0nIJp0IuwImawOxiI7 1jJ9C1ai9FQQA== Received: from abajkowski.lan (83.5.247.9.ipv4.supernova.orange.pl [83.5.247.9]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with TLS_AES_256_GCM_SHA384 encrypted SMTP for ; 27 Sep 2026 22:08:22 +0200 From: Aleksander Jan Bajkowski To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, wens@kernel.org, jernej.skrabec@gmail.com, samuel@sholland.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Aleksander Jan Bajkowski Subject: [PATCH v2] arm64: dts: allwiner: h5: OrangePi PC2: add ethernet LEDs Date: Sun, 27 Sep 2026 21:38:18 +0200 Message-ID: <20260927200820.795348-1-olek2@wp.pl> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-WP-DKIM-Status: good (id: wp.pl) X-WP-MailID: 6b11e7dc137ab51735648a9f2219e6a2 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000003 [UfB8] X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= This patch adds support for Ethernet LEDs. Keep the default LED settings. Signed-off-by: Aleksander Jan Bajkowski --- Changes iv v2: - add defaullt-state property. Previously, the LEDs were dark by default. --- .../dts/allwinner/sun50i-h5-orangepi-pc2.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts index 6e57ee19e799..c23315994799 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts @@ -7,6 +7,7 @@ #include #include +#include #include / { @@ -132,6 +133,27 @@ &external_mdio { ext_rgmii_phy: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <1>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + linux,default-trigger = "netdev"; + default-state = "keep"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + linux,default-trigger = "netdev"; + default-state = "keep"; + }; + }; }; };