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 7D784C433EF for ; Tue, 15 Mar 2022 11:43:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E4E3F83BAC; Tue, 15 Mar 2022 12:43:11 +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="LWrWZ4Df"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E0E208398A; Tue, 15 Mar 2022 09:06:10 +0100 (CET) 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 2B8B98398A for ; Tue, 15 Mar 2022 09:06:07 +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=907332db0c=alexandre.torgue@foss.st.com Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 22F4Jc3b013011; Tue, 15 Mar 2022 09:06:06 +0100 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=4I9vpkBtNjM5c7u6E8yVI3T1HVOdE6003Nq7xTsPpEo=; b=LWrWZ4Dfo8p7wKDgp30z+c+0Jd42xXmjCehTt7RF79oG/GftNnY9emLhRAhhMkQl/yB2 mYnjofGdHR21BUSoVefJXMAinJzrDt5kmN0FAZfer7rvUbgxI1wPMZUzbX/x8oMgoOS+ PZA84teMBPWGlFf5lQ1YImLbAvmp4JtUC7+drqE9S8WRUfBivqdrXfYW7o4ydeb+amdJ I9M2CQPG99SBfkjyxiy0zwCtlnJ3LsBG6SCl9Mjk/HBxv5XjUhJfJovjDCFTxyhKLUHs pZz+FIACcwh82xSpHvOrS3W+Xkg8WaVccc+flaNXvvR+qC/IqZgpsO8731MGDhwVz6+A Kw== 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 3et63h4s69-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Mar 2022 09:06:06 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id ECDB510002A; Tue, 15 Mar 2022 09:06:05 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E5024210F70; Tue, 15 Mar 2022 09:06:05 +0100 (CET) Received: from [10.211.7.135] (10.75.127.48) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Tue, 15 Mar 2022 09:06:05 +0100 Message-ID: <1ad4ddb1-7976-dc92-ade8-c4eab6f84876@foss.st.com> Date: Tue, 15 Mar 2022 09:06:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: arm: stm32h7: Support for the STM32H747I-DISCO board Content-Language: en-US To: "Johannes (krjdev) Krottmayer" , Patrice CHOTARD , CC: Patrick Delaunay References: <1a676fb9-b882-8d89-b67b-f7b27a8c8d57@gmail.com> <94e3ceb3-ccd9-9331-6ce8-9087c831bc77@foss.st.com> <7e741705-6d1e-7d1b-57c0-3c5e6e6f3df4@foss.st.com> <391457f3-6550-4c70-8430-eb796121296f@gmail.com> From: Alexandre TORGUE In-Reply-To: <391457f3-6550-4c70-8430-eb796121296f@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.850,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-14_14,2022-03-14_02,2022-02-23_01 X-Mailman-Approved-At: Tue, 15 Mar 2022 12:43:06 +0100 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.5 at phobos.denx.de X-Virus-Status: Clean Hi Johannes On 3/7/22 20:14, Johannes (krjdev) Krottmayer wrote: > Hi Patrice > > On 07.03.22 18:38, Patrice CHOTARD wrote: >> Hi Johannes >> >> +Alexandre who is STM32 kernel maintainer. > > Okay, no problem. :) > >> On 3/7/22 18:24, Johannes (krjdev) Krottmayer wrote: >>> Hi Patrice >>> >>> Thanks for the answer. >>> >>> On 07.03.22 17:09, Patrice CHOTARD wrote: >>>>> But there some issues on the website: >>>>> - According the website, the board has 256Mbit external SDRAM >>>>> >>>>> That's not true. There is a 512MBit SDRAM from ISSI mounted. >>> >>> It's a 256Mbit SDRAM mounted on the board. First looked in the >>> schematics in the user manual and there are two SDRAM types >>> (256MBit and 512Bit from ISSI). But unfortunately no notice >>> which type is really mounted. >>> >>> Sorry, my mistake. >>> >>>>> Can I release a patch series here, when my work is done? I don't >>>>> know if there any interest for other users exists, to add here >>>>> the support to U-Boot. >>>> >>>> Yes please, it's still useful to get a new STM32 board supported in U-Boot ;-) >>> >>> Device-Trees: >>> I would release SoC device-trees for other types in this series too. >>> Made a base SoC (dtsi) for the STM32H745. The STM32H747 includes this >>> device-tree as base configuration, because according the TRM, the >>> STM32H747 has an additional feature, the DSI interface. >>> >>> Other SoC series: >>> - STM32H755: >>> STM32H755 source also STM32H745, because the additional features is >>> the HASH and the CRYPTO controller. >>> >>> - STM32H757: >>> STM32H757 source also STM32H747 because the SoC has also the DSI >>> interface and the HASH and the CRYPTO controller. >>> >>> So I would create following SoC device-trees: >>> stm32h745.dtsi -> This is the base device-tree >>> stm22h747.dtsi >>> stm22h755.dtsi >>> stm32h757.dtsi >>> >>> Of course also for STM32H747I-DISCO. :) If you only introduce stm32h747 disco board I think it is better to stop at STM32H747. If there are no boards including STM32H755 / H757 no need to add them. >>> >>> Okay? >> >> I am okay with your approach. >> >> By default, we synchronized U-boot device tree with kernel device tree. >> First it will be preferable to do the job on kernel side. >> As soon as it will be accepted, then we will synchronize the device tree on U-Boot side. > > Okay. > >> Alex, are you agree with this ? > > Hi Alexandre > > About the device-trees. I would add all peripherals from these SoC's > in the device-tree. > > Here I have a question: > The SoC's includes the Chrom-ART Accelerator (DMA2D) for hardware > accelerated 2D graphic. I have searched both in U-Boot and Linux in > the source tree, but didn't find any support > > Would create a new device-tree device (st,stm32-dma2d) for this > graphic controller. Maybe I could add driver support to both U-Boot > and Linux. Have a look on my pull request for v5.18. DMA2D support has been added in stm32f469 disco board. > > The SoC series includes a Cortex-M7 and a Cortex-M4. Currently I have > the following CPU node in the device tree: You declare M4 + M7 as a cluster ? Linux runs on both ? I thought that M4 was more a coprocessor in this case. > > --- > cpus { > #address-cells = <1>; > #size-cells = <0>; > > cpu-map { > cluster0 { > core0 { > cpu = &cpu0; > }; > }; > > cluster1 { > core0 { > cpu = &cpu1; > }; > }; > }; > > cpu0: cpu@0 { > device_type = "cpu"; > compatible = "arm,cortex-m7"; > reg = <0>; > operating-points-v2 = <&cpu0_opp_table>; > }; > > cpu1: cpu@100 { > device_type = "cpu"; > compatible = "arm,cortex-m4"; > reg = <100>; > operating-points-v2 = <&cpu1_opp_table>; > }; > > /* > * Operating characteristics Cortex-M7 > * > * - LDO regulator ON > * - Run mode (Data and code processing) > * - Only Cortex-M7 ON > * - All peripherals OFF > * > * Please see datasheet for details > * > */ > cpu0_opp_table: opp_table0 { > compatible = "operating-points-v2"; > > opp-vos3 { > opp-hz = /bits/ 64 <200000000>; > opp-microvolt = <1000000>; > opp-microamp = <34500>; > }; > > opp-vos2 { > opp-hz = /bits/ 64 <300000000>; > opp-microvolt = <1100000>; > opp-microamp = <55000>; > }; > > opp-vos1 { > opp-hz = /bits/ 64 <400000000>; > opp-microvolt = <1200000>; > opp-microamp = <80000>; > }; > > opp-vos0 { > opp-hz = /bits/ 64 <480000000>; > opp-microvolt = <1350000>; > opp-microamp = <110000>; > turbo-mode; > }; > }; > > /* > * Operating characteristics Cortex-M4 > * > * - LDO regulator ON > * - Run mode (Data and code processing) > * - Only Cortex-M4 ON > * - ART accelerator ON > * - All peripherals OFF > * > * Please see datasheet for details > * > */ > cpu1_opp_table: opp_table1 { > compatible = "operating-points-v2"; > > opp-vos3 { > opp-hz = /bits/ 64 <100000000>; > opp-microvolt = <1000000>; > opp-microamp = <35000>; > }; > > opp-vos2 { > opp-hz = /bits/ 64 <150000000>; > opp-microvolt = <1100000>; > opp-microamp = <56000>; > }; > > opp-vos1 { > opp-hz = /bits/ 64 <200000000>; > opp-microvolt = <1200000>; > opp-microamp = <79000>; > }; > > opp-vos0 { > opp-hz = /bits/ 64 <240000000>; > opp-microvolt = <1350000>; > opp-microamp = <121000>; > turbo-mode; > }; > }; > }; > --- > > Okay? > > Kind regards, > > Johannes K.