From patchwork Tue Mar 7 22:26:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 13164849 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 2F49EC6FD1E for ; Tue, 7 Mar 2023 22:27:19 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=c+fMr7+3MYIQop8zlAgJUAf+aKtA3yo6KgAR5AG/BxE=; b=xGlWQwmGec53XK UT5o6TfMyXxVDSQHtYzbtqXLSzun5fjrJOqLMwhXBYNy2JTr2+2dgY9fuHs2J4X3W65f88eQ8/NNj tmTUMAGAvgCCWA7aZKCSlkKb3oy/DeyhF16RzafSt/+dXnybYDo713sQY8UV80SQ/Jea6wHwGeGkL lPLwK5viju/XTQSAxqXsIvkzeU7PrwYNtgKqMJ9lHdNYWJlHHy1ycXL9o4rrPnk55EXWuKAO0MFzA +ywvYVcrwht0xWiYs82zu33Rkdfts7VYkMvq9Uu8KAqkdBJRVbpwkbDeiEaDSHjZQywv0/yrAhLBv Y3maaQFYSGwDiH+A8J/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZfm0-002f1Y-AW; Tue, 07 Mar 2023 22:27:08 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZflx-002f02-6E; Tue, 07 Mar 2023 22:27:06 +0000 Received: by mail-ed1-x534.google.com with SMTP id s11so58475509edy.8; Tue, 07 Mar 2023 14:27:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; t=1678228023; 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=ReUzQTPrVvG5iby/h9m+/R0jY9DDZJr5kroiPbP9VlI=; b=cYU4TMzZdmqPqI5Bu/OyoS+YivWNYKc5Db6vGbYpDkZON/UKHT0kW8l5+M1gJGJSuy ovQ3G+LSB/FefY8jf2s3iqH772fBWzSwZ6lrgOWZmjC3mWXl2KTAUNztegaeSoX8MKV7 5bOqpDLr87hhzJ6CdpMGWIfw7OGMBDGLsD5acBrRf2qh5COyMabfMIj2aMLVVE6Bi/LT agzH6dXWnuNk9uYrCo0eOKQtFnGproh76TcOoCj58XGvog5v+nf5ndq668auPAMRfX/k tORQ+QamXruKaVFVg2xLW9k3luspGvEUEBZmH9M7r90658qO4r0YICMo0eK61Mmfyi3d fs+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678228023; 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=ReUzQTPrVvG5iby/h9m+/R0jY9DDZJr5kroiPbP9VlI=; b=NSL1C3HQmCh4mUs+xb82NAxaT0fG6aJRKolB5mMX1cPzfDa9MwnzA0KYrqrY/ysAqH jx4wdv7ZWMEBBfExFrXiNDZrsqBBcq1XoBDUnSAfd113PjXJnl9KiZ2RFHkiN/qGaVpq EfJElmwucuIVEr7rbOH5o0GWTtsZI9bbmrkDzqRsKJTiKZoBJfI5r3hs8ZL5IpIwamJZ kijZyD0M3FIqrs+e96KHHVtBJ9zdj2Ag00C0EM/aTgJH7toalIho9RVyDul+2jH0D+IN SKf3GSLCiEte8NBLAMgBYUW6KLfmiYHMGD4j9qULmZFW5JIN5dq04qddEh65dK14u6aS ZGgA== X-Gm-Message-State: AO0yUKU0EiElnZb8EJa/nrL+HJlA9BX1Hv8bq7tN15nW9q0r41JKGLpc vTAEGSZqMV2pdVr07fFF57OzMqb5On4= X-Google-Smtp-Source: AK7set90bv5W4k0vkQtEyMMJeUJVKAtudDQCtnPoIM/WgyMwR4FeOENO0NtjA/+I6emRet/kB7wS8Q== X-Received: by 2002:a17:906:4e15:b0:883:3299:91c8 with SMTP id z21-20020a1709064e1500b00883329991c8mr15786241eju.55.1678228022566; Tue, 07 Mar 2023 14:27:02 -0800 (PST) Received: from localhost.localdomain (dynamic-2a01-0c23-c485-ef00-0000-0000-0000-0e63.c23.pool.telefonica.de. [2a01:c23:c485:ef00::e63]) by smtp.googlemail.com with ESMTPSA id t19-20020a170906065300b008be996c1630sm6669412ejb.39.2023.03.07.14.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 14:27:02 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v3 1/3] dt-bindings: serial: amlogic,meson-uart: Add compatible string for G12A Date: Tue, 7 Mar 2023 23:26:49 +0100 Message-Id: <20230307222651.2106615-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230307222651.2106615-1-martin.blumenstingl@googlemail.com> References: <20230307222651.2106615-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_142705_266007_E670F8AA X-CRM114-Status: GOOD ( 10.05 ) 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: , Cc: neil.armstrong@linaro.org, Martin Blumenstingl , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jirislaby@kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Amlogic G12A SoCs gained a new "divide XTAL by 2" bit. Everything else (we know about) is identical to the UART IP on GX (GXBB/GXL/GXM) SoCs. Add a new compatible string for this SoC so this new bit can be managed accordingly while keeping "amlogic,meson-gx-uart" as fallback compatible string. Signed-off-by: Martin Blumenstingl Acked-by: Krzysztof Kozlowski --- Changes from v1 -> v2: - make meson-gx-uart a valid compatible string for meson-g12a-uart Changes from v2 -> v3: - don't add extra oneOf as all of the entries are enclosed in oneOf already - don't allow amlogic,meson-g12a-uart as standalone compatible string (which slipped through in v2 due to all of the formatting changes that the extra oneOf required) .../devicetree/bindings/serial/amlogic,meson-uart.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml index 3cbdde85ed71..22656efe8ddc 100644 --- a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml +++ b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml @@ -34,6 +34,11 @@ properties: - amlogic,meson-gx-uart - amlogic,meson-s4-uart - const: amlogic,meson-ao-uart + - description: Always-on power domain UART controller on G12A SoCs + items: + - const: amlogic,meson-g12a-uart + - const: amlogic,meson-gx-uart + - const: amlogic,meson-ao-uart - description: Everything-Else power domain UART controller enum: - amlogic,meson6-uart @@ -41,6 +46,10 @@ properties: - amlogic,meson8b-uart - amlogic,meson-gx-uart - amlogic,meson-s4-uart + - description: Everything-Else power domain UART controller on G12A SoCs + items: + - const: amlogic,meson-g12a-uart + - const: amlogic,meson-gx-uart reg: maxItems: 1 From patchwork Tue Mar 7 22:26:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 13164850 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 E9C7BC6FA99 for ; Tue, 7 Mar 2023 22:27:24 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=g4Z8KK1GmEwII+IZVVP3rwUgp//pAQDG6QWYnmRrUec=; b=H3Ir4D+8z6iy+3 tltOrndUpFrQqFcxyMLpwE0CMz2LcqF+zm6gwfmCRlcFGatX5wVQoxy4Zwp/BMRQ3pnEe+IJ03EQP MBGRtqXN89u73AVYXB+F4f1erdqljhD1zJOtWvIKLuQkiN5qFrhDWt10JCFqmtVyDFIZ8f9ujnGQQ 6tn3iEBb0QIrdPWgdeMa5aYyOzzypPNXm7BeCJCcJvKOke9wNpC+ClDJgUUT11WhF7KqFgGyHIhMX m68RM+5HJplzZnqs0gfjJYVYMzBiLXgjHduMGp74vJ9LMgg0A8DA96OLu3sqm2J21VWUU8/n6uhto 5hyW9SAOw8rq2TQ5Ukbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZfm8-002f3S-Al; Tue, 07 Mar 2023 22:27:16 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZfly-002f08-3J; Tue, 07 Mar 2023 22:27:08 +0000 Received: by mail-ed1-x535.google.com with SMTP id k10so34573231edk.13; Tue, 07 Mar 2023 14:27:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; t=1678228023; 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=anzenqyGPX1zATM+Ik1tqHmVrqFOd5DGjw4tZBK7I3Y=; b=d+sTYq7beUAgj7yD5T+s85jXIjQfykj90WamxBtALfwdLz3hm1skI9C5joR2KVP+qw Z8PjrFdH1wPSMyXlVEqAyNb9eHHcI4KuVE4YTFqpSe8ZAhE3lPwawp2Qly14SLhbC4i5 M6gwlXoSJ1JwcNIArAmazkhWuQd433rC6lRHeuB5Ua1Py5PK6HtMHZb42mixLaX6LWAo ir16XK+Q7Ei+JqrkjjEufOkGtNTemfVr3tFz6R8w3VaMUZsmwcYZ3VB5uF9oyIupACmJ BqWFXAmWMADPuxdugsNkDmvPHqPlWAMyeFm4Lwhrn0uvfXijtJs+8iqHzO5qq8yNkjIr 7w0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678228023; 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=anzenqyGPX1zATM+Ik1tqHmVrqFOd5DGjw4tZBK7I3Y=; b=gLd1eLZCCF9PFEBukMBlTNMFzNR4zitM4HKLKtHAbkjwaLyz6smeYjzq7FXQfK2QsJ Y6MdTw+wf7dPSK47ONOfWY+5yaVKTNgEOy3KRP/zlzVYfnl1rM7kW/v0t6IyRTZHOL8j h6Nj35nUF1xncutIbJHH2unPpnmJvqSG4HAfkwBWP2im/6baI6VSLwPDVWTu6QtJkepz ZeXfHRHXWWj1ghI8qjhOJhvP9bfc4VhfDLoOA4ODBIOqTK/85YbeB5IQ/XDSgtNyrmae zmrvVEZdhKkYqVJYE447MssPyWl8HSoHDYoiQ4Q7rDakz/NnVYA8Dxj2pun18UyRNfgZ +98w== X-Gm-Message-State: AO0yUKVs2UBlS3pE3p5iW3CXi29Tu2wiMRKVV+72DiPOY6UVMvluXsqK x/dGMmdLDnEbAb3GH5dUIuFqVazARlI= X-Google-Smtp-Source: AK7set/2RZshpDSi+mZ4EnPSvbJMg/kI5SVgIRcnSFkSj5kO9oVK2qdmERpTEUwnug05sCriwqNPVQ== X-Received: by 2002:a17:907:7b0a:b0:88c:6345:d0e7 with SMTP id mn10-20020a1709077b0a00b0088c6345d0e7mr17148160ejc.36.1678228023429; Tue, 07 Mar 2023 14:27:03 -0800 (PST) Received: from localhost.localdomain (dynamic-2a01-0c23-c485-ef00-0000-0000-0000-0e63.c23.pool.telefonica.de. [2a01:c23:c485:ef00::e63]) by smtp.googlemail.com with ESMTPSA id t19-20020a170906065300b008be996c1630sm6669412ejb.39.2023.03.07.14.27.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 14:27:03 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v3 2/3] tty: serial: meson: Add a new compatible string for the G12A SoC Date: Tue, 7 Mar 2023 23:26:50 +0100 Message-Id: <20230307222651.2106615-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230307222651.2106615-1-martin.blumenstingl@googlemail.com> References: <20230307222651.2106615-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_142706_154490_75F6C2E3 X-CRM114-Status: GOOD ( 14.70 ) 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: , Cc: neil.armstrong@linaro.org, Martin Blumenstingl , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jirislaby@kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Amlogic Meson G12A (and later) SoCs also have the "divide XTAL by 2" bit as the S4 UART controllers. Add a new compatible string for these SoCs and enable the has_xtal_div2 flag for them. Tested-by: Christian Hewitt Signed-off-by: Martin Blumenstingl Reviewed-by: Neil Armstrong --- Changes from v1 -> v2: - none Changes from v2 -> v3: - none drivers/tty/serial/meson_uart.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 74110017988a..2501db5a7aaf 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -779,7 +779,7 @@ static int meson_uart_remove(struct platform_device *pdev) return 0; } -static struct meson_uart_data s4_uart_data = { +static struct meson_uart_data meson_g12a_uart_data = { .has_xtal_div2 = true, }; @@ -788,9 +788,13 @@ static const struct of_device_id meson_uart_dt_match[] = { { .compatible = "amlogic,meson8-uart" }, { .compatible = "amlogic,meson8b-uart" }, { .compatible = "amlogic,meson-gx-uart" }, + { + .compatible = "amlogic,meson-g12a-uart", + .data = (void *)&meson_g12a_uart_data, + }, { .compatible = "amlogic,meson-s4-uart", - .data = (void *)&s4_uart_data, + .data = (void *)&meson_g12a_uart_data, }, { /* sentinel */ }, }; From patchwork Tue Mar 7 22:26:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 13164851 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 310CFC678D5 for ; Tue, 7 Mar 2023 22:27:34 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PTE5sqRdcfsml3Vz6QnvJ4BeHc9oD3TfoTunabohkd8=; b=N4qOqeCy4/apgS QOdZsP1ag3RYBiB3zuM1yny8zF6AKdBtWOx5nqoczFvr+TYtW/5z/cDdK+lkArQ2xXToFzcFWzo8S vWW3VQ888Do9SUBC95+IxB5CJsvKQsakTM4tc5Nu/TF0FZ5rNTjecnrvO8jyeeaXiP75i7F7RDEz0 mZAgvgSj+tiX4Lj66srhjvfyYizc1ybMlfnY1rU8oZMroM9sxIJvCdRrDY0Y9caKA3T2LmLuH4qz4 7MH6TyZY3YQJVgPmnFL607wANg+TYPAqemdoUtq8pQ/V0rLQUrkjhnb9D1m0/73i7j/XPV+ummeRc yNLnl32NN5slSPmDN3fA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZfmG-002f6i-FT; Tue, 07 Mar 2023 22:27:24 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZfly-002f0B-Sp; Tue, 07 Mar 2023 22:27:08 +0000 Received: by mail-ed1-x530.google.com with SMTP id s11so58475691edy.8; Tue, 07 Mar 2023 14:27:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; t=1678228024; 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=ExpR60rlK67/XKPCeTgOHd008brYtjClGvCmbWSFbwI=; b=Zb/ggaaQyv+CkyxjYqpj/Dy3WUdP/IdFF0xtREUhsz/4gu2BR3xwDR29s1j2lq5Nr3 gMibyzTFlzcEArZliny/JoXY2WWrfPF3m74+XGzSLtzdixRjF0OTfvjpdSeL8pb5b7iy tfIKXizsoEbEjJImbsAkw7ejDSKfzuh2BlS7uxXsNNlUmSh45ITD8m2l3mTgbznGBSXV 1N/3mG9zXst+s2dhcQXG57D9G9NobHu15G5IcDiiDgS9tJwsbWcRU+O7BCzwmWJcAcqt uMZ+QqJ1VbozXtBKmC/I4AWnTRW3jXGxyVCZAqKOKrOhgIDrM6mO1ckkt5xNjBWLKER8 sQ0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678228024; 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=ExpR60rlK67/XKPCeTgOHd008brYtjClGvCmbWSFbwI=; b=dlTwYEtnfsNlzD6fTEXdqjZbrow2YTusqlPy3anCOMtGiRSfL3wEBaTdjXNk4Dly9R ci6a6PI6ZIBg6e25J5oDjbkqzfM8RwygyiojOrfnzjkdeSO3QE/IFofhW4ZpWNCRpW5N RGCMZmMwuUlwal/CRYCS6GF7MWrPEOtk8wMLse+Op09BMezWXfJZKBulukX44xX4L7/d guKQyNyYiKOeZmNyj/Ln6UXeMJv9h0t5u188p9INwnniFYopZE7QXnNW4dWm/o4JLvNE jEzzvj5/p5uj/qbWt27PgM0bJaL9ywfDQlkIAzphQHc/gBdsAIgERMAxjX0D7YftxcZz Pl+w== X-Gm-Message-State: AO0yUKUtOI/Cl73AD8gnkvcw+pknLM5cLrMfKxF2laQUtGkXN/m9Z7lM 1SUgd5Obiy6gAtcbyobM2Qmd+vfgZMw= X-Google-Smtp-Source: AK7set/o0PL2VR+sAsODNx7yzEKziGZhE38Th2SLl9L8Pm3Fk4SOFX1CvOJbUItRhB8Vx6c43w6oPg== X-Received: by 2002:a17:906:c9c2:b0:8a0:7158:15dc with SMTP id hk2-20020a170906c9c200b008a0715815dcmr13158932ejb.74.1678228024215; Tue, 07 Mar 2023 14:27:04 -0800 (PST) Received: from localhost.localdomain (dynamic-2a01-0c23-c485-ef00-0000-0000-0000-0e63.c23.pool.telefonica.de. [2a01:c23:c485:ef00::e63]) by smtp.googlemail.com with ESMTPSA id t19-20020a170906065300b008be996c1630sm6669412ejb.39.2023.03.07.14.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 14:27:03 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v3 3/3] arm64: dts: meson-g12-common: Use the G12A UART compatible string Date: Tue, 7 Mar 2023 23:26:51 +0100 Message-Id: <20230307222651.2106615-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230307222651.2106615-1-martin.blumenstingl@googlemail.com> References: <20230307222651.2106615-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_142706_967918_8C6FE6E0 X-CRM114-Status: GOOD ( 11.68 ) 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: , Cc: neil.armstrong@linaro.org, Martin Blumenstingl , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jirislaby@kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Switch meson-12-common.dtsi to use the Meson G12A specific UART compatible string. This enables the "divide XTAL by 2" divider which improves support for UART attached Bluetooth modules (for example RTL8822CS) running at a baud rate of 1500000. Without dividing XTAL (24MHz) by 2 a baud rate of 1500000 cannot be generated cleanly and the resulting jitter breaks communication with the module. Tested-by: Christian Hewitt Signed-off-by: Martin Blumenstingl Reviewed-by: Neil Armstrong --- Greg, please don't take this through your tree. I included this patch to show the overall goal of this series. If Neil won't take this as part of another series then I'll send it separately. Changes from v1 -> v2: - keep meson-gx-uart as fallback compatible string Changes from v2 -> v3: - none arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index 123a56f7f818..904bcd4d2acf 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -2046,7 +2046,8 @@ pwm_AO_cd: pwm@2000 { }; uart_AO: serial@3000 { - compatible = "amlogic,meson-gx-uart", + compatible = "amlogic,meson-g12a-uart", + "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; reg = <0x0 0x3000 0x0 0x18>; interrupts = ; @@ -2056,7 +2057,8 @@ uart_AO: serial@3000 { }; uart_AO_B: serial@4000 { - compatible = "amlogic,meson-gx-uart", + compatible = "amlogic,meson-g12a-uart", + "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; reg = <0x0 0x4000 0x0 0x18>; interrupts = ; @@ -2293,7 +2295,8 @@ clk_msr: clock-measure@18000 { }; uart_C: serial@22000 { - compatible = "amlogic,meson-gx-uart"; + compatible = "amlogic,meson-g12a-uart", + "amlogic,meson-gx-uart"; reg = <0x0 0x22000 0x0 0x18>; interrupts = ; clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>; @@ -2302,7 +2305,8 @@ uart_C: serial@22000 { }; uart_B: serial@23000 { - compatible = "amlogic,meson-gx-uart"; + compatible = "amlogic,meson-g12a-uart", + "amlogic,meson-gx-uart"; reg = <0x0 0x23000 0x0 0x18>; interrupts = ; clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>; @@ -2311,7 +2315,8 @@ uart_B: serial@23000 { }; uart_A: serial@24000 { - compatible = "amlogic,meson-gx-uart"; + compatible = "amlogic,meson-g12a-uart", + "amlogic,meson-gx-uart"; reg = <0x0 0x24000 0x0 0x18>; interrupts = ; clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;