In preparation for a cleanup of 5.15 patches copy the files dir to 5.10 and 5.15 kernel version. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
		
			
				
	
	
		
			136 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			136 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 | 
						|
 | 
						|
#include "qcom-ipq8064-ad7200-c2600.dtsi"
 | 
						|
 | 
						|
/ {
 | 
						|
	model = "TP-Link Talon AD7200";
 | 
						|
	compatible = "tplink,ad7200", "qcom,ipq8064";
 | 
						|
 | 
						|
	aliases {
 | 
						|
		led-boot = &led_status;
 | 
						|
		led-failsafe = &led_status;
 | 
						|
		led-running = &led_status;
 | 
						|
		led-upgrade = &led_status;
 | 
						|
	};
 | 
						|
 | 
						|
	keys {
 | 
						|
		compatible = "gpio-keys";
 | 
						|
		pinctrl-0 = <&button_pins>;
 | 
						|
		pinctrl-names = "default";
 | 
						|
 | 
						|
		wifi {
 | 
						|
			label = "wifi";
 | 
						|
			gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
 | 
						|
			linux,code = <KEY_RFKILL>;
 | 
						|
			debounce-interval = <60>;
 | 
						|
			wakeup-source;
 | 
						|
		};
 | 
						|
 | 
						|
		reset {
 | 
						|
			label = "reset";
 | 
						|
			gpios = <&qcom_pinmux 7 GPIO_ACTIVE_LOW>;
 | 
						|
			linux,code = <KEY_RESTART>;
 | 
						|
			debounce-interval = <60>;
 | 
						|
			wakeup-source;
 | 
						|
		};
 | 
						|
 | 
						|
		wps {
 | 
						|
			label = "wps";
 | 
						|
			gpios = <&qcom_pinmux 67 GPIO_ACTIVE_LOW>;
 | 
						|
			linux,code = <KEY_WPS_BUTTON>;
 | 
						|
			debounce-interval = <60>;
 | 
						|
			wakeup-source;
 | 
						|
		};
 | 
						|
 | 
						|
		led_enable {
 | 
						|
			label = "led-enable";
 | 
						|
			gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
 | 
						|
			linux,code = <KEY_LIGHTS_TOGGLE>;
 | 
						|
			debounce-interval = <60>;
 | 
						|
			wakeup-source;
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	leds {
 | 
						|
		compatible = "gpio-leds";
 | 
						|
		pinctrl-0 = <&led_pins>;
 | 
						|
		pinctrl-names = "default";
 | 
						|
 | 
						|
		lan {
 | 
						|
			label = "blue:lan";
 | 
						|
			gpios = <&qcom_pinmux 2 GPIO_ACTIVE_HIGH>;
 | 
						|
		};
 | 
						|
 | 
						|
		usb1 {
 | 
						|
			label = "blue:usb1";
 | 
						|
			gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
 | 
						|
		};
 | 
						|
 | 
						|
		wlan5g {
 | 
						|
			label = "blue:wlan5g";
 | 
						|
			gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
 | 
						|
		};
 | 
						|
 | 
						|
		usb3 {
 | 
						|
			label = "blue:usb3";
 | 
						|
			gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
 | 
						|
		};
 | 
						|
 | 
						|
		wlan2g {
 | 
						|
			label = "blue:wlan2g";
 | 
						|
			gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
 | 
						|
		};
 | 
						|
 | 
						|
		wan_orange {
 | 
						|
			label = "orange:wan";
 | 
						|
			gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
 | 
						|
		};
 | 
						|
 | 
						|
		wan_blue {
 | 
						|
			label = "blue:wan";
 | 
						|
			gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
 | 
						|
		};
 | 
						|
 | 
						|
		wps {
 | 
						|
			label = "blue:wps";
 | 
						|
			gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
 | 
						|
		};
 | 
						|
 | 
						|
		wlan60g {
 | 
						|
			label = "blue:wlan60g";
 | 
						|
			gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
 | 
						|
		};
 | 
						|
 | 
						|
		led_status: status {
 | 
						|
			label = "blue:status";
 | 
						|
			gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
 | 
						|
		};
 | 
						|
	};
 | 
						|
};
 | 
						|
 | 
						|
&qcom_pinmux {
 | 
						|
	button_pins: button_pins {
 | 
						|
		mux {
 | 
						|
			pins = "gpio53", "gpio54", "gpio67";
 | 
						|
			function = "gpio";
 | 
						|
			drive-strength = <2>;
 | 
						|
			bias-pull-up;
 | 
						|
		};
 | 
						|
	};
 | 
						|
 | 
						|
	led_pins: led_pins {
 | 
						|
		mux {
 | 
						|
			pins = "gpio2", "gpio8", "gpio15", "gpio16", "gpio17", "gpio26",
 | 
						|
					"gpio33", "gpio55", "gpio56", "gpio66";
 | 
						|
			function = "gpio";
 | 
						|
			drive-strength = <2>;
 | 
						|
			bias-pull-up;
 | 
						|
		};
 | 
						|
	};
 | 
						|
};
 | 
						|
 | 
						|
&pcie2 {
 | 
						|
	status = "okay";
 | 
						|
	max-link-speed = <1>;
 | 
						|
};
 |