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