Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions drivers/i2s/i2s_renesas_ra_ssie.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,12 @@ __maybe_unused static void ssi_rt_isr(void *p_args)
{
const struct device *dev = (struct device *)p_args;
struct renesas_ra_ssie_data *dev_data = (struct renesas_ra_ssie_data *)dev->data;
R_SSI0_Type *p_ssi_reg = dev_data->fsp_ctrl.p_reg;

if (p_ssi_reg->SSIFSR_b.TDE && dev_data->active_dir == I2S_DIR_TX) {
if (dev_data->active_dir == I2S_DIR_TX) {
ssi_txi_isr();
}

if (p_ssi_reg->SSIFSR_b.RDF && dev_data->active_dir == I2S_DIR_RX) {
if (dev_data->active_dir == I2S_DIR_RX) {
ssi_rxi_isr();
}
}
Expand Down
31 changes: 11 additions & 20 deletions drivers/spi/spi_b_renesas_ra8.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,7 @@ static int ra_spi_b_configure(const struct device *dev, const struct spi_config

static bool ra_spi_b_transfer_ongoing(struct ra_spi_data *data)
{
#if defined(CONFIG_SPI_B_INTERRUPT)
return (spi_context_tx_on(&data->ctx) || spi_context_rx_on(&data->ctx));
#else
if (spi_context_total_tx_len(&data->ctx) < spi_context_total_rx_len(&data->ctx)) {
return (spi_context_tx_on(&data->ctx) || spi_context_rx_on(&data->ctx));
} else {
return (spi_context_tx_on(&data->ctx) && spi_context_rx_on(&data->ctx));
}
#endif
}

#ifndef CONFIG_SPI_B_INTERRUPT
Expand Down Expand Up @@ -241,26 +233,28 @@ static int ra_spi_b_transceive_master(struct ra_spi_data *data)

while (!p_spi_reg->SPSR_b.SPTEF) {
}

p_spi_reg->SPDR = tx;

/* Clear Transmit Empty flag */
p_spi_reg->SPSRC = R_SPI_B0_SPSRC_SPTEFC_Msk;
spi_context_update_tx(&data->ctx, data->dfs, 1);

/* Rx receive */
if (spi_context_rx_on(&data->ctx)) {
if (p_spi_reg->SPCR_b.TXMD == 0x0) {
while (!p_spi_reg->SPSR_b.SPRF) {
}
rx = p_spi_reg->SPDR;
/* Clear Receive Full flag */
p_spi_reg->SPSRC = R_SPI_B0_SPSRC_SPRFC_Msk;
if (data->dfs > 2) {
UNALIGNED_PUT(rx, (uint32_t *)data->ctx.rx_buf);
} else if (data->dfs > 1) {
UNALIGNED_PUT(rx, (uint16_t *)data->ctx.rx_buf);
} else {
UNALIGNED_PUT(rx, (uint8_t *)data->ctx.rx_buf);

/* Rx receive */
if (spi_context_rx_buf_on(&data->ctx)) {
if (data->dfs > 2) {
UNALIGNED_PUT(rx, (uint32_t *)data->ctx.rx_buf);
} else if (data->dfs > 1) {
UNALIGNED_PUT(rx, (uint16_t *)data->ctx.rx_buf);
} else {
UNALIGNED_PUT(rx, (uint8_t *)data->ctx.rx_buf);
}
}
spi_context_update_rx(&data->ctx, data->dfs, 1);
}
Expand Down Expand Up @@ -349,9 +343,6 @@ static int transceive(const struct device *dev, const struct spi_config *config,

#else
p_spi_reg->SPCR_b.TXMD = 0x0; /* tx - rx*/
if (!spi_context_tx_on(&data->ctx)) {
p_spi_reg->SPCR_b.TXMD = 0x2; /* rx only */
}
if (!spi_context_rx_on(&data->ctx)) {
p_spi_reg->SPCR_b.TXMD = 0x1; /* tx only */
}
Expand Down
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra2a1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm0;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra4c1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm4;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra4e2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra4l1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra4m1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra4m2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra4m3.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra4w1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra6e2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra6m1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra6m2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra6m3.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm0;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra6m4.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm0;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra6m5.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm0;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra8d1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm7;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/ek_ra8m1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm7;
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/fpb_ra4e1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/fpb_ra6e1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/fpb_ra6e2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm1;
};
};
11 changes: 11 additions & 0 deletions tests/drivers/pwm/pwm_api/boards/mck_ra8t1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
aliases {
pwm-test = &pwm2;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
#include <zephyr/dt-bindings/pwm/pwm.h>
#include <zephyr/dt-bindings/pwm/ra_pwm.h>

/ {
aliases {
pwm-test = &pwm8;
};
};

&pinctrl {
pwm8_default: pwm8_default {
group1 {
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ manifest:
- hal
- name: hal_renesas
path: modules/hal/renesas
revision: bbfc2e605ddd5838924565c76320fb39a66cff89
revision: pull/160/head
groups:
- hal
- name: hal_rpi_pico
Expand Down
Loading