devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrice Chotard <patrice.chotard@foss.st.com>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: <devicetree@vger.kernel.org>,
	<linux-stm32@st-md-mailman.stormreply.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>,
	Patrice Chotard <patrice.chotard@foss.st.com>
Subject: [PATCH 16/16] arm64: dts: st: Add green and orange LED for stm32mp235f-dk
Date: Wed, 12 Nov 2025 15:40:33 +0100	[thread overview]
Message-ID: <20251112-upstream_update_led_nodes-v1-16-f6c77739113c@foss.st.com> (raw)
In-Reply-To: <20251112-upstream_update_led_nodes-v1-0-f6c77739113c@foss.st.com>

Add blue, green and orange LED support on stm32mp235f-dk board.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---
 arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
index 6e165073f732..f41213187723 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
@@ -7,6 +7,7 @@
 /dts-v1/;
 
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/regulator/st,stm32mp25-regulator.h>
 #include "stm32mp257.dtsi"
 #include "stm32mp25xf.dtsi"
@@ -42,6 +43,28 @@ pad_clk: pad-clk {
 		};
 	};
 
+	gpio-leds {
+		compatible = "gpio-leds";
+
+		led-blue {
+			function = LED_FUNCTION_HEARTBEAT;
+			color = <LED_COLOR_ID_BLUE>;
+			gpios = <&gpioj 7 GPIO_ACTIVE_HIGH>;
+			linux,default-trigger = "heartbeat";
+			default-state = "off";
+		};
+
+		led-green {
+			color = <LED_COLOR_ID_GREEN>;
+			gpios = <&gpiod 8 GPIO_ACTIVE_HIGH>;
+		};
+
+		led-orange {
+			color = <LED_COLOR_ID_ORANGE>;
+			gpios = <&gpioj 6 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
 	imx335_2v9: regulator-2v9 {
 		compatible = "regulator-fixed";
 		regulator-name = "imx335-avdd";

-- 
2.43.0


  parent reply	other threads:[~2025-11-12 14:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-12 14:40 [PATCH 00/16] Led update for STMicrolectronics boards Patrice Chotard
2025-11-12 14:40 ` [PATCH 01/16] ARM: dts: stm32: reorder nodes for stm32429i-eval Patrice Chotard
2025-11-12 14:40 ` [PATCH 02/16] ARM: dts: stm32: Update LED " Patrice Chotard
2025-11-12 14:40 ` [PATCH 03/16] ARM: dts: stm32: Update LED nodes for stm32f429-disco Patrice Chotard
2025-11-12 14:40 ` [PATCH 04/16] ARM: dts: stm32: Update LED nodes for stm32f469-disco Patrice Chotard
2025-11-12 14:40 ` [PATCH 05/16] ARM: dts: stm32: Update LED node for stm32f746-disco Patrice Chotard
2025-11-12 14:40 ` [PATCH 06/16] ARM: dts: stm32: Update LED nodes for stm32f769-disco Patrice Chotard
2025-11-12 14:40 ` [PATCH 07/16] ARM: dts: stm32: Update LED nodes for stm32746g-eval Patrice Chotard
2025-11-12 14:40 ` [PATCH 08/16] ARM: dts: stm32: Add LED support for stm32h743i-disco Patrice Chotard
2025-11-12 14:40 ` [PATCH 09/16] ARM: dts: stm32: Add LED support for stm32h743i-eval Patrice Chotard
2025-11-12 14:40 ` [PATCH 10/16] ARM: dts: stm32: Update LED nodes for stm32h747i-disco Patrice Chotard
2025-11-12 14:40 ` [PATCH 11/16] ARM: dts: stm32: Add red LED for stm32mp135f-dk board Patrice Chotard
2025-11-12 14:40 ` [PATCH 12/16] ARM: dts: stm32: Add red LED for stm32mp157c-ed1 board Patrice Chotard
2025-11-12 14:40 ` [PATCH 13/16] ARM: dts: stm32: Update LED node for stm32mp15xx-dkx board Patrice Chotard
2025-11-12 14:40 ` [PATCH 14/16] arm64: dts: st: Add green and orange LED for stm32mp235f-dk Patrice Chotard
2025-11-12 14:40 ` [PATCH 15/16] arm64: dts: st: Add green and orange LED for stm32mp257f-dk Patrice Chotard
2025-11-12 14:40 ` Patrice Chotard [this message]
2025-11-13 13:29 ` [PATCH 00/16] Led update for STMicrolectronics boards Rob Herring (Arm)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251112-upstream_update_led_nodes-v1-16-f6c77739113c@foss.st.com \
    --to=patrice.chotard@foss.st.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).