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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBE3BC64EC4 for ; Wed, 8 Mar 2023 12:22:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230134AbjCHMWg (ORCPT ); Wed, 8 Mar 2023 07:22:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231386AbjCHMWS (ORCPT ); Wed, 8 Mar 2023 07:22:18 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36C8CBD7B7 for ; Wed, 8 Mar 2023 04:21:40 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso1173447wmb.0 for ; Wed, 08 Mar 2023 04:21:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678278083; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=DdmHRVA/vk3lRtO265cC0Ziw677vWqjaNx8Bv1rPy7Q=; b=cM+fM6PeOeblfCflPYpRuWpukH3n/XjmUcQtQtvmelnQNcg0ZSBy0THIZM4wN/oZZ9 VE0liMcw00FziUaqSLK6TO+6OlgLQppeZwyBWxG+wHPFNi2wqWKe6alh0+doXkX4jqpB 1Rzkd+fpsr/Jq7q77voKbU7VTeqfY65m7wQUmpOIUURPP5hx2bvUyHvFAtAGa0vtGWR9 I6Y8qUIIzVcCrUQUunvAaI30zsw1b7fdU0YyKNLor0Yf78QVFJmDZSOVVm/CiN284nYu KhyXZOueZBZ1XpoFA0sCxZueNxMlE4/ptJ+xZmEuWW38E1YJbLTrAnlLoJplBXnrWlgq o8bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678278083; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DdmHRVA/vk3lRtO265cC0Ziw677vWqjaNx8Bv1rPy7Q=; b=l1V+WPG2K/2eur6yEa9uQz0P0C2sfEUncsP/ng27C3wzCnsI2rkzsLawmSTQkZ4GoA IzL2534qOObz8Lfs0edDKABm43vlI1x6QqwqmZudXbf/OoVYhIZrQYbAUYGJ/QvG15Wm xbbb+xw1muJbKd7K1tI10GbAHBYbmqlxO2E7ormdmzC2Om8f09OAWPW91TxBAk/xSvbP ePI+v+YVL1jtjo3qBPWx+MKrNaZNxGifaapchrq5eklOVDFYbzlqhdBvX0xk/9fUO2hP AHCoTk6TlbdCX/+iSjCmwoU0lkgg4fRCx7D+ibY327ehiJciQVX9UND50W0YS0mgCsGE eHdg== X-Gm-Message-State: AO0yUKUfiUZ7QF4ygLC5uyB38ynFiFJpbhq5oosYitD/kXqnw8pjRljT dmeGmPk4g0gl0RsM7S+uu5Tysw== X-Google-Smtp-Source: AK7set/5hxCmMl5VY0/C9jx9+DScKu0vsgidAstlJ0JD4TIm/rxgPcMe+P5nzv+rQWReggKXtZCZ1w== X-Received: by 2002:a05:600c:1d24:b0:3da:1f6a:7b36 with SMTP id l36-20020a05600c1d2400b003da1f6a7b36mr15995476wms.0.1678278083146; Wed, 08 Mar 2023 04:21:23 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:b029:83b9:1fb8:7c34? ([2a01:e0a:982:cbb0:b029:83b9:1fb8:7c34]) by smtp.gmail.com with ESMTPSA id m1-20020a05600c4f4100b003e01493b136sm21246036wmq.43.2023.03.08.04.21.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Mar 2023 04:21:22 -0800 (PST) Message-ID: <5325f790-50d8-56eb-b8ac-99840d5b3ad2@linaro.org> Date: Wed, 8 Mar 2023 13:21:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v3 3/3] arm64: dts: meson-g12-common: Use the G12A UART compatible string Content-Language: en-US To: Martin Blumenstingl , linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jirislaby@kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, Christian Hewitt References: <20230307222651.2106615-1-martin.blumenstingl@googlemail.com> <20230307222651.2106615-4-martin.blumenstingl@googlemail.com> Organization: Linaro Developer Services In-Reply-To: <20230307222651.2106615-4-martin.blumenstingl@googlemail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/03/2023 23:26, Martin Blumenstingl wrote: > 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 > --- > 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. Actually I'm ok if Greg takes the whole patchset, including this one, via the tty tree. Neil > > 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>;