From a09111c40722c9d508a01ebe4f44f88af08e8530 Mon Sep 17 00:00:00 2001 From: Martin Ayotte Date: Wed, 19 Apr 2017 17:34:56 -0400 Subject: [PATCH] remove useless wifi in A64 u-boot --- .../add-opiwinplus-to-u-boot-sun50i-a64.patch | 40 +++++++------------ 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/patch/u-boot/u-boot-sun50i-dev/add-opiwinplus-to-u-boot-sun50i-a64.patch b/patch/u-boot/u-boot-sun50i-dev/add-opiwinplus-to-u-boot-sun50i-a64.patch index 1c982b1791..a4e20ee1e0 100644 --- a/patch/u-boot/u-boot-sun50i-dev/add-opiwinplus-to-u-boot-sun50i-a64.patch +++ b/patch/u-boot/u-boot-sun50i-dev/add-opiwinplus-to-u-boot-sun50i-a64.patch @@ -3,7 +3,7 @@ new file mode 100644 index 0000000..68f889d --- /dev/null +++ b/u-boot/arch/arm/dts/sun50i-a64-orangepiwin.dts -@@ -0,0 +1,170 @@ +@@ -0,0 +1,158 @@ +/* + * Copyright (c) 2016 ARM Ltd. + * @@ -89,11 +89,17 @@ index 0000000..68f889d + gpio = <&pio 3 14 GPIO_ACTIVE_HIGH>; + }; + -+ wifi_pwrseq: wifi_pwrseq { -+ compatible = "mmc-pwrseq-simple"; ++ reg_usb1_vbus: usb1-vbus { ++ compatible = "regulator-fixed"; + pinctrl-names = "default"; -+ pinctrl-0 = <&wifi_en_pin>; -+ reset-gpios = <&pio 11 8 GPIO_ACTIVE_HIGH>; /* PL8 */ ++ pinctrl-0 = <&usb1_vbus_pin_a>; ++ 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"; + }; +}; + @@ -106,28 +112,9 @@ index 0000000..68f889d + status = "okay"; +}; + -+&mmc1 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&mmc1_pins>; -+ 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 = <&pio>; -+ interrupts = <11 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 / EINT7 */ -+ interrupt-names = "host-wake"; -+ }; -+}; -+ +&pio { -+ wifi_en_pin: wifi_en_pin@0 { -+ allwinner,pins = "PL8"; ++ usb1_vbus_pin_a: usb1_vbus_pin@0 { ++ allwinner,pins = "PD7"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; @@ -147,6 +134,7 @@ index 0000000..68f889d +}; + +&usbphy { ++ usb1_vbus-supply = <®_usb1_vbus>; + status = "okay"; +}; +