Repository navigation
PEND: boards: ti: update spi pinctrl - #262
EirikRunshaugTI wants to merge 1 commit into
Conversation
Update CS pinmux for lp_em_cc2755r7_bg and lp_em_cc2755r10_bg. Signed-off-by: Eirik Runshaug <e-runshaug@ti.com>
PR Summary by Qodoboards: ti: move SPI0 chip-select pinmux from DIO7 to DIO19
AI Description
Merge Risk
|
Code Review by Qodo 1. Flash chip select on r7 board is no longer muxed
|
|
|
||
| spi0_cs_default: spi0_cs_default { | ||
| pinmux = <7 DIO7_GPIO7>; | ||
| pinmux = <19 DIO19_GPIO19>; |
There was a problem hiding this comment.
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
✅ Board tests passedCommit
All board logs (log.html and build.log) in one download: board-logs (kept 14 days) Jenkins build: |
vmyklebust
left a comment
There was a problem hiding this comment.
It would be nice to expand the commit title to be more specific, for example "boards: ti: update spi cs pinctrl node for cc27xx bg boards"
Update CS pinmux for lp_em_cc2755r7_bg and lp_em_cc2755r10_bg.