diff --git a/README.md b/README.md index dbee22d..c70867b 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ Its just a part of miZy project, and same as other our parts can standalone used ## Features +* Orange Pi Zero Plus2 h3 device added, one uboot for both h2+ h3 devices * boot from spi-flash and next **full load linux from spi-flash** is ready via new added [spiread] cmd * ready for **fast** uboot & full linux **load**, with boot-time about **0.5 & 4-8 sec** (MMC-SPI), from power-on time * **4x increase SPI-flash reading speed** in SPL-loader and UBOOT ( spi work on **24Mhz** freq now ) diff --git a/uboot-files/arch/arm/dts/sun8i-h2plus-orangepi-zero.dts b/uboot-files/arch/arm/dts/sun8i-h2plus-orangepi-zero.dts index 0e28d5c..428e6b4 120000 --- a/uboot-files/arch/arm/dts/sun8i-h2plus-orangepi-zero.dts +++ b/uboot-files/arch/arm/dts/sun8i-h2plus-orangepi-zero.dts @@ -1 +1 @@ -sun8i-h2plus-orangepi-zero.1usb.dts \ No newline at end of file +sun8i-h2plus-orangepi-zero.plus.dts \ No newline at end of file diff --git a/uboot-files/arch/arm/dts/sun8i-h2plus-orangepi-zero.plus.dts b/uboot-files/arch/arm/dts/sun8i-h2plus-orangepi-zero.plus.dts new file mode 100644 index 0000000..9b970e4 --- /dev/null +++ b/uboot-files/arch/arm/dts/sun8i-h2plus-orangepi-zero.plus.dts @@ -0,0 +1,122 @@ +/dts-v1/; +#include "sun8i-h3.dtsi" +#include "sunxi-common-regulators.dtsi" + +#include +#include +#include + +/ { +model = "Xunlong Orange Pi Zero"; +compatible = "xunlong,orangepi-zero", "allwinner,sun8i-h2plus"; + +aliases { +serial0 = &uart0; +ethernet1 = &brcmf; +}; + +chosen { +stdout-path = "serial0:115200n8"; +}; + +leds { +compatible = "gpio-leds"; +pinctrl-names = "default"; +pinctrl-0 = <&leds_opi0>, <&leds_r_opi0>; + +pwr_led { +label = "orangepi:green:pwr"; +gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; +default-state = "on"; +}; + +status_led { +label = "orangepi:red:status"; + gpios = <&pio 0 17 GPIO_ACTIVE_HIGH>; + }; + }; + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + reset-gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; + post-power-on-delay-ms = <50>; + }; + + +}; + + +&ehci1 { + status = "okay"; +}; + +&emac { + phy = <&phy1>; + phy-mode = "mii"; + allwinner,use-internal-phy; + allwinner,leds-active-low; + status = "okay"; + phy1: ethernet-phy@1 { + reg = <1>; + }; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */ + cd-inverted; + status = "okay"; +}; + +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins_a>; + vmmc-supply = <®_vcc3v3>; + vqmmc-supply = <®_vcc3v3>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; + + brcmf: bcrmf@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + interrupt-parent = <&r_pio>; + interrupts = <0 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 / EINT7 */ + interrupt-names = "host-wake"; + }; +}; + + +&ohci1 { + status = "okay"; +}; + +&pio { + leds_opi0: led_pins@0 { + pins = "PA17"; + function = "gpio_out"; + }; +}; + +&r_pio { + leds_r_opi0: led_pins@0 { + pins = "PL10"; + function = "gpio_out"; + }; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; +}; + +&usbphy { + /* USB VBUS is always on */ + status = "okay"; +}; diff --git a/uboot-files/configs/orangepi_zero_hyphop_mizy_defconfig b/uboot-files/configs/orangepi_zero_hyphop_mizy_defconfig index 46cf062..7a0f728 100644 --- a/uboot-files/configs/orangepi_zero_hyphop_mizy_defconfig +++ b/uboot-files/configs/orangepi_zero_hyphop_mizy_defconfig @@ -45,3 +45,7 @@ CONFIG_VIDEO_LCD_PANEL_PARALLEL=y CONFIG_SYS_CONSOLE_ENV_OVERWRITE=y #CONFIG_LZ4=y + +## h3 +CONFIG_MMC_SUNXI_SLOT_EXTRA=2 +