All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
To: Patrice CHOTARD <patrice.chotard@foss.st.com>, <u-boot@lists.denx.de>
Cc: U-Boot STM32 <uboot-stm32@st-md-mailman.stormreply.com>
Subject: Re: [PATCH 16/16] doc: st: stm32mp1: add STM32MP13x support
Date: Fri, 20 May 2022 18:13:40 +0200	[thread overview]
Message-ID: <3ec2a96f-deb7-2d16-0571-25665b4a659f@foss.st.com> (raw)
In-Reply-To: <28e62cb3-955d-1631-add1-f99c1e34b7e4@foss.st.com>

Hi,

On 5/20/22 09:21, Patrice CHOTARD wrote:
> Hi PAtrick
>
> typos below
>
> On 5/6/22 16:06, Patrick Delaunay wrote:
>> Add in U-Boot documentation the quick instruction for
> s/for/to
ok
>
>> setup the STMicroelectronics STM32MP13x boards.
>>
>> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
>> ---
>>
>>   doc/board/st/stm32mp1.rst | 181 ++++++++++++++++++++++++++------------
>>   1 file changed, 125 insertions(+), 56 deletions(-)
>>
>> diff --git a/doc/board/st/stm32mp1.rst b/doc/board/st/stm32mp1.rst
>> index 0c5d3a90f0..25d38d337a 100644
>> --- a/doc/board/st/stm32mp1.rst
>> +++ b/doc/board/st/stm32mp1.rst
>> @@ -1,41 +1,31 @@
>>   .. SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
>>   .. sectionauthor:: Patrick Delaunay <patrick.delaunay@foss.st.com>
>>   
>> -STM32MP15x boards
>> +STM32MP1xx boards
>>   =================
>>   
>> -This is a quick instruction for setup STM32MP15x boards.
>> +This is a quick instruction for setup STMicroelectronics STM32MP1xx boards.
>>   
>>   Futher information can be found in STMicrolectronics STM32 WIKI_.
> s/Futher/Further
ok
>
>>   
>>   Supported devices
>>   -----------------
>>   
>> -U-Boot supports STMP32MP15x SoCs:
>> +U-Boot supports all the STMicroelectronics MPU with the associated boards
>>   
>> - - STM32MP157
>> - - STM32MP153
>> - - STM32MP151

[...]

>>
>> +
>> +STM32MP15x
>> +``````````
>> +
>> +The STM32MP15x is a Cortex-A7 MPU aimed at various applications.
>> +
>> +It features:
>> +
>> + - Dual core Cortex-A7 application core (Single on STM32MP151)
>> + - 2D/3D image composition with GPU (only on STM32MP157)
>> + - Standard memories interface support
>> + - Standard connectivity, widely inherited from the STM32 MCU family
>> + - Comprehensive security support
>> + - Cortex M4 coprocessor
> s/coprocessor/co-processor

coprocessor is good for me:

https://en.wikipedia.org/wiki/Coprocessor

it is also used in ST Wiki

https://wiki.st.com/stm32mpu/wiki/Category:Coprocessor_management_Linux


>
>> +
>> +Each line comes with a security option (cryptography & secure boot) and
>> +a Cortex-A frequency option:
>> +
>> + - A : Cortex-A7 @ 650 MHz
>> + - C : Secure Boot + HW Crypto + Cortex-A7 @ 650 MHz
>> + - D : Cortex-A7 @ 800 MHz
>> + - F : Secure Boot + HW Crypto + Cortex-A7 @ 800 MHz
>>   
>>   Currently the following boards are supported:
>>   
>> @@ -59,6 +77,16 @@ Currently the following boards are supported:
>>    + stm32mp157c-ev1.dts
>>    + stm32mp15xx-dhcor-avenger96.dts

[...]

>>   
>>        # export KBUILD_OUTPUT=stm32mp15_basic
>>        # make stm32mp15_basic_defconfig
>> @@ -235,6 +292,7 @@ Build Procedure
>>      So in the output directory (selected by KBUILD_OUTPUT),
>>      you can found the needed U-Boot files:
>>   
>> +     - stm32mp13_defconfig = **u-boot-nodtb.bin** and **u-boot.dtb**
>>        - stm32mp15_defconfig = **u-boot-nodtb.bin** and **u-boot.dtb**
>>   
>>        - stm32mp15_trusted_defconfig = u-boot.stm32
>> @@ -325,9 +383,9 @@ the boot pin values = BOOT0, BOOT1, BOOT2
>>     | SPI-NAND    |  1      |  1      |  1      |
>>     +-------------+---------+---------+---------+
>>   
>> -- on the **daugther board ed1 = MB1263** with the switch SW1
>> -- on **Avenger96** with switch S3 (NOR and SPI-NAND are not applicable)
>> -- on board **DK1/DK2** with the switch SW1 = BOOT0, BOOT2
>> +- on the STM32MP15x **daugther board ed1 = MB1263** with the switch SW1
> s/daugther/daughter
ok
>
>> +- on STM32MP15x **Avenger96** with switch S3 (NOR and SPI-NAND are not applicable)
>> +- on board STM32MP15x **DK1/DK2** with the switch SW1 = BOOT0, BOOT2
>>     with only 2 pins available (BOOT1 is forced to 0 and NOR not supported),
>>     the possible value becomes:
>>   
>> @@ -355,7 +413,7 @@ The communication between HOST and board is based on
>>   Prepare an SD card
>>   ------------------
>>   
>> -The minimal requirements for STMP32MP15x boot up to U-Boot are:
>> +The minimal requirements for STMP32MP15x and STM32MP13x boot up to U-Boot are:
>>   
>>   - GPT partitioning (with gdisk or with sgdisk)
>>   - 2 fsbl partitions, named "fsbl1" and "fsbl2", size at least 256KiB
>> @@ -511,14 +569,25 @@ MAC Address
>>   Please read doc/README.enetaddr for the implementation guidelines for mac id
>>   usage. Basically, environment has precedence over board specific storage.
>>   
>> -For STMicroelectonics board, it is retrieved in STM32MP15x OTP :
>> +For STMicroelectonics board, it is retrieved in:
> s/STMicroelectonics/STMicroelectronics
OK
>
>> +
>> + - STM32MP15x OTP:
>>   
>> - - OTP_57[31:0] = MAC_ADDR[31:0]
>> - - OTP_58[15:0] = MAC_ADDR[47:32]
>> +   - OTP_57[31:0] = MAC_ADDR[31:0]
>> +   - OTP_58[15:0] = MAC_ADDR[47:32]
>>   
>> -To program a MAC address on virgin OTP words above, you can use the fuse command
>> + - STM32MP13x OTP:
>> +
>> +  - OTP_57[31:0]  = MAC_ADDR0[31:0]
>> +  - OTP_58[15:0]  = MAC_ADDR0[47:32]
>> +  - OTP_58[31:16] = MAC_ADDR1[15:0]
>> +  - OTP_59[31:0]  = MAC_ADDR1[47:16]
>> +
>> +To program a MAC address on virgin STM32MP15x OTP words above, you can use the fuse command
>>   on bank 0 to access to internal OTP and lock them:
>>   
>> +In the next example we are using the 2 OTPs used on STM32MP15x.
>> +
>>   Prerequisite: check if a MAC address isn't yet programmed in OTP
>>   
>>   1) check OTP: their value must be equal to 0::
>> @@ -571,8 +640,8 @@ Example to set mac address "12:34:56:78:9a:bc"
>>                OTP are protected. It is already done for the board
>>                provided by STMicroelectronics.
>>   
>> -Coprocessor firmware
>> ---------------------
>> +Coprocessor firmware on STM32MP15x
> s/Coprocessor/Co-processor
Same
>
>> +----------------------------------
>>   
>>   U-Boot can boot the coprocessor before the kernel (coprocessor early boot).
> s/coprocessor/co-processor
Same
>
>>   
>> @@ -678,7 +747,7 @@ All the supported device are exported for dfu-util tool::
>>   
>>   You can update the boot device:
>>   
>> -- SD card (mmc0) ::
>> +- SD card (mmc0)::
>>   
>>     $> dfu-util -d 0483:5720 -a 3 -D tf-a-stm32mp157c-ev1.stm32
>>     $> dfu-util -d 0483:5720 -a 4 -D tf-a-stm32mp157c-ev1.stm32


Regards


Patrick


  reply	other threads:[~2022-05-20 16:13 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-06 14:06 [PATCH 00/16] stm32mp: add STM32MP13x support Patrick Delaunay
2022-05-06 14:06 ` [PATCH 01/16] ARM: dts: stm32: add STM32MP13 SoCs support Patrick Delaunay
2022-05-20  6:31   ` Patrice CHOTARD
2022-06-17  8:47   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 02/16] configs: stm32mp1: move SUPPORT_SPL in STM32MP15x Patrick Delaunay
2022-05-20  6:32   ` Patrice CHOTARD
2022-06-17  8:47   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 03/16] arm: stm32mp: move the get_otp helper function in bsec Patrick Delaunay
2022-05-20  6:32   ` Patrice CHOTARD
2022-06-17  8:47   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 04/16] arm: stm32mp: move code for STM32MP15x Patrick Delaunay
2022-05-20  6:32   ` Patrice CHOTARD
2022-06-17  8:48   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 05/16] arm: stm32mp: add choice for STM32MP SOC family Patrick Delaunay
2022-05-20  6:37   ` Patrice CHOTARD
2022-06-17  8:48   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 06/16] arm: stm32mp: add sub config Kconfig.15x Patrick Delaunay
2022-05-20  6:39   ` Patrice CHOTARD
2022-06-17  8:49   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 07/16] arm: stm32mp: add CONFIG_STM32MP15_PWR Patrick Delaunay
2022-05-20  6:41   ` Patrice CHOTARD
2022-06-17  8:49   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 08/16] arm: stm32mp: add support of STM32MP13x Patrick Delaunay
2022-05-20  6:49   ` Patrice CHOTARD
2022-05-20  7:24     ` [Uboot-stm32] " Patrice CHOTARD
2022-05-20  7:44       ` Marek Vasut
2022-06-17  8:57   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 09/16] arm: stm32mp: support 2 MAC address for STM32MP13 Patrick Delaunay
2022-05-20  6:55   ` Patrice CHOTARD
2022-06-17  8:57   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 10/16] pinctrl: stm32: add support of STM32MP135 Patrick Delaunay
2022-05-20  6:55   ` Patrice CHOTARD
2022-05-20  6:57   ` Patrice CHOTARD
2022-06-17  8:57   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 11/16] board: stm32pm1: add stm32mp13 board support Patrick Delaunay
2022-05-20  7:02   ` Patrice CHOTARD
2022-05-20 15:33     ` Patrick DELAUNAY
2022-06-17  9:00   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 12/16] ram: stm32mp1: add support of STM32MP13x Patrick Delaunay
2022-05-20  7:09   ` Patrice CHOTARD
2022-06-17  9:01   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 13/16] mmc: stm32_sdmmc2: make reset property optional Patrick Delaunay
2022-05-16 23:34   ` Jaehoon Chung
2022-05-20  7:10   ` Patrice CHOTARD
2022-06-17  9:01   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 14/16] arm: dts: stm32mp: add stm32mp13 device tree for U-Boot Patrick Delaunay
2022-05-20  7:10   ` Patrice CHOTARD
2022-06-17  9:01   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 15/16] configs: add stm32mp13 defconfig Patrick Delaunay
2022-05-20  7:10   ` Patrice CHOTARD
2022-06-17  9:04   ` Patrick DELAUNAY
2022-05-06 14:06 ` [PATCH 16/16] doc: st: stm32mp1: add STM32MP13x support Patrick Delaunay
2022-05-20  7:21   ` Patrice CHOTARD
2022-05-20 16:13     ` Patrick DELAUNAY [this message]
2022-06-17  9:05   ` Patrick DELAUNAY

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=3ec2a96f-deb7-2d16-0571-25665b4a659f@foss.st.com \
    --to=patrick.delaunay@foss.st.com \
    --cc=patrice.chotard@foss.st.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-stm32@st-md-mailman.stormreply.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.