forked from Ysurac/openmptcprouter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from Ysurac/develop
Add dts patch for bpi-r64
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
root/target/linux/mediatek/patches-5.4/900-dts-mt7622-bpi-r64-aliases-for-dtoverlay.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | ||
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | ||
@@ -279,14 +279,14 @@ | ||
&pcie1 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pcie1_pins>; | ||
- status = "okay"; | ||
+ status = "disabled"; | ||
}; | ||
|
||
&pio { | ||
/* Attention: GPIO 90 is used to switch between PCIe@1,0 and | ||
* SATA functions. i.e. output-high: PCIe, output-low: SATA | ||
*/ | ||
- asm_sel { | ||
+ asmsel: asm_sel { | ||
gpio-hog; | ||
gpios = <90 GPIO_ACTIVE_HIGH>; | ||
output-high; | ||
--- /dev/null | ||
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-sata.dts | ||
@@ -0,0 +1,31 @@ | ||
+/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ | ||
+ | ||
+#include <dt-bindings/gpio/gpio.h> | ||
+ | ||
+/dts-v1/; | ||
+/plugin/; | ||
+ | ||
+/ { | ||
+ compatible = "bananapi,bpi-r64", "mediatek,mt7622"; | ||
+ | ||
+ fragment@0 { | ||
+ target = <&asmsel>; | ||
+ __overlay__ { | ||
+ gpios = <90 GPIO_ACTIVE_LOW>; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@1 { | ||
+ target = <&sata>; | ||
+ __overlay__ { | ||
+ status = "okay"; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@2 { | ||
+ target = <&sata_phy>; | ||
+ __overlay__ { | ||
+ status = "okay"; | ||
+ }; | ||
+ }; | ||
+}; | ||
--- /dev/null | ||
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64-pcie1.dts | ||
@@ -0,0 +1,24 @@ | ||
+/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ | ||
+ | ||
+#include <dt-bindings/gpio/gpio.h> | ||
+ | ||
+/dts-v1/; | ||
+/plugin/; | ||
+ | ||
+/ { | ||
+ compatible = "bananapi,bpi-r64", "mediatek,mt7622"; | ||
+ | ||
+ fragment@0 { | ||
+ target = <&asmsel>; | ||
+ __overlay__ { | ||
+ gpios = <90 GPIO_ACTIVE_HIGH>; | ||
+ }; | ||
+ }; | ||
+ | ||
+ fragment@1 { | ||
+ target = <&pcie1>; | ||
+ __overlay__ { | ||
+ status = "okay"; | ||
+ }; | ||
+ }; | ||
+}; |