gpio is deprecated. Found with dtc's -Wdeprecated_gpio_property Used git grep -E $'\tgpio = <' to make the changes. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15681 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
		
			
				
	
	
		
			96 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			96 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#include "mt7621_mikrotik.dtsi"
 | 
						|
 | 
						|
/ {
 | 
						|
	compatible = "mikrotik,routerboard-m11g", "mediatek,mt7621-soc";
 | 
						|
	model = "MikroTik RouterBOARD M11G";
 | 
						|
 | 
						|
	aliases {
 | 
						|
		led-boot = &led_usr;
 | 
						|
		led-failsafe = &led_usr;
 | 
						|
		led-running = &led_usr;
 | 
						|
		led-upgrade = &led_usr;
 | 
						|
	};
 | 
						|
 | 
						|
	leds {
 | 
						|
		compatible = "gpio-leds";
 | 
						|
 | 
						|
		led_usr: usr {
 | 
						|
			label = "green:usr";
 | 
						|
			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
 | 
						|
		};
 | 
						|
 | 
						|
		rssi0 {
 | 
						|
			label = "green:rssi0";
 | 
						|
			gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
 | 
						|
		};
 | 
						|
 | 
						|
		rssi1 {
 | 
						|
			label = "green:rssi1";
 | 
						|
			gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
 | 
						|
		};
 | 
						|
 | 
						|
		rssi2 {
 | 
						|
			label = "green:rssi2";
 | 
						|
			gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
 | 
						|
		};
 | 
						|
 | 
						|
		rssi3 {
 | 
						|
			label = "green:rssi3";
 | 
						|
			gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
 | 
						|
		};
 | 
						|
 | 
						|
		rssi4 {
 | 
						|
			label = "green:rssi4";
 | 
						|
			gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	pcie0_vcc_reg {
 | 
						|
		compatible = "regulator-fixed";
 | 
						|
		regulator-name = "pcie0_vcc";
 | 
						|
 | 
						|
		regulator-min-microvolt = <3300000>;
 | 
						|
		regulator-max-microvolt = <3300000>;
 | 
						|
		gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
 | 
						|
		enable-active-high;
 | 
						|
		regulator-boot-on;
 | 
						|
		regulator-always-on;
 | 
						|
	};
 | 
						|
};
 | 
						|
 | 
						|
&partitions {
 | 
						|
	partition@40000 {
 | 
						|
		compatible = "mikrotik,minor";
 | 
						|
		label = "firmware";
 | 
						|
		reg = <0x040000 0xfc0000>;
 | 
						|
	};
 | 
						|
};
 | 
						|
 | 
						|
ðernet {
 | 
						|
	pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
 | 
						|
};
 | 
						|
 | 
						|
&switch0 {
 | 
						|
	ports {
 | 
						|
		port@0 {
 | 
						|
			status = "okay";
 | 
						|
			label = "lan";
 | 
						|
		};
 | 
						|
	};
 | 
						|
};
 | 
						|
 | 
						|
&state_default {
 | 
						|
	gpio {
 | 
						|
		groups = "uart2", "wdt", "rgmii2";
 | 
						|
		function = "gpio";
 | 
						|
	};
 | 
						|
};
 | 
						|
 | 
						|
&i2c {
 | 
						|
	status = "okay";
 | 
						|
};
 | 
						|
 | 
						|
&pcie {
 | 
						|
	status = "okay";
 | 
						|
};
 |