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

Where to modify the rpi5 kernel dts to enable the extra UART in pinout? #53

Open
tonyho opened this issue Dec 12, 2024 · 3 comments
Open

Comments

@tonyho
Copy link

tonyho commented Dec 12, 2024

I see there's a cm2712-rpi-5-b.dtb file but I cannot find the corresponding dts file using find -name cm2712-rpi-5-b.dts*.

I want to expose a TTL in pinout from kernel to be used for my Bluetooth controller, for example the GPIO4 and GPIO5 as UART2 RX/TX. But don't know how to enable it.

As in other boards like the amlogic and rockchip based ones, it can be archived by modify the dts file.

Any tips?

@rsglobal
Copy link
Contributor

There's no rpi-5 support at the moment. However, all the dts files are located in the kernel tree.

@tonyho
Copy link
Author

tonyho commented Dec 12, 2024

There's no rpi-5 support at the moment. However, all the dts files are located in the kernel tree.

My mistake, I missup the rpi4 and rpi5.

Which one is used for rpi4b?

$find -name bcm2711-rpi-4-b.dts
./aosptree/glodroid/kernel/broadcom/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dts
./aosptree/glodroid/kernel/broadcom/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
./aosptree/glodroid/bootloader/u-boot/dts/upstream/src/arm64/broadcom/bcm2711-rpi-4-b.dts
./aosptree/glodroid/bootloader/u-boot/dts/upstream/src/arm/broadcom/bcm2711-rpi-4-b.dts
./aosptree/glodroid/bootloader/u-boot/arch/arm/dts/bcm2711-rpi-4-b.dts

And any tips to add the UART? Thanks.

@tonyho
Copy link
Author

tonyho commented Dec 12, 2024

I thinks I found it: ./aosptree/glodroid/kernel/broadcom/arch/arm/boot/dts/bcm2711-rpi-4-b.dts

@tonyho tonyho closed this as completed Dec 12, 2024
@tonyho tonyho reopened this Dec 12, 2024
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

No branches or pull requests

2 participants