From patchwork Mon Apr 3 17:59:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 13198535 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A8628C76196 for ; Mon, 3 Apr 2023 18:00:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ZYaVBUfCKVrCKyhsFEGkiGpUS3l7VGGJPDOL0M21zn8=; b=PcBPl9ovvDh6j6 6BkGHOC0THTp6eBKC/ceP0Yw8qLLU61HcXnn6cPI4Wr5YA0ludfG5v0K47H6fEzgZZZCb/RLi1ckn UvEePB1mMepRhH0mfqtypzsW8+LgQj1Zj4MZ6p4OrLu8SVAfMHNgCAS9T2raKQcmY6rbtqFs8R8Rm RFTAMJQRNta9JaEpzXjcDzoCP2p6wW1iP98gbnxgRGzfhyEhmwKMTLixQhyJl/DSj85eJEHJJqq3J DidtRv922Oigk0eRIV6bd6v9KkjsRYctcpXA1YST60Pvb/TJgJS1qXQ7x+255nHnKQFmsp9Gd/vdC HzOLE3i/x1QjZ7FTa19w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjOTE-00G8Jh-13; Mon, 03 Apr 2023 17:59:56 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjOTA-00G8ID-1E for linux-arm-kernel@lists.infradead.org; Mon, 03 Apr 2023 17:59:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680544790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WlvpCHWMmiZdlbkC384yczmvM52H5PXcaJ7qF3TTD/w=; b=T1DSd/YCBZSJKaY3x9rMawr717KzNbCg0IUW5TsMjRHc4g75yy4gbyA8siQSJljNgcoSHc gg1r9JAaZ7bLm0Gl+yJg5zypvS2xg/eBq3jC25zZpvqFAiKDBtgq/ztuTsx3yHTUg4ChIa rInxtgMu6a+RNfhZwtqSDxHO3fPs6+c= 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-86-Ro8KKQ8GN_uoD55yJpRh4w-1; Mon, 03 Apr 2023 13:59:49 -0400 X-MC-Unique: Ro8KKQ8GN_uoD55yJpRh4w-1 Received: by mail-wm1-f72.google.com with SMTP id r11-20020a05600c458b00b003eea8d25f06so15105071wmo.1 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=1NB6LQlK5OKPY37njCpFCkDHayomLF11cn9OQ+G+aDMHp+agLmjgwDAIPxkufrr7qg ZzQaqxROBVGeRhJclUHEUtifDD4Y1XcbgpvIzxsiyo99wMMa2DS2JqKNIFeHJIEn74Xg 6fuvmszEvdLI3n6uYZYe0HeB6m2h7b/8Yx7pTN88fZNBEHgZQFkemnT2i1+5eHQcI2Mj Rb2cunTh+EuTZYl7op/PdwNfmhNKgLABt6mHHchVWbciMk2esr7K8Dhi90pDt3Q6wtJ2 2zICQkeg3MNnUzFNIiwu1pC2w4NKXGjo3HmweIdy8e/CEekgXnjv2HoQ35fx5bgTXH73 jC/w== X-Gm-Message-State: AAQBX9dVY9VM4LxzarPa9QtNwwnEChKT60Tg4wrsxni+lqxUXx36T8D4 ZaE/+kbDKIrAFadfIQ/mh7BLQtXCjFUr/lvjor3WOsW41ahxbImFYURJrqlauPQc4//bclkLfKB 8C8bWdnnw0e7GS+TYCgzt8fzZCoqQSaNFwY0= X-Received: by 2002:a05:6000:6:b0:2d4:a1c1:d1a2 with SMTP id h6-20020a056000000600b002d4a1c1d1a2mr28010984wrx.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 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230403_105952_490711_DC59DA98 X-CRM114-Status: GOOD ( 15.76 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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(-) base-commit: 3adf89324a2b2a9dbc2c12d8895021e7e34e3346 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 {