diff --git a/configs/orangepi_win_defconfig b/configs/orangepi_win_defconfig old mode 100644 new mode 100644 index ab889ea..61c24ba --- a/configs/orangepi_win_defconfig +++ b/configs/orangepi_win_defconfig @@ -10,6 +10,9 @@ CONFIG_NR_DRAM_BANKS=1 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-orangepi-win" CONFIG_PHY_REALTEK=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_USB_OHCI_HCD=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 { @@ -180,6 +222,13 @@ status = "okay"; }; +&pio { + usb1_vbus_pin_opiwin: usb1_vbus_pin@0 { + allwinner,pins = "PD7"; + allwinner,function = "gpio_out"; + }; +}; + &r_rsb { status = "okay";