Home
last modified time | relevance | path

Searched +full:sfdp +full:- +full:bfp (Results 1 – 25 of 50) sorted by relevance

12

/Zephyr-latest/dts/bindings/mtd/
Djedec,jesd216.yaml2 # Copyright (c) 2019-2020 Nordic Semiconductor ASA
3 # SPDX-License-Identifier: Apache-2.0
9 # This allows encoding the entire BFP block in devicetree to avoid
13 # Alternatively the BFP block can be absent, but critical fields like
21 jedec-id:
22 type: uint8-array
29 sfdp-bfp:
30 type: uint8-array
32 Contains the 32-bit words in little-endian byte order from the
34 Parameters table. This provides flash-specific configuration
[all …]
/Zephyr-latest/drivers/flash/
Djesd216.h4 * SPDX-License-Identifier: Apache-2.0
23 * https://www.jedec.org/standards-documents/docs/jesd216b
35 uint8_t len_dw; /* Length of table in 32-bit DWORDs */
36 uint8_t ptp[3]; /* Address of table in SFDP space (LSB@0) */
43 return sizeof(uint32_t) * hp->len_dw; in jesd216_param_len()
49 return ((uint16_t)hp->id_msb << 8) | hp->id_lsb; in jesd216_param_id()
52 /* Get the address within the SFDP where the data for the table is
57 return ((hp->ptp[2] << 16) in jesd216_param_addr()
58 | (hp->ptp[1] << 8) in jesd216_param_addr()
59 | (hp->ptp[0] << 0)); in jesd216_param_addr()
[all …]
Dspi_nor.c2 * Copyright (c) 2018 Savoir-Faire Linux.
8 * SPDX-License-Identifier: Apache-2.0
36 * * Some devices support a Deep Power-Down mode which reduces current
41 * * PM_DEVICE_STATE_SUSPENDED corresponds to deep-power-down mode;
63 #define DEV_CFG(_dev_) ((const struct spi_nor_config * const) (_dev_)->config)
66 /* MXICY Low-power/high perf mode is second bit in configuration register 2 */
72 /* Build-time data associated with the device. */
81 /* Runtime SFDP stores no static configuration. */
92 /* Expected JEDEC ID, from jedec-id property */
96 /* Optional support for entering 32-bit address mode. */
[all …]
Dflash_andes_qspi.c4 * SPDX-License-Identifier: Apache-2.0
58 const struct jesd216_bfp *bfp; member
93 const struct flash_andes_qspi_data *dev_data = dev->data; in dev_erase_types()
95 return dev_data->erase_types; in dev_erase_types()
102 const struct flash_andes_qspi_data *dev_data = dev->data; in dev_flash_size()
104 return dev_data->flash_size; in dev_flash_size()
106 const struct flash_andes_qspi_config *config = dev->config; in dev_flash_size()
108 return config->flash_size; in dev_flash_size()
115 const struct flash_andes_qspi_data *dev_data = dev->data; in dev_page_size()
117 return dev_data->page_size; in dev_page_size()
[all …]
DKconfig.andes1 # Kconfig Andes QSPI-NOR configuration options
5 # SPDX-License-Identifier: Apache-2.0
30 sfdp-bfp property in devicetree. The size and jedec-id properties are
38 for all supported JESD216-compatible devices.
54 size (65536). Other options include the 32K-byte erase size
55 (32768), the sector size (4096), or any non-zero multiple of the
Dflash_stm32_qspi.c6 * SPDX-License-Identifier: Apache-2.0
58 /* In dual-flash mode, total size is twice the size of one flash component */
125 * If set addressed operations should use 32-bit rather than
126 * 24-bit addresses.
138 struct flash_stm32_qspi_data *dev_data = dev->data; in qspi_lock_thread()
140 k_sem_take(&dev_data->sem, K_FOREVER); in qspi_lock_thread()
145 struct flash_stm32_qspi_data *dev_data = dev->data; in qspi_unlock_thread()
147 k_sem_give(&dev_data->sem); in qspi_unlock_thread()
153 struct flash_stm32_qspi_data *dev_data = dev->data; in qspi_set_address_size()
155 if (dev_data->flag_access_32bit) { in qspi_set_address_size()
[all …]
DKconfig.nor1 # Copyright (c) 2018 Savoir-Faire Linux.
4 # SPDX-License-Identifier: Apache-2.0
27 set by the page-size devicetree property) and
29 jedec-id properties in the devicetree jedec,spi-nor node.
35 sfdp-bfp property in devicetree. The size and jedec-id properties are
43 for all supported JESD216-compatible devices.
77 size (65536). Other options include the 32K-byte erase size
78 (32768), the sector size (4096), or any non-zero multiple of the
89 call, eliminating the active->idle->active transition sequence if another
Dflash_mcux_flexspi_nor.c4 * SPDX-License-Identifier: Apache-2.0
39 read-while-write hazards. This configuration is not recommended."
91 /* 1S-1S-1S flash read command, should be compatible with all SPI nor flashes */
99 /* Install read SFDP command */
107 /* Standard 1S-1S-1S flash write command, can be switched to 1S-1S-4S when QE is set */
155 .port = data->port, in flash_flexspi_nor_read_id_helper()
165 ret = memc_flexspi_transfer(&data->controller, &transfer); in flash_flexspi_nor_read_id_helper()
177 struct flash_flexspi_nor_data *data = dev->data; in flash_flexspi_nor_read_id()
187 .port = data->port, in flash_flexspi_nor_read_status()
197 return memc_flexspi_transfer(&data->controller, &transfer); in flash_flexspi_nor_read_status()
[all …]
Dflash_stm32_ospi.c5 * SPDX-License-Identifier: Apache-2.0
20 #include <zephyr/dt-bindings/flash_controller/ospi.h>
187 struct flash_stm32_ospi_data *dev_data = dev->data; in ospi_lock_thread()
189 k_sem_take(&dev_data->sem, K_FOREVER); in ospi_lock_thread()
194 struct flash_stm32_ospi_data *dev_data = dev->data; in ospi_unlock_thread()
196 k_sem_give(&dev_data->sem); in ospi_unlock_thread()
201 const struct flash_stm32_ospi_config *dev_cfg = dev->config; in ospi_send_cmd()
202 struct flash_stm32_ospi_data *dev_data = dev->data; in ospi_send_cmd()
205 LOG_DBG("Instruction 0x%x", cmd->Instruction); in ospi_send_cmd()
207 dev_data->cmd_status = 0; in ospi_send_cmd()
[all …]
Dflash_stm32_xspi.c4 * SPDX-License-Identifier: Apache-2.0
23 #include <zephyr/dt-bindings/flash_controller/xspi.h>
59 struct flash_stm32_xspi_data *dev_data = dev->data; in xspi_lock_thread()
61 k_sem_take(&dev_data->sem, K_FOREVER); in xspi_lock_thread()
66 struct flash_stm32_xspi_data *dev_data = dev->data; in xspi_unlock_thread()
68 k_sem_give(&dev_data->sem); in xspi_unlock_thread()
73 struct flash_stm32_xspi_data *dev_data = dev->data; in xspi_send_cmd()
76 LOG_DBG("Instruction 0x%x", cmd->Instruction); in xspi_send_cmd()
78 dev_data->cmd_status = 0; in xspi_send_cmd()
80 hal_ret = HAL_XSPI_Command(&dev_data->hxspi, cmd, HAL_XSPI_TIMEOUT_DEFAULT_VALUE); in xspi_send_cmd()
[all …]
/Zephyr-latest/samples/drivers/jesd216/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
35 const struct jesd216_bfp *bfp);
40 [JESD216_MODE_111] = "1-1-1",
41 [JESD216_MODE_112] = "1-1-2",
42 [JESD216_MODE_114] = "1-1-4",
43 [JESD216_MODE_118] = "1-1-8",
44 [JESD216_MODE_122] = "1-2-2",
45 [JESD216_MODE_144] = "1-4-4",
46 [JESD216_MODE_188] = "1-8-8",
47 [JESD216_MODE_222] = "2-2-2",
[all …]
/Zephyr-latest/samples/drivers/jesd216/
DREADME.rst1 .. zephyr:code-sample:: jesd216
3 :relevant-api: flash_interface
12 generate ``jedec,spi-nor`` devicetree property values for the device.
18 with ``jedec,spi-nor`` as a compatible, and for which the driver
21 .. zephyr-app-commands::
22 :zephyr-app: samples/drivers/jesd216
30 .. code-block:: console
32 MX25R8035F: SFDP v 1.6 AP ff with 3 PH
34 Summary of BFP content:
36 Addressing: 3-Byte only
[all …]
Dsample.yaml5 - spi
6 - flash
12 - "sfdp-bfp ="
13 - "jedec-id ="
17 - hifive1
18 - hifive_unleashed/fu540/e51
19 - hifive_unleashed/fu540/u54
20 - hifive_unmatched/fu740/s7
21 - hifive_unmatched/fu740/u74
22 - mimxrt1170_evk/mimxrt1176/cm7
[all …]
/Zephyr-latest/boards/nordic/nrf9161dk/
Dnrf9161dk_nrf9161_common_0_7_0.dtsi4 * SPDX-License-Identifier: Apache-2.0
8 /delete-node/ &gd25wb256;
12 compatible = "jedec,spi-nor";
15 spi-max-frequency = <60000000>;
16 jedec-id = [c8 67 19];
17 sfdp-bfp = [
24 has-dpd;
25 t-enter-dpd = <3000>;
26 t-exit-dpd = <30000>;
/Zephyr-latest/tests/drivers/flash/common/boards/
Dnrf52840dk_mx25r_high_perf.overlay1 /delete-node/ &qspi;
4 gpio-reserved-ranges = <0 2>, <6 1>, <8 3>, <18 6>;
8 compatible = "nordic,nrf-spim";
10 cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
13 compatible = "jedec,spi-nor";
15 spi-max-frequency = <33000000>;
16 jedec-id = [c2 28 17];
17 sfdp-bfp = [
24 has-dpd;
25 t-enter-dpd = <10000>;
[all …]
Dnrf52840dk_spi_nor_wp_hold.overlay4 * SPDX-License-Identifier: Apache-2.0
6 * Build test for jedec,spi-nor compatible (drivers/flash/spi_nor.c) wp-gpios and hold-gpios
9 /delete-node/ &mx25r64;
25 low-power-enable;
31 compatible = "nordic,nrf-spim";
33 cs-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; // mx25v16
34 pinctrl-0 = <&spi0_default>;
35 pinctrl-1 = <&spi0_sleep>;
36 pinctrl-names = "default", "sleep";
39 compatible = "jedec,spi-nor";
[all …]
Dnrf52840dk_spi_nor.overlay4 * SPDX-License-Identifier: Apache-2.0
6 * Build test for jedec,spi-nor compatible (drivers/flash/spi_nor.c)
9 /delete-node/ &mx25r64;
25 low-power-enable;
31 compatible = "nordic,nrf-spim";
33 cs-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; // mx25v16
34 pinctrl-0 = <&spi0_default>;
35 pinctrl-1 = <&spi0_sleep>;
36 pinctrl-names = "default", "sleep";
39 compatible = "jedec,spi-nor";
[all …]
Dnrf52840dk_mx25l51245g.overlay4 * SPDX-License-Identifier: Apache-2.0
7 /delete-node/ &mx25r64;
27 low-power-enable;
31 low-power-enable;
32 bias-pull-up;
38 pinctrl-0 = <&qspi_default>;
39 pinctrl-1 = <&qspi_sleep>;
40 pinctrl-names = "default", "sleep";
43 compatible = "nordic,qspi-nor";
49 sck-frequency = <2000000>;
[all …]
/Zephyr-latest/boards/nordic/nrf9160dk/
Dnrf9160dk_nrf9160_common_0_14_0.dtsi4 * SPDX-License-Identifier: Apache-2.0
8 gpio-map = <0 0 &gpio0 17 0>,
26 clock-frequency = <I2C_BITRATE_FAST>;
32 gpio-controller;
33 #gpio-cells = <2>;
35 int-gpios = <&gpio0 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
40 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>, /* D10 */
43 compatible = "jedec,spi-nor";
46 spi-max-frequency = <8000000>;
47 jedec-id = [c2 28 17];
[all …]
/Zephyr-latest/samples/subsys/fs/littlefs/boards/
Dnrf52840dk_nrf52840_spi.overlay4 * SPDX-License-Identifier: Apache-2.0
7 /delete-node/ &mx25r64;
14 * to provide quad-spi feature. In individual specifications each of the spi
21 compatible = "nordic,nrf-spi";
23 cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
24 pinctrl-0 = <&spi2_default>;
25 pinctrl-1 = <&spi2_sleep>;
26 pinctrl-names = "default", "sleep";
28 compatible = "jedec,spi-nor";
30 spi-max-frequency = <8000000>;
[all …]
/Zephyr-latest/boards/nordic/nrf54l15dk/
Dnrf54l_05_10_15_cpuapp_common.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 /* This file is common to the secure and non-secure domain */
14 zephyr,shell-uart = &uart20;
15 zephyr,uart-mcumgr = &uart20;
16 zephyr,bt-mon-uart = &uart20;
17 zephyr,bt-c2h-uart = &uart20;
18 zephyr,flash-controller = &rram_controller;
29 load-capacitors = "internal";
30 load-capacitance-femtofarad = <15500>;
34 load-capacitors = "internal";
[all …]
/Zephyr-latest/boards/silabs/dev_kits/sltb010a/
Dthunderboard.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
11 zephyr,bt-c2h-uart = &usart1;
13 zephyr,shell-uart = &usart1;
14 zephyr,uart-pipe = &usart1;
20 compatible = "gpio-leds";
28 compatible = "gpio-keys";
36 wake_up_trigger: gpio-wake-up {
37 compatible = "silabs,gecko-wake-up-trigger";
43 compatible = "regulator-fixed";
[all …]
/Zephyr-latest/boards/silabs/dev_kits/xg27_dk2602a/
Dthunderboard.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
11 zephyr,bt-c2h-uart = &usart1;
13 zephyr,shell-uart = &usart1;
14 zephyr,uart-pipe = &usart1;
20 compatible = "gpio-leds";
28 compatible = "gpio-keys";
36 wake_up_trigger: gpio-wake-up {
37 compatible = "silabs,gecko-wake-up-trigger";
43 compatible = "regulator-fixed";
[all …]
/Zephyr-latest/boards/seeed/xiao_ble/
Dxiao_ble_common.dtsi5 * SPDX-License-Identifier: Apache-2.0
10 #include "xiao_ble-pinctrl.dtsi"
19 compatible = "gpio-leds";
35 compatible = "pwm-leds";
46 pwm-led0 = &pwm_led0;
47 bootloader-led0 = &led0;
48 mcuboot-led0 = &led0;
58 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
66 gpio-as-nreset;
82 compatible = "nordic,nrf-uarte";
[all …]
/Zephyr-latest/boards/makerdiary/nrf52840_mdk/
Dnrf52840_mdk.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "nrf52840_mdk-pinctrl.dtsi"
11 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 model = "nRF52840-MDK Dev Kit";
15 compatible = "nordic,pca10056-dk";
19 zephyr,shell-uart = &uart0;
20 zephyr,uart-mcumgr = &uart0;
21 zephyr,bt-mon-uart = &uart0;
22 zephyr,bt-c2h-uart = &uart0;
[all …]

12