From patchwork Wed Jun 5 08:54:33 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: 13686432 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 6D644C25B76 for ; Wed, 5 Jun 2024 08:55:14 +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=VZIw156jTkrGbs9iZZcZX4h8LVpaH5NcX7UDZ0Jh8ME=; b=CwQEDILT/AgP5Y dOf2O7byT+B0TqvaZ+u+mINzVeP/XqzjwU1z7xCRm8FN5Ex7tA2f6ervhZwGo1w18NtYBpcxnEYFB MhAbzs2ZjPupURSoWA6QhdEJbwxw+HVbseY0/y9VaeN5XJDt9kFkUVV7XP0bmFBvcYST1AtX0o1ju 2j49Ttw6+nEOx33LceXClDVlD8JUpGmhy3flsbdHaMslhgmjAJn8uyZ6fQ4QwdP9Jy234UNS9JkG0 4NcAyat5j/5Le62NMNCkrP2jfgA8BAv/Csqe+9JWTvZ0Xsa2SZLPHFOcZj7sYsCgPR9zQ/i458DR3 TVr7bADZx3QIHiGETWUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEmQ9-00000005Id1-3tSy; Wed, 05 Jun 2024 08:55:01 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEmQ4-00000005IZn-3QuN; Wed, 05 Jun 2024 08:54:58 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a68c8b90c85so463833366b.2; Wed, 05 Jun 2024 01:54:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717577694; x=1718182494; 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=ZzCw56uBajgoPcSKxbxBOTmVAmxJFjZGHkEQgNNQnIk=; b=lgvBsYxaRRfQRBTuU+kSzk5pmqLNubc3rgxdJ7Qdlet7idSgrXDqIrpUumv1JruHBO o9bnwd82M1QiFCbEq0TY4w6pqxN3O5dNVhju/dM5GYdBeGXLN8/6epQPBfsIJLaI4bcF SZob0Ov5juv9cIVmCbNhs45gQD5RYw6psjIab2CkZjzrgWTThtekaFD4MX7ZwlDNuuvy 9OSNveMXj91MNHcO3R3o/l2mUrZ4IqllseAM/FyzfLX76HsKA+ncBy/8oCH28FK7uBzu jO6M69fQCdyJ0fyqFrthXYO/xZCR8BawrD53f5KmwGzxYxfL+F+SH6PKZGcLsfbx2Sab sfgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717577694; x=1718182494; 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=ZzCw56uBajgoPcSKxbxBOTmVAmxJFjZGHkEQgNNQnIk=; b=BbBHkZB1qWYnihv8SvRvLdqZzPjSXMTUWgcK0kn9HbP+bkLNiv/KV6wUGCx0H92CRR AxMQX30kIiHcwznhpyE/XVnJMWdQaM89waES/BXoayjm2h4UyXaUQgGHhLdgoZ3wj/On wdcOm6stlmGolZRG1qEyNuo0jgWG/5OLGUfOravLTJycHkJ0yTqEIkfy0Ll3IH+1efOk b5JjnrWoM7ruhrsaasN8sZnNEdiu7CduN71BRgq+QdxM81UzI0qUFa9fpgtqElOtU4h1 NQhzrKgrY1DeXm3R59bjRL6h5jwNTXHZOVeOqXHOoZxfLZZbcz5aSamwmLA7+MmWTcM1 FSaw== X-Forwarded-Encrypted: i=1; AJvYcCWe1B12Nfrd/jVD+WLbLEzdEwAuGGajqsaIwAlnlNGORTTy3TUw5WdVnGEkSBbLJeVwymmQv7QsQA2oR1zpmz4n0B44pwaMcE1qAYpX+nBUfjp2mcoIBJYSuSo5Vk5hw1H6AVTxkJwFJWi6b9phZwoeBMzU4IHeKew= X-Gm-Message-State: AOJu0YzfHdyKKjpiPIYcrWIp5FD2V8NT7c7zRUQm/E+QZZTLrDT34OkG fL5WL2cCMwo4XJu8sZ1adoaCMOEKy2nix1PUiH2nt+p77BUoZD7kjRag4g== X-Google-Smtp-Source: AGHT+IH6OtCR7PLNaxYCvlpziDK8I1V+86+Us/G+mB0/DfR0zTAG5P+/fb+cGawEEBhtJmDl0TX/5A== X-Received: by 2002:a17:906:b209:b0:a66:7b79:3573 with SMTP id a640c23a62f3a-a699f6664demr134166666b.25.1717577693663; Wed, 05 Jun 2024 01:54:53 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a68bfe84c67sm586249866b.62.2024.06.05.01.54.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:54:53 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: AngeloGioacchino Del Regno , Matthias Brugger , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 2/2] arm64: dts: mediatek: mt7988: add UART controllers Date: Wed, 5 Jun 2024 10:54:33 +0200 Message-Id: <20240605085433.26513-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240605085433.26513-1-zajec5@gmail.com> References: <20240605085433.26513-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240605_015456_933604_C1674AE3 X-CRM114-Status: GOOD ( 11.68 ) 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 has three on-SoC UART controllers that support M16C450 and M16550A modes. Signed-off-by: Rafał Miłecki Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 35 ++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index aa728331e876..7690a83911af 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -86,7 +86,7 @@ infracfg: clock-controller@10001000 { #clock-cells = <1>; }; - clock-controller@1001b000 { + topckgen: clock-controller@1001b000 { compatible = "mediatek,mt7988-topckgen", "syscon"; reg = <0 0x1001b000 0 0x1000>; #clock-cells = <1>; @@ -124,6 +124,39 @@ pwm@10048000 { status = "disabled"; }; + serial@11000000 { + compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; + reg = <0 0x11000000 0 0x100>; + interrupts = ; + interrupt-names = "uart", "wakeup"; + clocks = <&topckgen CLK_TOP_UART_SEL>, + <&infracfg CLK_INFRA_52M_UART0_CK>; + clock-names = "baud", "bus"; + status = "disabled"; + }; + + serial@11000100 { + compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; + reg = <0 0x11000100 0 0x100>; + interrupts = ; + interrupt-names = "uart", "wakeup"; + clocks = <&topckgen CLK_TOP_UART_SEL>, + <&infracfg CLK_INFRA_52M_UART1_CK>; + clock-names = "baud", "bus"; + status = "disabled"; + }; + + serial@11000200 { + compatible = "mediatek,mt7988-uart", "mediatek,mt6577-uart"; + reg = <0 0x11000200 0 0x100>; + interrupts = ; + interrupt-names = "uart", "wakeup"; + clocks = <&topckgen CLK_TOP_UART_SEL>, + <&infracfg CLK_INFRA_52M_UART2_CK>; + clock-names = "baud", "bus"; + status = "disabled"; + }; + i2c@11003000 { compatible = "mediatek,mt7981-i2c"; reg = <0 0x11003000 0 0x1000>,