Skip to content

Commit f10bbb5

Browse files
maxd-nordiccvinayak
authored andcommitted
boards: arm: thingy91x: pin fixups
This patch sets the power-switch input pin correctly in the npm13 configuration for Thingy91x. Signed-off-by: Maximilian Deubel <maximilian.deubel@nordicsemi.no>
1 parent 3f23310 commit f10bbb5

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# MCUBoot settings
8+
CONFIG_BOOT_MAX_IMG_SECTORS=512
9+
10+
CONFIG_SPI=y
11+
CONFIG_SPI_NOR=y
12+
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
13+
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
14+
CONFIG_MULTITHREADING=y

boards/arm/thingy91x_nrf9151/thingy91x_nrf9151_common.dts

+14-2
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,23 @@
124124
gpio-controller;
125125
#gpio-cells = <2>;
126126
ngpios = <5>;
127+
npm13_button: GPIO0 {
128+
gpio-hog;
129+
gpios = <0 GPIO_ACTIVE_HIGH>;
130+
};
127131
/* GPIO1 switches power to the short range RF front end */
128132
ldsw_rf_fe_sr_en: GPIO1 {
129133
gpio-hog;
130134
gpios = <1 GPIO_ACTIVE_HIGH>;
131135
};
136+
power_switch: GPIO2 {
137+
gpio-hog;
138+
gpios = <2 GPIO_ACTIVE_HIGH>;
139+
};
140+
npm60_ready: GPIO4 {
141+
gpio-hog;
142+
gpios = <4 GPIO_ACTIVE_HIGH>;
143+
};
132144
};
133145

134146
regulators {
@@ -200,7 +212,7 @@
200212
status = "disabled";
201213
compatible = "bosch,bmm150";
202214
reg = <0x10>;
203-
//irq-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
215+
drdy-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
204216
};
205217
};
206218

@@ -246,7 +258,7 @@
246258
status = "disabled";
247259
reg = <2>;
248260
spi-max-frequency = <DT_FREQ_M(10)>;
249-
//irq-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
261+
irq-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
250262
};
251263

252264
};

0 commit comments

Comments
 (0)