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 8615CE7D26A for ; Tue, 26 Sep 2023 08:55:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0415B86DC0; Tue, 26 Sep 2023 10:55:25 +0200 (CEST) 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="iK8hDaGH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1E2AB86DC4; Tue, 26 Sep 2023 10:55:24 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 1D8DC86DC2 for ; Tue, 26 Sep 2023 10:55:22 +0200 (CEST) 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=7633ac7092=patrice.chotard@foss.st.com Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38Q8QVNA002682; Tue, 26 Sep 2023 10:55:19 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=N9HQ+DBWjPVAo3lMs1Lx0XxBB7mUf8ptGawnUzKz8wk=; b=iK 8hDaGHZ/xXs5i8N7mxtxjBv6RpjGHCozAtwzOzW1zBMBInfizkl52eyaR/DSHtq5 1ioBqdiNY/cILKclwSeWdjHC4Lmy9MW+as909rjgsoRlsS208j1xr+6saNyOmMuV 4wPkvuJBft3M4e06DRUgnRVOjzDSDiEKi7jp1B4c8E8yol7CseNLJzTAM0D+uJDS l8pr7QGnrHDG+HHnWZxCsuIVs+gM5sSt6yCJ9kzM7GsknChwZwGJDhsQCRV2IfXZ FhJeA03AwhsiIz0Sqij5EbZCHl1qGunDwxpI1l2A1/HwvwWW38kx56oY+tAfuD+h q3B/or4gyJy6IFWcGQGw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3t9qbwuawp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Sep 2023 10:55:19 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B653110005A; Tue, 26 Sep 2023 10:55:18 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id AD85922A6D5; Tue, 26 Sep 2023 10:55:18 +0200 (CEST) Received: from [10.201.20.38] (10.201.20.38) 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.27; Tue, 26 Sep 2023 10:55:18 +0200 Message-ID: <1742a775-d3d5-a418-54ba-eaf0a7704217@foss.st.com> Date: Tue, 26 Sep 2023 10:55:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 10/10] ARM: dts: stm32: support display on stm32f746-disco board Content-Language: en-US To: Dario Binacchi , CC: , Alexandre Torgue , Patrick Delaunay , Simon Glass , Tom Rini , References: <20230903204849.660722-1-dario.binacchi@amarulasolutions.com> <20230903204849.660722-11-dario.binacchi@amarulasolutions.com> From: Patrice CHOTARD In-Reply-To: <20230903204849.660722-11-dario.binacchi@amarulasolutions.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.20.38] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-26_07,2023-09-25_01,2023-05-22_02 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 9/3/23 22:48, Dario Binacchi wrote: > The patch applies the changes from Linux commit 10a970bc3ebfa ("ARM: dts: > stm32: support display on stm32f746-disco board") and removes the same > settings from stm32f746-disco-u-boot.dtsi. > > Signed-off-by: Dario Binacchi > > --- > > arch/arm/dts/stm32f746-disco-u-boot.dtsi | 89 ++++++------------------ > arch/arm/dts/stm32f746-disco.dts | 44 ++++++++++++ > 2 files changed, 66 insertions(+), 67 deletions(-) > > diff --git a/arch/arm/dts/stm32f746-disco-u-boot.dtsi b/arch/arm/dts/stm32f746-disco-u-boot.dtsi > index 3c2b9fc59512..1b42d6cbbc19 100644 > --- a/arch/arm/dts/stm32f746-disco-u-boot.dtsi > +++ b/arch/arm/dts/stm32f746-disco-u-boot.dtsi > @@ -23,12 +23,6 @@ > spi0 = &qspi; > }; > > - backlight: backlight { > - compatible = "gpio-backlight"; > - gpios = <&gpiok 3 0>; > - status = "okay"; > - }; > - > button1 { > compatible = "st,button1"; > button-gpio = <&gpioi 11 0>; > @@ -38,37 +32,10 @@ > compatible = "st,led1"; > led-gpio = <&gpioi 1 0>; > }; > - > - panel-rgb@0 { > - compatible = "simple-panel"; > - backlight = <&backlight>; > - enable-gpios = <&gpioi 12 0>; > - status = "okay"; > - > - display-timings { > - timing@0 { > - clock-frequency = <9000000>; > - hactive = <480>; > - vactive = <272>; > - hfront-porch = <2>; > - hback-porch = <2>; > - hsync-len = <41>; > - vfront-porch = <2>; > - vback-porch = <2>; > - vsync-len = <10>; > - hsync-active = <0>; > - vsync-active = <0>; > - de-active = <1>; > - pixelclk-active = <1>; > - }; > - }; > - }; > }; > > <dc { > clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>; > - pinctrl-0 = <<dc_pins>; > - status = "okay"; > bootph-all; > }; > > @@ -96,6 +63,28 @@ > }; > }; > > +&panel_rgb { > + compatible = "simple-panel"; > + > + display-timings { > + timing@0 { > + clock-frequency = <9000000>; > + hactive = <480>; > + vactive = <272>; > + hfront-porch = <2>; > + hback-porch = <2>; > + hsync-len = <41>; > + vfront-porch = <2>; > + vback-porch = <2>; > + vsync-len = <10>; > + hsync-active = <0>; > + vsync-active = <0>; > + de-active = <1>; > + pixelclk-active = <1>; > + }; > + }; > +}; > + > &pinctrl { > ethernet_mii: mii@0 { > pins { > @@ -160,40 +149,6 @@ > }; > }; > > - ltdc_pins: ltdc@0 { > - pins { > - pinmux = , /* B0 */ > - , /* B4 */ > - , /* VSYNC */ > - , /* HSYNC */ > - , /* CLK */ > - , /* R0 */ > - , /* R1 */ > - , /* R2 */ > - , /* R3 */ > - , /* R4 */ > - , /* R5 */ > - , /* R6 */ > - , /* R7 */ > - , /* G0 */ > - , /* G1 */ > - , /* G2 */ > - , /* G3 */ > - , /* G4 */ > - , /* B1 */ > - , /* B2 */ > - , /* B3 */ > - , /* G5 */ > - , /* G6 */ > - , /* G7 */ > - , /* B5 */ > - , /* B6 */ > - , /* B7 */ > - ; /* DE */ > - slew-rate = <2>; > - }; > - }; > - > qspi_pins: qspi@0 { > pins { > pinmux = , /* CLK */ > diff --git a/arch/arm/dts/stm32f746-disco.dts b/arch/arm/dts/stm32f746-disco.dts > index e1564d69f9f6..431275134033 100644 > --- a/arch/arm/dts/stm32f746-disco.dts > +++ b/arch/arm/dts/stm32f746-disco.dts > @@ -25,6 +25,19 @@ > reg = <0xC0000000 0x800000>; > }; > > + reserved-memory { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + linux,cma { > + compatible = "shared-dma-pool"; > + no-map; > + size = <0x80000>; > + linux,dma-default; > + }; > + }; > + > aliases { > serial0 = &usart1; > }; > @@ -50,6 +63,25 @@ > regulator-min-microvolt = <3300000>; > regulator-max-microvolt = <3300000>; > }; > + > + backlight: backlight { > + compatible = "gpio-backlight"; > + gpios = <&gpiok 3 GPIO_ACTIVE_HIGH>; > + status = "okay"; > + }; > + > + panel_rgb: panel-rgb { > + compatible = "rocktech,rk043fn48h"; > + power-supply = <&vcc_3v3>; > + backlight = <&backlight>; > + enable-gpios = <&gpioi 12 GPIO_ACTIVE_HIGH>; > + status = "okay"; > + port { > + panel_in_rgb: endpoint { > + remote-endpoint = <<dc_out_rgb>; > + }; > + }; > + }; > }; > > &clk_hse { > @@ -80,6 +112,18 @@ > }; > }; > > +<dc { > + pinctrl-0 = <<dc_pins_a>; > + pinctrl-names = "default"; > + status = "okay"; > + > + port { > + ltdc_out_rgb: endpoint { > + remote-endpoint = <&panel_in_rgb>; > + }; > + }; > +}; > + > &sdio1 { > status = "okay"; > vmmc-supply = <&vcc_3v3>; Reviewed-by: Patrice Chotard Thanks Patrice