revyos / th1520-linux-kernel

TH1520 linux kernel
Other
11 stars 6 forks source link

No pinctrl driver. #5

Open esmil opened 9 months ago

esmil commented 9 months ago

Hi Revy.

I noticed there is no pinctrl driver available in your recent trees and none have been posted on the mailing list, so I wrote one:https://github.com/esmil/linux/commits/th1520

Can I maybe convince you to give it a test?

RevySR commented 9 months ago

~@yuzibo Please help with testing it.~

@nekorouter Please help with testing it

RevySR commented 8 months ago

It seems not work.

esmil commented 8 months ago

I will need a bit more information than that. I've pushed a few versions since creating this issue. The latest version changed the function = "<number>"; to function = "<gpio,uart, etc.>";, so it will fail if you didn't update the device trees to match.

RevySR commented 8 months ago

https://github.com/revyos/th1520-linux-kernel/tree/th1520-lts-wip

6d056139af90bf5ed0f63a5d9a204cb578c6ecef..f7792a3b375db005b772e2d5b7fa1b1789b249c3

Use this branch, init start failed.

esmil commented 8 months ago

Yeah, that's an older version of the driver. Try setting CONFIG_PINCTRL_TH1520=y so the uart driver for the boot console can get its pins.

RevySR commented 8 months ago

https://github.com/revyos/th1520-linux-kernel/commits/th1520-lts-wip/

Using the latest version of the patch, but the second ethernet port still doesn't work.

esmil commented 8 months ago

I don't immediately see what the problem is. It works on my th1520 branch. Maybe you could try that branch to see if it's a device tree problem or a config problem.

RevySR commented 8 months ago

https://github.com/revyos/th1520-linux-kernel/tree/th1520-master

it works for dual ethernet.

RevySR commented 8 months ago

https://github.com/revyos/th1520-linux-kernel/tree/th1520-lts-wip-new

backport from th1520 branch, it doesn't work.

RevySR commented 8 months ago

https://github.com/revyos/th1520-linux-kernel/tree/th1520-lts

Now, it works