Skip to content

LPC55xxx SPI fixes #26371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 29, 2020
Merged

Conversation

agansari
Copy link
Collaborator

@agansari agansari commented Jun 23, 2020

  • reverts part of pull Eth Click #26213 that affects enc28j60
  • spi_mcux_flexcomm CS remains asserted low between transfers
  • GPIO CS on HS_SPI disabled by default
  • update hal_nxp to a version which allows NULL Rx buffers

Depends on: zephyrproject-rtos/hal_nxp#46

<&gpio1 26 0>;
/* The comment below will allow using GPIO CS,
rather than Flexcomm SS*/
/* cs-gpios = <&gpio0 20 0>,<&gpio1 1 0>,<&gpio1 12 0>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these GPIOs defined by the SoC for CS purposes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@galak Yes, these pins are mapped on SoC to be used as spi slave select. This means they are wired as CS for SPI devices on the evaluation boards.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Comment about GPIO CS needs to be fixed after #26269 was merged, e.g. /* cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>, ....*/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jfischer-phytec-iot i've updated the dts file

Copy link
Member

@MaureenHelm MaureenHelm left a comment

Choose a reason for hiding this comment

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

Please remove the commit west.yaml: update hal_nxp to pull 46

@agansari
Copy link
Collaborator Author

agansari commented Jul 9, 2020

Please remove the commit west.yaml: update hal_nxp to pull 46

@MaureenHelm cleaned up the commits

Copy link
Member

@MaureenHelm MaureenHelm left a comment

Choose a reason for hiding this comment

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

Need to rebase and fix the merge conflict

Copy link
Member

@MaureenHelm MaureenHelm left a comment

Choose a reason for hiding this comment

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

Please rebase and fix the merge conflict

@agansari agansari force-pushed the eth_click_undo branch 2 times, most recently from e17feef to 87c7687 Compare July 23, 2020 09:31
@agansari
Copy link
Collaborator Author

Please rebase and fix the merge conflict

@MaureenHelm done!

@MaureenHelm
Copy link
Member

Please rebase and fix the merge conflict

@MaureenHelm done!

One more time please. :(

agansari added 3 commits July 29, 2020 11:27
Reverts part of 3722c64 commit.
Reverts dummy buffer and uses NULL pointers.

Signed-off-by: Andrei Gansari <[email protected]>
Flexcomm's SPI SSEL (or CS) will be held until frame end.
FIFOWR[EOT] (kSPI_FrameAssert enum) is the register not set.

Signed-off-by: Andrei Gansari <[email protected]>
Disables GPIO CS in order to use Flexcomm's SS as chip select issues
were resolved.

Signed-off-by: Andrei Gansari <[email protected]>
@agansari
Copy link
Collaborator Author

Please rebase and fix the merge conflict

@MaureenHelm done!

One more time please. :(

Okay, I dropped west.yaml commit as a newer commit is already upstream on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants