Skip to content
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

Cherry picks for GRTC clock output #1

Merged
merged 3 commits into from
Dec 18, 2024

Conversation

piotrkoziar
Copy link

@piotrkoziar piotrkoziar commented Dec 16, 2024

You can get clock output working with this change.
However, you must add this:

&grtc {
	pinctrl-0 = <&grtc_default>;
	pinctrl-1 = <&grtc_sleep>;
	pinctrl-names = "default", "sleep";
	clkout-fast-frequency = <8000000>;
	clkout-32k;
};

to your device tree (sample overlay).

See zephyrproject-rtos/zephyr#82788 for reference.

Add support for GRTC clock output pins.

Signed-off-by: Adam Kondraciuk <[email protected]>
Add support for GRTC clock output pins.

Signed-off-by: Adam Kondraciuk <[email protected]>
Add support for GRTC clock output pins.

Signed-off-by: Adam Kondraciuk <[email protected]>
@lmaciejonczyk lmaciejonczyk merged commit d9ea076 into lmaciejonczyk:hot_potato Dec 18, 2024
3 of 4 checks passed
lmaciejonczyk pushed a commit that referenced this pull request Dec 18, 2024
With introduction of Raw modes, nRF70 driver now advertises get_c
onfig OP, but doesn't implement all types.

This causes problems two-fold with checksum calculations:
  1. The "config" isn't uninitialized, so, every call returns differnet
     values. So, for UDP header checksum would be done and
     pkt->chksumdone would be set. But for IPv4 header checksum might be
     skipped.
  2. Even if we initialize to zero, then network stack gets all zeros
     and calculates checksum by itself rendering offload moot.

There is another problem in #1, as there is only single flag for pkt for
all checksum, nRF70 driver sees this and tells UMAC to skip checksum for
the entire packet. The design isn't coherent, and should be converted to
communicate per-type checksum status (some are filled by network stack
and some HW).

But as nRF70 support all checksum offloads, advertise all types for both
RX and TX.

Upstream PR #: 80882

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit 3017425)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants