Download raw body.
Add RK3588 support to rkusbphy(4)
On 2024-06-13 6:23 p.m., Mark Kettenis wrote: > While trying a more recent U-Boot version, I noticed a hang after > ohci(4) attached. After bisecting U-Boot, the breakage started to > happen after some fixes to the U-Boot driver for the USB PHY. Adding > support for the RK3588 SoC fixes the issue. > > On the RK3588 there is no "rockchip,usbgrf" property. Instead we need > to use the regmap provided by the parent. Also since the PHYs are > dedicated to OTG or host ports, there is only one otg-port or > host-port subnode, but not both. So don't warn if either of those is > missing. > > ok? rkusbphy(4) now attaches, but no luck. booting sd0a:bsd.test: 11506644+2745464+301352+843840 [925021+91+1305216+807005]=0x13fd508 [ using 3038112 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2024 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 7.5-current (GENERIC.MP) #0: Thu Jun 13 19:34:59 EDT 2024 brad@arm64-test.comstyle.com:/home/brad/src/sys/arch/arm64/compile/GENERIC.MP real mem = 16901283840 (16118MB) avail mem = 16294154240 (15539MB) random: good seed from bootblocks mainbus0 at root: Xunlong Orange Pi 5 Plus psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND efi0 at mainbus0: UEFI 2.10 efi0: Das U-Boot rev 0x20240100 smbios0 at efi0: SMBIOS 3.0 smbios0: vendor U-Boot version "2024.01-rc3" date 01/01/2024 smbios0: Unknown Unknown Product cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0 cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu0: 128KB 64b/line 4-way L2 cache cpu0: 4096KB 64b/line 16-way L3 cache cpu0: DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SSBS cpu1 at mainbus0 mpidr 100: ARM Cortex-A55 r2p0 cpu1: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu1: 128KB 64b/line 4-way L2 cache cpu1: 4096KB 64b/line 16-way L3 cache cpu2 at mainbus0 mpidr 200: ARM Cortex-A55 r2p0 cpu2: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu2: 128KB 64b/line 4-way L2 cache cpu2: 4096KB 64b/line 16-way L3 cache cpu3 at mainbus0 mpidr 300: ARM Cortex-A55 r2p0 cpu3: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu3: 128KB 64b/line 4-way L2 cache cpu3: 4096KB 64b/line 16-way L3 cache cpu4 at mainbus0 mpidr 400: ARM Cortex-A76 r4p0 cpu4: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache cpu4: 512KB 64b/line 8-way L2 cache cpu4: 4096KB 64b/line 16-way L3 cache cpu4: DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,CSV3,CSV2,SSBS cpu5 at mainbus0 mpidr 500: ARM Cortex-A76 r4p0 cpu5: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache cpu5: 512KB 64b/line 8-way L2 cache cpu5: 4096KB 64b/line 16-way L3 cache cpu6 at mainbus0 mpidr 600: ARM Cortex-A76 r4p0 cpu6: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache cpu6: 512KB 64b/line 8-way L2 cache cpu6: 4096KB 64b/line 16-way L3 cache cpu7 at mainbus0 mpidr 700: ARM Cortex-A76 r4p0 cpu7: 64KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 4-way L1 D-cache cpu7: 512KB 64b/line 8-way L2 cache cpu7: 4096KB 64b/line 16-way L3 cache "optee" at mainbus0 not configured scmi0 at mainbus0: SCMI 2.0 "gap2" at mainbus0 not configured "gap1" at mainbus0 not configured apm0 at mainbus0 syscon0 at mainbus0: "syscon" syscon1 at mainbus0: "syscon" syscon2 at mainbus0: "syscon" syscon3 at mainbus0: "syscon" syscon4 at mainbus0: "syscon" rkusbphy0 at syscon4: phy 2 syscon5 at mainbus0: "syscon" rkusbphy1 at syscon5: phy 3 syscon6 at mainbus0: "syscon" rkclock0 at mainbus0 CRU_GATE_CON20: 0x0000aa05 CRU_GATE_CON21: 0x000000a0 CRU_GATE_CON22: 0x00000263 CRU_GATE_CON23: 0x0000aa05 CRU_GATE_CON24: 0x000000a0 CRU_GATE_CON25: 0x00000263 syscon7 at mainbus0: "power-management" "power-controller" at syscon7 not configured syscon8 at mainbus0: "qos" syscon9 at mainbus0: "qos" syscon10 at mainbus0: "qos" syscon11 at mainbus0: "qos" syscon12 at mainbus0: "qos" syscon13 at mainbus0: "qos" syscon14 at mainbus0: "qos" syscon15 at mainbus0: "qos" syscon16 at mainbus0: "qos" syscon17 at mainbus0: "qos" syscon18 at mainbus0: "qos" syscon19 at mainbus0: "qos" syscon20 at mainbus0: "qos" syscon21 at mainbus0: "qos" syscon22 at mainbus0: "qos" syscon23 at mainbus0: "qos" syscon24 at mainbus0: "qos" syscon25 at mainbus0: "qos" syscon26 at mainbus0: "qos" syscon27 at mainbus0: "qos" syscon28 at mainbus0: "qos" syscon29 at mainbus0: "qos" syscon30 at mainbus0: "qos" syscon31 at mainbus0: "qos" syscon32 at mainbus0: "qos" syscon33 at mainbus0: "qos" syscon34 at mainbus0: "qos" syscon35 at mainbus0: "qos" syscon36 at mainbus0: "qos" syscon37 at mainbus0: "qos" syscon38 at mainbus0: "qos" syscon39 at mainbus0: "qos" syscon40 at mainbus0: "qos" syscon41 at mainbus0: "qos" syscon42 at mainbus0: "qos" syscon43 at mainbus0: "qos" syscon44 at mainbus0: "qos" syscon45 at mainbus0: "qos" syscon46 at mainbus0: "qos" syscon47 at mainbus0: "qos" syscon48 at mainbus0: "qos" syscon49 at mainbus0: "qos" syscon50 at mainbus0: "qos" syscon51 at mainbus0: "qos" syscon52 at mainbus0: "qos" syscon53 at mainbus0: "qos" syscon54 at mainbus0: "qos" syscon55 at mainbus0: "qos" agintc0 at mainbus0 mbi shift 4:4 nirq 512 nredist 8 ipi: 0, 1, 2: "interrupt-controller" agintcmsi0 at agintc0 agintcmsi1 at agintc0 rkcomphy0 at mainbus0 rkcomphy1 at mainbus0 rkpinctrl0 at mainbus0: "pinctrl" rkgpio0 at rkpinctrl0 rkgpio1 at rkpinctrl0 rkgpio2 at rkpinctrl0 rkgpio3 at rkpinctrl0 rkgpio4 at rkpinctrl0 syscon56 at mainbus0: "syscon" syscon57 at mainbus0: "syscon" rkcomphy2 at mainbus0 rkpciephy0 at mainbus0 syscon58 at mainbus0: "syscon" syscon59 at mainbus0: "syscon" syscon60 at mainbus0: "syscon" syscon61 at mainbus0: "syscon" syscon62 at mainbus0: "syscon" syscon63 at mainbus0: "syscon" syscon64 at mainbus0: "syscon" "fit-images" at mainbus0 not configured "firmware" at mainbus0 not configured "pmu-a55" at mainbus0 not configured "pmu-a76" at mainbus0 not configured "clock-0" at mainbus0 not configured agtimer0 at mainbus0: 24000 kHz "clock-1" at mainbus0 not configured "clock-2" at mainbus0 not configured "sram" at mainbus0 not configured ehci0 at mainbus0 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1 ohci0 at mainbus0
Add RK3588 support to rkusbphy(4)