mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	Add kernel 6.1 support for BPI-R64
This commit is contained in:
		
							parent
							
								
									91028220c3
								
							
						
					
					
						commit
						49e5717c77
					
				
					 73 changed files with 7015 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -0,0 +1,65 @@
 | 
			
		|||
--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
 | 
			
		||||
+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
 | 
			
		||||
@@ -318,7 +318,7 @@
 | 
			
		||||
 	/* 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,17 @@
 | 
			
		||||
+/* 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>;
 | 
			
		||||
+		};
 | 
			
		||||
+	};
 | 
			
		||||
+};
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue