
Hi Martin,
Am 13.12.20 um 19:46 schrieb Martin Blumenstingl:
Hi Otto,
On Mon, Dec 7, 2020 at 1:43 PM Otto Meier gf435@gmx.net wrote: [...]
So with the latest u-boot and the kernel from https://github.com/chewitt/linux/tree/amlogic-5.10.y commit 725fc8df7898102f9031ba2075f763884ffa3ee8 everything is working again. USB does hotplugging as expected.
So, this fixes USB under Linux ?? It's not clear
if you have time it would be great if you could figure out which of the patches from Christian's tree fixes USB hotplugging for you. Or is it fixed in Linux 5.10-rcX even without any patches?
The new mainline kernel 5.10.0 from Linus, without any other patches does detect USB hotpluging, when using u-boot DMI: Hardkernel Co., Ltd. ODROID-C2/ODROID-C2, BIOS 2021.01-rc3-00039-gec79f5ce22-dirty 12/08/2020 and the following u-boot patch:
--- u-boot.git/arch/arm/dts/meson-gxbb.dtsi.orig 2020-11-27 17:20:04.624193561 +0100 +++ u-boot.git/arch/arm/dts/meson-gxbb.dtsi 2020-11-27 17:23:18.472088934 +0100 @@ -403,36 +403,33 @@ gpio-ranges = <&pinctrl_periphs 0 0 119>; };
- emmc_pins: emmc { - mux-0 { - groups = "emmc_nand_d07", - "emmc_cmd"; - function = "emmc"; - bias-pull-up; - };
- mux-1 { - groups = "emmc_clk"; - function = "emmc"; - bias-disable; - }; - }; + emmc_pins: emmc { + mux { + groups = "emmc_nand_d07", + "emmc_cmd", + "emmc_clk"; + function = "emmc"; + }; + };
- emmc_ds_pins: emmc-ds { - mux { - groups = "emmc_ds"; - function = "emmc"; - bias-pull-down; - }; - }; + emmc_ds_pins: emmc-ds { + mux { + groups = "emmc_ds"; + function = "emmc"; + }; + };
- emmc_clk_gate_pins: emmc_clk_gate { - mux { - groups = "BOOT_8"; - function = "gpio_periphs"; - bias-pull-down; - }; - }; + emmc_clk_gate_pins: emmc_clk_gate { + mux { + groups = "BOOT_8"; + function = "gpio_periphs"; + }; + cfg-pull-down { + pins = "BOOT_8"; + bias-pull-down; + }; + };
nor_pins: nor { mux {
When i use the last unpatched emmc bootable u-boot 2020.04 the kernel boots, but usb hotplugging does not work.
Hope this describes my findings. If i can help further, please give me a note.
Best regards, Martin
Best regards Otto