Skip to content

Commit

Permalink
boards: arm: thingy91x: pin fixups
Browse files Browse the repository at this point in the history
This patch sets the power-switch input pin correctly in
the npm13 configuration for Thingy91x.

Signed-off-by: Maximilian Deubel <maximilian.deubel@nordicsemi.no>
  • Loading branch information
maxd-nordic authored and cvinayak committed Feb 28, 2024
1 parent 3f23310 commit f10bbb5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# MCUBoot settings
CONFIG_BOOT_MAX_IMG_SECTORS=512

CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
CONFIG_MULTITHREADING=y
16 changes: 14 additions & 2 deletions boards/arm/thingy91x_nrf9151/thingy91x_nrf9151_common.dts
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,23 @@
gpio-controller;
#gpio-cells = <2>;
ngpios = <5>;
npm13_button: GPIO0 {
gpio-hog;
gpios = <0 GPIO_ACTIVE_HIGH>;
};
/* GPIO1 switches power to the short range RF front end */
ldsw_rf_fe_sr_en: GPIO1 {
gpio-hog;
gpios = <1 GPIO_ACTIVE_HIGH>;
};
power_switch: GPIO2 {
gpio-hog;
gpios = <2 GPIO_ACTIVE_HIGH>;
};
npm60_ready: GPIO4 {
gpio-hog;
gpios = <4 GPIO_ACTIVE_HIGH>;
};
};

regulators {
Expand Down Expand Up @@ -200,7 +212,7 @@
status = "disabled";
compatible = "bosch,bmm150";
reg = <0x10>;
//irq-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
drdy-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
};

Expand Down Expand Up @@ -246,7 +258,7 @@
status = "disabled";
reg = <2>;
spi-max-frequency = <DT_FREQ_M(10)>;
//irq-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
irq-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
};

};
Expand Down

0 comments on commit f10bbb5

Please sign in to comment.