hello, > Also, does the attached diff help with making the USB ports work? > > Index: dev/fdt/ehci_fdt.c > =================================================================== > RCS file: /cvs/src/sys/dev/fdt/ehci_fdt.c,v > retrieving revision 1.6 > diff -u -p -r1.6 ehci_fdt.c > --- dev/fdt/ehci_fdt.c 11 Aug 2019 11:16:05 -0000 1.6 > +++ dev/fdt/ehci_fdt.c 8 Sep 2019 17:29:37 -0000 > @@ -175,6 +175,7 @@ struct ehci_phy ehci_phys[] = { > { "allwinner,sun8i-r40-usb-phy", sun4i_phy_init }, > { "allwinner,sun8i-v3s-usb-phy", sun4i_phy_init }, > { "allwinner,sun50i-a64-usb-phy", sun4i_phy_init }, > + { "allwinner,sun50i-h6-usb-phy", sun4i_phy_init }, > { "allwinner,sun9i-a80-usb-phy", sun9i_phy_init }, > };
I attach USB2.0 SD card reader and booted OpenBSD with your patch, it looks uhub3(OHCI) detects device presence but not configured correctly. Even if I attach USB1.1 USB-UART adapter, the result is same. ---- OpenBSD 6.6-beta (GENERIC) #5: Mon Sep 9 21:48:41 JST 2019 r...@obsd-aarch64.uaa.org.uk:/usr/src/sys/arch/arm64/compile/GENERIC real mem = 976138240 (930MB) avail mem = 916127744 (873MB) warning: no entropy supplied by boot loader mainbus0 at root: OrangePi One Plus cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4 cpu0: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache cpu0: 512KB 64b/line 16-way L2 cache efi0 at mainbus0: UEFI 2.7 efi0: Das U-Boot rev 0x20190700 apm0 at mainbus0 psci0 at mainbus0: PSCI 1.1, SMCCC 1.1 "internal-osc-clk" at mainbus0 not configured "osc24M_clk" at mainbus0 not configured "osc32k_clk" at mainbus0 not configured agtimer0 at mainbus0: tick rate 24000 KHz simplebus0 at mainbus0: "soc" sxisyscon0 at simplebus0 sxiccmu0 at simplebus0 ampintc0 at simplebus0 nirq 192, ncpu 4: "interrupt-controller" sxiccmu1 at simplebus0 "display-engine" at simplebus0 not configured "video-codec" at simplebus0 not configured "sid" at simplebus0 not configured "pinctrl" at simplebus0 not configured sximmc0 at simplebus0 sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma com0 at simplebus0: ns16550, no working fifo com0: console "usb" at simplebus0 not configured "phy" at simplebus0 not configured ehci0 at simplebus0 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 simplebus0: version 1.0 ehci1 at simplebus0 sxiccmu_ccu_enable: 0x0000006c sxiccmu_ccu_reset: 0x0000002e usb1 at ehci1: USB revision 2.0 uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1 ohci1 at simplebus0: version 1.0 "hdmi-phy" at simplebus0 not configured "tcon-top" at simplebus0 not configured "lcd-controller" at simplebus0 not configured "interrupt-controller" at simplebus0 not configured "pinctrl" at simplebus0 not configured sxitwi0 at simplebus0 iic0 at sxitwi0 "x-powers,axp805" at iic0 addr 0x36 not configured usb2 at ohci0: USB revision 1.0 uhub2 at usb2 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1 usb3 at ohci1: USB revision 1.0 uhub3 at usb3 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1 "leds" at mainbus0 not configured "vcc5v" at mainbus0 not configured "binman" at mainbus0 not configured uhub3: device problem, disabling port 1 <--- *** vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets bootfile: sd0a:/bsd boot device: lookup sd0a:/bsd failed root device: -- SASANO Takayoshi (JG1UAA) <u...@mx5.nisiq.net>