Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5622921rwl; Tue, 4 Apr 2023 00:51:53 -0700 (PDT) X-Google-Smtp-Source: AKy350ZTuGs1UqzmHnbzvEBo9+H6l5SAkajclwFpcq6gLNBQ3oTzYdu7XFDW9FI9I5Nt0fZ0hokQ X-Received: by 2002:a17:90b:d87:b0:234:67ef:304b with SMTP id bg7-20020a17090b0d8700b0023467ef304bmr1884108pjb.37.1680594713235; Tue, 04 Apr 2023 00:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680594713; cv=none; d=google.com; s=arc-20160816; b=E9/dcFfDrtD5Txx6DexsWHKNio097YshEXqrPx1cfjVt+6qyd7A/6J64G2cKWtvcWa WIYHTXRLI9z76MLxLKNqCFSCelQ/n6tfXDvotuSVpC4A68BJMVDvbpskphoqUF60vxgF 7GW58B6rXN8sdazP72YZ1rVwqbe1lz8gPEN1jlNEWl43rwEAZrhzVYiJd2ci/QCG+q1a kfgesVR+mmHjC8S3nn/bhqiULXWfDxSLZAJ9p231Mfy+/AJaNDm/QDbQx/nLYqmqm5Hv J2R+yN8tWiIb9/y/qAFnl683U+ylxhiOkEbpLjSaPg3O33DZqkNUbZTW6bksFFz/yz0f F+sw== 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=0GfWR++YzLDNzMoRJqQDCE2tL0zNiAj+mShJ5J30wnI=; b=nInSMcTcCtFSu3XuZaPfGJydVgdb9nVXo8ygjeUJIFXOh68sZN2GtkV+G4sDmLzJFv /QeXhy6ugYW8ZNQ1HLSJU9ULXao396rrCV6O/qBc4TzdTIG6vooF/9/NjXkBRMXlLx26 dPaZ8xkwNspF4pbqM0bXX8c3/Rs8JHrWha3Gu8fZxa0qgNMT12VZjtTVtiZhwuhara3q 1w9FtQCRK+g1J+R8rf0gF1rzo9fei5P5pk3qI6D1rI7NX4NkB1Hmh6/WKGyFcN02lCJG Gd0sMkZZHIvrtNGoaNqujEZELR8lyMcxIpF+onCoVGS/FDExxhwnKTiK+VlR+ZsVG1yU bv+w== 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 b10-20020a170902d88a00b0019ca809751dsi9497932plz.227.2023.04.04.00.51.41; Tue, 04 Apr 2023 00:51:53 -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 S233730AbjDDHva (ORCPT + 99 others); Tue, 4 Apr 2023 03:51:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233481AbjDDHv2 (ORCPT ); Tue, 4 Apr 2023 03:51:28 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A538120; Tue, 4 Apr 2023 00:51:24 -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 1pjbRg-0004x9-HG; Tue, 04 Apr 2023 09:51:12 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linux-kernel@vger.kernel.org, Javier Martinez Canillas Cc: Peter Robinson , Javier Martinez Canillas , 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 09:51:11 +0200 Message-ID: <3738011.44csPzL39Z@diego> In-Reply-To: <20230403175937.2842085-1-javierm@redhat.com> References: <20230403175937.2842085-1-javierm@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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, 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. Personally I don't care that much either way, but would like a comment from the other people working on that device - if possible. I guess if we don't hear anything, I'll apply it nevertheless at some point Heiko > Signed-off-by: Javier Martinez Canillas > --- > > I tried to instead get rid of the baud rate altogether, as suggested by > Peter Robinson. AFAIU that should just pick whatever bad rate has been > using by the early console. > > But neither using 'stdout-path = "serial2" nor 'stdout-path = &uart2' > worked for me. > > In both cases I didn't have any output unless setting a baud rate using > the 'console='param. > > arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts > index a0795a2b1cb1..6bbe65bd5bd4 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts > @@ -26,7 +26,7 @@ aliases { > }; > > chosen { > - stdout-path = "serial2:115200n8"; > + stdout-path = "serial2:1500000n8"; > }; > > gpio-keys { > > base-commit: 3adf89324a2b2a9dbc2c12d8895021e7e34e3346 >