hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/*
 * Copyright (C) 2021 Fuzhou Rockchip Electronics Co., Ltd
 *
 * SPDX-License-Identifier: GPL-2.0
 */
 
/dts-v1/;
/ {
   description = "Rockchip AMP FIT Image";
   #address-cells = <1>;
 
   images {
       /* ARM cortex-A core */
       amp1 {
           description  = "bare-mental-core1";
           data         = /incbin/("./amp1.bin");
           type         = "firmware";    // must be "firmware"
           compression  = "none";
           arch         = "arm";        // "arm64" or "arm", the same as U-Boot state
           cpu          = <0x100>;        // mpidr
           thumb        = <0>;        // 0: arm or thumb2; 1: thumb
           hyp          = <0>;        // 0: el1/svc; 1: el2/hyp
           load         = <0x01800000>;
           udelay       = <1000000>;
           hash {
               algo = "sha256";
           };
       };
 
       amp2 {
           description  = "bare-mental-core2";
           data         = /incbin/("./amp2.bin");
           type         = "firmware";
           compression  = "none";
           arch         = "arm";
           cpu          = <0x200>;
           thumb        = <0>;
           hyp          = <0>;
           load         = <0x03800000>;
           udelay       = <1000000>;
           hash {
               algo = "sha256";
           };
       };
 
       amp3 {
           description  = "bare-mental-core3";
           data         = /incbin/("./amp3.bin");
           type         = "firmware";
           compression  = "none";
           arch         = "arm";
           cpu          = <0x300>;
           thumb        = <0>;
           hyp          = <0>;
           load         = <0x05800000>;
           udelay       = <1000000>;
           hash {
               algo = "sha256";
           };
       };
 
       /* Other core */
       amp4 {
           description  = "standalone-mcu1";
           data         = /incbin/("./mcu1.bin");
           type         = "standalone";    // must be "standalone"
           compression  = "none";
           arch         = "arm";        // "arm64" or "arm", the same as U-Boot state
           load         = <0x06800000>;
           udelay       = <1000000>;
           hash {
               algo = "sha256";
           };
       };
   };
 
   configurations {
       default = "conf";
       conf {
           description = "Rockchip AMP images";
           rollback-index = <0x0>;
           loadables = "amp1", "amp2", "amp3", "amp4";
 
           signature {
               algo = "sha256,rsa2048";
               padding = "pss";
               key-name-hint = "dev";
               sign-images = "loadables";
           };
 
           /* - run linux on cpu0
            * - it is brought up by amp(that run on U-Boot)
            * - it is boot entry depends on U-Boot
            */
           linux {
               description  = "linux-os";
               arch         = "arm64";
               cpu          = <0x000>;
               thumb        = <0>;
               hyp          = <0>;
               udelay       = <1000000>;
           };
       };
   };
};