/Zephyr-latest/dts/bindings/mfd/ |
D | nordic,npm2100.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 include: i2c-device.yaml 14 host-int-gpios: 15 type: phandle-array 16 description: Host pin for interrupt input 18 host-int-type: 21 - "edge" 22 - "level" 28 pmic-int-pin: 29 type: int [all …]
|
D | nordic,npm1300.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 include: i2c-device.yaml 14 host-int-gpios: 15 type: phandle-array 16 description: Host pin for interrupt input 18 pmic-int-pin: 19 type: int 20 description: Pmic pin number for interrupt output 22 ship-to-active-time-ms: 23 type: int [all …]
|
/Zephyr-latest/dts/bindings/regulator/ |
D | nordic,npm2100-regulator.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Nordic nPM2100 PMIC 7 The PMIC has one boost converter and one LDO/LDSW. 12 pmic@74 { 16 compatible = "nordic,npm2100-regulator"; 27 compatible: "nordic,npm2100-regulator" 32 dvs-gpios: 33 type: phandle-array 35 List of SOC GPIOs connected to PMIC GPIOs. 37 DVS mode 1 will enable the first pin [all …]
|
D | nordic,npm1300-regulator.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Nordic nPM1300 PMIC 7 The PMIC has two buck converters and two LDOs. 12 pmic@6b { 16 compatible = "nordic,npm1300-regulator"; 33 compatible: "nordic,npm1300-regulator" 38 dvs-gpios: 39 type: phandle-array 41 List of SOC GPIOs connected to PMIC GPIOs. 43 DVS mode 1 will enable the first pin [all …]
|
D | adi,adp5360-regulator.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Analog Devices ADP3560 PMIC 7 The PMIC has one buck converter and one buck-boost converter. Both need to be 11 pmic@46 { 16 compatible = "adi,adp5360-regulator"; 27 compatible: "adi,adp5360-regulator" 31 child-binding: 33 - name: regulator.yaml 34 property-allowlist: 35 - regulator-always-on [all …]
|
/Zephyr-latest/samples/shields/npm1300_ek/src/ |
D | main.c | 3 * SPDX-License-Identifier: Apache-2.0 14 #include <zephyr/dt-bindings/regulator/npm1300.h> 30 static const struct device *pmic = DEVICE_DT_GET(DT_NODELABEL(npm1300_ek_pmic)); variable 34 int ret; in configure_ui() 37 printk("Error: button device %s is not ready\n", button1.port->name); in configure_ui() 43 printk("Error %d: failed to configure %s pin %d\n", ret, button1.port->name, in configure_ui() 44 button1.pin); in configure_ui() 48 printk("Set up button at %s pin %d\n", button1.port->name, button1.pin); in configure_ui() 63 if (!device_is_ready(pmic)) { in configure_events() 64 printk("Pmic device not ready.\n"); in configure_events() [all …]
|
/Zephyr-latest/samples/shields/npm1300_ek/ |
D | nrf52dk_nrf52832.overlay | 3 * SPDX-License-Identifier: Apache-2.0 7 bias-pull-up; 12 dvs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>, 17 regulator-init-microvolt = <2000000>; 21 regulator-init-microvolt = <3300000>; 22 retention-microvolt = <2500000>; 23 enable-gpios = <&npm1300_ek_gpio 1 GPIO_ACTIVE_LOW>; 24 retention-gpios = <&npm1300_ek_gpio 2 GPIO_ACTIVE_HIGH>; 25 pwm-gpios = <&npm1300_ek_gpio 2 GPIO_ACTIVE_LOW>; 29 regulator-initial-mode = <NPM1300_LDSW_MODE_LDO>; [all …]
|
/Zephyr-latest/boards/nxp/mimxrt595_evk/ |
D | board.c | 2 * Copyright 2022-2023 NXP 3 * SPDX-License-Identifier: Apache-2.0 28 #define PMIC_SETTLING_TIME 2000U /* in micro-seconds */ 46 static int current_power_profile; 84 volt = sw1_volt[i - 1U]; in board_calc_volt_level() 90 static int board_config_pmic(void) in board_config_pmic() 93 int ret = 0; in board_config_pmic() 123 static int board_pmic_change_mode(uint8_t pmic_mode) in board_pmic_change_mode() 125 int ret; in board_pmic_change_mode() 128 return -ERANGE; in board_pmic_change_mode() [all …]
|
D | mimxrt595_evk_mimxrt595s_cm33.dts | 2 * Copyright 2022-2023, NXP 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 10 #include <zephyr/dt-bindings/input/input-event-codes.h> 12 #include "mimxrt595_evk_mimxrt595s_cm33-pinctrl.dtsi" 16 model = "NXP MIMXRT595-EVK board"; 25 usart-0 = &flexcomm0; 30 pwm-0 = &sc_timer; 31 dmic-dev = &dmic0; 32 mcuboot-button0 = &user_button_1; [all …]
|
/Zephyr-latest/include/zephyr/drivers/mfd/ |
D | axp192.h | 4 * SPDX-License-Identifier: Apache-2.0 41 * @brief Maximum number of GPIOs supported by AXP192 PMIC. 64 * @brief Request a GPIO pin to be configured to a specific function. GPIO0..5 74 * @retval -EINVAL if an invalid GPIO number is passed 75 * @retval -ENOTSUP if the requested function is not supported by the given 76 * @retval -errno in case of any bus error 78 int mfd_axp192_gpio_func_ctrl(const struct device *dev, const struct device *client_dev, 82 * @brief Read out current configuration of a specific GPIO pin. 88 * @retval -EINVAL if an invalid GPIO number is passed 89 * @retval -errno in case of any bus error [all …]
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_npm2100.c | 3 * SPDX-License-Identifier: Apache-2.0 118 const struct mfd_npm2100_config *config = data->dev->config; in gpio_callback() 120 if (config->host_int_flags & GPIO_INT_LEVEL_ACTIVE) { in gpio_callback() 122 gpio_pin_interrupt_configure_dt(&config->host_int_gpios, GPIO_INT_DISABLE); in gpio_callback() 125 k_work_submit(&data->work); in gpio_callback() 131 const struct mfd_npm2100_config *config = data->dev->config; in work_callback() 133 int ret; in work_callback() 136 ret = i2c_write_read_dt(&config->i2c, &buf[0], 1U, &buf[1], EVENTS_SIZE); in work_callback() 138 k_work_submit(&data->work); in work_callback() 142 for (int i = 0; i < NPM2100_EVENT_MAX; i++) { in work_callback() [all …]
|
D | mfd_npm1300.c | 3 * SPDX-License-Identifier: Apache-2.0 87 k_work_submit(&data->work); in gpio_callback() 93 const struct mfd_npm1300_config *config = data->dev->config; in work_callback() 95 int ret; in work_callback() 98 ret = mfd_npm1300_reg_read_burst(data->dev, MAIN_BASE, 0U, buf, sizeof(buf)); in work_callback() 100 k_work_submit(&data->work); in work_callback() 104 for (int i = 0; i < NPM1300_EVENT_MAX; i++) { in work_callback() 105 int offset = event_reg[i].offset + MAIN_OFFSET_CLR; in work_callback() 108 gpio_fire_callbacks(&data->callbacks, data->dev, BIT(i)); in work_callback() 110 ret = mfd_npm1300_reg_write(data->dev, MAIN_BASE, offset, in work_callback() [all …]
|
/Zephyr-latest/drivers/regulator/ |
D | regulator_pca9420.c | 3 * SPDX-License-Identifier: Apache-2.0 53 * PMIC pins MODESEL0 and MODESEL1 can be used to select the active mode 58 * @brief Mode configuration upon falling edge applied to ON pin. If set, 60 * to the ON pin 227 static unsigned int regulator_pca9420_count_voltages(const struct device *dev) in regulator_pca9420_count_voltages() 229 const struct regulator_pca9420_config *config = dev->config; in regulator_pca9420_count_voltages() 231 return linear_range_group_values_count(config->desc->ranges, in regulator_pca9420_count_voltages() 232 config->desc->num_ranges); in regulator_pca9420_count_voltages() 235 static int regulator_pca9420_list_voltage(const struct device *dev, in regulator_pca9420_list_voltage() 236 unsigned int idx, int32_t *volt_uv) in regulator_pca9420_list_voltage() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | regulator.h | 2 * Copyright (c) 2019-2020 Peter Bigot Consulting, LLC 7 * SPDX-License-Identifier: Apache-2.0 62 typedef int (*regulator_dvs_state_set_t)(const struct device *dev, 65 typedef int (*regulator_ship_mode_t)(const struct device *dev); 67 /** @brief Driver-specific API functions to support parent regulator control. */ 73 typedef int (*regulator_enable_t)(const struct device *dev); 74 typedef int (*regulator_disable_t)(const struct device *dev); 75 typedef unsigned int (*regulator_count_voltages_t)(const struct device *dev); 76 typedef int (*regulator_list_voltage_t)(const struct device *dev, 77 unsigned int idx, int32_t *volt_uv); [all …]
|
/Zephyr-latest/drivers/rtc/ |
D | rtc_pcf8523.c | 2 * Copyright (c) 2019-2023 Henrik Brix Andersen <henrik@brixandersen.dk> 4 * SPDX-License-Identifier: Apache-2.0 108 /* The PCF8523 only supports two-digit years, calculate offset to use */ 109 #define PCF8523_YEARS_OFFSET (2000 - 1900) 114 /* Helper macro to guard int1-gpios related code */ 150 static int pcf8523_read_regs(const struct device *dev, uint8_t addr, void *buf, size_t len) in pcf8523_read_regs() 152 const struct pcf8523_config *config = dev->config; in pcf8523_read_regs() 153 int err; in pcf8523_read_regs() 155 err = i2c_write_read_dt(&config->i2c, &addr, sizeof(addr), buf, len); in pcf8523_read_regs() 164 static int pcf8523_read_reg8(const struct device *dev, uint8_t addr, uint8_t *val) in pcf8523_read_reg8() [all …]
|
/Zephyr-latest/doc/releases/ |
D | release-notes-3.4.rst | 20 * Added Power Delivery Source Support to the USB-C Stack. 22 * Cache API functions are now fully in-lined by compilers. 23 * Added an API for real-time clocks (RTC). 29 - Introduction of 3 new test harnesses into twister supporting pyTest, 31 - Transitioning to new Ztest API was completed and legacy Ztest was deprecated. 46 * CVE-2023-1901: Under embargo until 2023-07-04 48 * CVE-2023-1902: Under embargo until 2023-07-04 67 +--------------------------------------------------+ 69 +--------------------------------------------------+ 71 +--------------------------------------------------+ [all …]
|
D | release-notes-3.0.rst | 22 * CVE-2021-3835: `Zephyr project bug tracker GHSA-fm6v-8625-99jf 23 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-fm6v-8625-99jf>`_ 25 * CVE-2021-3861: `Zephyr project bug tracker GHSA-hvfp-w4h8-gxvj 26 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hvfp-w4h8-gxvj>`_ 28 * CVE-2021-3966: `Zephyr project bug tracker GHSA-hfxq-3w6x-fv2m 29 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-hfxq-3w6x-fv2m>`_ 36 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_. 53 * Added ``ranges`` and ``dma-ranges`` as invalid property to be used with DT_PROP_LEN() 58 CRC-16-ANSI checksum. A new function, :c:func:`crc16_reflect`, has been 69 * The following Kconfig options related to radio front-end modules (FEMs) were [all …]
|
D | release-notes-3.2.rst | 13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`). 15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`. 31 * CVE-2022-2993: Under embargo until 2022-11-03 33 * CVE-2022-2741: Under embargo until 2022-10-14 56 This definition can be used by third-party code to compile code conditional 58 Therefore, any third-party code integrated using the Zephyr build system will 91 changed from ``-ENETDOWN`` to ``-ENETUNREACH``. A return value of ``-ENETDOWN`` now indicates 129 * Removed support for configuring the CAN-FD maximum DLC value via Kconfig 156 valid for specific bindings to specify like :dtcompatible:`gpio-leds` and 157 :dtcompatible:`fixed-partitions`. [all …]
|
D | release-notes-3.3.rst | 14 * Introduced :ref:`USB-C <usbc_api>` device stack with PD (power delivery) 17 CMSIS-DSP as the default backend. 30 * CVE-2023-0359: Under embargo until 2023-04-20 32 * CVE-2023-0779: Under embargo until 2023-04-22 66 removed in favor of new :dtcompatible:`zephyr,flash-disk` devicetree binding. 71 * Starting from this release ``zephyr-`` prefixed tags won't be created 82 image states). Use of a truncated hash or non-sha256 hash will still work 88 registration function at boot-up. If applications register this then 93 application code, these will now automatically be registered at boot-up (this 129 This may cause out-of-tree scripts or commands to fail if they have relied [all …]
|
D | release-notes-3.5.rst | 38 * CVE-2023-3725 `Zephyr project bug tracker GHSA-2g3m-p6c7-8rr3 39 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-2g3m-p6c7-8rr3>`_ 41 * CVE-2023-4257 `Zephyr project bug tracker GHSA-853q-q69w-gf5j 42 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-853q-q69w-gf5j>`_ 44 * CVE-2023-4258 `Zephyr project bug tracker GHSA-m34c-cp63-rwh7 45 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-m34c-cp63-rwh7>`_ 47 * CVE-2023-4259 `Zephyr project bug tracker GHSA-gghm-c696-f4j4 48 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gghm-c696-f4j4>`_ 50 * CVE-2023-4260 `Zephyr project bug tracker GHSA-gj27-862r-55wh 51 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gj27-862r-55wh>`_ [all …]
|