ramips: fix ethernet for f5d8235-v2 board
Belkin F5D8235 v2 has two ethernet switches on board. One internal rt3052 and rtl8366rb on rgmii interface. Looks like internal switch settings were lost in translation to device tree infrastructure. Signed-off-by: Roman Yeryomin <roman@advem.lv>
This commit is contained in:
		 Roman Yeryomin
					Roman Yeryomin
				
			
				
					committed by
					
						 John Crispin
						John Crispin
					
				
			
			
				
	
			
			
			 John Crispin
						John Crispin
					
				
			
						parent
						
							e42327aa89
						
					
				
				
					commit
					ae2b43b873
				
			| @@ -200,7 +200,6 @@ ramips_setup_interfaces() | |||||||
| 	awm002-evb-8M|\ | 	awm002-evb-8M|\ | ||||||
| 	c20i|\ | 	c20i|\ | ||||||
| 	dir-645|\ | 	dir-645|\ | ||||||
| 	f5d8235-v2|\ |  | ||||||
| 	gl-mt300a|\ | 	gl-mt300a|\ | ||||||
| 	gl-mt300n|\ | 	gl-mt300n|\ | ||||||
| 	gl-mt750|\ | 	gl-mt750|\ | ||||||
| @@ -375,6 +374,7 @@ ramips_setup_interfaces() | |||||||
| 			"0:lan" "2:lan" "6t@eth0" | 			"0:lan" "2:lan" "6t@eth0" | ||||||
| 		;; | 		;; | ||||||
| 	f5d8235-v1|\ | 	f5d8235-v1|\ | ||||||
|  | 	f5d8235-v2|\ | ||||||
| 	tew-714tru|\ | 	tew-714tru|\ | ||||||
| 	v11st-fe|\ | 	v11st-fe|\ | ||||||
| 	wzr-agl300nh) | 	wzr-agl300nh) | ||||||
|   | |||||||
| @@ -111,7 +111,7 @@ | |||||||
| &pinctrl { | &pinctrl { | ||||||
| 	state_default: pinctrl0 { | 	state_default: pinctrl0 { | ||||||
| 		gpio { | 		gpio { | ||||||
| 			ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; | 			ralink,group = "spi", "i2c", "jtag", "mdio", "uartf"; | ||||||
| 			ralink,function = "gpio"; | 			ralink,function = "gpio"; | ||||||
| 		}; | 		}; | ||||||
| 	}; | 	}; | ||||||
| @@ -119,10 +119,21 @@ | |||||||
|  |  | ||||||
| ðernet { | ðernet { | ||||||
| 	mtd-mac-address = <&uboot 0x40004>; | 	mtd-mac-address = <&uboot 0x40004>; | ||||||
|  | 	pinctrl-names = "default"; | ||||||
|  | 	pinctrl-0 = <&rgmii_pins>; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| &esw { | &esw { | ||||||
|  | 	ralink,rgmii = <1>; | ||||||
| 	mediatek,portmap = <0x3f>; | 	mediatek,portmap = <0x3f>; | ||||||
|  | 	ralink,fct2 = <0x0002500c>; | ||||||
|  | 	/* | ||||||
|  | 	 * ext phy base addr 31, rx/tx clock skew 0, | ||||||
|  | 	 * turbo mii off, rgmi 3.3v off, port 5 polling off | ||||||
|  | 	 * port5: enabled, gige, full-duplex, rx/tx-flow-control | ||||||
|  | 	 * port6: enabled, gige, full-duplex, rx/tx-flow-control | ||||||
|  | 	*/ | ||||||
|  | 	ralink,fpa2 = <0x1f003fff>; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| &wmac { | &wmac { | ||||||
|   | |||||||
| @@ -329,6 +329,7 @@ define Device/f5d8235-v2 | |||||||
|   DTS := F5D8235_V2 |   DTS := F5D8235_V2 | ||||||
|   IMAGE_SIZE := 7744k |   IMAGE_SIZE := 7744k | ||||||
|   DEVICE_TITLE := Belkin F5D8235 v2 |   DEVICE_TITLE := Belkin F5D8235 v2 | ||||||
|  |   DEVICE_PACKAGES := kmod-switch-rtl8366rb | ||||||
| endef | endef | ||||||
| TARGET_DEVICES += f5d8235-v2 | TARGET_DEVICES += f5d8235-v2 | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user