Home
last modified time | relevance | path

Searched +full:discharge +full:- +full:gpios (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/dts/bindings/usb-c/
Dzephyr,usb-c-vbus-adc.yaml2 # SPDX-License-Identifier: Apache-2.0
5 This device is used to measure VBUS on a Type-C Port and to
6 discharge VBUS when needed.
8 compatible: "zephyr,usb-c-vbus-adc"
10 include: [base.yaml, voltage-divider.yaml]
13 discharge-gpios:
14 type: phandle-array
/Zephyr-latest/dts/bindings/tcpc/
Dnuvoton,numaker-tcpc.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: Nuvoton NuMaker USB Type-C port controller
6 compatible: "nuvoton,numaker-tcpc"
8 include: [base.yaml, reset-device.yaml, pinctrl-device.yaml]
23 vconn-overcurrent-event-polarity:
28 - "low-active"
29 - "high-active"
31 vconn-discharge-polarity:
34 Polarity of VCONN discharge
36 - "low-active"
[all …]
/Zephyr-latest/samples/subsys/usb_c/source/boards/
Dstm32g081b_eval.overlay4 * SPDX-License-Identifier: Apache-2.0
8 #include <dt-bindings/usb-c/pd.h>
12 usbc-port0 = &port1;
16 compatible = "pwm-leds";
24 compatible = "gpio-leds";
28 gpios = <&gpiod 3 GPIO_ACTIVE_HIGH>;
34 gpios = <&gpioa 1 GPIO_ACTIVE_HIGH>;
40 gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;
46 gpios = <&gpiob 9 GPIO_ACTIVE_LOW>;
51 /* usbc.rst vbus-voltage-divider-adc start */
[all …]
/Zephyr-latest/samples/subsys/usb_c/sink/boards/
Dstm32g081b_eval.overlay4 * SPDX-License-Identifier: Apache-2.0
8 #include <dt-bindings/usb-c/pd.h>
12 usbc-port0 = &port1;
16 compatible = "zephyr,usb-c-vbus-adc";
17 io-channels = <&adc1 9>;
18 output-ohms = <49900>;
19 full-ohms = <(330000 + 49900)>;
21 /* Pin B13 is used to control VBUS Discharge for Port1 */
22 discharge-gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>;
26 #address-cells = <1>;
[all …]
Dnumaker_m2l31ki.overlay1 /* SPDX-License-Identifier: Apache-2.0 */
3 #include <dt-bindings/usb-c/pd.h>
7 usbc-port0 = &port0;
11 #address-cells = <1>;
12 #size-cells = <0>;
14 port0: usbc-port@0 {
15 compatible = "usb-c-connector";
20 power-role = "sink";
21 sink-pdos = <PDO_FIXED(5000, 100, 0)>;
30 digital-path-disable;
[all …]
/Zephyr-latest/drivers/usb_c/tcpc/
Ducpd_numaker.c4 * SPDX-License-Identifier: Apache-2.0
36 * by Timer-trigger EADC. To implement this interconnection, TCPC node_id
39 * NOTE: EADC and Timer interrupts needn't enable for Timer-triggered EADC.
44 * (3) Single pin for VCONN discharge (DISCHG)
45 * 4. VBUS discharge precedence
48 * 5. VCONN discharge precedence
49 * (1) DPM-supplied callback
76 #define NUMAKER_SYS_REG_DUMP(dev, reg_name) LOG_INF("SYS: %8s: 0x%08x", #reg_name, SYS->reg_name);
82 LOG_INF("%s: %8s: 0x%08x", #port, #reg_name, port->reg_name);
98 utcpd_base->reg_name = (val); \
[all …]
/Zephyr-latest/samples/boards/nordic/battery/
DREADME.rst1 .. zephyr:code-sample:: nrf_battery
14 ``voltage-divider`` then the voltage is measured using that divider. An
18 .. code-block:: devicetree
22 compatible = "voltage-divider";
23 io-channels = <&adc 4>;
24 output-ohms = <180000>;
25 full-ohms = <(1500000 + 180000)>;
26 power-gpios = <&sx1509b 4 0>;
37 .. code-block :: devicetree
41 io-channels = <&adc 4>;
[all …]
/Zephyr-latest/boards/st/stm32g081b_eval/doc/
Dindex.rst5 The STM32G081B-EVAL Evaluation board is a high-end development platform, for
6 Arm Cortex-M0+ core-based STM32G081RBT6 microcontroller, with USB Type-C and
7 power delivery controller interfaces (UCPD), compliant with USB type-C r1.2
9 one 12-bit ADC, two 12-bit DACs, two GP comparators, two LP timers, internal
11 hardware features on the STM32G081B-EVAL Evaluation board includes a mother
12 board, a legacy peripheral daughterboard and a USB-C and Power Delivery
13 daughterboard, which help to evaluate all peripherals (USB Type-C connector
19 The board integrates an ST-LINK/V2-1 as an embedded in-circuit debugger and
24 The USB-C and Power Delivery daughterboard
25 features two independent USB-C ports controlled by an STM32G0. USB-C port 1
[all …]