From patchwork Wed Jun 5 08:54:32 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: 13686431 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 C586EC25B76 for ; Wed, 5 Jun 2024 08:55:08 +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=4pR4f+l9OXe+UzCTzeQKDQlEN2kYhpcnHD6b45NDd6A=; b=u2mIVbWMrcqDyt fo6584gdpBeSpJsDF2249hxkxNr7jy338P77UWuYnus/E5Tqr+fUvDK13RprLH/4z5etGBq0lxHj0 geXBmJiwCDT1f959L09TTIrcsh6Lp4ymVkptJM39+YbEUgmRxXXLppf+8VDzpHXzwpz2yA5Q2ZiNo LvwynKnmUAdNXKfpDgDCnZyOoDLH9TOX5stozfNEDZCGVmZmAVs0CxzvrRw/jLiaSG5Q0rXOOT9Q+ hhQElbeZqQghj891jABQIw3FnVa8ido6a+ha2x+44adf6YGNy99p0O/MNCV1N8ezF703LsiP1u8xB bVEE0qV2f0jnmhzF1RXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEmQ6-00000005Iax-0i9p; Wed, 05 Jun 2024 08:54:58 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEmQ3-00000005IZX-0DIG; Wed, 05 Jun 2024 08:54:56 +0000 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-578517c7ae9so2464566a12.3; Wed, 05 Jun 2024 01:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717577690; x=1718182490; 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=pPVdkB+pK8vyeCGT+ND71XGGj9LFWm9WJb7b3YJ5ouw=; b=Qp4rYc4V2NYhlfYat+9EwTwc74TDdG5uyszvCCPw/zoXCey2epLvElfFG5Q9rHscbX vyFrvQXsFgWWOn52uwjU2+Fve9BgLIerg9AxJrjEARTdZIfsQ/w90maVq668uR3VZjEF jHUA6jzVqbiq8BBnG7K31YnoODVv6KfS1WQRvoXRnmsBGI1PWX/rqH2ZkT38yObUrCMP JEwsnPf9nHReDptMO7cuCxipiOqQxzJzsgMmZRulVDrS/v31ck9IlgNsstrQzs4fyO/s iV/jrorBW1KEZEhiJpPnexEUrOyBWeOXYX95ENreOENpMuXFCt7xobLFD1WS3tiFAlzA tykw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717577690; x=1718182490; 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=pPVdkB+pK8vyeCGT+ND71XGGj9LFWm9WJb7b3YJ5ouw=; b=c6jEDDMFsLfaA4z/hptar5jfy6Dfn7DP8fVCn9oau8JY45NugyRMtaHrk31Jb/hLLV y1JjdwWoknE2v4EQP4zGH2PRlac87o43YGr7ZANNGWW3dv/MH9xqAySxKKTIBpAzvpaj HTbEnx1TxA2SKnFAGlnrB7stAUo3QpXrlrhZMNLiuiWSZC2ansxcb42NoE2q/ch57rTo MwXxPXbv/Qtz1grCAtcuT/nLKsUpNcmH/BT5gY9FYoSH5YU35Gm6mIihFFo6kb5ITPa4 kiI9hZmuxd+BWqv/atjXDZHuooVVXLWdox6F+UBs4lObUVmd/Pi57x85Y6898Y1rQP60 c4hA== X-Forwarded-Encrypted: i=1; AJvYcCUkdGxA/gSSYsQ5SC+s6lZFePIVwv9CiEZ8ExNUPGrj9A2IIuSiHPKBJk6IFTi78FDOUq7NAqnB8LMWXtkVLRAOZbmOPv7YnsN0xEn5fNwgQMBW+KMuA1coFuHjWqN1NfoqfqFWwXiXHdW+AVvGfwzjlXfyceVA+RE= X-Gm-Message-State: AOJu0Yxwis7KD18PhNRv/UeO7Om8tLInEoc1VwXgtBlkYAwfnxKjxUfm KHJvVkyCStxMeIvgaLbpBRnokfIRhmMroYfnhBGYhonG7lo5ZPtFIp3AUw== X-Google-Smtp-Source: AGHT+IGqKF5PNj+xnr+4M7kJ25iQkjtQ7GBoDWpJYm9/t1zTf4oATxXyIasJ3eML47Xf5OpG0jY+vw== X-Received: by 2002:a17:907:1187:b0:a6a:44d9:7d15 with SMTP id a640c23a62f3a-a6a44d9810dmr64892366b.58.1717577689757; Wed, 05 Jun 2024 01:54:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:54:49 -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 1/2] dt-bindings: serial: mediatek,uart: add MT7988 Date: Wed, 5 Jun 2024 10:54:32 +0200 Message-Id: <20240605085433.26513-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-20240605_015455_114241_0071C574 X-CRM114-Status: UNSURE ( 9.54 ) 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 Add compatible string for serial on MT7988 SoC. Signed-off-by: Rafał Miłecki Reviewed-by: AngeloGioacchino Del Regno Acked-by: Conor Dooley --- Documentation/devicetree/bindings/serial/mediatek,uart.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/mediatek,uart.yaml b/Documentation/devicetree/bindings/serial/mediatek,uart.yaml index 303d02ca4e1b..ff61ffdcad1d 100644 --- a/Documentation/devicetree/bindings/serial/mediatek,uart.yaml +++ b/Documentation/devicetree/bindings/serial/mediatek,uart.yaml @@ -37,6 +37,7 @@ properties: - mediatek,mt7623-uart - mediatek,mt7629-uart - mediatek,mt7986-uart + - mediatek,mt7988-uart - mediatek,mt8127-uart - mediatek,mt8135-uart - mediatek,mt8173-uart 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>,