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 79F82C433F5 for ; Mon, 7 Mar 2022 19:14:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 326F881D4B; Mon, 7 Mar 2022 20:14:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="W60qheM3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C8B4181DD0; Mon, 7 Mar 2022 20:14:51 +0100 (CET) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1ED3A8191C for ; Mon, 7 Mar 2022 20:14:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=krjdev@gmail.com Received: by mail-ed1-x536.google.com with SMTP id s10so137355edd.0 for ; Mon, 07 Mar 2022 11:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=YKZvs0EEzMAS4ualJmppf2c9+7NqWyq4t4yibo+3pT0=; b=W60qheM3BPoRVnEZdXr0HDSCVs//14YpqW2QWHBiMKE+ote0M87X0tH8k+bKIqvXsa PNPL+ktAJqlVNuNdfv16S4biSi1cr1KRwEHP8+3l8BaMHWb0pYwQUtTQef8bJBCsrfkY DNZ22B7XgysE6UmOkINH3g9fm2Zg9iTR88jnBeF2VqA32A+7XLq0AFkvUMRUlk37I488 4MQ8jWEfB0+gn/srXOoAv2rG25p3jL5WkKhNIDuxqwKmozJprW/+b8JUcKjUdQ2gH/Lq WhMtfm9nXSreEjAmMW3cYZREr+DwrQpMvF6d5gnFomigZFWGrbPlgLPoT3ybnwm2DZxb sTtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=YKZvs0EEzMAS4ualJmppf2c9+7NqWyq4t4yibo+3pT0=; b=kn98UAbOlGPqSF2ztFZPxN0kx1IhqNTmRFm9QBx/m09YMddkwIhWG8bb+aqdwox0CC /QJJqXJRqW4QXpOW5v93Lej252DYiuuZk6jTKe4OsKJ6h8Dk9zYgdjzEllSSM0/Z389R SH6hUkrtP1G7M7B7GxxWOqkZwjxn7YfZNB7BTNbXudoRqDYuAD29OqlNEMIo41R/vVWy x3EssqdNnoGekRyScPgkQfK3D+/4Eqk7OjX9CJic2kEzCsCn7osWkTH+De1+Td8NfulS W+lArIQN5k6rFK8YnsXkXNyMdLdRTkwNrXEf3jn+XQKB3NBN7RSfAOrxCsBSs4NQ5vfX btuA== X-Gm-Message-State: AOAM5317FBi/ChOv0uLvJiMXVPC5j2bfFOQPVR5bo6MuOazeEvsqoIG/ ETA4SG9mTAPHR3sZ4HDr0qF5aYfjg1I= X-Google-Smtp-Source: ABdhPJw0neyEdCpACE0xY2wnSWgU4SVbDMN69JUWV2+5AId5FUVs0imXymO//bSYHX8mpCxZ4SRdWQ== X-Received: by 2002:a05:6402:40d0:b0:412:f86a:efd1 with SMTP id z16-20020a05640240d000b00412f86aefd1mr12570187edb.194.1646680487492; Mon, 07 Mar 2022 11:14:47 -0800 (PST) Received: from [10.42.42.166] (212-197-176-189.adsl.highway.telekom.at. [212.197.176.189]) by smtp.gmail.com with ESMTPSA id kw5-20020a170907770500b006db075e5358sm2604300ejc.66.2022.03.07.11.14.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Mar 2022 11:14:47 -0800 (PST) Message-ID: <391457f3-6550-4c70-8430-eb796121296f@gmail.com> Date: Mon, 7 Mar 2022 20:14:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: arm: stm32h7: Support for the STM32H747I-DISCO board Content-Language: en-US To: Patrice CHOTARD , u-boot@lists.denx.de, Alexandre TORGUE - foss 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> From: "Johannes (krjdev) Krottmayer" In-Reply-To: <7e741705-6d1e-7d1b-57c0-3c5e6e6f3df4@foss.st.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 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. :) >> >> 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. The SoC series includes a Cortex-M7 and a Cortex-M4. Currently I have the following CPU node in the device tree: --- 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.