1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Devicetree file with binman nodes needed for generating EFI 4 * capsules. 5 * 6 */ 7 8#include <sandbox_efi_capsule.h> 9 10/ { 11 binman: binman { 12 multiple-images; 13 }; 14}; 15 16&binman { 17 capsule1 { 18 filename = "Test01"; 19 efi-capsule { 20 image-index = <0x1>; 21 image-guid = SANDBOX_UBOOT_IMAGE_GUID; 22 23 text { 24 text = "u-boot:New"; 25 }; 26 }; 27 }; 28 29 capsule2 { 30 filename = "Test02"; 31 efi-capsule { 32 image-index = <0x2>; 33 image-guid = SANDBOX_UBOOT_ENV_IMAGE_GUID; 34 35 text { 36 text = "u-boot-env:New"; 37 }; 38 }; 39 }; 40 41 capsule3 { 42 filename = "Test03"; 43 efi-capsule { 44 image-index = <0x1>; 45 image-guid = SANDBOX_INCORRECT_GUID; 46 47 text { 48 text = "u-boot:New"; 49 }; 50 }; 51 }; 52 53 capsule4 { 54 filename = "Test101"; 55 efi-capsule { 56 image-index = <0x1>; 57 fw-version = <0x5>; 58 image-guid = SANDBOX_UBOOT_IMAGE_GUID; 59 60 text { 61 text = "u-boot:New"; 62 }; 63 }; 64 }; 65 66 capsule5 { 67 filename = "Test102"; 68 efi-capsule { 69 image-index = <0x2>; 70 fw-version = <0xa>; 71 image-guid = SANDBOX_UBOOT_ENV_IMAGE_GUID; 72 73 text { 74 text = "u-boot-env:New"; 75 }; 76 }; 77 }; 78 79 capsule6 { 80 filename = "Test103"; 81 efi-capsule { 82 image-index = <0x1>; 83 fw-version = <0x2>; 84 image-guid = SANDBOX_UBOOT_IMAGE_GUID; 85 86 text { 87 text = "u-boot:New"; 88 }; 89 }; 90 }; 91 92 capsule7 { 93 filename = "Test11"; 94 efi-capsule { 95 image-index = <0x1>; 96 image-guid = SANDBOX_UBOOT_IMAGE_GUID; 97 private-key = CAPSULE_PRIV_KEY; 98 public-key-cert = CAPSULE_PUB_KEY; 99 monotonic-count = <0x1>; 100 101 text { 102 text = "u-boot:New"; 103 }; 104 }; 105 }; 106 107 capsule8 { 108 filename = "Test12"; 109 efi-capsule { 110 image-index = <0x1>; 111 image-guid = SANDBOX_UBOOT_IMAGE_GUID; 112 private-key = CAPSULE_INVAL_KEY; 113 public-key-cert = CAPSULE_INVAL_PUB_KEY; 114 monotonic-count = <0x1>; 115 116 text { 117 text = "u-boot:New"; 118 }; 119 }; 120 }; 121 122 capsule9 { 123 filename = "Test111"; 124 efi-capsule { 125 image-index = <0x1>; 126 fw-version = <0x5>; 127 image-guid = SANDBOX_UBOOT_IMAGE_GUID; 128 private-key = CAPSULE_PRIV_KEY; 129 public-key-cert = CAPSULE_PUB_KEY; 130 monotonic-count = <0x1>; 131 132 text { 133 text = "u-boot:New"; 134 }; 135 }; 136 }; 137 138 capsule10 { 139 filename = "Test112"; 140 efi-capsule { 141 image-index = <0x2>; 142 fw-version = <0xa>; 143 image-guid = SANDBOX_UBOOT_ENV_IMAGE_GUID; 144 private-key = CAPSULE_PRIV_KEY; 145 public-key-cert = CAPSULE_PUB_KEY; 146 monotonic-count = <0x1>; 147 148 text { 149 text = "u-boot-env:New"; 150 }; 151 }; 152 }; 153 154 capsule11 { 155 filename = "Test113"; 156 efi-capsule { 157 image-index = <0x1>; 158 fw-version = <0x2>; 159 image-guid = SANDBOX_UBOOT_IMAGE_GUID; 160 private-key = CAPSULE_PRIV_KEY; 161 public-key-cert = CAPSULE_PUB_KEY; 162 monotonic-count = <0x1>; 163 164 text { 165 text = "u-boot:New"; 166 }; 167 }; 168 }; 169}; 170