Re: [PATCH 11/11] doc: ti: Add readme for AM62x SK

2022-04-18 Thread Vignesh Raghavendra



On 18/04/22 8:26 pm, Andrew Davis wrote:
> On 4/15/22 9:09 AM, Vignesh Raghavendra wrote:
>> Add info of boot flow and build steps for AM62x SK.
>>
>> Signed-off-by: Vignesh Raghavendra 
>> ---
>>   doc/board/ti/am62x_sk.rst | 231 ++
> 
> 
> This isn't specific to the SK, more the AM62x in general, suggest name
> am62x.rst.
> 

Agreed

> [...]
> 
> 
>> +Build procedure:
>> +
>> +1. ATF:
>> +
>> +.. code-block:: text
>> +
>> + $ make CROSS_COMPILE=aarch64-none-linux-gnu- ARCH=aarch64 PLAT=k3
>> TARGET_BOARD=lite SPD=opteed
>> +
> 
> 
> These compiler names might not be the same as installed by some current
> package managers (-none),
> maybe we start by setting up two env vars to point to the two compilers
> we use:
> 
> export CROSS_COMPILE32=arm-none-linux-gnueabihf-
> export CROSS_COMPILE64=aarch64-none-linux-gnu-
> 
> Then just use those below, that way we only have to switch these first
> two commands if we
> have a different compiler.
> 
> CROSS_COMPILE=$CROSS_COMPILE32
> 

Good idea, thanks!

> etc..
> 
> 
>> +2. OPTEE:
>> +
>> +.. code-block:: text
>> +
>> + $ make PLATFORM=k3 CFG_ARM64_core=y
>> CROSS_COMPILE=arm-none-linux-gnueabihf-
>> CROSS_COMPILE64=aarch64-none-linux-gnu-
>> +
>> +3. U-Boot:
>> +
>> +* 3.1 R5:
>> +
>> +.. code-block:: text
>> +
>> + $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf-
>> am62x_evm_r5_defconfig O=/tmp/r5
> 
> 
> Lets not pollute directories outside of the current one, suggest
> `O=build/r5`
> and the same below.

Sure, will fix!

Regards
Vignesh


Re: [PATCH 11/11] doc: ti: Add readme for AM62x SK

2022-04-18 Thread Andrew Davis

On 4/15/22 9:09 AM, Vignesh Raghavendra wrote:

Add info of boot flow and build steps for AM62x SK.

Signed-off-by: Vignesh Raghavendra 
---
  doc/board/ti/am62x_sk.rst | 231 ++



This isn't specific to the SK, more the AM62x in general, suggest name
am62x.rst.

[...]



+Build procedure:
+
+1. ATF:
+
+.. code-block:: text
+
+ $ make CROSS_COMPILE=aarch64-none-linux-gnu- ARCH=aarch64 PLAT=k3 
TARGET_BOARD=lite SPD=opteed
+



These compiler names might not be the same as installed by some current package 
managers (-none),
maybe we start by setting up two env vars to point to the two compilers we use:

export CROSS_COMPILE32=arm-none-linux-gnueabihf-
export CROSS_COMPILE64=aarch64-none-linux-gnu-

Then just use those below, that way we only have to switch these first two 
commands if we
have a different compiler.

CROSS_COMPILE=$CROSS_COMPILE32

etc..



+2. OPTEE:
+
+.. code-block:: text
+
+ $ make PLATFORM=k3 CFG_ARM64_core=y CROSS_COMPILE=arm-none-linux-gnueabihf- 
CROSS_COMPILE64=aarch64-none-linux-gnu-
+
+3. U-Boot:
+
+* 3.1 R5:
+
+.. code-block:: text
+
+ $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- 
am62x_evm_r5_defconfig O=/tmp/r5



Lets not pollute directories outside of the current one, suggest `O=build/r5`
and the same below.

Andrew


Re: [PATCH 11/11] doc: ti: Add readme for AM62x SK

2022-04-15 Thread Bryan Brattlof
On April 15, 2022 thus sayeth Vignesh Raghavendra:
> Add info of boot flow and build steps for AM62x SK.
> 
> Signed-off-by: Vignesh Raghavendra 


Looks great to me!

Reviewed-by: Bryan Brattlof 

~Bryan


[PATCH 11/11] doc: ti: Add readme for AM62x SK

2022-04-15 Thread Vignesh Raghavendra
Add info of boot flow and build steps for AM62x SK.

Signed-off-by: Vignesh Raghavendra 
---
 doc/board/ti/am62x_sk.rst | 231 ++
 doc/board/ti/index.rst|   1 +
 2 files changed, 232 insertions(+)
 create mode 100644 doc/board/ti/am62x_sk.rst

diff --git a/doc/board/ti/am62x_sk.rst b/doc/board/ti/am62x_sk.rst
new file mode 100644
index 00..4e68c2018a
--- /dev/null
+++ b/doc/board/ti/am62x_sk.rst
@@ -0,0 +1,231 @@
+.. SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
+.. sectionauthor:: Vignesh Raghavendra 
+
+Texas Instruments AM62 Platforms
+
+
+Introduction:
+-
+The AM62 SoC family is the follow on AM335x built on the K3 Multicore
+SoC architecture platform, providing ultra-low-power modes, dual
+display, multi-sensor edge compute, security and other BOM-saving
+integrations.  The AM62 SoC targets a broad market to enable
+applications such as Industrial HMI, PLC/CNC/Robot control, Medical
+Equipment, Building Automation, Appliances and more.
+
+Some highlights of this SoC are:
+
+* Quad-Cortex-A53s (running up to 1.4GHz) in a single cluster.
+  Pin-to-pin compatible options for single and quad core are available.
+* Cortex-M4F for general-purpose or safety usage.
+* Dual display support, providing 24-bit RBG parallel interface and
+  OLDI/LVDS-4 Lane x2, up to 200MHz pixel clock support for 2K display
+  resolution.
+* Selectable GPU support, up to 8GFLOPS, providing better user experience
+  in 3D graphic display case and Android.
+* PRU(Programmable Realtime Unit) support for customized programmable
+  interfaces/IOs.
+* Integrated Giga-bit Ethernet switch supporting up to a total of two
+  external ports (TSN capable).
+* 9xUARTs, 5xSPI, 6xI2C, 2xUSB2, 3xCAN-FD, 3x eMMC and SD, GPMC for
+  NAND/FPGA connection, OSPI memory controller, 3xMcASP for audio,
+  1x CSI-RX-4L for Camera, eCAP/eQEP, ePWM, among other peripherals.
+* Dedicated Centralized System Controller for Security, Power, and
+  Resource Management.
+* Multiple low power modes support, ex: Deep sleep, Standby, MCU-only,
+  enabling battery powered system design.
+
+More details can be found in the Technical Reference Manual:
+https://www.ti.com/lit/pdf/spruiv7
+
+Boot Flow:
+--
+Below is the pictorial representation of boot flow:
+
+.. code-block:: text
+
+ ++
+ |TIFS|  Main R5  |A53|
+ ++
+ |++  |   |   |
+ ||  Reset |  |   |   |
+ |++  |   |   |
+ | :  |   |   |
+ |++  |   +---+   |   |
+ || *ROM*  |--|-->| Reset rls |   |   |
+ |++  |   +---+   |   |
+ |||  | : |   |
+ ||  ROM   |  | : |   |
+ ||services|  | : |   |
+ |||  |   +-+ |   |
+ |||  |   |  *R5 ROM*   | |   |
+ |||  |   +-+ |   |
+ |||<-|---|Load and auth| |   |
+ |||  |   | tiboot3.bin | |   |
+ |++  |   +-+ |   |
+ |||<-|---| Load sysfw  | |   |
+ |||  |   | part to TIFS| |   |
+ |||  |   | core| |   |
+ |||  |   +-+ |   |
+ |||  | : |   |
+ |||  | : |   |
+ |||  | : |   |
+ |||  |   +-+ |   |
+ |||  |   |  *R5 SPL*   | |   |
+ |||  |   +-+ |   |
+ |||  |   |DDR  | |   |
+ |||  |   |   config| |   |
+ |||  |   +-+ |   |
+ |||  |   |Load | |   |
+ |||  |   |  tispl.bin  | |   |
+ |||