From nobody Mon Feb 9 20:30:18 2026 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 6197F320CB7; Thu, 16 Oct 2025 10:09:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760609344; cv=none; b=s2LZtr3TxNwMvLevGqSjLTnw7UFNEM6zTNv2nDAlC81oC5BY9Si4oH8wNRnfjX3S2vRxBSb9B/XjUeatE9JH7XcsSdnRM+UEFV5oFeHy5zAKuY366edi3gonKj3nOYubejfd4xazwcTdOelI+6in0qNxRXjmaCFqhJIRzKBj16k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760609344; c=relaxed/simple; bh=UT1tGvKU5Kvq7l45Piyw1w46GgfZtcLVNXUBPC/Jvcg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eDy/ggK/FFa5aC72/FRUf8rK4Mxgy1fxvpgduuMWdWP7xWfvMNpefCsCF57/CMRFWer9tvfGUVJ/ZiJUh9Y2teLG5wlAmiXhIfzmN92N9VZdbrFdTS6gtGcR+tWZvQPbFuD3UeUEZonL6ScosqBHgN+3ADKAXiBRSQiCkEeXepE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=nNSNiutk; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="nNSNiutk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1760609335; bh=UT1tGvKU5Kvq7l45Piyw1w46GgfZtcLVNXUBPC/Jvcg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=nNSNiutkn7HdoT12AweE3Yf8fveb8adNGcEY8mIxvDC56vs5OWPYUEfyqDtwnzJ43 xue6+GOI6FE37MWsEDfvPmV0vTgLFM9YyRYfmTNP1ePNLzVR4zmKPogw/V5utQyjVf QEOVbHfmrxKUq+u3CtdnBSj8QEkLRIEjtoVuTOxlF6bMCwvctIZC9oC7mUyG1kmva7 +zzYsvgRdvLJAdPgrmDKJUVbxcoedx2XIOLJiT+0+hfUcpoj3O64m/C3YKBbtAlAG5 nt430CPqMt95EzW/umLdkgxt0e/Ma3rfp03RYKyAQJHj0suGDHPJbnLzpD6BzSmr0s KyIcxgeTJFFpA== Received: from beast.luon.net (unknown [IPv6:2a10:3781:2531::8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sjoerd) by bali.collaboradmins.com (Postfix) with ESMTPSA id 3364617E14FF; Thu, 16 Oct 2025 12:08:55 +0200 (CEST) Received: by beast.luon.net (Postfix, from userid 1000) id D6C8E10C9C79E; Thu, 16 Oct 2025 12:08:53 +0200 (CEST) From: Sjoerd Simons Date: Thu, 16 Oct 2025 12:08:51 +0200 Subject: [PATCH 15/15] arm64: dts: mediatek: mt7981b-openwrt-one: Enable leds Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251016-openwrt-one-network-v1-15-de259719b6f2@collabora.com> References: <20251016-openwrt-one-network-v1-0-de259719b6f2@collabora.com> In-Reply-To: <20251016-openwrt-one-network-v1-0-de259719b6f2@collabora.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Ryder Lee , Jianjun Wang , Bjorn Helgaas , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Manivannan Sadhasivam , Chunfeng Yun , Vinod Koul , Kishon Vijay Abraham I , Lee Jones , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lorenzo Bianconi , Felix Fietkau Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org, netdev@vger.kernel.org, Daniel Golle , Bryan Hinton , Sjoerd Simons X-Mailer: b4 0.14.3 The Openwrt One has 3 status leds at the front (red, white, green) as well as 2 software controlled leds for the LAN jack (amber, green). Signed-off-by: Sjoerd Simons --- .../boot/dts/mediatek/mt7981b-openwrt-one.dts | 57 ++++++++++++++++++= ++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts b/arch/ar= m64/boot/dts/mediatek/mt7981b-openwrt-one.dts index 4d1653c336e71..0c0878488ae98 100644 --- a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts +++ b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts @@ -43,6 +43,50 @@ reg_5v: regulator-5v { regulator-boot-on; regulator-always-on; }; + + pwm-leds { + compatible =3D "pwm-leds"; + + led-0 { + color =3D ; + default-brightness =3D <0>; + function =3D LED_FUNCTION_STATUS; + max-brightness =3D <255>; + pwms =3D <&pwm 0 10000>; + }; + + led-1 { + color =3D ; + default-brightness =3D <0>; + function =3D LED_FUNCTION_STATUS; + max-brightness =3D <255>; + pwms =3D <&pwm 1 10000>; + }; + }; + + gpio-leds { + compatible =3D "gpio-leds"; + + led-0 { + color =3D ; + function =3D LED_FUNCTION_STATUS; + gpios =3D <&pio 9 GPIO_ACTIVE_HIGH>; + }; + + led-1 { + color =3D ; + function =3D LED_FUNCTION_LAN; + gpios =3D <&pio 34 GPIO_ACTIVE_LOW>; + linux,default-trigger =3D "netdev"; + }; + + led-2 { + color =3D ; + function =3D LED_FUNCTION_LAN; + gpios =3D <&pio 35 GPIO_ACTIVE_LOW>; + linux,default-trigger =3D "netdev"; + }; + }; }; =20 ð { @@ -109,6 +153,13 @@ mux { }; }; =20 + pwm_pins: pwm-pins { + mux { + function =3D "pwm"; + groups =3D "pwm0_0", "pwm1_1"; + }; + }; + spi2_flash_pins: spi2-pins { mux { function =3D "spi"; @@ -152,6 +203,12 @@ conf { }; }; =20 +&pwm { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pwm_pins>; + status =3D "okay"; +}; + &spi2 { pinctrl-names =3D "default"; pinctrl-0 =3D <&spi2_flash_pins>; --=20 2.51.0