From patchwork Mon Aug 14 08:01:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Tanure X-Patchwork-Id: 13352493 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 D4668C001E0 for ; Mon, 14 Aug 2023 08:02:15 +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=YslGFkCwQhmkfZ5Us9MvRBZRTbuHUOrV5mByXP9yUR4=; b=U6ZSgV1h2TviR3 k/gSCCY3B+5P7Qyrf1rys1IpjvbSPx/DYLo5Rexly0vqTQ6ppO5g+pknBHEwLeYpHeXgaf04h/tUb fFEOrQPhehLFR1QIPTBKiov9lnypFyAiKBok9XHlLvziDvP65RB6U/rlFFIIuiTN/t+qOyiYAAcXx G645OnWkLzzQYh6qKOGG6etQsnvqpNpV9TWzGIX+YkwdQPb9f853n80qkuppUohbyAUcz3g09afhp SQ7rtfAbNQ85syL2VKaR0bJjB9UR7ciHuRJxr73LpXicDsYiA8DscHXxr5Zoa4LfthuSn6dX1XPTC PsWv6I2WssLG0vA0v9jA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qVSWP-00GQTG-2R; Mon, 14 Aug 2023 08:01:53 +0000 Received: from mail-ed1-f47.google.com ([209.85.208.47]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qVSWM-00GQST-1m; Mon, 14 Aug 2023 08:01:51 +0000 Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-52256241c50so5439724a12.3; Mon, 14 Aug 2023 01:01:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692000107; x=1692604907; 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=TSi5X4VgjsCMeAaQPLcYj9iEMPItGUk1KSzbhdjTG3Q=; b=bbQv9RRG0KXuxqN3JdkXms9BcjPiojakGzXDRitpKClrMIKtPcFed6OVD1wPQLUBrf VKq7IBQArICSE89KoxmtJ9+FwNPT/sQrJAe+L8XzemW9/W/SJuF07JtD23vWvKGuHqVg erhVoAzfLJpQIW5CKDLuEyqHCACL6gr7gDgO1CZb0t5Os+0euVEY4EVVgUH/BfBO1AMt VBi5DmU7PdP0Ciw22b7yOwu7Cfh+gAkVCgsCbGf7CwEMMsGlaLQFGTgBj701H02KNgoj Rz4uSE/UjZMu3vNoUbdKc7JTnMOIIbZRJjeN7dZmc+k8CrHsQto4uYvAcPXnAF/4Bnl5 yHxQ== X-Gm-Message-State: AOJu0YxxPMkX4pjN0LZlG/c3vWhzHBuz/v0QNF0kd2gFDddto6Gb9SQu M9VQEl1PdrpFFryo0cq7k24= X-Google-Smtp-Source: AGHT+IEaAODooEEvQc066LIoQt4jMjMo+rdKjU8jqDHOucWJHkabU02sFbYF/sNsPcVB7Z+X3fz7AQ== X-Received: by 2002:aa7:d3d3:0:b0:522:1bdd:d41a with SMTP id o19-20020aa7d3d3000000b005221bddd41amr6651311edr.4.1692000106646; Mon, 14 Aug 2023 01:01:46 -0700 (PDT) Received: from ryzen.lan (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id s25-20020a056402165900b0052568bf9411sm678074edx.68.2023.08.14.01.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 01:01:46 -0700 (PDT) From: Lucas Tanure To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Kevin Hilman , Xianwei Zhao Cc: Nick , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, Lucas Tanure , Krzysztof Kozlowski Subject: [PATCH v9 1/2] dt-bindings: serial: amlogic,meson-uart: Add compatible string for T7 Date: Mon, 14 Aug 2023 09:01:27 +0100 Message-ID: <20230814080128.143613-1-tanure@linux.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230814_010150_609365_5CBA8DDC X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Amlogic T7 SoCs uses the same UART controller as S4 SoCs and G12A. There is no need for an extra compatible line in the driver, but add T7 compatible line for documentation. Signed-off-by: Lucas Tanure Acked-by: Krzysztof Kozlowski --- Since v8: - Fix issues with git send-mail command line Since v7: - Send to the correct maintainers .../devicetree/bindings/serial/amlogic,meson-uart.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml index f1ae8c4934d9..2e189e548327 100644 --- a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml +++ b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml @@ -52,6 +52,10 @@ properties: items: - const: amlogic,meson-g12a-uart - const: amlogic,meson-gx-uart + - description: UART controller on S4 compatible SoCs + items: + - const: amlogic,t7-uart + - const: amlogic,meson-s4-uart reg: maxItems: 1 From patchwork Mon Aug 14 08:01:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Tanure X-Patchwork-Id: 13352492 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 F3336C04A94 for ; Mon, 14 Aug 2023 08:02:12 +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=650ZUYCHfd1MOZZje/wKEQ46WKkYb836J+2higoAm68=; b=QyrglBvDIM28hA wkELNd+eXnIAanUAchaGzpSuiK5Wo+bWl8XDsYMs7M6USxAWNjKS62PrVQT+4GIT5JbUMw0BVRhY0 ZlBKlEErGl5V18Jb1mucwg2/wmWJ3105prqppSmSl/Udu2IsqwQ/YiyOJIac2ZkJGNnDFcEikAoTJ beCYnMmpPz+hhSCH03q3XiqO9CGXnCRCDXGsSU8bzgQ+mdLW9sYgTnwV8TvxtPRl8/Tqy3WVvnpQE WqlkrgeiyVN1eoV3jcmzhCThp93nUOYsRl4DbZa6cavZUFR5ewlxcit9sKxfI4upp65IdAQ3wa8LS /EFNG2F77RobCyWxxb6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qVSWQ-00GQTM-0M; Mon, 14 Aug 2023 08:01:54 +0000 Received: from mail-ed1-f49.google.com ([209.85.208.49]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qVSWM-00GQSU-1m; Mon, 14 Aug 2023 08:01:51 +0000 Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-51cff235226so8396107a12.0; Mon, 14 Aug 2023 01:01:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692000108; x=1692604908; 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=sMTTRR25R89hKbOO/W0HzP5By9l6RSmOyGZbfso3dPE=; b=b5ERubpcPRC+CVsJKtlpRhbhim9KrUnPb3DJF5RfmoWunlXyTWcBjg9vLv29SS4qyI VEeBVYGwxkG9Ni7uFOwGEoZj57R7MRjmGn6WBzQ1rQAomlEJxFHIvz7FDosWWuTUlYw+ WdNauQC7bNY33JjSMAX328kHpRDir/m4hzmlO93CG3fUV27SktVp00OR/jnfYqrCMhvv +5cSflxwjJZh5x9OVHOJBPjcZ5esq27K2ehfF14WoGEQKGAhscd5513gymy3pd7giKeZ CvbIX/d34nRyJWIFIKxrzQKtC3AEfYC3IyNbktUh9qkGu36LlFVIb3cNf8kRNojZ83Gv iwDQ== X-Gm-Message-State: AOJu0Yzqfg4Y+eD2MBBbmigeQAei2vYEYzTTYqKvSKLUUXoI666VK/8b 1bM1Z3EgC0zYZ5btgkvOghE= X-Google-Smtp-Source: AGHT+IG9fmf+oLcXRU5lXPTS7InX83yaVfnPLLxfI8jNNzmLI02HPG3m3YGJqjVm0m5XaHVFv0q0lA== X-Received: by 2002:a05:6402:40cf:b0:51e:5898:a23d with SMTP id z15-20020a05640240cf00b0051e5898a23dmr12673976edb.5.1692000107737; Mon, 14 Aug 2023 01:01:47 -0700 (PDT) Received: from ryzen.lan (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id s25-20020a056402165900b0052568bf9411sm678074edx.68.2023.08.14.01.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 01:01:47 -0700 (PDT) From: Lucas Tanure To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Kevin Hilman , Xianwei Zhao Cc: Nick , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, Lucas Tanure Subject: [PATCH v9 2/2] tty: serial: meson: Add a earlycon for the T7 SoC Date: Mon, 14 Aug 2023 09:01:28 +0100 Message-ID: <20230814080128.143613-2-tanure@linux.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230814080128.143613-1-tanure@linux.com> References: <20230814080128.143613-1-tanure@linux.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230814_010150_604803_6AE32E95 X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The new Amlogic T7 SoC does not have a always-on uart, so add OF_EARLYCON_DECLARE for it. Signed-off-by: Lucas Tanure Acked-by: Neil Armstrong --- Since v8: - Fix issues with git send-mail command line Since v7: - Send to the correct maintainers drivers/tty/serial/meson_uart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 790d910dafa5..c4f61d82fb72 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -648,6 +648,8 @@ meson_serial_early_console_setup(struct earlycon_device *device, const char *opt OF_EARLYCON_DECLARE(meson, "amlogic,meson-ao-uart", meson_serial_early_console_setup); +OF_EARLYCON_DECLARE(meson, "amlogic,t7-uart", + meson_serial_early_console_setup); #define MESON_SERIAL_CONSOLE_PTR(_devname) (&meson_serial_console_##_devname) #else