Skip to content

Add MilkV Duo 256M device trees#8

Open
System64fumo wants to merge 7 commits intosophgo:for-nextfrom
System64fumo:for-next
Open

Add MilkV Duo 256M device trees#8
System64fumo wants to merge 7 commits intosophgo:for-nextfrom
System64fumo:for-next

Conversation

@System64fumo
Copy link

Added binding for the sg2002 MilkV Duo256m
Added device tree for sg2002 MilkV Duo256m
Added gpio4 definition in cv180x.dtsi (Used for the LED on the MilkV Duo256m)
Added LED definitions for both cv1800b and sg2002 MilkV Duos

Closes: #4 #6
Not sure if i'm supposed to send my patches here or to lkml.org, Let me know.

Tested and confirmed all changes on my 256m duo, I don't have a cv1800b duo to verify that the LED works or not though.

stavinsky and others added 6 commits November 27, 2025 06:29
I've tested the current dwc2 FIFO configuration and found that USB
device mode breaks in ECM mode when transmitting frames larger than
128 bytes. For example, large ICMP packets or iperf3 traffic cause
the USB link to hang and eventually disconnect without any messages in
dmesg.

After switching to more conservative FIFO sizes, ECM becomes stable
and no longer drops the connection. iperf3 now shows ~130 Mbit/s RX
and ~100 Mbit/s TX on SG2002 (MilkV Duo 256M).

Fix the FIFO sizes accordingly.

Signed-off-by: Anton D. Stavinskii <stavinsky@gmail.com>
Reviewed-by: Inochi Amaoto <inochiama@gmail.com>
Fixes: e307248 ("riscv: dts: sophgo: Add USB support for cv18xx")
Link: https://lore.kernel.org/r/20251126172115.1894190-2-stavinsky@gmail.com
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
@inochisa
Copy link
Collaborator

inochisa commented Dec 2, 2025

@System64fumo No PR here, we only accept patches from lkml.

@System64fumo
Copy link
Author

Got it, In that case it might be a bit as i haven't done any direct LKML stuff before, I've had a friend relay my work to LKML.

&sdhci0 {
pinctrl-0 = <&sdhci0_cfg>;
pinctrl-names = "default";
status = "okay";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status = okay needs to be the last entry.

compatible = "gpio-leds";

blue_led {
gpios = <&porta 24 GPIO_ACTIVE_HIGH>;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be <&portc 22 GPIO_ACTIVE_HIGH> on duo 64m i think

@inochisa inochisa force-pushed the for-next branch 2 times, most recently from 7a52965 to 85352e8 Compare January 20, 2026 01:15
unicornx pushed a commit that referenced this pull request Jan 21, 2026
When interrupting perf stat in repeat mode with a signal the signal is
passed to the child process but the repeat doesn't terminate:
```
$ perf stat -v --null --repeat 10 sleep 1
Control descriptor is not initialized
[ perf stat: executing run #1 ... ]
[ perf stat: executing run #2 ... ]
^Csleep: Interrupt
[ perf stat: executing run #3 ... ]
[ perf stat: executing run #4 ... ]
[ perf stat: executing run #5 ... ]
[ perf stat: executing run #6 ... ]
[ perf stat: executing run #7 ... ]
[ perf stat: executing run #8 ... ]
[ perf stat: executing run #9 ... ]
[ perf stat: executing run #10 ... ]

 Performance counter stats for 'sleep 1' (10 runs):

            0.9500 +- 0.0512 seconds time elapsed  ( +-  5.39% )

0.01user 0.02system 0:09.53elapsed 0%CPU (0avgtext+0avgdata 18940maxresident)k
29944inputs+0outputs (0major+2629minor)pagefaults 0swaps
```

Terminate the repeated run and give a reasonable exit value:
```
$ perf stat -v --null --repeat 10 sleep 1
Control descriptor is not initialized
[ perf stat: executing run #1 ... ]
[ perf stat: executing run #2 ... ]
[ perf stat: executing run #3 ... ]
^Csleep: Interrupt

 Performance counter stats for 'sleep 1' (10 runs):

             0.680 +- 0.321 seconds time elapsed  ( +- 47.16% )

Command exited with non-zero status 130
0.00user 0.01system 0:02.05elapsed 0%CPU (0avgtext+0avgdata 70688maxresident)k
0inputs+0outputs (0major+5002minor)pagefaults 0swaps
```

Note, this also changes the exit value for non-repeat runs when
interrupted by a signal.

Reported-by: Ingo Molnar <mingo@kernel.org>
Closes: https://lore.kernel.org/lkml/aS5wjmbAM9ka3M2g@gmail.com/
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
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.

5 participants