Lines Matching +full:ce +full:- +full:break +full:- +full:config
4 * SPDX-License-Identifier: Apache-2.0
219 /** @brief device gpio ce */
220 struct gpio_dt_spec ce; member
241 /** @brief GPIO chip-select line numbers (optional) */
247 /** @brief Whether to re-initialize controller */
258 struct mspi_cfg config; member
299 /** @brief Configure the time to break up a transfer into 2 */
344 * This can be used to control a CE line via a GPIO line, instead of
345 * using the controller inner CE logic.
350 * @brief GPIO devicetree specification of CE GPIO.
351 * The device pointer can be set to NULL to fully inhibit CE control if
359 * transmission and before releasing the CE line.
400 /** @brief Hold CE active after xfer */
402 /** @brief Software CE control */
506 mspi_api_config config; member
528 * re-initialize their controller hardware. Additional SoC platform specific
530 * binding(xxx,mspi-controller.yaml) so that one may derive the settings from
532 * change during run-time. The bindings for @see mspi_cfg can be found in
533 * mspi-controller.yaml.
538 * @retval -EIO General input / output error, failed to configure device.
539 * @retval -EINVAL invalid capabilities, failed to configure device.
540 * @retval -ENOTSUP capability not supported by MSPI peripheral.
546 const struct mspi_driver_api *api = (const struct mspi_driver_api *)spec->bus->api; in z_impl_mspi_config()
548 return api->config(spec); in z_impl_mspi_config()
557 * With @see mspi_dev_id defined as the device index and CE GPIO from device
566 * The bindings for @see mspi_dev_cfg can be found in mspi-device.yaml.
574 * @retval -EIO General input / output error, failed to configure device.
575 * @retval -EINVAL invalid capabilities, failed to configure device.
576 * @retval -ENOTSUP capability not supported by MSPI peripheral.
588 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api; in z_impl_mspi_dev_config()
590 return api->dev_config(controller, dev_id, param_mask, cfg); in z_impl_mspi_dev_config()
608 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api; in z_impl_mspi_get_channel_status()
610 return api->get_channel_status(controller, ch); in z_impl_mspi_get_channel_status()
641 * @retval -ENOTSUP
642 * @retval -EIO General input / output error, failed to send over the bus.
652 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api; in z_impl_mspi_transceive()
654 if (!api->transceive) { in z_impl_mspi_transceive()
655 return -ENOTSUP; in z_impl_mspi_transceive()
658 return api->transceive(controller, dev_id, req); in z_impl_mspi_transceive()
678 * @retval -EIO General input / output error, failed to configure device.
679 * @retval -EINVAL invalid capabilities, failed to configure device.
680 * @retval -ENOTSUP capability not supported by MSPI peripheral.
690 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api; in z_impl_mspi_xip_config()
692 if (!api->xip_config) { in z_impl_mspi_xip_config()
693 return -ENOTSUP; in z_impl_mspi_xip_config()
696 return api->xip_config(controller, dev_id, cfg); in z_impl_mspi_xip_config()
710 * @retval -EIO General input / output error, failed to configure device.
711 * @retval -EINVAL invalid capabilities, failed to configure device.
712 * @retval -ENOTSUP capability not supported by MSPI peripheral.
722 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api; in z_impl_mspi_scramble_config()
724 if (!api->scramble_config) { in z_impl_mspi_scramble_config()
725 return -ENOTSUP; in z_impl_mspi_scramble_config()
728 return api->scramble_config(controller, dev_id, cfg); in z_impl_mspi_scramble_config()
743 * @retval -EIO General input / output error, failed to configure device.
744 * @retval -EINVAL invalid capabilities, failed to configure device.
745 * @retval -ENOTSUP capability not supported by MSPI peripheral.
755 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api; in z_impl_mspi_timing_config()
757 if (!api->timing_config) { in z_impl_mspi_timing_config()
758 return -ENOTSUP; in z_impl_mspi_timing_config()
761 return api->timing_config(controller, dev_id, param_mask, cfg); in z_impl_mspi_timing_config()
784 * @retval -ENOTSUP
792 const struct mspi_driver_api *api = (const struct mspi_driver_api *)controller->api; in mspi_register_callback()
794 if (!api->register_callback) { in mspi_register_callback()
795 return -ENOTSUP; in mspi_register_callback()
798 return api->register_callback(controller, dev_id, evt_type, cb, ctx); in mspi_register_callback()