Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1931993lql; Wed, 13 Mar 2024 12:12:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxIFcr1BwTT1wbADQ+hpRLa/Ip3fIgF8sEreX6nhVq6NBSV8s5RsRedBX/lTt/DHFmNz9IC43JXo28JpiY5H0C1mi3Fd4xS/Dg75Ctig== X-Google-Smtp-Source: AGHT+IHDPvscBYLnnV5DQ6Pzf1cjK/6N10yekGr8mpP8PstbGff0OwVlCclILt4YDAh+ovsaXKoW X-Received: by 2002:a05:620a:22d6:b0:788:3e8d:e41a with SMTP id o22-20020a05620a22d600b007883e8de41amr809337qki.14.1710357171729; Wed, 13 Mar 2024 12:12:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710357171; cv=pass; d=google.com; s=arc-20160816; b=GGyQekc4TaGM2lPBLqBRUyC3ZDHGb/p6Do96dewM4R+Zv5+FizLfVREwtc1A4aqoMW uvo/JYMjEjroJMM53fjuUa2Cn/POwkvfTSuBpWJG2Ssnw/md1s///f+00qMSP/k4l1Kt JAP5Fd8J714b+HDLMSb/iAfFYYSPbxe2RF8+Ij+wWdnw5bfBGb2fDH+CR+a6P3NJMYBq qEeX7Zhs8JVlCZvcx94gM5plZkbtev7iHIgdjffa+rYtqTGb1iMqZfwMq60R50oVw1kN U6lQYkPWirSVdgc3mILIZfcbCynn70Hd0EKZ8dy05N8xA0AI64j5GjlESCmeXFZ9QNx+ OvDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=krJhQP8CYJbvRc+buIXM8H7mfu3rhUay6+eJJ/PMl4U=; fh=hijprztWjr+FA0Ne6kWsF40L4Sr5ildVk8iPJ//zhB4=; b=jQNxlq5Ow+XBrfOFi+kj0zOrEP/AThPTFMBSvOKIW/tR5Te+dDF7oOcKS7+bdQY96P kzktmQcVxTdbDabi9McW+3UVXajtAdrHHvDVxjvy6zrJuB+7//ZTppu/8lHZ+l0btnNH ZgXHCNeATI96M7I00m05RzrLyCC1P3l9llTYnWFpqi/qzAVgRWAooQvadhCGE2VgLirH +Pfz/P6KQ8f7kyQWDtGXP5Sz34BhT8Ikk28Nng9xIycMkBgDq/l2VTbwGpEbWG9EQ24v OWInySPCdQ+eMnp84jYxZ1QLeVGQT3nkPt3KZsBdyG7rB6q8m6MhnT2dXhuAe4pggUoQ +d2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=h1DTXCtt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-102360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z3-20020a05620a08c300b0078847af77casi10331149qkz.496.2024.03.13.12.12.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 12:12:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=h1DTXCtt; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-102360-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102360-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 28A6F1C27993 for ; Wed, 13 Mar 2024 19:09:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 591CA73531; Wed, 13 Mar 2024 18:25:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h1DTXCtt" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C36C73191; Wed, 13 Mar 2024 18:25:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710354355; cv=none; b=cQo+W+6hFslGuvGIdI5O5ojHQhlauwxtPzvrXrO8HnHbIlu1gh/Gp5pKGCp+Aj8ZXjC5SGf2OWFh1M+V5CsYX5sDmSSArk2SRXUP9A7j5ioVCQdxrm6+pLRdZm2eXrQB11OgSwZ1hynkRMYtDt2hSyZLnxT1zmaCyZ1r378aRZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710354355; c=relaxed/simple; bh=BSlu7N/By/qd/oV4zudA//pQ796/J/j/cYkZmFtnckI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mRHMBylJrWAF2zmQ9ibTysMQkWe07JJdZec7+D+BdRlfhtYH/zpTwrXVK/uqxKSUl1+csip/lWMDAtbRWiqLshQcuGrxWWieOdCGqGcHrWi3nqmm5f6s6WpvymrbaM39PW6iov+pXSD0qXq1WcIYBChMjy+VBiz1rJNHrKPxSNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h1DTXCtt; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-56829f41f81so180272a12.2; Wed, 13 Mar 2024 11:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710354351; x=1710959151; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=krJhQP8CYJbvRc+buIXM8H7mfu3rhUay6+eJJ/PMl4U=; b=h1DTXCttagZXyTAG5AIm9ftJzphmLG8I58dS9ejIZ0eJJ0I+4wkpUxbkFjC25xhFcX Ir6KVEwJUZLR0RlVE653qJQ2klSNbgETgsGZQ7Ze10qjo7rzwzSpe6IWbWRCcM4UkxKh RxizvcFH9m9i+3ZrZVbRiFbrz2CfCMMyJg8XEByJloLXdcLnCTDOfx4/oIGLJMptpKEA Dj1/D6q7sWvrLcGoihOuEZY/4/zBpqHNPQRLS3EWI91Au4nu6nHkAQ67CxTc9Gr0G4UV 4F7oDEX/P9CsgQXQbFxT1auj6I8lvH0kB63raZ2mXhPeGFG9ISi2CmvWzwBK8p+B/nna 4wZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710354351; x=1710959151; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=krJhQP8CYJbvRc+buIXM8H7mfu3rhUay6+eJJ/PMl4U=; b=JoyG4sIrT28yPjBlDTUIWUuIV4+osyLFIVFzvb+aP63jrncDNlo23c1L5SXnVZp7RM FGk1H/Bgwb6+VTiGKqWzVoCjVAgUYj+1ufyUoq+hEH1FzPgKSmXTg3BER2FnU4OAem5H 9SWIrNLNK48y1BLr9UTkEw3CODxAblq0eLwrUpurJWUsnBVKtwszkClE1drbP8DclGd2 pbW8ka6jnK/S6pK0UP7fP6hJzpkz/gbPPLPjfeXOMGw4HMOa2IWlZEHrS5mypJvK7cp9 wgcrF7vpRBFTXZQvweVbIToWdYz5bKl4i141D32hitkhRCNB475SIeFeyNYXANqltmLV ikoQ== X-Forwarded-Encrypted: i=1; AJvYcCUeVyxMMt8wPRlgjVZA3E6vog8tYtCARq83ZAlcFwPWQeolJ20BRGOgKUG1o7QgJZtdbmGLSswUW4sKT1X7R12x2UZ+qqCDRpPBcNhD/UaNo6kWVlG1dA84KSfiCao6rU91z957SVbDgQ== X-Gm-Message-State: AOJu0Yw0L5v5pzsfsDfyo7609q4EyAeNL2MuCQ4UABi9fz/VGlflLIgs Yzj7/bQ8Ix3qtpQqvqSamDT8f43tBdmf9uGAGTwkyhkqvo3Z1JBP X-Received: by 2002:a50:d495:0:b0:568:3004:c611 with SMTP id s21-20020a50d495000000b005683004c611mr7418877edi.42.1710354351357; Wed, 13 Mar 2024 11:25:51 -0700 (PDT) Received: from [192.168.20.102] (57657817.catv.pool.telekom.hu. [87.101.120.23]) by smtp.googlemail.com with ESMTPSA id k15-20020aa7c04f000000b0056864cde14dsm2827390edo.68.2024.03.13.11.25.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 11:25:50 -0700 (PDT) From: Gabor Juhos Date: Wed, 13 Mar 2024 19:25:40 +0100 Subject: [PATCH v3 2/2] arm64: dts: qcom: add TP-Link Archer AX55 v1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240313-archer-ax55-v1-v3-2-cd9402efab59@gmail.com> References: <20240313-archer-ax55-v1-v3-0-cd9402efab59@gmail.com> In-Reply-To: <20240313-archer-ax55-v1-v3-0-cd9402efab59@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Gabor Juhos X-Mailer: b4 0.12.3 Add device tree source for the TP-Link Archer AX55 v1 [1] which is a dual-band WiFi router based on the IPQ5018 SoC. At the moment, only the UART, the GPIO LEDs and buttons are usable, but it makes it possible to boot an initramfs image on the device. The device tree can be extended in the future, once support for other periherals will be available for the platform. 1. https://www.tp-link.com/en/home-networking/wifi-router/archer-ax55/v1/ Signed-off-by: Gabor Juhos --- Changes in v3: - change pin configuration to use "gpio20" and "gpio21" for UART pins - rebase on top of v6.8. - Link to v2: https://lore.kernel.org/r/20240226-archer-ax55-v1-v2-2-3776eb61f432@gmail.com Changes in v2: - reorder the properties in TLMM pin configuration nodes to follow the usual order pointed out by Krzysztof - Link to v1: https://lore.kernel.org/all/20240223-archer-ax55-v1-v1-2-99f8fa2c3858@gmail.com Note: running 'make CHECK_DTBS=y qcom/ipq5018-tplink-archer-ax55-v1.dtb' shows the following: DTC_CHK arch/arm64/boot/dts/qcom/ipq5018-tplink-archer-ax55-v1.dtb <...>/arch/arm64/boot/dts/qcom/ipq5018-tplink-archer-ax55-v1.dtb: usb@8af8800: interrupts: [[0, 62, 4]] is too short from schema $id: http://devicetree.org/schemas/usb/qcom,dwc3.yaml# <...>/arch/arm64/boot/dts/qcom/ipq5018-tplink-archer-ax55-v1.dtb: usb@8af8800: interrupt-names: ['hs_phy_irq'] is too short from schema $id: http://devicetree.org/schemas/usb/qcom,dwc3.yaml# <...>/arch/arm64/boot/dts/qcom/ipq5018-tplink-archer-ax55-v1.dtb: usb@8af8800: interrupts: [[0, 62, 4]] is too short from schema $id: http://devicetree.org/schemas/usb/qcom,dwc3.yaml# <...>/arch/arm64/boot/dts/qcom/ipq5018-tplink-archer-ax55-v1.dtb: usb@8af8800: interrupt-names:0: 'pwr_event' was expected from schema $id: http://devicetree.org/schemas/usb/qcom,dwc3.yaml# <...>/arch/arm64/boot/dts/qcom/ipq5018-tplink-archer-ax55-v1.dtb: usb@8af8800: interrupt-names: ['hs_phy_irq'] is too short from schema $id: http://devicetree.org/schemas/usb/qcom,dwc3.yaml# This is not caused by the new device tree per se but comes from the usb@8af8800 node defined in ipq5018.dtsi. Running the check on 'qcom/ipq5018-rdp432-c2.dtb' shows the same. --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../dts/qcom/ipq5018-tplink-archer-ax55-v1.dts | 132 +++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 39889d5f8e123..d3ba1e22d6ddd 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -10,6 +10,7 @@ dtb-$(CONFIG_ARCH_QCOM) += apq8094-sony-xperia-kitakami-karin_windy.dtb dtb-$(CONFIG_ARCH_QCOM) += apq8096-db820c.dtb dtb-$(CONFIG_ARCH_QCOM) += apq8096-ifc6640.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5018-rdp432-c2.dtb +dtb-$(CONFIG_ARCH_QCOM) += ipq5018-tplink-archer-ax55-v1.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5332-rdp441.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5332-rdp442.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5332-rdp468.dtb diff --git a/arch/arm64/boot/dts/qcom/ipq5018-tplink-archer-ax55-v1.dts b/arch/arm64/boot/dts/qcom/ipq5018-tplink-archer-ax55-v1.dts new file mode 100644 index 0000000000000..15fcb5693545d --- /dev/null +++ b/arch/arm64/boot/dts/qcom/ipq5018-tplink-archer-ax55-v1.dts @@ -0,0 +1,132 @@ +// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause + +/dts-v1/; + +#include +#include +#include + +#include "ipq5018.dtsi" + +/ { + model = "TP-Link Archer AX55 v1"; + compatible = "tplink,archer-ax55-v1", "qcom,ipq5018"; + + aliases { + serial0 = &blsp1_uart1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-0 = <&led_pins>; + pinctrl-names = "default"; + + led-0 { + color = ; + function = LED_FUNCTION_LAN; + gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>; + }; + + led-1 { + color = ; + function = LED_FUNCTION_WAN; + gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>; + }; + + led-2 { + /* WLAN 2.4GHz */ + color = ; + function = LED_FUNCTION_WLAN; + function-enumerator = <0>; + gpios = <&tlmm 13 GPIO_ACTIVE_HIGH>; + }; + + led-3 { + color = ; + function = LED_FUNCTION_POWER; + gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>; + }; + + led-4 { + color = ; + function = LED_FUNCTION_WAN; + gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>; + }; + + led-5 { + color = ; + function = LED_FUNCTION_USB; + gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>; + }; + + led-6 { + /* WLAN 5GHz */ + color = ; + function = LED_FUNCTION_WLAN; + function-enumerator = <1>; + gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>; + }; + }; + + buttons { + compatible = "gpio-keys"; + pinctrl-0 = <&button_pins>; + pinctrl-names = "default"; + + button-reset { + debounce-interval = <60>; + gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; + label = "reset"; + linux,code = ; + }; + + button-wps { + debounce-interval = <60>; + gpios = <&tlmm 31 GPIO_ACTIVE_LOW>; + label = "wps"; + linux,code = ; + }; + }; +}; + +&blsp1_uart1 { + pinctrl-0 = <&uart_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + +&sleep_clk { + clock-frequency = <32000>; +}; + +&tlmm { + button_pins: button-pins-state { + pins = "gpio25", "gpio31"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + + led_pins: led-pins-state { + pins = "gpio10", "gpio11", "gpio13", "gpio18", "gpio22", + "gpio38", "gpio39"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + uart_pins: uart-pins-state { + pins = "gpio20", "gpio21"; + function = "blsp0_uart0"; + drive-strength = <8>; + bias-disable; + }; +}; + +&xo_board_clk { + clock-frequency = <24000000>; +}; -- 2.44.0