mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			555 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			555 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #include "qcom-ipq4018-rutx-common.dtsi"
 | |
| 
 | |
| / {
 | |
| 	io_expander = "shiftreg_1";
 | |
| 
 | |
| 	soc {
 | |
| 		ext_io {
 | |
| 			compatible = "spi-gpio";
 | |
| 			#address-cells = <1>;
 | |
| 			#size-cells = <0>;
 | |
| 
 | |
| 			gpio-sck = <&tlmm 1 GPIO_ACTIVE_HIGH>;  // SRCLK
 | |
| 			gpio-mosi = <&tlmm 3 GPIO_ACTIVE_HIGH>; // SER
 | |
| 			cs-gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;  // RCLK
 | |
| 			num-chipselects = <1>;
 | |
| 
 | |
| 			shift_io: shift_io@0 {
 | |
| 				compatible = "fairchild,74hc595";
 | |
| 				reg = <0>;
 | |
| 				gpio-controller;
 | |
| 				#gpio-cells = <2>;
 | |
| 				registers-number = <3>;
 | |
| 				spi-max-frequency = <10000000>;
 | |
| 			};
 | |
| 		};
 | |
| 	};
 | |
| };
 |