Home
last modified time | relevance | path

Searched +full:charging +full:- +full:mode (Results 1 – 25 of 32) sorted by relevance

12

/Zephyr-latest/drivers/usb/bc12/
DKconfig.pi3usb92012 # SPDX-License-Identifier: Apache-2.0
9 This is a Dual-Role USB Charging-Type Detector. It can operate in
10 host or client mode. It supports Battery Charging Specification, rev
11 1.2 (BC1.2) with Standard/Charging/Dedicated downstream port
12 (SDP/CDP/DCP) advertisement when in host mode. In portable device or
13 client mode it starts BC1.2 detection to detect the attached host
17 bool "Emulate a Pericom PI3USB9201 USB charging detector"
21 This is an emulator for the Pericom PI3USB9201 USB charging detector.
32 When this option is enabled and the charging mode is configured for
33 CDP (Charging Downstream Port), after successful CDP detection the
[all …]
Demul_bc12_pi3usb9201.c4 * SPDX-License-Identifier: Apache-2.0
6 * Emulator for Diodes PI3USB9201 Dual-Role USB Charging-Type Detector.
38 /** Run-time data used by the emulator */
46 /** The current charging partner type requested by the test */
52 /** Pointer to run-time data */
62 struct pi3usb9201_emul_data *data = target->data; in pi3usb9201_emul_interrupt_is_pending()
64 if (data->reg[PI3USB9201_REG_CTRL_1] & PI3USB9201_REG_CTRL_1_INT_MASK) { in pi3usb9201_emul_interrupt_is_pending()
69 if ((data->reg[PI3USB9201_REG_CTRL_2] & PI3USB9201_REG_CTRL_2_START_DET) && in pi3usb9201_emul_interrupt_is_pending()
70 data->reg[PI3USB9201_REG_CLIENT_STS]) { in pi3usb9201_emul_interrupt_is_pending()
77 if (data->reg[PI3USB9201_REG_HOST_STS]) { in pi3usb9201_emul_interrupt_is_pending()
[all …]
Dbc12_pi3usb9201.c4 * SPDX-License-Identifier: Apache-2.0
29 /* Run-time configuration data */
57 * The USB Type-C specification limits the maximum amount of current from BC 1.2
88 const struct pi3usb9201_config *cfg = dev->config; in pi3usb9201_interrupt_enable()
91 return i2c_reg_update_byte_dt(&cfg->i2c, PI3USB9201_REG_CTRL_1, in pi3usb9201_interrupt_enable()
98 const struct pi3usb9201_config *cfg = dev->config; in pi3usb9201_bc12_detect_ctrl()
100 return i2c_reg_update_byte_dt(&cfg->i2c, PI3USB9201_REG_CTRL_2, in pi3usb9201_bc12_detect_ctrl()
107 const struct pi3usb9201_config *cfg = dev->config; in pi3usb9201_bc12_usb_switch()
110 return i2c_reg_update_byte_dt(&cfg->i2c, PI3USB9201_REG_CTRL_2, in pi3usb9201_bc12_usb_switch()
115 static int pi3usb9201_set_mode(const struct device *dev, enum pi3usb9201_mode mode) in pi3usb9201_set_mode() argument
[all …]
/Zephyr-latest/dts/bindings/usb/
Dusb-bc12.yaml2 # SPDX-License-Identifier: Apache-2.0
9 charging-mode:
13 Define the charging port mode supported by the BC1.2 device.
14 Charging modes
15 - BC12_TYPE_NONE: Device does not support charging and only supports
16 portable-device mode.
17 - BC12_TYPE_SDP: Device supports SDP (standard downstream port)
18 charging. The USB data lines are active and the
20 - BC12_TYPE_CDP: Device supports CDP (charging downstream port)
21 charging. The USB data lines are active and the
[all …]
/Zephyr-latest/dts/bindings/led/
Dnordic,npm1300-led.yaml2 # SPDX-License-Identifier: Apache-2.0
8 Each LED can automatically display error or charging status,
11 compatible: "nordic,npm1300-led"
14 nordic,led0-mode:
18 - error
19 - charging
20 - host
21 description: LED 0 mode
23 nordic,led1-mode:
27 - error
[all …]
/Zephyr-latest/doc/hardware/peripherals/
Dbc12.rst6 The Battery Charging specification, currently at revision 1.2, is commonly
10 The BC1.2 specification uses the term Charging Port for the device that supplies
15 should not be confused with the USB-C Power Delivery, which also uses the
19 charger capability on USB type C ports when the attached type-C partner does not
27 Allowed PD (portable device) Current Draw from Charging Port IDEV_CHG 1.5 A
28 Charging Downstream Port Rated Current ICDP 1.5 - 5.0 A
30 Dedicated Charging Port Rated Current IDCP 1.5 - 5.0 A
37 the Zephyr implementation when using portable-device mode.
39 …. _BC1.2 Specification: https://www.usb.org/document-library/battery-charging-v12-spec-and-adopter…
48 either a disconnected, portable-device, or charging port mode.
[all …]
/Zephyr-latest/boards/shields/npm1300_ek/
Dnpm1300_ek.overlay3 * SPDX-License-Identifier: Apache-2.0
6 #include <dt-bindings/regulator/npm1300.h>
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 npm1300_ek_gpio: gpio-controller {
15 compatible = "nordic,npm1300-gpio";
16 gpio-controller;
17 #gpio-cells = <2>;
22 compatible = "nordic,npm1300-regulator";
26 regulator-min-microvolt = <1000000>;
27 regulator-max-microvolt = <3300000>;
[all …]
/Zephyr-latest/include/zephyr/drivers/usb/
Dusb_bc12.h4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Public APIs for the USB BC1.2 battery charging detect drivers.
28 /* FIXME - make these Kconfig options */
71 /** @brief BC1.2 charging partner type. */
77 /** Dedicated Charging Port */
79 /** Charging Downstream Port */
81 /** Proprietary charging port */
83 /** Unknown charging port, BC1.2 detection failed. */
93 * @param type Charging partner type. Valid when bc12_role is BC12_PORTABLE_DEVICE.
94 * @param current_ma Current, in uA, that the charging partner provides. Valid when bc12_role is
[all …]
/Zephyr-latest/tests/drivers/usb/bc12/boards/
Dnative_sim.overlay2 * SPDX-License-Identifier: Apache-2.0
15 intb-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
16 charging-mode = "BC12_TYPE_CDP";
/Zephyr-latest/tests/drivers/build_all/usb/
Di2c_devices.overlay3 * SPDX-License-Identifier: Apache-2.0
8 #address-cells = <1>;
9 #size-cells = <1>;
13 gpio-controller;
15 #gpio-cells = <0x2>;
20 #address-cells = <1>;
21 #size-cells = <0>;
25 clock-frequency = <100000>;
30 charging-mode = "BC12_TYPE_NONE";
31 intb-gpios = <&test_gpio 0 0>;
[all …]
/Zephyr-latest/tests/drivers/usb/bc12/src/
Dpd_mode.c4 * SPDX-License-Identifier: Apache-2.0
12 * @brief TestPurpose: Verify BC1.2 devices in portable device mode.
38 fixture->callback_count++; in bc12_test_result_cb()
41 if (state->bc12_role == BC12_PORTABLE_DEVICE) { in bc12_test_result_cb()
42 LOG_INF("charging partner: type %d, voltage %d, current %d", state->type, in bc12_test_result_cb()
43 state->voltage_uv, state->current_ua); in bc12_test_result_cb()
44 } else if (state->bc12_role == BC12_CHARGING_PORT) { in bc12_test_result_cb()
46 state->pd_partner_connected); in bc12_test_result_cb()
48 fixture->partner_state = *state; in bc12_test_result_cb()
51 fixture->disconnect_detected = true; in bc12_test_result_cb()
[all …]
Dcharging_mode.c4 * SPDX-License-Identifier: Apache-2.0
12 * @brief TestPurpose: Verify BC1.2 devices configured in charging mode.
37 if (state->bc12_role == BC12_PORTABLE_DEVICE) { in bc12_test_result_cb()
38 LOG_INF("charging partner: type %d, voltage %d, current %d", state->type, in bc12_test_result_cb()
39 state->voltage_uv, state->current_ua); in bc12_test_result_cb()
40 } else if (state->bc12_role == BC12_CHARGING_PORT) { in bc12_test_result_cb()
42 state->pd_partner_connected); in bc12_test_result_cb()
44 fixture->partner_state = *state; in bc12_test_result_cb()
47 fixture->partner_state.type = BC12_TYPE_NONE; in bc12_test_result_cb()
48 fixture->partner_state.current_ua = 0; in bc12_test_result_cb()
[all …]
/Zephyr-latest/dts/bindings/sensor/
Dti,bq274xx.yaml4 # SPDX-License-Identifier: Apache-2.0
11 include: [sensor-device.yaml, i2c-device.yaml]
14 design-voltage:
17 description: Battery Design Voltage in mV (3300 - 4400)
19 design-capacity:
24 taper-current:
29 point the charger cuts off charging.
31 terminate-voltage:
38 chemistry-id:
44 int-gpios:
[all …]
/Zephyr-latest/drivers/sensor/
DKconfig5 # SPDX-License-Identifier: Apache-2.0
15 module-str = sensor
55 sensors in either one-shot or streaming mode. Use this config to control
62 This enables the 'battery' command which reports charging information
87 # zephyr-keep-sorted-start
115 # zephyr-keep-sorted-stop
/Zephyr-latest/boards/adafruit/feather_m0_basic_proto/doc/
Dindex.rst8 polymer batteries, charging status indicator and user LEDs, native USB
14 - ATSAMD21G18A ARM Cortex-M0+ processor at 48 MHz
15 - 32.768 kHz crystal oscillator
16 - 256 KiB flash memory and 32 KiB of RAM
17 - Battery connector and charger for 3.7 V lithium polymer batteries
18 - Charging indicator LED
19 - User LED
20 - Reset button
21 - Native USB port
29 +-----------+------------+------------------------------------------+
[all …]
/Zephyr-latest/boards/adafruit/feather_m0_lora/doc/
Dindex.rst8 polymer batteries, charging status indicator and user LEDs, native USB
14 - ATSAMD21G18A ARM Cortex-M0+ processor at 48 MHz
15 - 32.768 kHz crystal oscillator
16 - 256 KiB flash memory and 32 KiB of RAM
17 - Battery connector and charger for 3.7 V lithium polymer batteries
18 - Charging indicator LED
19 - User LED
20 - Reset button
21 - Native USB port
22 - SX127x LoRa radio
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dfuel_gauge.h5 * SPDX-License-Identifier: Apache-2.0
41 /** Used to cutoff the battery from the system - useful for storage/shipping of devices */
45 /** Whether the battery underlying the fuel-gauge is cut off from charge */
65 /** Absolute state of charge (percent, 0-100) - expressed as % of design capacity */
67 /** Relative state of charge (percent, 0-100) - expressed as % of full charge capacity */
73 /** Battery Mode (flags) */
75 /** Battery desired Max Charging Current (uA) */
77 /** Battery desired Max Charging Voltage (uV) */
107 * Reserved to demark downstream custom properties - use this value as the actual value may
241 * Note: Historically this API allowed drivers to implement a custom multi-get/set property
[all …]
/Zephyr-latest/drivers/fuel_gauge/sbs_gauge/
Demul_sbs_gauge.c5 * SPDX-License-Identifier: Apache-2.0
33 /** Run-time data used by the emulator */
38 uint16_t mode; member
48 /* Non-register values associated with the state of the battery */
51 /* Battery terminal current - Pos is charging, Neg is discharging */
67 struct sbs_gauge_emul_data *data = target->data; in emul_sbs_gauge_maybe_do_battery_cutoff()
68 const struct sbs_gauge_emul_cfg *cfg = target->cfg; in emul_sbs_gauge_maybe_do_battery_cutoff()
71 if (cfg->cutoff_support && reg == cfg->cutoff_reg_addr) { in emul_sbs_gauge_maybe_do_battery_cutoff()
72 __ASSERT_NO_MSG(ARRAY_SIZE(cfg->cutoff_payload) > 0); in emul_sbs_gauge_maybe_do_battery_cutoff()
79 uint16_t target_payload_elem_val = cfg->cutoff_payload[data->cutoff_writes]; in emul_sbs_gauge_maybe_do_battery_cutoff()
[all …]
/Zephyr-latest/tests/drivers/build_all/sensor/
Di2c.dtsi4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/dt-bindings/sensor/lsm6dsv16x.h>
10 #include <zephyr/dt-bindings/sensor/lsm6dso.h>
11 #include <zephyr/dt-bindings/sensor/lsm6dso16is.h>
12 #include <zephyr/dt-bindings/sensor/lps22hh.h>
13 #include <zephyr/dt-bindings/sensor/lps2xdf.h>
14 #include <zephyr/dt-bindings/sensor/lis2ds12.h>
15 #include <zephyr/dt-bindings/sensor/lis2dw12.h>
16 #include <zephyr/dt-bindings/sensor/ism330dhcx.h>
17 #include <zephyr/dt-bindings/sensor/iis2dlpc.h>
[all …]
/Zephyr-latest/boards/adafruit/feather_m4_express/doc/
Dindex.rst8 of SPI flash, charging status indicator and user LEDs, USB
14 - ATSAMD51J19A ARM Cortex-M4 processor at 120 MHz
15 - 512 KiB of flash memory and 192 KiB of RAM
16 - 2 MiB of SPI flash
17 - Internal trimmed 8 MHz oscillator
18 - A user LED
19 - An RGB NeoPixel LED
20 - Native USB port
21 - One reset button
29 +-----------+------------+------------------------------------------+
[all …]
/Zephyr-latest/boards/cypress/cy8ckit_062_wifi_bt/doc/
Dindex.rst3 INFINEON PSOC 6 WiFi-BT Pioneer Kit
9 The PSOC 6 WiFi-BT Pioneer Kit (CY8CKIT-062-WiFi-BT) is a low-cost hardware
13 The PSOC 6 WiFi-BT Pioneer Kit features the PSOC 62 MCU: a
14 dual-core MCU, with a 150-MHz Arm Cortex-M4 as the primary application
15 processor and a 100-MHz Arm Cortex-M0+ that supports low-power operations,
17 56 programmable digital blocks, Full-Speed USB, a serial memory interface,
18 a PDM-PCM digital microphone interface, and industry-leading capacitive-sensing
21 The PSOC 6 WiFi-BT Pioneer board offers compatibility with Arduino shields.
23 The Cortex-M0+ is a primary core on the board's SoC. It starts first and
31 2. Battery charging indicator (LED6)
[all …]
/Zephyr-latest/boards/seeed/xiao_esp32c3/doc/
Dindex.rst7 Espressif ESP32-C3 WiFi/Bluetooth dual-mode chip.
14 This board is based on the ESP32-C3 with 4MB of flash, WiFi and BLE support. It
15 has an USB-C port for programming and debugging, integrated battery charging
24 +-----------+------------+------------------+
27 | PMP | on-chip | arch/riscv |
28 +-----------+------------+------------------+
29 | INTMTRX | on-chip | intc_esp32c3 |
30 +-----------+------------+------------------+
31 | PINMUX | on-chip | pinctrl_esp32 |
32 +-----------+------------+------------------+
[all …]
/Zephyr-latest/boards/lilygo/ttgo_t8c3/doc/
Dindex.rst6 Lilygo TTGO T8-C3 is an IoT mini development board based on the
7 Espressif ESP32-C3 WiFi/Bluetooth dual-mode chip.
11 - ESP32-C3 chip (160MHz single core, 400KB SRAM, Wi-Fi)
12 - on board antenna and IPEX connector
13 - USB-C connector for power and communication
14 - JST GH 2-pin battery connector
15 - LED
19 This board is based on the ESP32-C3 with 4MB of flash, WiFi and BLE support. It
20 has an USB-C port for programming and debugging, integrated battery charging
21 and an on-board antenna. The fitted U.FL external antenna connector can be
[all …]
/Zephyr-latest/boards/adafruit/feather_nrf52840/doc/
Dindex.rst7 nRF52840 ARM Cortex-M4F CPU and the following devices:
13 * :abbr:`I2C (Inter-Integrated Circuit)`
21 * :abbr:`UART (Universal asynchronous receiver-transmitter)`
27 .. group-tab:: Express
33 .. group-tab:: Sense
42 - nRF52840 ARM Cortex-M4F processor at 64 MHz
43 - 1 MB flash memory and 256 KB of SRAM
44 - Battery connector and charger for 3.7 V lithium polymer batteries
45 - Charging indicator LED
46 - 2 User LEDs
[all …]
/Zephyr-latest/boards/espressif/esp32s3_eye/doc/
Dindex.rst6 The ESP32-S3-EYE is a small-sized AI development board produced by [Espressif](https://espressif.co…
7 It is based on the [ESP32-S3](https://www.espressif.com/en/products/socs/esp32-s3) SoC.
8 It features a 2-Megapixel camera, an LCD display, and a microphone, which are used for image
9 recognition and audio processing. ESP32-S3-EYE offers plenty of storage, with an 8 MB Octal PSRAM
15 The ESP32-S3-EYE board consists of two parts: the main board (ESP32-S3-EYE-MB) that integrates the
16 ESP32-S3-WROOM-1 module, camera, SD card slot, digital microphone, USB port, and function buttons;
17 and the sub board (ESP32-S3-EYE-SUB) that contains an LCD display.
21 -------------
23 The block diagram below presents main components of the ESP32-S3-EYE-MB main board (on the left)
24 and the ESP32-S3-EYE-SUB sub board (on the right), as well as the interconnections between
[all …]

12