Skip to content

Commit 1476db9

Browse files
KAGA164joerchan
authored andcommitted
nfc: st25r3911b fix SPI configuration
This commit provides fix for CS pin configuration for ST25R3911B NFC Reader Signed-off-by: Kamil Gawor <[email protected]>
1 parent 1396ee5 commit 1476db9

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

lib/st25r3911b/st25r3911b_spi.c

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ static struct device *spi_dev;
3737
/* SPI CS pin configuration */
3838
static struct spi_cs_control spi_cs = {
3939
.gpio_pin = DT_SPI_DEV_CS_GPIOS_PIN(ST25R3911B_NODE),
40+
.gpio_dt_flags = DT_SPI_DEV_CS_GPIOS_FLAGS(ST25R3911B_NODE),
4041
.delay = T_NCS_SCLK
4142
};
4243

samples/nfc/tag_reader/nrf52840dk_nrf52840.overlay

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
sck-pin = <47>;
55
mosi-pin = <45>;
66
miso-pin = <46>;
7-
cs-gpios = <&gpio1 12 0>;
7+
cs-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
88

99
st25r3911b@0 {
1010
label = "ST25R3911B";

samples/nfc/tag_reader/nrf52dk_nrf52832.overlay

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
sck-pin = <25>;
55
mosi-pin = <23>;
66
miso-pin = <24>;
7-
cs-gpios = <&gpio0 22 0>;
7+
cs-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
88

99
st25r3911b@0 {
1010
label = "ST25R3911B";

samples/nfc/tag_reader/nrf5340pdk_nrf5340_cpuapp.overlay

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
sck-pin = <47>;
55
mosi-pin = <45>;
66
miso-pin = <46>;
7-
cs-gpios = <&gpio1 12 0>;
7+
cs-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
88

99
st25r3911b@0 {
1010
label = "ST25R3911B";

0 commit comments

Comments
 (0)