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

Enable can1 interface at a nanopc-t6 board #8

Open
wants to merge 2 commits into
base: nanopi6-v6.1.y
Choose a base branch
from

Conversation

watatuki
Copy link

A nanopc-t6 board has 40-pin GPIO. The can1 interface is connected to pin 29-CAN_RX_M0 and 31-CAN_TX_M0. But it can't use in kernel 6.1.

It has three issue.
Issue 1. Did not port driver code from kernel 5.10 to kernel 6.1.
Issue 2. Did not enable device in dtb.
Issue 3. Did not enable driver by kernel configs.

This PR fix issue 1 and 2. The issue 3 shall fix by user configuration.

A rockchip_can.c did not test my self. Because nanopc-t6 board - rk5588 uses rockchip_canfd.c only. It could not test in this board.

Existing can driver code did not port to kernel 6.1 from kernel 5.10.
As a result it couldn't build if it's enabled using CONFIG_CANFD_ROCKCHIP.
This patch change some in-kernel interface to mach kernel 6.1.
A nanopc-t6 board has 40-pin GPIO.  The can1 interface is
connected to pin 29-CAN_RX_M0 and 31-CAN_TX_M0.
This patch enable can1 interface at nanopc-t6 board.
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.

1 participant