diff --git a/configs/orangepi_win_defconfig b/configs/orangepi_win_defconfig index a3e278f..39e83f1 100644 --- a/configs/orangepi_win_defconfig +++ b/configs/orangepi_win_defconfig @@ -12,6 +12,9 @@ CONFIG_SPL=y # CONFIG_SPL_ISO_PARTITION is not set # CONFIG_SPL_EFI_PARTITION is not set CONFIG_SPL_SPI_SUNXI=y +CONFIG_SPL_SPI_FLASH_SUPPORT=y +CONFIG_USB1_VBUS_PIN="PD7" +CONFIG_USB_HOST=y CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y diff --git a/arch/arm/dts/sun50i-a64-orangepi-win.dts b/arch/arm/dts/sun50i-a64-orangepi-win.dts index cf76c35..a7d36a5 100644 --- a/arch/arm/dts/sun50i-a64-orangepi-win.dts +++ b/arch/arm/dts/sun50i-a64-orangepi-win.dts @@ -64,6 +64,19 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; + + reg_usb1_vbus: usb1-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&usb1_vbus_pin_opiwin>; + regulator-name = "usb1-vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + enable-active-high; + gpio = <&pio 3 7 GPIO_ACTIVE_HIGH>; + status = "okay"; + }; }; &ehci1 { @@ -83,6 +96,13 @@ status = "okay"; }; +&pio { + usb1_vbus_pin_opiwin: usb1_vbus_pin@0 { + allwinner,pins = "PD7"; + allwinner,function = "gpio_out"; + }; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>; @@ -90,5 +112,6 @@ }; &usbphy { - status = "okay"; + usb1_vbus-supply = <®_usb1_vbus>; + status = "okay"; };