arch/mips/jz4780: Add USB host and display controller drivers#19505
Open
ldube wants to merge 1 commit into
Open
arch/mips/jz4780: Add USB host and display controller drivers#19505ldube wants to merge 1 commit into
ldube wants to merge 1 commit into
Conversation
Add EHCI and OHCI USB host drivers for the Ingenic JZ4780 SoC, derived from the existing sama5 implementation. Additionally, introduce the display controller driver using code ported from FreeBSD under its original license terms. Note that this driver lacks EDID support and is currently hardcoded to 1360x768. Update the linker script memory layout to utilize the full 256 MiB RAM, excluding the 8 MiB reserved at the top of memory for the framebuffer. Signed-off-by: Lwazi Dube <lwazeh@gmail.com>
jerpelea
approved these changes
Jul 23, 2026
| @@ -1,5 +1,5 @@ | |||
| /**************************************************************************** | |||
| * boards/mips/jz4780/ci20/scripts/mips-debug.ld | |||
| * boards/mips/jz4780/ci20/scripts/mips-ci.ld | |||
Contributor
There was a problem hiding this comment.
why change the comment without changing file name?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add EHCI and OHCI USB host drivers for the Ingenic JZ4780 SoC, derived from the existing sama5 implementation.
Additionally, introduce the display controller driver using code ported from FreeBSD under its original license terms. Note that this driver lacks EDID support and is currently hardcoded to 1360x768.
Update the linker script memory layout to utilize the full 256 MiB RAM, excluding the 8 MiB reserved at the top of memory for the framebuffer.
Testing
Used MIPS CI20 board.
Connected mouse directly to the CI20 port to force OHCI use.
Used tc command to verify that mouse works.
nsh> tc
tc_main: nsamples: 0
tc_main: Opening /dev/mouse0
Sample :
buttons : 00
x : 677
y : 381
Sample :
buttons : 00
x : 659
y : 373
Repeated the same test with mouse connected through a hub to test EHCI controller.
Keyboard test using a standalone numeric keypad
nsh> hidkbd
Opening device /dev/kbda
Device /dev/kbda opened
11526923359*586
752563456
Tested usb stick using
NuttShell (NSH) NuttX-13.0.0
nsh> mount -t vfat /dev/sda /mnt/
nsh> ls -l /mnt
/mnt:
-rw-rw-rw- 6028459 m.ogg
-rw-rw-rw- 25 test.txt
-rw-rw-rw- 25 a.txt
-rw-rw-rw- 25 b.txt
nsh>
nsh> cat /mnt/test.txt
This is a text test file
nsh>
Framebuffer test:
nsh> fb
VideoInfo:
fmt: 11
xres: 1360
yres: 768
nplanes: 1
PlaneInfo (plane 0):
fbmem: 0xaf800000
fblen: 2088960
stride: 2720
display: 0
bpp: 16
Mapped FB: 0xaf800000
0: ( 0, 0) (1360,768)
1: (123, 69) (1114,630)
2: (246,138) (868,492)
3: (369,207) (622,354)
4: (492,276) (376,216)
5: (615,345) (130, 78)
Test finished
nsh>