From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58631C433EF for ; Wed, 6 Oct 2021 10:51:35 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2536561074 for ; Wed, 6 Oct 2021 10:51:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2536561074 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=p03nfEhgNVLfH6feg/ymq3oijkXb3+2iu/UC7mUTqI4=; b=vQYbAP2vrBnrzOKC6IAUCEDMTI 8OV/7WbFl6IY54LP5Cn8KjsloafMYLLlvGlKVX2POMRHXH72mkW02qN4mpxBGryAtbGGax1FJc8hJ A3/q3buOClPJBtGjrYfg/GiXBXS+BzEPgJwyHPKC6E16UVohgocXoNVujsEVvoPuODqtyRrBA2ibx VVHfvTy/s4bekymnXz1Bj1v0RvgvJFaikkY+XMALKGF2xgjUbPKrv6/QfoVRayxwW0sY3OM/OPwue mD2yxW0f6w7v0UhWAYsbsOLYzl2ZwlR4FMAbxOmS+70/Xph4uipIoaaIN43Xb6HsWsiveOnuQl5Wp VDocphUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mY4Uc-00DscI-3F; Wed, 06 Oct 2021 10:49:46 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mY4UR-00Dsa0-LS; Wed, 06 Oct 2021 10:49:37 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EF2D51FB; Wed, 6 Oct 2021 03:49:27 -0700 (PDT) Received: from [10.57.22.120] (unknown [10.57.22.120]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D3DCB3F70D; Wed, 6 Oct 2021 03:49:26 -0700 (PDT) Subject: Re: [PATCH] arm64: dts: rockchip: nanopi4: decrease Bluetooth UART baud rate To: Chen-Yu Tsai , Heiko Stuebner Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210920175647.13008-1-wens@kernel.org> From: Robin Murphy Message-ID: <64f06ddb-cde6-d71a-7920-41c485a1d3fb@arm.com> Date: Wed, 6 Oct 2021 11:49:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20210920175647.13008-1-wens@kernel.org> Content-Language: en-GB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211006_034935_817168_87AA8306 X-CRM114-Status: GOOD ( 22.11 ) 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2021-09-20 18:56, Chen-Yu Tsai wrote: > From: Chen-Yu Tsai > > The RK3399 does not seem to be able to properly generate the required > 64 MHz clock for the UART to operate at 4MBd. > > Drop the baud rate down to 3MBd, which can be used as the clock > controller is able to produce a 48 MHz clock. Hmm, I've been running mine this way (with DMA) for ages now :/ Looking at clk_summary, clk_uart0_src ends up at 800MHz off CPLL (same as several other significant clocks), with clk_uart0 at an exact 64MHz as a division of that. I stuck a scope on the UART pins of the module and all the edges look nicely lined up to 250ns intervals. This is with a 5.11.4 kernel, though - I wonder if the recent fractional divider changes in the clock driver have changed anything? Robin. > Fixes: 3e2f0bb72be3 ("arm64: dts: rockchip: Add nanopi4 bluetooth") > Signed-off-by: Chen-Yu Tsai > --- > arch/arm64/boot/dts/rockchip/rk3399-nanopi4.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopi4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-nanopi4.dtsi > index 8c0ff6c96e03..45ff053b119d 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399-nanopi4.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopi4.dtsi > @@ -699,7 +699,7 @@ bluetooth { > device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>; > host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>; > shutdown-gpios = <&gpio0 RK_PB1 GPIO_ACTIVE_HIGH>; > - max-speed = <4000000>; > + max-speed = <3000000>; > pinctrl-names = "default"; > pinctrl-0 = <&bt_reg_on_h &bt_host_wake_l &bt_wake_l>; > vbat-supply = <&vcc3v3_sys>; > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel