Validation of "priority" manifest field added

Previously "priority" field was limited to values of TFM_PRIORITY()
macro (which is FFM compliant). Now when TFM_PRIORITY() was removed
as redundant, validation of "priority" filed should happen in manifest
parsing tool.
Also several typos are corrected in this patch.

Signed-off-by: Chris Brand <chris.brand@cypress.com>
Signed-off-by: Bohdan Hunko <Bohdan.Hunko@infineon.com>
Change-Id: I8757018527c1f4ffa39a9dfda5a13fd6bc271b3d
diff --git a/tools/tfm_parse_manifest_list.py b/tools/tfm_parse_manifest_list.py
index 16ab1cc..5cc25ce 100644
--- a/tools/tfm_parse_manifest_list.py
+++ b/tools/tfm_parse_manifest_list.py
@@ -1,5 +1,7 @@
 #-------------------------------------------------------------------------------
 # Copyright (c) 2018-2022, Arm Limited. All rights reserved.
+# Copyright (c) 2022 Cypress Semiconductor Corporation (an Infineon company)
+# or an affiliate of Cypress Semiconductor Corporation. All rights reserved.
 #
 # SPDX-License-Identifier: BSD-3-Clause
 #
@@ -100,10 +102,14 @@
     if manifest['psa_framework_version'] not in [1.0, 1.1]:
         raise Exception('Invalid psa_framework_version of {}'.format(manifest['name']))
 
-    # "type" validatoin
+    # "type" validation
     if manifest['type'] not in ['PSA-ROT', 'APPLICATION-ROT']:
         raise Exception('Invalid type of {}'.format(manifest['name']))
 
+    # "priority" validation
+    if manifest['priority'] not in ['HIGH', 'NORMAL', 'LOW']:
+        raise Exception('Invalid priority of {}'.format(manifest['name']))
+
     # Every PSA Partition must have at least either a secure service or an IRQ
     if (pid == None or pid >= TFM_PID_BASE) \
        and len(service_list) == 0 and len(irq_list) == 0:
@@ -209,7 +215,7 @@
 def process_partition_manifests(manifest_lists, isolation_level, backend):
     """
     Parse the input manifest lists, check if manifest settings are valid,
-    generate the data base for genereated files
+    generate the data base for generated files
     and generate manifest header files.
 
     Parameters
@@ -219,7 +225,7 @@
         The manifest lists might be processed by CMake and the paths might be
         different to the original ones. Original paths are needed to handle
         relative paths in the lists.
-        The format must be [list A, orignal path A, list B, orignal path B, ...]
+        The format must be [list A, original path A, list B, orignal path B, ...]
 
     Returns
     -------
@@ -647,7 +653,7 @@
                         , dest='gen_file_args'
                         , required=True
                         , metavar='file-list'
-                        , help='These files descripe the file list to generate')
+                        , help='These files describe the file list to generate')
 
     parser.add_argument('-l', '--isolation-level'
                         , dest='isolation_level'