mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-04 06:54:27 -05:00 
			
		
		
		
	octeon: convert to new LED color/function format where possible
Initial conversion to new LED color/function format and drop label format where possible. The same label is composed at runtime. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
		
							parent
							
								
									0b8746ec10
								
							
						
					
					
						commit
						d1da4e5c9b
					
				@ -4,6 +4,7 @@
 | 
			
		||||
 | 
			
		||||
#include <dt-bindings/gpio/gpio.h>
 | 
			
		||||
#include <dt-bindings/input/input.h>
 | 
			
		||||
#include <dt-bindings/leds/common.h>
 | 
			
		||||
 | 
			
		||||
/ {
 | 
			
		||||
	compatible = "ubnt,edgerouter-e300", "cavium,cn7130";
 | 
			
		||||
@ -32,12 +33,14 @@
 | 
			
		||||
		compatible = "gpio-leds";
 | 
			
		||||
 | 
			
		||||
		led_power_blue: power_blue {
 | 
			
		||||
			label = "blue:power";
 | 
			
		||||
			function = LED_FUNCTION_POWER;
 | 
			
		||||
			color = <LED_COLOR_ID_BLUE>;
 | 
			
		||||
			gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		led_power_white: power_white {
 | 
			
		||||
			label = "white:power";
 | 
			
		||||
			function = LED_FUNCTION_POWER;
 | 
			
		||||
			color = <LED_COLOR_ID_WHITE>;
 | 
			
		||||
			gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
 | 
			
		||||
		};
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user