Commit 38e9d2cd authored by Aksel Skauge Mellbye's avatar Aksel Skauge Mellbye Committed by Benjamin Cabé
Browse files

boards: silabs: Remove nonfunctional wakeup trigger



Remove wakeup trigger from Series 2 boards. The implementation
seems to configure a GPIO to be driven low on boot, which has
nothing to do with wakeup. In order to actually configure a
wakeup GPIO, the GPIO_INT_WAKEUP flag would need to be used when
registering an interrupt on the pin. However, this should not
be the responsibility of the board. It is an application
concern, so remove it from the boards.

Signed-off-by: default avatarAksel Skauge Mellbye <aksel.mellbye@silabs.com>
parent d3f327dc
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
# Copyright (c) 2021 Sateesh Kotapati
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_UART_GECKO)
  zephyr_library()
  zephyr_library_sources(board.c)
endif()
+0 −8
Original line number Diff line number Diff line
# EFR32 Thunderboard-style boards

# Copyright (c) 2022, Silicon Labs
# SPDX-License-Identifier: Apache-2.0

module = BOARD_SLTB010A
module-str = Board Control
source "subsys/logging/Kconfig.template.log_config"
+0 −34
Original line number Diff line number Diff line
/*
 * Copyright (c) 2021 Sateesh Kotapati
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <zephyr/drivers/gpio.h>
#include <zephyr/init.h>
#include <zephyr/logging/log.h>

LOG_MODULE_REGISTER(thunderboard, CONFIG_BOARD_SLTB010A_LOG_LEVEL);

static int thunderboard_init(void)
{
	int ret;

	static struct gpio_dt_spec wake_up_gpio_dev =
		GPIO_DT_SPEC_GET(DT_NODELABEL(wake_up_trigger), gpios);


	if (!gpio_is_ready_dt(&wake_up_gpio_dev)) {
		LOG_ERR("Wake-up GPIO device was not found!\n");
		return -ENODEV;
	}
	ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE);
	if (ret < 0) {
		return ret;
	}

	return 0;
}

/* needs to be done after GPIO driver init */
SYS_INIT(thunderboard_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
+0 −15
Original line number Diff line number Diff line
# Copyright (c) 2022, Antmicro
# SPDX-License-Identifier: Apache-2.0

description: GPIO Wake Up Trigger for EFR32BG22/EFR32BG27

compatible: "silabs,gecko-wake-up-trigger"

include: base.yaml

properties:
  gpios:
    type: phandle-array
    required: true
    description: |
      GPIO used as wake up trigger from EM4 sleep
+0 −5
Original line number Diff line number Diff line
@@ -42,11 +42,6 @@
		gpio-map-pass-thru = <0x0 GPIO_DT_FLAGS_MASK>;
	};

	wake_up_trigger: gpio-wake-up  {
		compatible = "silabs,gecko-wake-up-trigger";
		gpios = <&gpioa 5 GPIO_ACTIVE_LOW>;
	};

	/* GPIOs that power up different sensors */
	sw_sensor_enable: gpio_switch_0 {
		compatible = "regulator-fixed";
Loading