Use the GPIO dt-bindings macros and add compatible strings in the ramips device tree source files. Signed-off-by: L. D. Pinney <ldpinney@gmail.com> Signed-off-by: Mathias Kresin <dev@kresin.me>
		
			
				
	
	
		
			46 lines
		
	
	
		
			559 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			559 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#include "rt5350.dtsi"
 | 
						|
 | 
						|
/ {
 | 
						|
	compatible = "nexx,wt1520", "ralink,rt5350-soc";
 | 
						|
 | 
						|
	memory@0 {
 | 
						|
		device_type = "memory";
 | 
						|
		reg = <0x0 0x2000000>;
 | 
						|
	};
 | 
						|
 | 
						|
	chosen {
 | 
						|
		bootargs = "console=ttyS1,57600";
 | 
						|
	};
 | 
						|
};
 | 
						|
 | 
						|
&uart {
 | 
						|
	pinctrl-names = "default";
 | 
						|
	pinctrl-0 = <&uartf_pins>;
 | 
						|
	status = "okay";
 | 
						|
};
 | 
						|
 | 
						|
&pinctrl {
 | 
						|
	state_default: pinctrl0 {
 | 
						|
		gpio {
 | 
						|
			ralink,group = "jtag";
 | 
						|
			ralink,function = "gpio";
 | 
						|
		};
 | 
						|
	};
 | 
						|
};
 | 
						|
 | 
						|
ðernet {
 | 
						|
	mtd-mac-address = <&factory 0x4>;
 | 
						|
};
 | 
						|
 | 
						|
&wmac {
 | 
						|
	ralink,mtd-eeprom = <&factory 0>;
 | 
						|
};
 | 
						|
 | 
						|
&ehci {
 | 
						|
	status = "okay";
 | 
						|
};
 | 
						|
 | 
						|
&ohci {
 | 
						|
	status = "okay";
 | 
						|
};
 |