Lines Matching refs:overlay
108 /* If overlay has a list of bridges, use it. */
109 br = of_parse_phandle(info->overlay, "fpga-bridges", 0);
112 np = info->overlay;
145 * @overlay: device node of the overlay
147 * If the overlay adds child FPGA regions, they are not allowed to have
152 static int child_regions_with_firmware(struct device_node *overlay)
158 of_node_get(overlay);
160 child_region = of_find_matching_node(overlay, fpga_region_of_match);
181 * of_fpga_region_parse_ov - parse and check overlay applied to region
184 * @overlay: overlay applied to the FPGA region
186 * Given an overlay applied to an FPGA region, parse the FPGA image specific
187 * info in the overlay and do some checking.
190 * NULL if overlay doesn't direct us to program the FPGA.
192 * error code for invalid overlay.
196 struct device_node *overlay)
204 dev_err(dev, "Region already has overlay applied.\n");
209 * Reject overlay if child FPGA Regions added in the overlay have
213 ret = child_regions_with_firmware(overlay);
221 info->overlay = overlay;
223 /* Read FPGA region properties from the overlay */
224 if (of_property_read_bool(overlay, "partial-fpga-config"))
227 if (of_property_read_bool(overlay, "external-fpga-config"))
230 if (of_property_read_bool(overlay, "encrypted-fpga-config"))
233 if (!of_property_read_string(overlay, "firmware-name",
241 of_property_read_u32(overlay, "region-unfreeze-timeout-us",
244 of_property_read_u32(overlay, "region-freeze-timeout-us",
247 of_property_read_u32(overlay, "config-complete-timeout-us",
250 /* If overlay is not programming the FPGA, don't need FPGA image info */
257 * If overlay informs us FPGA was externally programmed, specifying
273 * of_fpga_region_notify_pre_apply - pre-apply overlay notification
275 * @region: FPGA region that the overlay was applied to
276 * @nd: overlay notification data
278 * Called when an overlay targeted to an FPGA Region is about to be applied.
279 * Parses the overlay for properties that influence how the FPGA will be
281 * If the checks fail, overlay is rejected and does not get added to the
293 info = of_fpga_region_parse_ov(region, nd->overlay);
297 /* If overlay doesn't program the FPGA, accept it anyway. */
302 dev_err(dev, "Region already has overlay applied.\n");
309 /* error; reject overlay */
318 * of_fpga_region_notify_post_remove - post-remove overlay notification
320 * @region: FPGA region that was targeted by the overlay that was removed
321 * @nd: overlay notification data
323 * Called after an overlay has been removed if the overlay's target was a