mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			81 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			81 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 52365639697e10f1b641d25460c10d9ccc56a6d6 Mon Sep 17 00:00:00 2001
 | |
| From: Frank Wunderlich <frank-w@public-files.de>
 | |
| Date: Thu, 29 Nov 2018 10:53:44 +0100
 | |
| Subject: [PATCH 26/77] net: dsa: changes to dts
 | |
| 
 | |
| ---
 | |
|  arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 29 ++++++++++++++++++-
 | |
|  1 file changed, 28 insertions(+), 1 deletion(-)
 | |
| 
 | |
| diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
 | |
| index a47022765326..4c6e53d9e736 100644
 | |
| --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
 | |
| +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
 | |
| @@ -157,6 +157,18 @@
 | |
|  		};
 | |
|  	};
 | |
|  
 | |
| +	gmac1: mac@1 {
 | |
| +		compatible = "mediatek,eth-mac";
 | |
| +		reg = <1>;
 | |
| +		phy-mode = "trgmii";
 | |
| +
 | |
| +		fixed-link {
 | |
| +			speed = <1000>;
 | |
| +			full-duplex;
 | |
| +			pause;
 | |
| +		};
 | |
| +	};
 | |
| +
 | |
|  	mdio: mdio-bus {
 | |
|  		#address-cells = <1>;
 | |
|  		#size-cells = <0>;
 | |
| @@ -175,29 +187,44 @@
 | |
|  				port@0 {
 | |
|  					reg = <0>;
 | |
|  					label = "wan";
 | |
| +					default_cpu = <&cpu_port1>;
 | |
|  				};
 | |
|  
 | |
|  				port@1 {
 | |
|  					reg = <1>;
 | |
|  					label = "lan0";
 | |
| +					default_cpu = <&cpu_port0>;
 | |
|  				};
 | |
|  
 | |
|  				port@2 {
 | |
|  					reg = <2>;
 | |
|  					label = "lan1";
 | |
| +					default_cpu = <&cpu_port0>;
 | |
|  				};
 | |
|  
 | |
|  				port@3 {
 | |
|  					reg = <3>;
 | |
|  					label = "lan2";
 | |
| +					default_cpu = <&cpu_port0>;
 | |
|  				};
 | |
|  
 | |
|  				port@4 {
 | |
|  					reg = <4>;
 | |
|  					label = "lan3";
 | |
| +					default_cpu = <&cpu_port0>;
 | |
|  				};
 | |
|  
 | |
| -				port@6 {
 | |
| +				cpu_port1: port@5 {
 | |
| +					reg = <5>;
 | |
| +					label = "cpu";
 | |
| +					ethernet = <&gmac1>;
 | |
| +					phy-mode = "trgmii";
 | |
| +					fixed-link {
 | |
| +						speed = <1000>;
 | |
| +						full-duplex;
 | |
| +					};
 | |
| +				};
 | |
| +				cpu_port0: port@6 {
 | |
|  					reg = <6>;
 | |
|  					label = "cpu";
 | |
|  					ethernet = <&gmac0>;
 | |
| -- 
 | |
| 2.19.1
 | |
| 
 |