Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B810BC021B6 for ; Tue, 25 Feb 2025 10:42:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2500280F53; Tue, 25 Feb 2025 11:42:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="V//+DvO1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7057480F56; Tue, 25 Feb 2025 11:42:28 +0100 (CET) Received: from mx08-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6FBB7805C3 for ; Tue, 25 Feb 2025 11:42:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=41517684a8=patrice.chotard@foss.st.com Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 51P7mukp001970; Tue, 25 Feb 2025 11:42:25 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= 67rE42pTnVh4fLo6TY/l8f2MgJ9vkLkLdcd+O38EfXo=; b=V//+DvO1v9TJr5BZ xH0Q/jMr4AXh+8UCbP0uaA8Dl1koLRMDOoInULRmNRZupEEDQ55QfFYUTK7Ybvz1 6ZjsMsziJOTrTiWPhH1civmI6qVOMzR37BCXr6v2GxIVUyeJTiHbCpOBXkfA/+DR WXb3HxQPBjSU9kssa1UP+2NcR6hMIW44ybXP9CgAZUCGkRrgQT0izJlE/Vzn9LKM CY6cy+YHcoijbhlBrWYZ17Vot3UupsI5aek/UBSxsAUbdCM5qIKWrreKI3uLliTI DAr8z+1tPuCrWnhyZnjoAlj/v4sfT5UIAfrZZtqGExK4SJGwjyTn+i9/hygSMCDr UxAklg== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 4512spaee4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Feb 2025 11:42:24 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 1340E40064; Tue, 25 Feb 2025 11:41:30 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id DA48F4F117A; Tue, 25 Feb 2025 10:53:04 +0100 (CET) Received: from [10.48.87.62] (10.48.87.62) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 25 Feb 2025 10:53:04 +0100 Message-ID: <7635c849-40d5-4d80-b4f3-870b89cb57cb@foss.st.com> Date: Tue, 25 Feb 2025 10:53:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/3] ARM: dts: stm32: drop "st,led1" compatible To: Dario Binacchi , CC: Patrick Delaunay , Simon Glass , Tom Rini , Vikas Manocha , References: <20250224183931.313491-1-dario.binacchi@amarulasolutions.com> <20250224183931.313491-2-dario.binacchi@amarulasolutions.com> Content-Language: en-US From: Patrice CHOTARD In-Reply-To: <20250224183931.313491-2-dario.binacchi@amarulasolutions.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.87.62] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-25_03,2025-02-24_02,2024-11-22_01 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 2/24/25 19:39, Dario Binacchi wrote: > It is pointless to use the custom compatible "st,led1" when > stm32746g-eval.dts and stm32f769-disco.dts already contain the > "gpio-leds" compatible, which is specifically used for GPIO LEDs > management. > > Signed-off-by: Dario Binacchi > > --- > > Changes in v2: > - Drop leds node from stm32f746-disco-u-boot.dtsi > > arch/arm/dts/stm32746g-eval-u-boot.dtsi | 5 ----- > arch/arm/dts/stm32f746-disco-u-boot.dtsi | 5 ----- > arch/arm/dts/stm32f769-disco-u-boot.dtsi | 5 ----- > board/st/stm32f746-disco/stm32f746-disco.c | 16 ---------------- > 4 files changed, 31 deletions(-) > > diff --git a/arch/arm/dts/stm32746g-eval-u-boot.dtsi b/arch/arm/dts/stm32746g-eval-u-boot.dtsi > index f64329287357..32b5c7cea4b8 100644 > --- a/arch/arm/dts/stm32746g-eval-u-boot.dtsi > +++ b/arch/arm/dts/stm32746g-eval-u-boot.dtsi > @@ -22,11 +22,6 @@ > mmc0 = &sdio1; > spi0 = &qspi; > }; > - > - led1 { > - compatible = "st,led1"; > - led-gpio = <&gpiof 10 0>; > - }; > }; > > &fmc { > diff --git a/arch/arm/dts/stm32f746-disco-u-boot.dtsi b/arch/arm/dts/stm32f746-disco-u-boot.dtsi > index a79fca261a2c..38d797e49a0a 100644 > --- a/arch/arm/dts/stm32f746-disco-u-boot.dtsi > +++ b/arch/arm/dts/stm32f746-disco-u-boot.dtsi > @@ -22,11 +22,6 @@ > mmc0 = &sdio1; > spi0 = &qspi; > }; > - > - led1 { > - compatible = "st,led1"; > - led-gpio = <&gpioi 1 0>; > - }; > }; > > <dc { > diff --git a/arch/arm/dts/stm32f769-disco-u-boot.dtsi b/arch/arm/dts/stm32f769-disco-u-boot.dtsi > index a50fba64dcd2..7c99a6e61b68 100644 > --- a/arch/arm/dts/stm32f769-disco-u-boot.dtsi > +++ b/arch/arm/dts/stm32f769-disco-u-boot.dtsi > @@ -23,11 +23,6 @@ > spi0 = &qspi; > }; > > - led1 { > - compatible = "st,led1"; > - led-gpio = <&gpioj 5 0>; > - }; > - > panel: panel { > compatible = "orisetech,otm8009a"; > reset-gpios = <&gpioj 15 1>; > diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c > index 65a39d965c72..72f479cea66f 100644 > --- a/board/st/stm32f746-disco/stm32f746-disco.c > +++ b/board/st/stm32f746-disco/stm32f746-disco.c > @@ -78,22 +78,6 @@ u32 spl_boot_device(void) > > int board_late_init(void) > { > - struct gpio_desc gpio = {}; > - int node; > - > - node = fdt_node_offset_by_compatible(gd->fdt_blob, 0, "st,led1"); > - if (node < 0) > - return -1; > - > - gpio_request_by_name_nodev(offset_to_ofnode(node), "led-gpio", 0, &gpio, > - GPIOD_IS_OUT); > - > - if (dm_gpio_is_valid(&gpio)) { > - dm_gpio_set_value(&gpio, 0); > - mdelay(10); > - dm_gpio_set_value(&gpio, 1); > - } > - > return 0; > } > Reviewed-by: Patrice Chotard Thanks Patrice