/Zephyr-latest/samples/subsys/usb_c/source/boards/ |
D | stm32g081b_eval.overlay | 4 * 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"; 26 /* Pin D3 is used to enable VBUS Source */ 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>; [all …]
|
/Zephyr-latest/dts/bindings/usb-c/ |
D | zephyr,usb-c-vbus-adc.yaml | 2 # 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/samples/subsys/usb_c/sink/boards/ |
D | stm32g081b_eval.overlay | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <dt-bindings/usb-c/pd.h> 12 usbc-port0 = &port1; 15 vbus1: vbus { 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>; [all …]
|
D | numaker_m2l31ki.overlay | 1 /* 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"; 18 vbus = <&vbus0>; 20 power-role = "sink"; 21 sink-pdos = <PDO_FIXED(5000, 100, 0)>; [all …]
|
/Zephyr-latest/dts/bindings/tcpc/ |
D | nuvoton,numaker-tcpc.yaml | 2 # 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: 36 - "low-active" 37 - "high-active" [all …]
|
/Zephyr-latest/dts/bindings/usb/ |
D | usb-controller.yaml | 1 # Copyright (c) 2018, I-SENSE group of ICCS 2 # SPDX-License-Identifier: Apache-2.0 11 maximum-speed: 14 speed. Valid arguments are "super-speed", "high-speed", 15 "full-speed" and "low-speed". If this is not passed 19 - "low-speed" 20 - "full-speed" 21 - "high-speed" 22 - "super-speed" 24 vbus-gpios: [all …]
|
/Zephyr-latest/boards/nordic/nrf5340_audio_dk/ |
D | nrf5340_audio_dk_nrf5340_cpuapp_common.dtsi | 2 * Copyright (c) 2020-2022 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 6 #include "nrf5340_audio_dk_nrf5340_cpuapp_common-pinctrl.dtsi" 7 #include <zephyr/dt-bindings/sensor/ina230.h> 12 zephyr,shell-uart = &uart0; 13 zephyr,uart-mcumgr = &uart0; 14 zephyr,bt-mon-uart = &uart0; 15 zephyr,bt-c2h-uart = &uart0; 16 zephyr,bt-hci = &bt_hci_ipc0; 20 gpio_fwd: nrf-gpio-forwarder { [all …]
|
/Zephyr-latest/boards/weact/stm32g431_core/ |
D | weact_stm32g431_core.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include <st/g4/stm32g431c(6-8-b)ux-pinctrl.dtsi> 10 #include <zephyr/dt-bindings/usb-c/pd.h> 11 #include <zephyr/dt-bindings/input/input-event-codes.h> 15 compatible = "weact,stm32g431-core"; 19 zephyr,shell-uart = &usart2; 26 mcuboot-button0 = &button_0; 27 mcuboot-led0 = &led_0; 30 usbc-port0 = &usbc1; [all …]
|
/Zephyr-latest/boards/st/stm32g071b_disco/ |
D | stm32g071b_disco.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include <st/g0/stm32g071r(6-8-b)tx-pinctrl.dtsi> 10 #include <zephyr/dt-bindings/sensor/ina230.h> 11 #include <zephyr/dt-bindings/input/input-event-codes.h> 15 compatible = "st,stm32g071-demo"; 19 zephyr,shell-uart = &usart3; 25 compatible = "gpio-leds"; 27 gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>; 31 gpios = <&gpiod 8 GPIO_ACTIVE_HIGH>; [all …]
|
/Zephyr-latest/drivers/usb_c/tcpc/ |
D | ucpd_numaker.c | 4 * SPDX-License-Identifier: Apache-2.0 28 /* Implementation notes on NuMaker TCPC/PPC/VBUS 30 * 1. UTCPD, interfacing to external circuit on VBUS/VCONN voltage measurement, 31 * VBUS/VCONN overcurrent protection, VBUS overvoltage protection, etc., 32 * can implement all functions defined in TCPC, PPC, and VBUS. For this, 33 * TCPC is implemented in UTCPD majorly; PPC and VBUS rely on TCPC for 35 * 2. For VBUS/VCONN voltage measurement, UTCPD is updated periodically 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. 45 * 4. VBUS discharge precedence [all …]
|
/Zephyr-latest/boards/st/stm32g071b_disco/doc/ |
D | index.rst | 5 The STM32G071B-DISCO Discovery board is a demonstration and development platform 6 for the STMicroelectronics Arm® Cortex® -M0+ core-based STM32G071RB USB Type-C™ 7 and Power Delivery microcontroller. The STM32G071B-DISCO Discovery board is 9 interoperability with other USB Type-C™ devices. The STM32G071B-DISCO Discovery 10 board is intended for discovery and display of USB Type-C™ port characteristics 11 such as data role, power role, VBUS and IBUS monitoring. It offers an advanced 13 as a USB Type-C™ and Power Delivery analyzer. 15 - STM32G071RBT6 microcontroller featuring 128 Kbytes of Flash memory and 17 - Plastic case 18 - 1” 128 x 64 pixels OLED LCD module with SPI interface [all …]
|
/Zephyr-latest/boards/shields/npm1300_ek/ |
D | npm1300_ek.overlay | 3 * 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/boards/nordic/nrf9131ek/ |
D | nrf9131ek_nrf9131_common.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 6 #include "nrf9131ek_nrf9131_common-pinctrl.dtsi" 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 11 compatible = "nordic,nrf9131-ek-nrf9131"; 15 zephyr,shell-uart = &uart0; 16 zephyr,uart-mcumgr = &uart0; 20 compatible = "gpio-leds"; 22 gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; 26 gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>; 30 gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; [all …]
|
/Zephyr-latest/boards/google/twinkie_v2/ |
D | google_twinkie_v2.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include <st/g0/stm32g0b1r(b-c-e)ixn-pinctrl.dtsi> 10 #include <zephyr/dt-bindings/input/input-event-codes.h> 14 compatible = "google,twinkie-v2"; 22 compatible = "gpio-leds"; 24 gpios = <&gpioc 8 GPIO_ACTIVE_LOW>; 27 gpios = <&gpiob 6 GPIO_ACTIVE_LOW>; 30 gpios = <&gpiob 7 GPIO_ACTIVE_LOW>; 35 compatible = "gpio-keys"; [all …]
|
/Zephyr-latest/samples/subsys/usb_c/source/src/ |
D | power_ctrl.c | 4 * SPDX-License-Identifier: Apache-2.0 37 static const struct gpio_dt_spec source_en = GPIO_DT_SPEC_GET(PORT1_SOURCE_EN_NODE, gpios); 38 static const struct gpio_dt_spec dcdc_en = GPIO_DT_SPEC_GET(PORT1_DCDC_EN_NODE, gpios); 40 static const struct gpio_dt_spec vconn1_en = GPIO_DT_SPEC_GET(PORT1_VCONN1_EN_NODE, gpios); 41 static const struct gpio_dt_spec vconn2_en = GPIO_DT_SPEC_GET(PORT1_VCONN2_EN_NODE, gpios); 95 source_en.port->name); in power_ctrl_init() 96 return -ENODEV; in power_ctrl_init() 101 dcdc_en.port->name); in power_ctrl_init() 102 return -ENODEV; in power_ctrl_init() 107 vconn1_en.port->name); in power_ctrl_init() [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> 22 static const struct gpio_dt_spec button1 = GPIO_DT_SPEC_GET(DT_ALIAS(sw0), gpios); 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() 48 printk("Set up button at %s pin %d\n", button1.port->name, button1.pin); in configure_ui() 98 printk("I: %s%d.%04d ", ((current.val1 < 0) || (current.val2 < 0)) ? "-" : "", in read_sensors() 101 printk("T: %s%d.%02d\n", ((temp.val1 < 0) || (temp.val2 < 0)) ? "-" : "", abs(temp.val1), in read_sensors() 104 printk("Charger Status: %d, Error: %d, VBUS: %s\n", status.val1, error.val1, in read_sensors() 125 /* Cycle regulator control GPIOs when first button pressed */ in main()
|
/Zephyr-latest/boards/gd/gd32e103v_eval/doc/ |
D | index.rst | 6 The GD32E103V-EVAL board is a hardware platform that enables design and debug 7 of the GigaDevice E103 Cortex-M4F High Performance MCU. 9 The GD32E103VB features a single-core ARM Cortex-M4F MCU which can run up 10 to 120-MHz with flash accesses zero wait states, 128kiB of Flash, 32kiB of 11 SRAM and 80 GPIOs. 16 - USB interface with mini-USB connector 17 - 4 user LEDs 18 - 4 user push buttons 19 - Reset Button 20 - ADC connected to a potentiometer [all …]
|
/Zephyr-latest/boards/st/b_g474e_dpow1/doc/ |
D | index.rst | 5 The B-G474E-DPOW1 Discovery kit is a digital power solution and a complete 7 microcontroller. Leveraging the new HRTimer-oriented features, 96 Kbytes of 8 embedded RAM, math accelerator functions and USB-PD 3.0 offered by STM32G474RET6, 9 the B-G474E-DPOW1 Discovery kit, based on the USB 2.0 FS Type-C™ connector 11 buck-boost converter, RGB power LED lighting or a class-D audio amplifier. The 12 B-G474E-DPOW1 Discovery kit does not require any separate probe, as it integrates 13 the STLINK-V3E debugger and programmer. 15 - STM32G474RET6 Arm® Cortex®-M4 core-based microcontroller, featuring 512 Kbytes 17 - USB Type-C™ with USB 2.0 FS interface compatible with USB-PD 3.0 18 - RGB power LED for a bright lighting [all …]
|
/Zephyr-latest/boards/gd/gd32f403z_eval/doc/ |
D | index.rst | 6 The GD32F403Z-EVAL board is a hardware platform that enables design and debug 7 of the GigaDevice F403 Cortex-M4F High Performance MCU. 9 The GD32F403ZE features a single-core ARM Cortex-M4F MCU which can run up 10 to 168-MHz with flash accesses zero wait states, 512kiB of Flash, 96kiB of 11 SRAM and 112 GPIOs. 16 - USB interface with mini-USB connector 17 - 4 user LEDs 18 - 4 user push buttons 19 - Reset Button 20 - CAN port [all …]
|
/Zephyr-latest/boards/st/nucleo_g071rb/doc/ |
D | index.rst | 5 The Nucleo G071RB board features an ARM Cortex-M0+ based STM32G071RB MCU 9 - STM32 microcontroller in QFP64 package 10 - Two types of extension resources: 12 - Arduino Uno V3 connectivity 13 - ST morpho extension pin headers for full access to all STM32 I/Os 15 - On-board ST-LINK/V2-1 debugger/programmer with SWD connector 16 - Flexible board power supply: 18 - USB VBUS or external source(3.3V, 5V, 7 - 12V) 19 - Power management access point 21 - Three LEDs: USB communication (LD1), user LED (LD4), power LED (LD3) [all …]
|
/Zephyr-latest/boards/st/nucleo_g070rb/doc/ |
D | index.rst | 5 The Nucleo G070RB board features an ARM Cortex-M0+ based STM32G070RB MCU 9 - STM32 microcontroller in QFP64 package 10 - Two types of extension resources: 12 - Arduino Uno V3 connectivity 13 - ST morpho extension pin headers for full access to all STM32 I/Os 15 - On-board ST-LINK/V2-1 debugger/programmer with SWD connector 16 - Flexible board power supply: 18 - USB VBUS or external source(3.3V, 5V, 7 - 12V) 19 - Power management access point 21 - Three LEDs: USB communication (LD1), user LED (LD4), power LED (LD3) [all …]
|
/Zephyr-latest/boards/st/nucleo_l031k6/doc/ |
D | index.rst | 5 The STM32 Nucleo-32 development board with STM32L031K6 MCU, supports Arduino Nano V3 connectivity. 15 The STM32 Nucleo board integrates the ST-LINK/V2-1 debugger and programmer. 26 - STM32 microcontroller in LQFP32 package 27 - Extension resource: 29 - Arduino* Nano V3 connectivity 31 - On-board ST-LINK/V2-1 debugger/programmer with SWD connector: 33 - Selection-mode switch to use the kit as a standalone ST-LINK/V2-1 35 - Flexible board power supply: 37 - USB VBUS or external source (3.3V, 5V, 7 - 12V) 38 - Power management access point [all …]
|
/Zephyr-latest/boards/st/nucleo_g031k8/doc/ |
D | index.rst | 5 The STM32 Nucleo-32 board provides an affordable and flexible way for users to try 14 The STM32 Nucleo-32 board does not require any separate probe as it integrates the 15 ST-LINK debugger/programmer. 17 The STM32 Nucleo-32 board comes with the STM32 comprehensive free software 27 - STM32 microcontroller in 32-pin package featuring 64 Kbytes of Flash memory 29 - Extension resource: 31 - Arduino* Nano V3 connectivity 33 - On-board ST-LINK/V2-1 debugger/programmer with SWD connector: 35 - Flexible board power supply: 37 - USB VBUS or external source (3.3V, 5V, 7 - 12V) [all …]
|
/Zephyr-latest/boards/others/stm32f103_mini/doc/ |
D | index.rst | 6 The STM32F103_MINI board features an ARM Cortex-M3 based STM32F103RC MCU 22 - STM32 microcontroller in QFP64 package 24 - Flexible board power supply: 26 - USB VBUS or external source (3.3V, 5V, 7 - 12V) 27 - Power management access point 29 - Two LEDs: 31 - User LED (LD1), power LED (LD2) 33 - USB re-enumeration capability: 35 - Mass storage 39 - `STM32F103 reference manual`_ [all …]
|
/Zephyr-latest/boards/st/nucleo_l053r8/doc/ |
D | index.rst | 5 The STM32 Nucleo-64 development board with STM32L053R8 MCU, supports Arduino and ST morpho connecti… 15 The STM32 Nucleo board integrates the ST-LINK/V2-1 debugger and programmer. 26 - STM32 microcontroller in QFP64 package 27 - Two types of extension resources: 29 - Arduino* Uno V3 connectivity 30 - ST morpho extension pin headers for full access to all STM32 I/Os 32 - ARM* mbed* 33 - On-board ST-LINK/V2-1 debugger/programmer with SWD connector: 35 - Selection-mode switch to use the kit as a standalone ST-LINK/V2-1 37 - Flexible board power supply: [all …]
|