Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:voltage (Results 1 – 25 of 225) sorted by relevance

123456789

/Zephyr-latest/include/zephyr/dt-bindings/gpio/
Dite-it8xxx2-gpio.h4 * SPDX-License-Identifier: Apache-2.0
10 * @name GPIO pin voltage flags
12 * The voltage flags are a Zephyr specific extension of the standard GPIO flags
13 * specified by the Linux GPIO binding for use with the ITE IT8xxx2 SoCs.
23 /** Set pin at the default voltage level */
25 /** Set pin voltage level at 1.8 V */
27 /** Set pin voltage level at 3.3 V */
29 /** Set pin voltage level at 5.0 V */
Dnuvoton-npcx-gpio.h4 * SPDX-License-Identifier: Apache-2.0
10 * @name GPIO pin voltage flags
12 * The voltage flags are a Zephyr specific extension of the standard GPIO flags
13 * specified by the Linux GPIO binding for use with the Nuvoton NPCX SoCs.
23 /** Set pin at the default voltage level (3.3V) */
25 /** Set pin voltage level at 1.8 V */
Dadi-max32-gpio.h2 * Copyright (c) 2023-2024 Analog Devices, Inc.
4 * SPDX-License-Identifier: Apache-2.0
10 * @brief MAX32-specific GPIO Flags
11 * @defgroup gpio_interface_max32 MAX32-specific GPIO Flags
17 * @name MAX32 GPIO drive flags
18 * @brief MAX32 GPIO drive flags
23 * - Bit 8: GPIO Supply Voltage Select
24 * Selects the voltage rail used for the pin.
28 * - Bit 9: GPIO Drive Strength Select,
34 * - Bit 10: Weak pull up selection, Weak Pullup to VDDIO (1MOhm)
[all …]
/Zephyr-latest/dts/bindings/pinctrl/
Dnuvoton,npcx-lvolctrl-conf.yaml2 # SPDX-License-Identifier: Apache-2.0
5 Nuvoton NPCX7 Low-Voltage level detection configuration map
6 between Nuvoton NPCX GPIO and low-voltage controller (LV_GPIO_CTL)
9 compatible: "nuvoton,npcx-lvolctrl-conf"
11 child-binding:
12 description: Child node to present the mapping between GPIO pad and its low-voltage support
15 type: phandle-array
17 description: list of configurations map between io and low-voltage controllers
Dite,it8xxx2-pinctrl.yaml2 # SPDX-License-Identifier: Apache-2.0
20 /* You can put this in places like a board-pinctrl.dtsi file in
24 /* include pre-defined pins and functions for the SoC used by the board */
25 #include <dt-bindings/pinctrl/it8xxx2-pinctrl.h>
31 gpio-voltage = "1p8";
35 gpio-voltage = "1v8";
40 bias-pull-up;
51 To link pin configurations with a device, use a pinctrl-N property for some
54 #include "board-pinctrl.dtsi"
57 pinctrl-0 = <&uart1_rx_pb0_default &uart1_tx_pb1_default>;
[all …]
Dadi,max32-pinctrl.yaml1 # Copyright (c) 2023-2024 Analog Devices, Inc.
2 # SPDX-License-Identifier: Apache-2.0
6 Based on pincfg-node.yaml binding.
8 Note: `bias-disable` are default pin configurations.
10 compatible: "adi,max32-pinctrl"
19 child-binding:
24 - name: pincfg-node.yaml
25 property-allowlist:
26 - bias-disable
27 - bias-pull-down
[all …]
/Zephyr-latest/dts/bindings/regulator/
Dregulator-gpio.yaml2 # SPDX-License-Identifier: Apache-2.0
5 GPIO-controlled voltage of regulators
8 vccq_sd0: regulator-vccq-sd0 {
9 compatible = "regulator-gpio";
11 regulator-name = "SD0 VccQ";
12 regulator-min-microvolt = <1800000>;
13 regulator-max-microvolt = <3300000>;
15 enable-gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
20 regulator-boot-on;
23 In the above example, three GPIO pins are used for controlling the regulator:
[all …]
Dregulator-fixed.yaml1 # Copyright 2019-2020 Peter Bigot Consulting, LLC
3 # SPDX-License-Identifier: Apache-2.0
5 description: Fixed voltage regulators
8 - name: base.yaml
9 - name: regulator.yaml
10 property-allowlist:
11 - regulator-name
12 - regulator-boot-on
13 - regulator-always-on
14 - regulator-min-microvolt
[all …]
/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:
36 - "low-active"
37 - "high-active"
[all …]
/Zephyr-latest/drivers/sensor/voltage_divider/
Dvoltage.c4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/drivers/gpio.h>
16 LOG_MODULE_REGISTER(voltage, CONFIG_SENSOR_LOG_LEVEL);
19 struct voltage_divider_dt_spec voltage; member
32 const struct voltage_config *config = dev->config; in fetch()
33 struct voltage_data *data = dev->data; in fetch()
37 return -ENOTSUP; in fetch()
41 k_sleep(data->earliest_sample); in fetch()
43 ret = adc_read(config->voltage.port.dev, &data->sequence); in fetch()
53 const struct voltage_config *config = dev->config; in get()
[all …]
/Zephyr-latest/boards/phytec/reel_board/
Dboard.c4 * SPDX-License-Identifier: Apache-2.0
10 /* Peripheral voltage ON/OFF GPIO */
15 volatile NRF_GPIO_Type *gpio = NRF_P1; in board_reel_board_init() local
18 * Workaround to enable peripheral voltage. in board_reel_board_init()
20 gpio->PIN_CNF[PERIPH_PON_PIN] = in board_reel_board_init()
24 gpio->OUTSET = BIT(PERIPH_PON_PIN); in board_reel_board_init()
/Zephyr-latest/dts/bindings/led_strip/
Dworldsemi,ws2812-gpio.yaml2 # SPDX-License-Identifier: Apache-2.0
5 Worldsemi WS2812 LED strip, GPIO binding
7 Driver bindings for bit-banging a WS2812 or compatible LED strip.
11 or can be provided by setting the delay-txx properties in the device
17 type of LEDs used, consult the data-sheet for the precise timings.
20 +-------+ +---
24 ---+ +-----------------+
27 +---------------+ +---
31 ---+ +---------+
38 clock-frequency = <64000000>;
[all …]
/Zephyr-latest/samples/shields/npm6001_ek/doc/
Dindex.rst1 .. zephyr:code-sample:: npm6001_ek
13 - Regulators (BUCK0/1/2/3 and LDO0/1)
14 - GPIO
15 - Watchdog
24 :alt: nRF52840DK + nPM6001-EK wiring example
27 nRF52840DK + nPM6001-EK wiring example
35 .. zephyr-app-commands::
36 :zephyr-app: samples/shields/npm6001_ek
52 .. code-block:: bash
63 .. code-block:: bash
[all …]
/Zephyr-latest/drivers/sensor/ti/ina23x/
DKconfig3 # SPDX-License-Identifier: Apache-2.0
33 Enable shunt voltage measurement for INA237.
35 This is the actual shunt voltage measured which is scaled within the
40 SENSOR_CHAN_ALL is selected, so only enable if the shunt voltage
46 depends on GPIO
47 …at_any_has_prop,$(DT_COMPAT_TI_INA230),alert-gpios) || $(dt_compat_any_has_prop,$(DT_COMPAT_TI_INA…
49 Set to enable trigger mode using gpio interrupt, where
/Zephyr-latest/dts/bindings/iio/afe/
Dvoltage-divider.yaml2 # SPDX-License-Identifier: Apache-2.0
5 Description for a voltage divider, with optional ability to measure
8 compatible: "voltage-divider"
13 io-channels:
18 output-ohms:
22 Resistance of the lower leg of the voltage divider
24 full-ohms:
27 Resistance of the full path through the voltage divider.
30 resistance-based sensor.
32 power-gpios:
[all …]
/Zephyr-latest/boards/nordic/nrf52840dongle/
Dboard.c4 * SPDX-License-Identifier: Apache-2.0
14 * (high voltage mode), GPIO output voltage is set to 1.8 volts by in board_nrf52840dongle_nrf52840_init()
16 * Increase GPIO voltage to 3.0 volts. in board_nrf52840dongle_nrf52840_init()
20 ((NRF_UICR->REGOUT0 & UICR_REGOUT0_VOUT_Msk) == in board_nrf52840dongle_nrf52840_init()
23 NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos; in board_nrf52840dongle_nrf52840_init()
24 while (NRF_NVMC->READY == NVMC_READY_READY_Busy) { in board_nrf52840dongle_nrf52840_init()
28 NRF_UICR->REGOUT0 = in board_nrf52840dongle_nrf52840_init()
29 (NRF_UICR->REGOUT0 & ~((uint32_t)UICR_REGOUT0_VOUT_Msk)) | in board_nrf52840dongle_nrf52840_init()
32 NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos; in board_nrf52840dongle_nrf52840_init()
33 while (NRF_NVMC->READY == NVMC_READY_READY_Busy) { in board_nrf52840dongle_nrf52840_init()
/Zephyr-latest/dts/bindings/gpio/
Dnuvoton,npcx-gpio.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: Nuvoton, NPCX-GPIO node
6 compatible: "nuvoton,npcx-gpio"
8 include: [gpio-controller.yaml, base.yaml]
17 description: index of gpio device
19 wui-maps:
23 Mapping table between Wake-Up Input (WUI) and 8 IOs belong to this device.
28 wui-maps = <&wui_io80 &wui_io81 &wui_io82 &wui_io83
31 lvol-maps:
34 Mapping table between Low-Voltage controllers and 8 IOs belong to
[all …]
Dadi,max14916-gpio.yaml3 # SPDX-License-Identifier: Apache-2.0
7 compatible: "adi,max14916-gpio"
10 "#gpio-cells":
17 drdy-gpios:
19 High-Side Open-Drain Output. READY is passive low when the internal
21 registers have adequate supply voltage.
22 type: phandle-array
23 fault-gpios:
27 type: phandle-array
28 sync-gpios:
[all …]
Dadi,max14906-gpio.yaml3 # SPDX-License-Identifier: Apache-2.0
7 compatible: "adi,max14906-gpio"
10 "#gpio-cells":
17 drdy-gpios:
19 High-Side Open-Drain Output. READY is passive low when the internal
21 registers have adequate supply voltage.
22 type: phandle-array
23 fault-gpios:
27 type: phandle-array
28 sync-gpios:
[all …]
Dnxp,pca_series.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: Base binding for PCA series I2C-based GPIO expander
6 include: [gpio-controller.yaml, i2c-device.yaml]
19 # (a) PCAL64xxA series support voltage level translation,
21 # (b) PCAL6534 has 34 GPIO pins in 4x 8-bit port and 1x
22 # 2-bit port. This driver only support 4x 8-bit port.
25 reset-gpios:
26 type: phandle-array
28 Reset GPIO pin (active-low)
32 int-gpios:
[all …]
/Zephyr-latest/dts/bindings/lora/
Dsemtech,sx126x-base.yaml3 # SPDX-License-Identifier: Apache-2.0
5 include: spi-device.yaml
8 reset-gpios:
9 type: phandle-array
11 GPIO connected to the modem's NRESET signal.
13 This signal is open-drain, active-low as interpreted by the
16 busy-gpios:
17 type: phandle-array
19 GPIO connected to the modem's BUSY signal.
21 antenna-enable-gpios:
[all …]
/Zephyr-latest/drivers/pinctrl/
Dpinctrl_ite_it8xxx2.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/drivers/gpio.h>
22 /* gpio port control register (byte mapping to pin) */
38 /* Input voltage selection */
40 /* Input voltage selection mask */
46 * KSI[7:0]/KSO[15:8]/KSO[7:0] port gpio control register
53 * KSO push-pull/open-drain bit of KSO[15:0] control register
67 struct pinctrl_it8xxx2_gpio gpio; member
74 const struct pinctrl_it8xxx2_config *pinctrl_config = pins->pinctrls->config; in pinctrl_it8xxx2_set()
75 const struct pinctrl_it8xxx2_gpio *gpio = &(pinctrl_config->gpio); in pinctrl_it8xxx2_set() local
[all …]
/Zephyr-latest/tests/drivers/build_all/fuel_gauge/
Dapp.overlay3 * SPDX-License-Identifier: Apache-2.0
6 #include <zephyr/dt-bindings/i2c/i2c.h>
10 #address-cells = <1>;
11 #size-cells = <1>;
13 test_gpio: gpio@deadbeef {
14 compatible = "vnd,gpio";
15 gpio-controller;
17 #gpio-cells = <0x2>;
22 #address-cells = <1>;
23 #size-cells = <0>;
[all …]
/Zephyr-latest/samples/shields/npm1300_ek/doc/
Dindex.rst1 .. zephyr:code-sample:: npm1300_ek
13 - Regulators (BUCK1/2, LDO1/2)
14 - GPIO
29 .. zephyr-app-commands::
30 :zephyr-app: samples/shields/npm1300_ek
45 .. code-block:: bash
53 .. code-block:: bash
60 .. code-block:: bash
62 # set BUCK2 voltage to exactly 2V
64 # obtain the actual BUCK1 configured voltage
[all …]
/Zephyr-latest/drivers/led_strip/
DKconfig.ws28124 # SPDX-License-Identifier: Apache-2.0
8 # https://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/
32 bool "WS2812 LED strip GPIO driver"
33 # Only an Cortex-M inline assembly implementation for the nRF91, nRF51,
41 controlling with GPIO. The GPIO driver does bit-banging with inline
49 DT_CHOSEN_LED_STRIP := zephyr,led-strip
54 default $(dt_node_int_prop_int,$(DT_CHOSEN_LED_STRIP_PATH),delay-t1h) \
55 if $(dt_node_has_prop,$(DT_CHOSEN_LED_STRIP_PATH),delay-t1h)
56 default $(div,$(mul,700,$(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency)),1000000000) \
57 if $(dt_node_has_prop,/cpus/cpu@0,clock-frequency)
[all …]

123456789