Home
last modified time | relevance | path

Searched +full:device +full:- +full:wake +full:- +full:gpios (Results 1 – 25 of 42) sorted by relevance

12

/Zephyr-Core-3.5.0/dts/bindings/can/
Dti,tcan4x5x.yaml2 # SPDX-License-Identifier: Apache-2.0
5 Texas Instruments TCAN4x5x SPI CAN-FD controller.
12 spi-max-frequency = <18000000>;
13 clock-frequency = <40000000>;
14 device-state-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
15 device-wake-gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
16 reset-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
17 int-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
18 bosch,mram-cfg = <0x0 15 15 5 5 0 10 10>;
19 sample-point = <875>;
[all …]
/Zephyr-Core-3.5.0/dts/bindings/bluetooth/
Dinfineon,cyw43xxx-bt-hci.yaml4 # SPDX-License-Identifier: Apache-2.0
10 Example of enabling CYW43xxx device:
14 current-speed = <115200>;
16 /* HCI-UART pins*/
17 pinctrl-0 = <&p3_1_scb2_uart_tx &p3_0_scb2_uart_rx
19 pinctrl-names = "default";
21 bt-hci {
23 compatible = "infineon,cyw43xxx-bt-hci";
24 bt-reg-on-gpios = <&gpio_prt3 4 (GPIO_ACTIVE_HIGH)>;
26 fw-download-speed = <3000000>;
[all …]
/Zephyr-Core-3.5.0/dts/bindings/sensor/
Dams,ccs811.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [sensor-device.yaml, i2c-device.yaml]
11 wake-gpios:
12 type: phandle-array
15 sensor receives this as an active-low signal.
17 reset-gpios:
18 type: phandle-array
21 reset. The sensor receives this as an active-low signal.
23 irq-gpios:
24 type: phandle-array
[all …]
Dadi,adxl362.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: ADXL362 3-axis SPI accelerometer
8 include: [sensor-device.yaml, spi-device.yaml]
11 int1-gpios:
12 type: phandle-array
18 wakeup-mode:
27 Enter Wake-Up mode when inactivity is detected,
/Zephyr-Core-3.5.0/dts/bindings/modem/
Dswir,hl7800.yaml4 # SPDX-License-Identifier: Apache-2.0
11 include: uart-device.yaml
14 mdm-wake-gpios:
15 type: phandle-array
18 mdm-reset-gpios:
19 type: phandle-array
22 mdm-pwr-on-gpios:
23 type: phandle-array
26 mdm-fast-shutd-gpios:
27 type: phandle-array
[all …]
/Zephyr-Core-3.5.0/dts/bindings/input/
Dfocaltech,ft5336.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: i2c-device.yaml
11 int-gpios:
12 type: phandle-array
16 reset-gpios:
17 type: phandle-array
20 to wake it from hibernation mode. Active low.
/Zephyr-Core-3.5.0/boards/shields/tcan4550evm/
Dtcan4550evm.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/gpio/gpio.h>
17 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
22 /* reduced spi-max-frequency to accommodate flywire connections */
23 spi-max-frequency = <2000000>;
25 clock-frequency = <40000000>;
26 device-state-gpios = <&arduino_header 12 GPIO_ACTIVE_HIGH>; /* D6 */
27 device-wake-gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>; /* D7 */
28 reset-gpios = <&arduino_header 14 GPIO_ACTIVE_HIGH>; /* D8 */
29 int-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
[all …]
/Zephyr-Core-3.5.0/dts/bindings/spi/
Dnordic,nrf-spi-common.yaml2 # SPDX-License-Identifier: Apache-2.0
6 include: [spi-controller.yaml, pinctrl-device.yaml]
15 pinctrl-0:
18 max-frequency:
25 overrun-character:
33 easydma-maxcnt-bits:
40 wake-gpios:
41 type: phandle-array
43 Optional bi-directional line that allows SPI master to indicate to SPI
46 transfer when it is actually needed, and stay in any desired low-power
[all …]
/Zephyr-Core-3.5.0/dts/bindings/serial/
Dmicrochip,xec-uart.yaml3 compatible: "microchip,xec-uart"
5 include: [uart-controller.yaml, pinctrl-device.yaml]
17 description: logical device number
29 pinctrl-0:
32 pinctrl-names:
35 wakerx-gpios:
36 type: phandle-array
37 description: GPIO configured as UART RX wake source
/Zephyr-Core-3.5.0/dts/bindings/ps2/
Dmicrochip,xec-ps2.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "microchip,xec-ps2"
8 include: [ps2.yaml, pinctrl-device.yaml]
29 wakerx-gpios:
30 type: phandle-array
31 description: GPIO configured as PS2 DAT wake source
/Zephyr-Core-3.5.0/samples/boards/esp32/deep_sleep/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
20 #error "Unsupported: wakeup-button alias is not defined"
22 static const struct gpio_dt_spec wakeup_button = GPIO_DT_SPEC_GET(DT_ALIAS(wakeup_button), gpios);
35 int pin = __builtin_ffsll(wakeup_pin_mask) - 1; in main()
37 printk("Wake up from GPIO %d\n", pin); in main()
39 printk("Wake up from GPIO\n"); in main()
50 int pin = __builtin_ffsll(wakeup_pin_mask) - 1; in main()
52 printk("Wake up from GPIO %d\n", pin); in main()
54 printk("Wake up from GPIO\n"); in main()
60 printk("Wake up from timer.\n"); in main()
[all …]
/Zephyr-Core-3.5.0/samples/boards/stm32/power_mgmt/standby_shutdown/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/device.h>
36 GPIO_DT_SPEC_GET_OR(SW0_NODE, gpios, {0});
39 GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios);
45 /* Configure wake-up features */ in config_wakeup_features()
46 /* WKUP2(PC13) only , - active low, pull-up */ in config_wakeup_features()
47 /* Set pull-ups for standby modes */ in config_wakeup_features()
57 void button_pressed(const struct device *dev, struct gpio_callback *cb, in button_pressed()
72 printk("Release the user button to wake-up\n\n"); in thread_poweroff_standby_mode()
116 printk("Error: button device %s is not ready\n", in main()
[all …]
/Zephyr-Core-3.5.0/samples/boards/esp32/light_sleep/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/pm/device.h>
28 GPIO_DT_SPEC_GET_OR(SW0_NODE, gpios, {0});
33 printk("Error: button device %s is not ready\n", button.port->name); in main()
43 /* Wake up in 2 seconds, or when button is pressed */ in main()
65 * pre-defined power state. Light sleep is used here because there is enough in main()
66 * time to consider it, energy-wise, worthy. in main()
75 /* Determine wake up reason */ in main()
91 wakeup_reason, t_after_ms, (t_after_ms - t_before_ms)); in main()
/Zephyr-Core-3.5.0/soc/arm/nuvoton_npcx/common/
Dpower.c4 * SPDX-License-Identifier: Apache-2.0
17 * +--------------------------------------------------------------------------+
19 * |--------------------------------------------------------------------------|
24 * | Stand-By | Off | Off | Off | Off | Off | Off | On |
25 * +--------------------------------------------------------------------------+
27 * LFCLK - Low-Frequency Clock. Its frequency is fixed to 32kHz.
28 * HFCLK - High-Frequency (PLL) Clock. Its frequency is configured to OFMCLK.
32 * - A delay of 'Instant' wake-up from 'Deep Sleep' is 20 us.
33 * - A delay of 'Standard' wake-up from 'Deep Sleep' is 3.43 ms.
34 * - Max residency time in Deep Sleep for 'Instant' wake-up is 200 ms
[all …]
/Zephyr-Core-3.5.0/boards/arm/efr32_thunderboard/
Dboard.c4 * SPDX-License-Identifier: Apache-2.0
28 GPIO_DT_SPEC_GET(DT_NODELABEL(wake_up_trigger), gpios); in thunderboard_init()
32 LOG_ERR("Wake-up GPIO device was not found!\n"); in thunderboard_init()
33 return -ENODEV; in thunderboard_init()
/Zephyr-Core-3.5.0/dts/bindings/gpio/
Dnxp,s32-gpio.yaml1 # Copyright 2022-2023 NXP
2 # SPDX-License-Identifier: Apache-2.0
17 #include <zephyr/dt-bindings/gpio/nxp-s32-gpio.h>
19 &device {
20 gpios = <&gpioa 9 (NXP_S32_GPIO_INT_WKPU | GPIO_ACTIVE_HIGH)>;
25 priorities according to application-specific requirements. This is owing to
29 designated for the data-ready interrupt originating from a sensor. This
35 despite being named WKPU, the flag is not meant to configure GPIOs as wake-up
38 compatible: "nxp,s32-gpio"
40 include: [gpio-controller.yaml, base.yaml]
[all …]
/Zephyr-Core-3.5.0/boards/arm/efr32xg24_dk2601b/
Dboard.c4 * SPDX-License-Identifier: Apache-2.0
28 GPIO_DT_SPEC_GET(DT_NODELABEL(wake_up_trigger), gpios); in efr32xg24_dk2601b_init()
32 LOG_ERR("Wake-up GPIO device was not found!\n"); in efr32xg24_dk2601b_init()
33 return -ENODEV; in efr32xg24_dk2601b_init()
/Zephyr-Core-3.5.0/samples/boards/nrf/system_off/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/device.h>
15 #include <zephyr/pm/device.h>
19 static const struct gpio_dt_spec sw0 = GPIO_DT_SPEC_GET(DT_ALIAS(sw0), gpios);
24 const struct device *const cons = DEVICE_DT_GET(DT_CHOSEN(zephyr_console)); in main()
27 printf("%s: device not ready.\n", cons->name); in main()
48 /* configure sw0 as input, interrupt as level active to allow wake-up */ in main()
/Zephyr-Core-3.5.0/drivers/serial/
Duart_ite_it8xxx2.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/device.h>
14 #include <zephyr/pm/device.h>
30 const struct device *uart_dev;
47 void uart1_wui_isr(const struct device *gpio, struct gpio_callback *cb, in uart1_wui_isr()
51 (void)gpio_pin_interrupt_configure(gpio, (find_msb_set(pins) - 1), in uart1_wui_isr()
54 /* Refresh console expired time if got UART Rx wake-up event */ in uart1_wui_isr()
63 k_work_reschedule(&uart_console_data->rx_refresh_timeout_work, delay); in uart1_wui_isr()
67 void uart2_wui_isr(const struct device *gpio, struct gpio_callback *cb, in uart2_wui_isr()
71 (void)gpio_pin_interrupt_configure(gpio, (find_msb_set(pins) - 1), in uart2_wui_isr()
[all …]
/Zephyr-Core-3.5.0/drivers/ps2/
Dps2_mchp_xec.c5 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/device.h>
20 #include <zephyr/pm/device.h>
60 static inline void ps2_xec_slp_en_clr(const struct device *dev) in ps2_xec_slp_en_clr()
62 const struct ps2_xec_config * const cfg = dev->config; in ps2_xec_slp_en_clr()
64 z_mchp_xec_pcr_periph_sleep(cfg->pcr_idx, cfg->pcr_pos, 0); in ps2_xec_slp_en_clr()
82 static inline void ps2_xec_slp_en_clr(const struct device *dev) in ps2_xec_slp_en_clr()
84 const struct ps2_xec_config * const cfg = dev->config; in ps2_xec_slp_en_clr()
86 if (cfg->pcr_pos == MCHP_PCR3_PS2_0_POS) { in ps2_xec_slp_en_clr()
109 static int ps2_xec_configure(const struct device *dev, in ps2_xec_configure()
[all …]
/Zephyr-Core-3.5.0/samples/boards/mimxrt1060_evk/system_off/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/device.h>
31 static const struct gpio_dt_spec button = GPIO_DT_SPEC_GET_OR(SW0_NODE, gpios, { 0 });
32 static const struct device *const snvs_rtc_dev = DEVICE_DT_GET(SNVS_RTC_NODE);
39 printk("Error: button device %s is not ready\n", button.port->name); in main()
44 /* No external pull-up on the user button, so configure one here */ in main()
48 printk("Error %d: failed to configure %s pin %d\n", ret, button.port->name, in main()
56 button.port->name, button.pin); in main()
60 printk("Busy-wait %u s\n", BUSY_WAIT_S); in main()
83 printk("RTC Alarm set for %llu seconds to wake from soft-off.\n", in main()
[all …]
/Zephyr-Core-3.5.0/samples/boards/mec15xxevb_assy6853/power_management/src/
Dpower_mgmt.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/device.h>
56 /* Instrumentation to measure latency and track entry exit via gpios
59 * JP99 7-8 closed
60 * JP99 10-11 closed
61 * JP75 29-30 closed
62 * JP75 32-33 closed
101 GPIO_CTRL_REGS->CTRL_0012 = 0x240ul; in notify_pm_state_entry()
105 GPIO_CTRL_REGS->CTRL_0013 = 0x240ul; in notify_pm_state_entry()
122 GPIO_CTRL_REGS->CTRL_0012 = 0x10240ul; in notify_pm_state_exit()
[all …]
/Zephyr-Core-3.5.0/drivers/input/
Dinput_gpio_keys.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/device.h>
37 const struct device *dev;
50 const struct device *dev = pin_data->dev; in gpio_keys_change_deferred()
51 int key_index = pin_data - (struct gpio_keys_pin_data *)dev->data; in gpio_keys_change_deferred()
52 const struct gpio_keys_config *cfg = dev->config; in gpio_keys_change_deferred()
53 const struct gpio_keys_pin_config *pin_cfg = &cfg->pin_cfg[key_index]; in gpio_keys_change_deferred()
55 const int new_pressed = gpio_pin_get(pin_cfg->spec.port, pin_cfg->spec.pin); in gpio_keys_change_deferred()
57 LOG_DBG("gpio_change_deferred %s pin_state=%d, new_pressed=%d, key_index=%d", dev->name, in gpio_keys_change_deferred()
58 pin_data->cb_data.pin_state, new_pressed, key_index); in gpio_keys_change_deferred()
[all …]
/Zephyr-Core-3.5.0/soc/arm/nordic_nrf/nrf53/
DKconfig.soc4 # SPDX-License-Identifier: Apache-2.0
55 bool "Pre-tick workaround for nRF5340 anomaly 165"
61 Indicates that the pre-tick workaround for the anomaly 165 that affects
62 the nRF5340 SoC should be applied. The workaround applies to wake ups caused
113 Enable the low-frequency oscillator (LFXO) functionality on XL1 and
117 GPIOs.
149 during the device trimming in the SystemInit() function.
184 Instruction cache only (I-Cache) is available in nRF5340
188 # TF-M nRF53 platform enables the cache unconditionally.
201 module-str = Synchronized RTC
/Zephyr-Core-3.5.0/drivers/gpio/
Dgpio_ite_it8xxx2.c4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/device.h>
11 #include <zephyr/dt-bindings/gpio/ite-it8xxx2-gpio.h>
12 #include <zephyr/dt-bindings/interrupt-controller/ite-intc.h>
57 ((struct gpio_ite_data *)(dev)->data)
60 ((const struct gpio_ite_cfg *)(dev)->config)
63 * Convert wake-up controller (WUC) group to the corresponding wake-up edge
73 * From WUESR1-WUESR4, the address increases by ones. From WUESR5 on in wuesr()
77 (volatile uint8_t *)(IT8XXX2_WUC_WUESR1 + grp-1) : in wuesr()
78 (volatile uint8_t *)(IT8XXX2_WUC_WUESR5 + 4*(grp-5)); in wuesr()
[all …]

12