From nobody Sun Oct 5 16:18:53 2025 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 B058B253B64; Fri, 1 Aug 2025 13:16:56 +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=1754054218; cv=none; b=Qsp5JS+fEB9uV+43LnKVjr1waMcyPc20usX6y2Gz6BFZ13wJToKmQwqiblS50vudXphWJ8S/A3lcR6dJ/epc24Z3tmtGqmj+SvxWpXzbvTvzZkOQDU2VCoda88xa9Ip5yQSCn2DVGkxRLW3R6Ya9tr/Md/RVzVqk67LrStTtVIw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754054218; c=relaxed/simple; bh=8dchQqi4TIXOkNjmPENd+y2u2n3RjTnFEQP+olfB+Xs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nVeRM2aFtUw5j1RcHfeAcXrwNE/NwvB3L6r0J+eIyEOxVLPC3X+gv22WuRcaZPxS6Z9iOzA7ZEOcIfrJ6Eg8BhM9DUb6u5vQVWOgq4L3uwqmIW1PlgxK5MIhh7B/khyltPi2+ODiMqzraJy1Py5IGrBBnE8mkvY1pFzjyERkEAg= 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=ZRHanWdp; 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="ZRHanWdp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1754054214; bh=8dchQqi4TIXOkNjmPENd+y2u2n3RjTnFEQP+olfB+Xs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZRHanWdpElEYhuQM6x/oecXJEwYMmV3QA5K+YiepFDMRKXLxMZIxmDjTzUk/J/RbJ R1Kd0VxPCYsgLdrLk+DJCh9USPbSP4J7wsD3EBJ53Eau6pstXjomdV9zzeK+O6O7Hw NMUjQS+3HLw5joqFVz5K6r6ppXNkXAZC3IhKiv6XWCt9I+uCbrEAbEjptxkqE7cESL Xzd3ZKtE7qSqdxFTFassl3WwCGEmg0V1bAubUnjcGVeahR+bt7TcuFIRYHiWBRdfD4 q+cs6V0ejX8zYqZ54U0S8/NQlRGM8gRiFTb4F5pzU7F3S50WRwZrWhRCppv6McA3LR 1AXz6yZRzfpqw== Received: from 2a01cb0892f2d600c8f85cf092d4af51.ipv6.abo.wanadoo.fr (2a01cb0892f2d600c8f85cf092d4af51.ipv6.abo.wanadoo.fr [IPv6:2a01:cb08:92f2:d600:c8f8:5cf0:92d4:af51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jmassot) by bali.collaboradmins.com (Postfix) with ESMTPSA id 53A5917E129D; Fri, 1 Aug 2025 15:16:54 +0200 (CEST) From: Julien Massot Date: Fri, 01 Aug 2025 15:16:51 +0200 Subject: [PATCH 3/3] arm64: dts: mediatek: mt8395-nio-12l: add support for blue and red 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: <20250801-radxa-nio-12-l-gpio-v1-3-d0840f85d2c8@collabora.com> References: <20250801-radxa-nio-12-l-gpio-v1-0-d0840f85d2c8@collabora.com> In-Reply-To: <20250801-radxa-nio-12-l-gpio-v1-0-d0840f85d2c8@collabora.com> To: kernel@collabora.com, Dmitry Torokhov , Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, Julien Massot X-Mailer: b4 0.14.2 The Radxa NIO 12L board has an RGB LED, of which only red and blue are controllable. Red and blue LEDs: no need to choose, both are enabled. Signed-off-by: Julien Massot --- .../boot/dts/mediatek/mt8395-radxa-nio-12l.dts | 31 ++++++++++++++++++= ++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/a= rm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts index fd596e2298285361ad7c2fb828feec598d75a73e..12288ad4d2932b7f78c96c0efe3= 66a046721f919 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -73,6 +74,28 @@ button-volume-up { }; }; =20 + gpio-leds { + compatible =3D "gpio-leds"; + pinctrl-0 =3D <&gpio_leds_pins>; + pinctrl-names =3D "default"; + + /* + * This board has a RGB LED, of which only R and B + * are controllable. + */ + led-0 { + label =3D "rgb-blue"; + color =3D ; + gpios =3D <&pio 6 GPIO_ACTIVE_HIGH>; + }; + + led-1 { + label =3D "rgb-red"; + color =3D ; + gpios =3D <&pio 7 GPIO_ACTIVE_HIGH>; + }; + }; + wifi_vreg: regulator-wifi-3v3-en { compatible =3D "regulator-fixed"; regulator-name =3D "wifi_3v3_en"; @@ -647,6 +670,14 @@ pins { }; }; =20 + gpio_leds_pins: gpio-leds-pins { + pins { + pinmux =3D , + ; + output-low; + }; + }; + i2c2_pins: i2c2-pins { pins-bus { pinmux =3D , --=20 2.50.1