From 9cda37d460cc6e221f70f6573a77a421d919f50b Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 30 May 2020 20:07:19 +0200 Subject: [PATCH] Disable useless patch We don't need to enable UARTS and OTG by default on all Nanopi boards. This seems to cause instability on M1 Signed-off-by: Igor Pecovnik --- .../board-nanopi-adjust-defaults.patch | 91 ------------------- .../board-nanopi-adjust-defaults.patch | 91 ------------------- 2 files changed, 182 deletions(-) delete mode 100644 patch/kernel/sunxi-current/board-nanopi-adjust-defaults.patch delete mode 100644 patch/kernel/sunxi-dev/board-nanopi-adjust-defaults.patch diff --git a/patch/kernel/sunxi-current/board-nanopi-adjust-defaults.patch b/patch/kernel/sunxi-current/board-nanopi-adjust-defaults.patch deleted file mode 100644 index 19797a5a3..000000000 --- a/patch/kernel/sunxi-current/board-nanopi-adjust-defaults.patch +++ /dev/null @@ -1,91 +0,0 @@ -diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi b/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi -index f110ee382..c25c08bae 100644 ---- a/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi -+++ b/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi -@@ -51,6 +51,10 @@ - / { - aliases { - serial0 = &uart0; -+ serial1 = &uart1; -+ serial2 = &uart2; -+ serial3 = &uart3; -+ ethernet0 = &emac; - }; - - chosen { -@@ -89,10 +93,38 @@ - }; - }; - -+&ehci0 { -+ status = "okay"; -+}; -+ -+&ohci0 { -+ status = "okay"; -+}; -+ -+&ehci1 { -+ status = "okay"; -+}; -+ -+&ohci1 { -+ status = "okay"; -+}; -+ -+&ehci2 { -+ status = "okay"; -+}; -+ -+&ohci2 { -+ status = "okay"; -+}; -+ - &ehci3 { - status = "okay"; - }; - -+&ohci3 { -+ status = "okay"; -+}; -+ - &mmc0 { - bus-width = <4>; - cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; -@@ -100,10 +132,6 @@ - vmmc-supply = <®_vcc3v3>; - }; - --&ohci3 { -- status = "okay"; --}; -- - &pio { - leds_npi: led_pins { - pins = "PA10"; -@@ -129,6 +157,25 @@ - status = "okay"; - }; - -+&uart3 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&uart3_pins>, <&uart3_rts_cts_pins>; -+ status = "disabled"; -+}; -+ -+&i2c0 { -+ status = "okay"; -+}; -+ -+&usb_otg { -+ // OTG is not stable. -+ // most nanopi-h3's MicroUSB support OTG, except: -+ // 1. nanopi-neo-V1.4 support OTG, nanopi-neo-V1.3/1.2... support USB device. -+ // 2. nanopi-k1 only use as power. -+ dr_mode = "otg"; -+ status = "okay"; -+}; -+ - &usbphy { - status = "okay"; - }; diff --git a/patch/kernel/sunxi-dev/board-nanopi-adjust-defaults.patch b/patch/kernel/sunxi-dev/board-nanopi-adjust-defaults.patch deleted file mode 100644 index 19797a5a3..000000000 --- a/patch/kernel/sunxi-dev/board-nanopi-adjust-defaults.patch +++ /dev/null @@ -1,91 +0,0 @@ -diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi b/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi -index f110ee382..c25c08bae 100644 ---- a/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi -+++ b/arch/arm/boot/dts/sun8i-h3-nanopi.dtsi -@@ -51,6 +51,10 @@ - / { - aliases { - serial0 = &uart0; -+ serial1 = &uart1; -+ serial2 = &uart2; -+ serial3 = &uart3; -+ ethernet0 = &emac; - }; - - chosen { -@@ -89,10 +93,38 @@ - }; - }; - -+&ehci0 { -+ status = "okay"; -+}; -+ -+&ohci0 { -+ status = "okay"; -+}; -+ -+&ehci1 { -+ status = "okay"; -+}; -+ -+&ohci1 { -+ status = "okay"; -+}; -+ -+&ehci2 { -+ status = "okay"; -+}; -+ -+&ohci2 { -+ status = "okay"; -+}; -+ - &ehci3 { - status = "okay"; - }; - -+&ohci3 { -+ status = "okay"; -+}; -+ - &mmc0 { - bus-width = <4>; - cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; -@@ -100,10 +132,6 @@ - vmmc-supply = <®_vcc3v3>; - }; - --&ohci3 { -- status = "okay"; --}; -- - &pio { - leds_npi: led_pins { - pins = "PA10"; -@@ -129,6 +157,25 @@ - status = "okay"; - }; - -+&uart3 { -+ pinctrl-names = "default"; -+ pinctrl-0 = <&uart3_pins>, <&uart3_rts_cts_pins>; -+ status = "disabled"; -+}; -+ -+&i2c0 { -+ status = "okay"; -+}; -+ -+&usb_otg { -+ // OTG is not stable. -+ // most nanopi-h3's MicroUSB support OTG, except: -+ // 1. nanopi-neo-V1.4 support OTG, nanopi-neo-V1.3/1.2... support USB device. -+ // 2. nanopi-k1 only use as power. -+ dr_mode = "otg"; -+ status = "okay"; -+}; -+ - &usbphy { - status = "okay"; - };