dryce
Members
-
Joined
-
Last visited
Reputation Activity
-
dryce got a reaction from Naguissa in Enabling usb otg on banana pi m1 A20usb@01c13000 {
compatible = "allwinner,sun4i-a10-musb";
reg = <0x1c13000 0x400>;
clocks = <0x4 0x0>;
interrupts = <0x0 0x26 0x4>;
interrupt-names = "mc";
phys = <0x2b 0x0>;
phy-names = "usb";
extcon = <0x2b 0x0>;
allwinner,sram = <0x2c 0x1>;
status = "okay";
dr_mode = "host";
linux,phandle = <0x61>;
phandle = <0x61>;
phy@01c13400 {
#phy-cells = <0x1>;
compatible = "allwinner,sun7i-a20-usb-phy";
reg = <0x1c13400 0x10 0x1c14800 0x4 0x1c1c800 0x4>;
reg-names = "phy_ctrl", "pmu1", "pmu2";
clocks = <0x2d 0x8>;
clock-names = "usb_phy";
resets = <0x2d 0x0 0x2d 0x1 0x2d 0x2>;
reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <0x2e>;
usb0_id_det-gpio = <0x25 0x7 0x3 0x0>;
usb0_vbus_power-supply = <0x2f>;
usb0_vbus-supply = <0x30>;
linux,phandle = <0x2b>;
phandle = <0x2b>;
usb0-vbus {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <0x49>;
regulator-name = "usb0-vbus";
regulator-min-microvolt = <0x4c4b40>;
regulator-max-microvolt = <0x4c4b40>;
enable-active-high;
gpio = <0x25 0x1 0x9 0x0>;
status = "okay";
linux,phandle = <0x30>;
phandle = <0x30>;
The file has several differences throughout compared to the armbian version. These are just a few of note. The values for some of the above properties are different in the default file vs the SimpleNAS dtb I used. I don't believe the OTG port was getting power before. There are other property differences throughout and everything appears to be working without issue.
-
dryce reacted to Igor in Enabling usb otg on banana pi m1 A20https://github.com/armbian/build/blob/master/config/kernel/linux-sunxi-next.config#L2882
-
dryce reacted to martinayotte in Enabling usb otg on banana pi m1 A20On OPiOne and OPiLite, there was similar issue that reg_usb0_vbus was not present.
I've fix that a month ago with this commit :
https://github.com/armbian/build/commit/fb0d3c6ea4b06df236d198af825d31a073dd2b81
Maybe similar patch could fix it on BananaPro ...