Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6263084rwl; Tue, 4 Apr 2023 09:57:00 -0700 (PDT) X-Google-Smtp-Source: AKy350bS1zoEcmpcWeq22LfkE+vxxLQoWw0m5WmCN2XrY+U8C/q0gl2m4NG9ZAokTfu+e6Go+Hbu X-Received: by 2002:a17:906:453:b0:931:20fd:3d09 with SMTP id e19-20020a170906045300b0093120fd3d09mr119047eja.17.1680627420518; Tue, 04 Apr 2023 09:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680627420; cv=none; d=google.com; s=arc-20160816; b=ehJjfun7ir/1ZHxVl+Pd5oDsgWARcox8SAjqVAqBm73pHkxPYoNDQdzh7qvKkF5K4m yR844ORrQu5Li0/2GtW5ghMUZYZqAfsaywP1t1mGREW8fnRoB/07C41TiDQ8RCxr022x ccGg43yFqzR2lB0aRfhVBEAYgyNH2BgDfZ1XkLwuX5dLD+kpVpt76RQvmLMa6vGgcpJm NzzF0iHmJNrJQWxuRZ3bbhGcQuqtPkArDzpTVcF4tzo03ipBcU4ZjyG3WwKuNhPpywc1 91GI9AwpmD3cDEcPiZ85kSKYJlIQl1LEGlKaiTo9urolpoG5okBcI44YdpeUEpQ0jH6/ HmpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sx5sTjEy2x5D1rQgSbi0EeF0IGU3tYM4cKofbVwPgEI=; b=zswHcyVqFXjzzvqd4DjEaeTDc1vh8M8RYhvkTyV5QcMwqdgqcojdaYchtz7a+ocMRg ZsztjA+sK7zeuk7whzWpmR5U8gOOpogWWJPil3PS21kLJXX1XzxF/40iy/Xyq5U48qIX ZfvHYM3PMi2n/RzOgXvN2x8Qgs6E0o2TIfa3ex+32p2fJRviYeydu2/J4TIjyHoTjmdd NaxSONB1dmtsRa7dHg7E88jBElw0dgr7ujJ+MmxEW7/RWs/H12Q44PujLsiic/mo7ChL 9emtvmHKzuuFBWYpL9Qu+9ZS0Gbw4i3iyNq2tJ3mu1Q3S13UF3oJTr1lR/r/jmFlFOMA OyIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020a17090652c300b00932f1744dcfsi10555666ejn.54.2023.04.04.09.56.34; Tue, 04 Apr 2023 09:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235418AbjDDQz5 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 4 Apr 2023 12:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235395AbjDDQzw (ORCPT ); Tue, 4 Apr 2023 12:55:52 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60353D1; Tue, 4 Apr 2023 09:55:34 -0700 (PDT) Received: from ip4d1634d3.dynamic.kabel-deutschland.de ([77.22.52.211] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pjjwE-0000HT-RK; Tue, 04 Apr 2023 18:55:18 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Peter Geis Cc: linux-kernel@vger.kernel.org, Javier Martinez Canillas , Peter Robinson , Caleb Connolly , Jarrah Gosbell , Krzysztof Kozlowski , Martijn Braam , Ondrej Jirman , Rob Herring , Tom Fitzhenry , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH] arm64: dts: rockchip: Change serial baud rate for Pinephone Pro to 1.5 MB Date: Tue, 04 Apr 2023 18:55:17 +0200 Message-ID: <3999080.iIbC2pHGDl@diego> In-Reply-To: References: <20230403175937.2842085-1-javierm@redhat.com> <3738011.44csPzL39Z@diego> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_PASS,T_SPF_HELO_TEMPERROR autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, Am Dienstag, 4. April 2023, 14:52:02 CEST schrieb Peter Geis: > On Tue, Apr 4, 2023 at 3:55 AM Heiko Stübner wrote: > > > > Hi, > > > > Am Montag, 3. April 2023, 19:59:37 CEST schrieb Javier Martinez Canillas: > > > This baud rate is set for the device by mainline u-boot and is also what > > > is set in the Pinebook Pro Device Tree, which is a device similar to the > > > PinePhone Pro but with a different form factor. > > > > > > Otherwise, the baud rate of the firmware and Linux don't match by default > > > and a 'console=ttyS2,1500000n8' kernel command line parameter is required > > > to have proper output for both. > > > > The interesting question is always if this will break someone else's setup. > > I've never really understood the strange setting of 1.5MBps, but on the > > other hand it _is_ a reality on most boards. > The 1.5M baud is default because the clock structure on rockchip > devices does not allow a clean 115200 baud. By attempting to force > 115200, it will always be slightly off (either low or high depending > on how the driver decided to round). If this actually causes any > problems is the subject of much debate. thanks so much for this piece of clock-detail. As I wrote, I never really understood the why _before_ but also never cared that much to dive into it and find out. So your explanation closes one knowledge gap in my head. Thanks a lot :-) Heiko