Skip to content

Commit

Permalink
Sat May 6 14:54:21 ICT 2017
Browse files Browse the repository at this point in the history
  • Loading branch information
hyphop committed May 6, 2017
1 parent 42e8d6c commit 137d6bd
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion uboot-files/arch/arm/dts/sun8i-h2plus-orangepi-zero.dts
122 changes: 122 additions & 0 deletions uboot-files/arch/arm/dts/sun8i-h2plus-orangepi-zero.plus.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/dts-v1/;
#include "sun8i-h3.dtsi"
#include "sunxi-common-regulators.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>

/ {
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 = <&reg_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 = <&reg_vcc3v3>;
vqmmc-supply = <&reg_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";
};
4 changes: 4 additions & 0 deletions uboot-files/configs/orangepi_zero_hyphop_mizy_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 137d6bd

Please sign in to comment.