Commit Graph

6272 Commits

Author SHA1 Message Date
Sven-Ola Tuecke
b99f4bc53b Spacemit: revert XMC flash chip addon, use .config instead 2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
6326273663 Patch fixup to prevent .orig
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
99ac3ea2d0 OrangePi-RV2/R2S: synchronize Eth/RGMII unit-address in DT
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
15cc508714 OrangePi-RV2: Completely disable unused pwr-gpios
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
71736aaa11 Spacemit: HDMI audio fix: revert busy-loop removal, apply 1 sec timeout
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
bfb16c7a7b OrangePi-RV2: fix internal audio, activate headphone gpio
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
4612a15fb2 Revert "Spacemit: temporarly revert kthread removal to fix HDMI audio"
This reverts commit 99ad08839e.
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
e873ba6cc9 Spacemit: temporarly revert kthread removal to fix HDMI audio
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
eeeae16755 Spacemit: fix HDMI audio (and rCPU communication)
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
0677c69089 General: do not use PCIe ASPM with Samsung 9b1 NVME
Note: have a 128Gb 2030 NVME that returns read errors with Active State PM

Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
d4c5fb249f OrangePi-R2S: Realtek 8125 Ethernet support
Driver for Ethernet/PCI as found with Xunlong/Ky on the
OrangePi RV2/R2S source tree. Added as kernel patch since
the current spacemit family has conflicting changes with
rtl8852bs when enabling EXTRAWIFI=yes

Note: on the Xunlong/Ky tree, there is also a realtek_pgtool/
subdir that compiles a pgdrv.ko. B/c this does not have a
license indication, is only needed e.g. for MAC address
programming of efuse / eeprom, and generally does not look
required this is ommited here. For details, you may refer
to https://github.com/redchenjs/rtnicpg

Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
7c0d37997c OrangePi-RV2: Add overlay dtbo files
This is for use with fdtoverlays directive in extlinux.conf
to enabled different configs for the Opi rv2 pin headers

Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
d68fb5d2d2 OrangePi-RV2: add missing interrupt for bcmdhd WLAN hostwake GPIO
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
51295805e2 Spacemit: HW crypto fixes / speedup.
Note: HW AES is really slow with LUKS2 when using default 512 byte block
size, regardless what cryptsetup benchmark prints out (this uses 65536
bytes). Performance is much better with luksFormat --sector-size 4096.

Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
2c8090aaaa OrangePi-RV2: u-boot FIT configs for rv2 and r2s (auto-selected via TLV chip setting)
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
023a546233 OrangePi-RV2: u-boot support for XM25QH128A flash
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
ea961653d5 Spacemit: expand SPI NOR address limit to 16Mb (probably wrong 12Mb limit)
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
f7872bfd36 OrangePi-RV2: SPI NOR partitioning (prep for boot-from-flash)
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
6460a1d81c OrangePi-RV2: switch on power for bcmdhd wifi
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Sven-Ola Tuecke
9b3484158c OrangePi-RV2: Add ky-to-spacemit re-substituted DTs and WIP board configs
Signed-off-by: Sven-Ola Tuecke <sven-ola@gmx.de>
2026-02-19 22:10:34 -05:00
Ricardo Pardini
ef15fe183a Revert "rockchip64-6.19: mekotronics-r58x-4g: add fusb302"
- This reverts commit e94425f6944b5a751e19f4bf7ac7dfce9f8b1035.
- I am clearly not up to par with type-c/fusb302 stuff yet
  - sending this for future reference
2026-02-19 09:00:15 -03:00
Ricardo Pardini
37c5cf652b mekotronics-r58x-4g: u-boot: create -u-boot.dtsi via hook
- saves one .dtsi file in patch/.../dt_uboot
- I had the wrong name (missing `-u-boot` suffix) too so this fixes it too
2026-02-19 09:00:15 -03:00
Ricardo Pardini
576c709fb4 mekotronics-r58x-4g: u-boot: enable tpcm/fusb302 support
- also `tcpm` cmd for debugging
2026-02-19 09:00:15 -03:00
Ricardo Pardini
f5e17cfd26 rockchip64-6.19: mekotronics-r58x-4g: add fusb302
- works as far as I can tell
- both orientations
- also wired DP, but can't test (I've no USB-DP hw)
2026-02-19 09:00:15 -03:00
Ricardo Pardini
7ef9f60bf6 mekotronics-r58x-4g: u-boot: bump to v2026.04-rc2 with symlink-shared DT
- u-boot v2026.04-rcX has bumped dt-rebasing to v6.18, thus it knows about
  NPU nodes now and we can simply symlink to kernel DT, reducing duplication by a lot
2026-02-19 09:00:15 -03:00
Ricardo Pardini
c4fb17ca03 u-boot: v2026.04: prepare patching dir for v2026.04
- fileenv patch (same as v2026.01)
- fdt_fixup_ethernet logging patch (same as v2026.01)
- 0000.patching_config.yaml: defconfig/dt_upstream_rockchip/dt_uboot
- notable in v2026.04:
  - dt-rebasing bumped up to v6.18 (which has NPU nodes)
    - this allows us to share complete DTs between kernel and u-boot via symlinks
  - Kwiboo had a go at LWIP which should be usable now; Kwiboo rocks.
2026-02-19 09:00:15 -03:00
Ricardo Pardini
d3cb6458b0 rockchip64-6.19: mekotronics-r58x-4g: add analog sound es8388
- also: drop old modem (4G) to-do, as modem already works without it
2026-02-19 09:00:15 -03:00
Ricardo Pardini
a13e185e8d rockchip64-6.19: mekotronics-r58x-4g: fix type-A USB ports
- this gets the 3 usb type-A ports in the front working
2026-02-19 09:00:15 -03:00
Ricardo Pardini
3295ab61a2 rockchip64-6.19: mekotronics-r58x-4g: add vcc5v0_otg regulator (gpio4_PA7)
- probably type-c stuff, but we never know with Meko
2026-02-19 09:00:15 -03:00
Ricardo Pardini
9053c71deb rockchip64-6.19: mekotronics-r58x-4g: drop invalid hdmi enable-gpios
- drop invalid and useless enable-gpios on hdmi0 node
  - was from vendor kernel
  - does nothing in mainline
  - is not required in mainline for working HDMI
2026-02-19 09:00:15 -03:00
Ian Leung
c184eda283 rk3566-orangepi-3b: Specify target-supply for sata2
Fixes SATA SSD not working when pcie2x1 is disabled.
2026-02-18 09:21:49 +01:00
Ian Leung
6e97eb5d78 Revert change to rockchip-rk3566-sata2.dtso‎
This reverts a change stemming from commit 7d241e3.
2026-02-18 09:21:49 +01:00
Brent Roman
b2ef84c202 adjust rk3308 vendor acodec for kernel 6.19 2026-02-17 21:39:16 -08:00
Brent Roman
3f6209be83 revert 32f3b7c693
and 8002936aac
because:
The ...fix-10mbit-ethernet patch is still necessary
Without it, the RK3308 does not connect via DHCP to 10-mbit Ethernets

The ...pinctl-slow-mux patch still compiles without error
It is <100 bytes and helps debugging GPIO issues.

I don't understand why above patches were flagged as "broken"
2026-02-17 21:39:16 -08:00
Ricardo Pardini
99df7c5760 mekotronics-r58x-4g: mainline u-boot v2026.01; mainline 6.19 kernel (edge)
- rockchip64-6.19: mainline kernel (edge/6.19):
  - most stuff works, incl 4G modem, NPU, RS-485, RS-232, HDMI-RX
  - except:
    - type-c (fusb302, I've no schematics nor will to reverse)
    - DisplayPort (I don't have test hardware)
    - Analog Audio (ditto)
- keep vendor u-boot for vendor branch
- mainline u-boot v2026.01:
  - same DT as edge kernel, save for NPU nodes
  - boot order: NVMe -> SATA -> USB -> eMMC -> Ethernet/PXE
  - stable MAC addresses for GMAC0/1 via DT aliases (confirm with logging patch)
2026-02-15 20:18:44 +01:00
Ricardo Pardini
2681a3a682 mekotronics-r58x-4g: mainline: add i2s7_8ch (hdmirx sound) 2026-02-15 20:18:44 +01:00
Ricardo Pardini
a4ecd2cc82 mekotronics-r58x-4g: mainline: fix hdmi0 enable-gpios
- there is no hdmi1 (only DP)
2026-02-15 20:18:44 +01:00
Ricardo Pardini
eab7f9d2a8 mekotronics-r58x-4g: mainline: add rs-485 (uart0) and rs-232 (uart3) 2026-02-15 20:18:44 +01:00
Ricardo Pardini
c17fee5aca mekotronics-r58x-4g: mainline: add sata0 (SATA port on the board) 2026-02-15 20:18:44 +01:00
Ricardo Pardini
fa98e609cd mekotronics-r58x-4g: mainline: add i2c5
- not really wired to anything, found on vendor kernel, added due to i2c5m3_xfer
2026-02-15 20:18:44 +01:00
Ricardo Pardini
bcdc3e9871 mekotronics-r58x-4g: mainline: clean up a bit
- otg pin thing is for fusb302 related type-c thing (I ignore for now)
- drop dup combphy0
2026-02-15 20:18:44 +01:00
Ricardo Pardini
1d0eccda66 mekotronics-r58x-4g: mainline: fix hdmirx pinctrl-0 2026-02-15 20:18:44 +01:00
Ricardo Pardini
1d90918330 mekotronics-r58x-4g: mainline: fix hdmirx hpd pin 2026-02-15 20:18:44 +01:00
Ricardo Pardini
d31a336ee3 mekotronics-r58x-4g: mainline: fix vcc5v0_host gpio+pinctrl 2026-02-15 20:18:44 +01:00
Ricardo Pardini
3d780aeff5 mekotronics-r58x-4g: mainline: gmac0/gmac1 mdio0/mdio1 (v2)
- drop rx delay, add snps stuff
2026-02-15 20:18:44 +01:00
Ricardo Pardini
29e97b5502 mekotronics-r58x-4g: mainline: gmac0/gmac1 mdio0/mdio1 (v1)
- very similar/identical to firefly-itx
2026-02-15 20:18:44 +01:00
Ricardo Pardini
9c10b84013 mekotronics-r58x-4g: mainline: LEDs (v2)
- what vendor calls "hdd" LED is simply not there
- "power" LED is actually 2 leds
- missing: "WIFI" led, which pin?
2026-02-15 20:18:44 +01:00
Ricardo Pardini
1b53372e5b mekotronics-r58x-4g: mainline: LEDs (v1) 2026-02-15 20:18:44 +01:00
Ricardo Pardini
1772efc16e mekotronics-r58x-4g: mainline: drop &pcie2x1l1 2026-02-15 20:18:44 +01:00
Ricardo Pardini
c05bfd707f mekotronics-r58x-4g: mainline: mark TODO's - waaaay too many 2026-02-15 20:18:44 +01:00