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