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
4 changes: 2 additions & 2 deletions boards/ti/lp_em_cc2755r10_bg/lp_em_cc2755r10_bg-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@
};

spi0_cs_sleep: spi0_cs_sleep {
pinmux = <7 DIO7_GPIO7>;
pinmux = <19 DIO19_GPIO19>;
input-enable;
input-schmitt-enable;
bias-disable;
};

spi0_flash_cs: spi0_flash_cs {
pinmux = <7 DIO7_GPIO7>;
pinmux = <19 DIO19_GPIO19>;
bias-pull-up;
};

Expand Down
6 changes: 3 additions & 3 deletions boards/ti/lp_em_cc2755r7_bg/lp_em_cc2755r7_bg-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
};

spi0_cs_default: spi0_cs_default {
pinmux = <7 DIO7_GPIO7>;
pinmux = <19 DIO19_GPIO19>;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Flash chip select on r7 board is no longer muxed 🐞 Bug ≡ Correctness

The r7 spi0_cs_default, spi0_cs_sleep and spi0_flash_cs pinctrl nodes now mux DIO19 instead of
DIO7, while lp_em_cc2755r7_bg.dts still sets cs-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>, so the SPI
driver toggles DIO7 while pinctrl configures DIO19. DIO19 (the I2S0 SD0 / ADC6 pad) is forced into
GPIO mode for every SPI0 pinctrl state, which silently breaks any application using I2S0 or ADC6
while SPI0 pinctrl is applied (the default on these boards), and DIO7 loses its
input-enable/bias-disable sleep configuration.
Agent Prompt
## Issue description
On the r7 and r10 boards, the SPI0 chip-select pinctrl states (`spi0_cs_default`, `spi0_cs_sleep`, `spi0_flash_cs`) now mux DIO19 instead of DIO7. In the r7 board, `lp_em_cc2755r7_bg.dts` still drives CS through `cs-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>`, so pinctrl and the GPIO driven as chip select point at different pins. DIO19 is also I2S0 SD0 (`i2s0_sd0_default`) and ADC channel 6 (`adc0_ch6`), and the existing dtsi comments say these functions must not be selected together, so I2S0 and ADC6 users are silently broken while SPI0 pinctrl is applied.

## Fix Focus Areas
- boards/ti/lp_em_cc2755r7_bg/lp_em_cc2755r7_bg-pinctrl.dtsi[70-111]
- boards/ti/lp_em_cc2755r7_bg/lp_em_cc2755r7_bg.dts[140-152]
- boards/ti/lp_em_cc2755r10_bg/lp_em_cc2755r10_bg-pinctrl.dtsi[97-108]
- boards/ti/lp_em_cc2755r10_bg/lp_em_cc2755r10_bg-pinctrl.dtsi[170-175]
- boards/ti/lp_em_cc2755r10_bg/lp_em_cc2755r10_bg-pinctrl.dtsi[242-262]

## Recommended Fix
Confirm the physical flash CS pin on the r7 schematic.
- If the CS is on DIO19, change `cs-gpios` in the r7 dts to `<&gpio0 19 GPIO_ACTIVE_LOW>` (as the r10 and p10/p20 boards already do). Document in the board pinctrl comments and board doc that I2S0 SD0 and ADC6 are unavailable while SPI0 is enabled, and make sure I2S test overlays do not enable SPI0 at the same time.
- If the CS is on DIO7, revert the three pinmux entries in the r7 pinctrl to `<7 DIO7_GPIO7>`. If the CS can be on a different pad, move it there instead.

Either way, pinctrl and cs-gpios must reference the same pin, add a comment explaining the choice so future I2S or ADC users do not reintroduce the conflict, and state in the PR description which hardware fact drove the change.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a real issue?

input-enable;
input-schmitt-enable;
bias-disable;
Expand Down Expand Up @@ -98,14 +98,14 @@
};

spi0_cs_sleep: spi0_cs_sleep {
pinmux = <7 DIO7_GPIO7>;
pinmux = <19 DIO19_GPIO19>;
input-enable;
input-schmitt-enable;
bias-disable;
};

spi0_flash_cs: spi0_flash_cs {
pinmux = <7 DIO7_GPIO7>;
pinmux = <19 DIO19_GPIO19>;
bias-pull-up;
};

Expand Down