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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E16C7C76188 for ; Mon, 3 Apr 2023 18:01:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232906AbjDCSBL (ORCPT ); Mon, 3 Apr 2023 14:01:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232966AbjDCSBE (ORCPT ); Mon, 3 Apr 2023 14:01:04 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 861BA210C for ; Mon, 3 Apr 2023 11:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680544798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=WlvpCHWMmiZdlbkC384yczmvM52H5PXcaJ7qF3TTD/w=; b=cvW5z20SGEQO6kgyI5c6FOc+Q7Iuzwu7tuXfBpovxC0S8VH2chd0xLntp/vLkMsrSKL9bK NSlAfxRcKPEsRcq6lfaRMf7Avz9B+eC/Sd2jHj4G30/cjF+cilERShtG8vKv/rgVUkPVQR yv9NDp30BpCpAg4wuIBd7u5dHnXEWh0= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-333-irCPNcXSPdWa5L7EniEPDg-1; Mon, 03 Apr 2023 13:59:49 -0400 X-MC-Unique: irCPNcXSPdWa5L7EniEPDg-1 Received: by mail-wm1-f72.google.com with SMTP id bh19-20020a05600c3d1300b003ee93fac4a9so16156065wmb.2 for ; Mon, 03 Apr 2023 10:59:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680544788; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WlvpCHWMmiZdlbkC384yczmvM52H5PXcaJ7qF3TTD/w=; b=I7K5HLqdWTH7iUSTTVLxIOtU711sECNCpnlmSEANBUAN3cHKwYmHgcvHrGi8H0skqn iDbgKnYWxRZyDqXcONmE8P2bixAtGedGU2BYT0WrOAzu+iOa/9Vskw4opJRdJZX0apgV IpNYezogFj1BqUsiTOs2cFVqGF+jzO6gaMVm0mpJPbh4XKYjobzxW80hh99EVl+l/VOh v8aE/5RowoPmP+hy52AXBmMYDkvoqshlIdJ0jruO9sBzIcr49HQNAXZRhNijmcAJr593 eU3YqmT5nGDtbADnpzJaq+b81EDrWeCOZFDDgmehp3Tqzu0mVJgLM9pIBS4DvIj34QbK klOA== X-Gm-Message-State: AAQBX9cvuNZCkK9YOiYc+WYSXLUlhFasXUxwaUIzMdHDc/vqQYoV80sD enbTmvLA/a8xu4XF2igq2WQD52ZV98OkwCwJFzao+a0WFHJhm/Yr4v5jK6r6U6BOFlznAc1Fh6M FlqqEQa13ZamVKSRhjhH/Fw== X-Received: by 2002:a05:6000:6:b0:2d4:a1c1:d1a2 with SMTP id h6-20020a056000000600b002d4a1c1d1a2mr28010978wrx.63.1680544788103; Mon, 03 Apr 2023 10:59:48 -0700 (PDT) X-Google-Smtp-Source: AKy350ZVhLfsp00dFS4OanJ+69SLvb6/rmvbMxDG1wlE2yhnABSUEGPFBZ+MotkgKKbOd+iYsvqjyw== X-Received: by 2002:a05:6000:6:b0:2d4:a1c1:d1a2 with SMTP id h6-20020a056000000600b002d4a1c1d1a2mr28010964wrx.63.1680544787794; Mon, 03 Apr 2023 10:59:47 -0700 (PDT) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id e11-20020a5d4e8b000000b002cde626cd96sm10222763wru.65.2023.04.03.10.59.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 10:59:47 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Peter Robinson , Javier Martinez Canillas , Caleb Connolly , Heiko Stuebner , 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: [PATCH] arm64: dts: rockchip: Change serial baud rate for Pinephone Pro to 1.5 MB Date: Mon, 3 Apr 2023 19:59:37 +0200 Message-Id: <20230403175937.2842085-1-javierm@redhat.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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. 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 -- 2.40.0