From patchwork Tue Feb 13 13:00:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13555085 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 27182C4829A for ; Tue, 13 Feb 2024 13:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=4a3IClB9t5Z5+RAFjTPgQxCfEqF1D/YhOYpxQMFi1ac=; b=nb+Kw+bS0wZZji iZCvCXCQuVcFt2OjgeQDfBtle74TwS1DdgRZH9VQWJ9t1NgNJc9Qfv2FufV5lbK3sziDyXwF0xxbN xzGBjLD8A6qr/8JdVH4L9yPpBRWLAWN2xVOC1ZUU1s1BaOBPbkGO2pwB3Y6kYTURGeifV60JWWx4G AZ/eefUBf/3UFedpXUQge4f+1fMG5KyRRw8uAggWiugI6/qlidgrz5NXdQ3iaI/40gGE1+AVciR+2 qxFqakMNtEPKO8oOfIhr3cUYNYgavBHadJf0fIbDoJ+nsm1ERZPhEuWoBScG/7Q/81DDdr76k5DcM Icvc06J5XWX1aSZliEMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZsQx-00000009Gds-29h0; Tue, 13 Feb 2024 13:02:47 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZsQu-00000009Gd9-30QO; Tue, 13 Feb 2024 13:02:45 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a3d01a9a9a2so67635366b.1; Tue, 13 Feb 2024 05:02:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707829361; x=1708434161; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FA+jIHvO6N83h8i/+0IHkCxHo1xBrnoRrPyNFxf5Oks=; b=nkNuQQOXbhQyilJDiye1PA044o25i7H1y43opnlPES2damtbX4FQ/SB3tQva3Uvale VtH8hkOdopOsZyvnuIUWv8UGRwQlgltwFpZS4rP/MY2ZY1ZOvka7Xs0OR8dOFoRhl888 n0xPQPxQsVjcAafBzWT65Z5FnffsjqglfV9mXLGxgON+PRWl1IDUOLaLF8meP5RTiYWZ m0l1wx+p3uIC+LTokvLz/KjmPLj+SKX2eHeQ+nT/S4GbpkD7Igo3QxZrZoxDBI6cZrg9 wuPRVo5mQf8qX9pqfIzua3960gu+t6pwUA98uPocH/otEiCMT+os4SZ/AAEPpC9uuN5a qT4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707829361; x=1708434161; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FA+jIHvO6N83h8i/+0IHkCxHo1xBrnoRrPyNFxf5Oks=; b=j5SoZF+1jcKI2x5V+z10j9VC3dNGBWy8du+mH63d+sWXdBkS5/b9jYdQ9Qnw8bhX4Y MtSaaxOgD7sTZ8Y+6Gkup42aH9bwNlcRznJo3dUm/bLeD/QdaQwu2hUP3T6ZOeHHm9Ia v2lTZ+FPGbTfvcybrfQciGNjtA2ZqkngpO5QzqNHR0sMUVQlf8pq/ylT569DTrjU2Vd+ 2XvAF/iJZvfZkQ6uPS+oqzMedQcfC3vGfFzal9qGkoyUKlEkm3AXa5RIHvCdPJ7iq0a1 guV3X7cfY7imgDltjAD0cSgtMUqP21X2sc/QBAnsvYtVt0ddzasNjnD8RNZncPo3GNX2 8SWA== X-Forwarded-Encrypted: i=1; AJvYcCW9YM//f142WkhlAvrMIZiM2/Z8em4tctd2VfAAyKYFb/zdu/2voOcD7KKNAaRUgp6HFN3H4vXXWAnTl5MhZFpBKocnGEnPLSHvolc50ySTPrYt1EFHvQ8t0AJJ/ni6Mv8nvBEPAj6vWs2/v6eR0Rl3D4jGP6MCNag= X-Gm-Message-State: AOJu0YyC4oBGQJbGvtYssbhPedUJM2lcccbNwn5bdc0HST2CU7Vckybc 57i5n0VaJqCqZ+5AX/QXQhbXRfjgRbxMsY/QjwjhYOsU58QVvLpMvHuBHiku X-Google-Smtp-Source: AGHT+IGLZFPjqI6ocAaqhcRaxmUy9C+7hjlIlp7ayrZIp/AsNc0AgtcJB7Qxj0AFAKUACpijfOXF2w== X-Received: by 2002:a17:906:7db:b0:a3c:3411:de61 with SMTP id m27-20020a17090607db00b00a3c3411de61mr5741003ejc.40.1707829360724; Tue, 13 Feb 2024 05:02:40 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWI55+H4k9UgqDL8KLU0rUmH2A9ZLaSIsHdTf4k9CBW8dH54wO/DOBOCkyFHTqJiPEX0c0e0wYflDM7+AI7x6K17BAUFqq6j2lh8k07nujtqQkPv7w7uG63Zx+5p7WHh80vNaPZ/rXbVU6evNkn7/Lso6xD2BVEvPZKfuF4Qgh9r0F+lKh15OpYg+IyEVNtiOGBba8z7FRYpbvP9QimVyuT9cULQ1qWwob3RgG55GRryjEugtLgBmAWkyjidGEeNu48Ic0RyYWgEPi7TKGXwHwxdPnqJI24vJOUCRlUcj+wYoc9Li8fIem9CMGX8M3tmtwAEeDtCG5Vnz+dRM5cd5mkBj/NkK4lCjRbnRsUrD5NW+PovYwvAPfWqXtWAxa9ocEMxj14jDZ0gGW6brFuWSWZv0oCDeIyKXn9ZKbvlvrdWa33sYvRyIk5onw2KWBCjGdH5/8uLK+vKQoK2nl12CXt1XwG6Ifvq45xuyknHyKyib/Ns8UCtE1svBDDejDTtk0SrSIDBZqirQCIiX83SgutbK76Lh0M7ZFgU9qdhtOxGw== Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id cw15-20020a170907160f00b00a3d004237ebsm633078ejd.212.2024.02.13.05.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 05:02:40 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Chunfeng Yun , Greg Kroah-Hartman , Daniel Golle , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?UmFm?= =?utf-8?b?YcWCIE1pxYJlY2tp?= Subject: [PATCH 1/2] dt-bindings: usb: mtk-xhci: add compatible for MT7988 Date: Tue, 13 Feb 2024 14:00:43 +0100 Message-Id: <20240213130044.1976-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240213_050244_782671_6C2E5E11 X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki MT7988 SoC contains two on-SoC XHCI controllers. Add proper binding. Signed-off-by: Rafał Miłecki Acked-by: Conor Dooley Reviewed-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml index 924fd3d748a8..ef3143f4b794 100644 --- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml @@ -29,6 +29,7 @@ properties: - mediatek,mt7623-xhci - mediatek,mt7629-xhci - mediatek,mt7986-xhci + - mediatek,mt7988-xhci - mediatek,mt8173-xhci - mediatek,mt8183-xhci - mediatek,mt8186-xhci From patchwork Tue Feb 13 13:00:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13555084 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44C43C4829A for ; Tue, 13 Feb 2024 13:03:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=K4g886StZQUd44vX9EJY2xIUv1mbAjPhDElBK36xN9k=; b=Z1JMGu1HCDvv7n qi/SiGeBeW+V/tziCh860GvC6gSA0THWclC/MJe/OsfpnzF8ODRfOyFwHUvtDYLGgzB+ORuRu1RWP JGJUdoFSLW1QzV/RiCVhm8w5Of/eZjJO83A70OFj0XlJWm15/WKL76WcfhhuMlnABPP1OEWqeuWTw mywG1reVR+QeoGbt6qmmonImnMjfl5a6vJSCYIv5fYfWg6SmBdjLeH7V5Tk7Z4RmSd63RF/Jls09j Hzqof97TCQ7lcK4VKHGgkAN01FlB5pa9pdh5h4AlEbLt3s93irLuKT2c4aX9Jbp3bD0abgKjJIoBd H3NEXQIRGprl/0Y9SWug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZsR2-00000009Gfa-2a6x; Tue, 13 Feb 2024 13:02:52 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZsQz-00000009Gdq-1fwy; Tue, 13 Feb 2024 13:02:50 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-560e9c7a094so5608096a12.0; Tue, 13 Feb 2024 05:02:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707829366; x=1708434166; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9Cq+iI48CDe+5VO7sSMk/e7qj86AX8EMGUWgbiDs5Ns=; b=O36sECfHqwqhzh1IJOm+3/XSVjDt7ygcmmNat3yNAKFvlU/uYSKa8intTS9D0Gb/7e AWUa2WraVuQMv996iGh9oIUjbqKLoOYgr9i50rUMrPeGpecUY2XYlQerUrMjurSPGQJe U5q89zO82OHzbWCFhbhdPYXkFwQUtfOw28CCWbYkD8L2aQJ6vx/YMtqPr6RSl5v06whq f3Jk8SaxVHNeXUuHZWXYHxcuiKDvssMX621qrcQT1GB7SxrXv4mpogsGEBy2BY8sxfaL wL0QIUJVcSxfl6Z5M+8BjvUNbOXZUZuFKOg3k3XEuLVtI1RuuaW8L/5pliU9DNq7CIzP LjgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707829366; x=1708434166; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9Cq+iI48CDe+5VO7sSMk/e7qj86AX8EMGUWgbiDs5Ns=; b=aLmUYVRlwhe15rgFLkBuWtKkr/AoSUH/htqogVfq4MBTIqjl2dVUiaBQVxl1IM51el 7gIS3p2MV+NRvEbbsIaXOb5/58MTHMdQZ42m3GNv5Z65+SPcStsuItCQbPpNTUB8JdKu txJZYhm3A5kHLw+uKq40lEVrTPftB7qxQGhU9c7zOqN+OpDUQd2Is22nSI0G6RQdIjJC 6mx9J0ga+RCObLkuAFuZKU0kMqqm7e46AnpLiPc3hsVwvtuRgFOF8gxMD8IaAYIA8ZCU ius9TDK5bLyecxBPJ0gZ/sPaMrcLQT99F0CJt66lq2399FlEm20f9tUHEadFRgk0kU/3 1gEQ== X-Forwarded-Encrypted: i=1; AJvYcCVIcHrkJZjJFe2TNa5OFbx/SfJHY6T+msSUAcAbByL7xkDmwlAZSFGJb9BTx3cklYEb0zDKDBY81eP5+zngzyDZFkoxp7X2rZ9hsV89jpbpR/vrdv6nFDZaZ/L9MzdZES2RsXjN6iSl7b4pVxul1eOY07f+ekKCKnY= X-Gm-Message-State: AOJu0YxJB3k1Oxn8ByNMxfW5HtGsDaYtVPCISwGPJkhkR7QYTAQFWRdq 9xkYLXU416IIgHd8F31oWzKMBkHIZoRZdvMl15oKvpBgPBMEEWHI33OxzEAF X-Google-Smtp-Source: AGHT+IGwFZ/B7NIFFcOnp2yFup95b+UeJUZ6E+6zkb73wGvSwm0cn063bkqvcUbgz2zWlqx3KDTONA== X-Received: by 2002:a17:906:f88c:b0:a3c:8770:3795 with SMTP id lg12-20020a170906f88c00b00a3c87703795mr4365644ejb.15.1707829365845; Tue, 13 Feb 2024 05:02:45 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUQd7FhW+1Uji0/Kw8nyU5iosaUylTYW21ZHKoUoT9ZyjzXWSFkwAIhE6Op8Ai/8id8BMsPSYCUjv/0QPqvImddI3pTh5U3rNX76vbsxis4r65rvE9S4ka4TixwJvOdwq94CbIxE7qh+NgiRyva159qE7FTL0xCmmLMleU7R1sknZS/ZZatTKaJGqqo+iI6b657bbo6hBx/G/cAGOzfGRxZcGNxoXZ2t0i2uxmQ7TpiLASQJxbBX9BJ599Ksk2UCqJZrbtQDsuIlDmw943oOQDrMfaRxHTGsJAgC8dAN3c7bLNZwIfp5udFq1Qmc4PGKcO7RbRvzRbUy5DaRcujhAcakboeIaiUrBnCcE9Is7TEn2KGwALWXK1Ao7e98mNC3rH6mbNiyequTN/yiFmfDmE5KbLBgjO44/c1JDuGj2YuLx3wlwbOSSeLDEC4WwjutfpiTecOlOZKeCAA2hWGinRelblNGFcmaFlTLfRaUpH0ifPBICKQgcAm87xGbrGjhILR+66YG2HkRzR20wBYbFwmRI2pATXlTDvdBISYEnxyBQ== Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id cw15-20020a170907160f00b00a3d004237ebsm633078ejd.212.2024.02.13.05.02.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 05:02:45 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Matthias Brugger , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Chunfeng Yun , Greg Kroah-Hartman , Daniel Golle , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?UmFm?= =?utf-8?b?YcWCIE1pxYJlY2tp?= Subject: [PATCH 2/2] arm64: dts: mediatek: mt7988: add XHCI controllers Date: Tue, 13 Feb 2024 14:00:44 +0100 Message-Id: <20240213130044.1976-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240213130044.1976-1-zajec5@gmail.com> References: <20240213130044.1976-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240213_050249_478556_0A62B35D X-CRM114-Status: GOOD ( 11.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki Add bindings of two on-SoC XHCI controllers. Signed-off-by: Rafał Miłecki Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 32 ++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index bba97de4fb44..3eb5396dea22 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -1,6 +1,8 @@ // SPDX-License-Identifier: GPL-2.0-only OR MIT +#include #include +#include / { compatible = "mediatek,mt7988a"; @@ -78,7 +80,7 @@ gic: interrupt-controller@c000000 { #interrupt-cells = <3>; }; - clock-controller@10001000 { + infracfg: clock-controller@10001000 { compatible = "mediatek,mt7988-infracfg", "syscon"; reg = <0 0x10001000 0 0x1000>; #clock-cells = <1>; @@ -103,6 +105,34 @@ clock-controller@1001e000 { #clock-cells = <1>; }; + usb@11190000 { + compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; + reg = <0 0x11190000 0 0x2e00>, + <0 0x11193e00 0 0x0100>; + reg-names = "mac", "ippc"; + interrupts = ; + clocks = <&infracfg CLK_INFRA_USB_SYS>, + <&infracfg CLK_INFRA_USB_REF>, + <&infracfg CLK_INFRA_66M_USB_HCK>, + <&infracfg CLK_INFRA_133M_USB_HCK>, + <&infracfg CLK_INFRA_USB_XHCI>; + clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck"; + }; + + usb@11200000 { + compatible = "mediatek,mt7988-xhci", "mediatek,mtk-xhci"; + reg = <0 0x11200000 0 0x2e00>, + <0 0x11203e00 0 0x0100>; + reg-names = "mac", "ippc"; + interrupts = ; + clocks = <&infracfg CLK_INFRA_USB_SYS_CK_P1>, + <&infracfg CLK_INFRA_USB_CK_P1>, + <&infracfg CLK_INFRA_66M_USB_HCK_CK_P1>, + <&infracfg CLK_INFRA_133M_USB_HCK_CK_P1>, + <&infracfg CLK_INFRA_USB_XHCI_CK_P1>; + clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck", "xhci_ck"; + }; + clock-controller@11f40000 { compatible = "mediatek,mt7988-xfi-pll"; reg = <0 0x11f40000 0 0x1000>;