1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 2 3 /dts-v1/; 4 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/leds/common.h> 8 9 #include "ipq5018.dtsi" 10 11 / { 12 model = "TP-Link Archer AX55 v1"; 13 compatible = "tplink,archer-ax55-v1", "qcom,ipq5018"; 14 15 aliases { 16 serial0 = &blsp1_uart1; 17 }; 18 19 chosen { 20 stdout-path = "serial0:115200n8"; 21 }; 22 23 leds { 24 compatible = "gpio-leds"; 25 pinctrl-0 = <&led_pins>; 26 pinctrl-names = "default"; 27 28 led-0 { 29 color = <LED_COLOR_ID_GREEN>; 30 function = LED_FUNCTION_LAN; 31 gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>; 32 }; 33 34 led-1 { 35 color = <LED_COLOR_ID_GREEN>; 36 function = LED_FUNCTION_WAN_ONLINE; 37 gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>; 38 }; 39 40 led-2 { 41 color = <LED_COLOR_ID_GREEN>; 42 function = LED_FUNCTION_WLAN_2GHZ; 43 gpios = <&tlmm 13 GPIO_ACTIVE_HIGH>; 44 }; 45 46 led-3 { 47 color = <LED_COLOR_ID_GREEN>; 48 function = LED_FUNCTION_POWER; 49 gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>; 50 }; 51 52 led-4 { 53 color = <LED_COLOR_ID_ORANGE>; 54 function = LED_FUNCTION_WAN; 55 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>; 56 }; 57 58 led-5 { 59 color = <LED_COLOR_ID_GREEN>; 60 function = LED_FUNCTION_USB; 61 gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>; 62 }; 63 64 led-6 { 65 color = <LED_COLOR_ID_GREEN>; 66 function = LED_FUNCTION_WLAN_5GHZ; 67 gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>; 68 }; 69 }; 70 71 buttons { 72 compatible = "gpio-keys"; 73 pinctrl-0 = <&button_pins>; 74 pinctrl-names = "default"; 75 76 button-reset { 77 debounce-interval = <60>; 78 gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; 79 label = "reset"; 80 linux,code = <KEY_RESTART>; 81 }; 82 83 button-wps { 84 debounce-interval = <60>; 85 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>; 86 label = "wps"; 87 linux,code = <KEY_WPS_BUTTON>; 88 }; 89 }; 90 }; 91 92 &blsp1_uart1 { 93 pinctrl-0 = <&uart_pins>; 94 pinctrl-names = "default"; 95 status = "okay"; 96 }; 97 98 &sleep_clk { 99 clock-frequency = <32000>; 100 }; 101 102 &tlmm { 103 button_pins: button-pins-state { 104 pins = "gpio25", "gpio31"; 105 function = "gpio"; 106 drive-strength = <8>; 107 bias-pull-up; 108 }; 109 110 led_pins: led-pins-state { 111 pins = "gpio10", "gpio11", "gpio13", "gpio18", "gpio22", 112 "gpio38", "gpio39"; 113 function = "gpio"; 114 drive-strength = <2>; 115 bias-disable; 116 }; 117 118 uart_pins: uart-pins-state { 119 pins = "gpio20", "gpio21"; 120 function = "blsp0_uart0"; 121 drive-strength = <8>; 122 bias-disable; 123 }; 124 }; 125 126 &xo_board_clk { 127 clock-frequency = <24000000>; 128 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.