Jump to content

Recommended Posts

Posted

I have a orange pi one lying around.

I need two usb ports. Is it possible to use the otg port as host port? (Need wifi and a webcam)

 

The seach didn't give me an answer...

 

If i post in a wrong section pls. move. Thanks

 

Markus

Posted
1 hour ago, MacBreaker said:

Ok, wrong question..

Is it possible to use the usb otg port as host post?

 

As I read

http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=3399
it seems to be possible.
At the URL is a information how to change the .DTB for the OPi Zero to use the USB-OTG as USB-HOST

 

You have to find the right usb-port (usb@1c19000) in the .DTB/.DTS for the OPi One

 

DTB to DTS decompile

dtc -I dtb -O dts /boot/dtb/sun8i-h3-orangepi-one.dtb -o /boot/dtb/sun8i-h3-orangepi-one.dts

 

EDIT

change in the .DTS:

change the line:
                        dr_mode = "otg";
to                     dr_mode = "host";

in the section

usb@1c19000

 

from:

                usb@1c19000 {
                        compatible = "allwinner,sun8i-h3-musb";
                        reg = <0x1c19000 0x400>;
                        clocks = <0x03 0x20>;
                        resets = <0x03 0x11>;
                        interrupts = <0x00 0x47 0x04>;
                        interrupt-names = "mc";
                        phys = <0x10 0x00>;
                        phy-names = "usb";
                        extcon = <0x10 0x00>;
                        dr_mode = "otg";
                        status = "okay";
                        phandle = <0x48>;
                };

                          
to:
                          
                usb@1c19000 {
                        compatible = "allwinner,sun8i-h3-musb";
                        reg = <0x1c19000 0x400>;
                        clocks = <0x03 0x20>;
                        resets = <0x03 0x11>;
                        interrupts = <0x00 0x47 0x04>;
                        interrupt-names = "mc";
                        phys = <0x10 0x00>;
                        phy-names = "usb";
                        extcon = <0x10 0x00>;
                        dr_mode = "host";
                        status = "okay";
                        phandle = <0x48>;
                };
                          

 

 

DTS to DTB compile

dtc -I dts -O dtb /boot/dtb/sun8i-h3-orangepi-one.dts -o /boot/dtb/sun8i-h3-orangepi-one.dtb

 

then REBOOT

 

As attachment the new compiled version (when you have the same kernel as I 5.15.4 :)

 

@MacBreaker

PS: Liebe Gruesse nach Hessen - vor 6 Jahren habe ich in Babenhausen bei Frankfurt/Darmstadt gewohnt - nun in der Tuerkei....

sun8i-h3-orangepi-one.dtb

Posted

Yes, that was the information what I was missing..

 

I was thinking about that, but I didn't find that information.

 

Thanks for sharing your DTB, but i'm on 5.10.60.

I froze the kernel and changed my DTB, all is fine now!

 

@guidol

 

Liebe Grüsse aus Bishkek/Kirgistan wo ich zeitweise außer in Haiger/Hessen lebe..

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines