Lines Matching refs:overlay
106 /* If overlay has a list of bridges, use it. */
107 br = of_parse_phandle(info->overlay, "fpga-bridges", 0);
110 np = info->overlay;
143 * @overlay: device node of the overlay
145 * If the overlay adds child FPGA regions, they are not allowed to have
150 static int child_regions_with_firmware(struct device_node *overlay)
156 of_node_get(overlay);
158 child_region = of_find_matching_node(overlay, fpga_region_of_match);
179 * of_fpga_region_parse_ov - parse and check overlay applied to region
182 * @overlay: overlay applied to the FPGA region
184 * Given an overlay applied to a FPGA region, parse the FPGA image specific
185 * info in the overlay and do some checking.
188 * NULL if overlay doesn't direct us to program the FPGA.
190 * error code for invalid overlay.
194 struct device_node *overlay)
202 dev_err(dev, "Region already has overlay applied.\n");
207 * Reject overlay if child FPGA Regions added in the overlay have
211 ret = child_regions_with_firmware(overlay);
219 info->overlay = overlay;
221 /* Read FPGA region properties from the overlay */
222 if (of_property_read_bool(overlay, "partial-fpga-config"))
225 if (of_property_read_bool(overlay, "external-fpga-config"))
228 if (of_property_read_bool(overlay, "encrypted-fpga-config"))
231 if (!of_property_read_string(overlay, "firmware-name",
239 of_property_read_u32(overlay, "region-unfreeze-timeout-us",
242 of_property_read_u32(overlay, "region-freeze-timeout-us",
245 of_property_read_u32(overlay, "config-complete-timeout-us",
248 /* If overlay is not programming the FPGA, don't need FPGA image info */
255 * If overlay informs us FPGA was externally programmed, specifying
271 * of_fpga_region_notify_pre_apply - pre-apply overlay notification
273 * @region: FPGA region that the overlay was applied to
274 * @nd: overlay notification data
276 * Called when an overlay targeted to a FPGA Region is about to be applied.
277 * Parses the overlay for properties that influence how the FPGA will be
279 * If the checks fail, overlay is rejected and does not get added to the
291 info = of_fpga_region_parse_ov(region, nd->overlay);
295 /* If overlay doesn't program the FPGA, accept it anyway. */
300 dev_err(dev, "Region already has overlay applied.\n");
307 /* error; reject overlay */
316 * of_fpga_region_notify_post_remove - post-remove overlay notification
318 * @region: FPGA region that was targeted by the overlay that was removed
319 * @nd: overlay notification data
321 * Called after an overlay has been removed if the overlay's target was a