Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6055822rwl; Tue, 4 Apr 2023 07:17:28 -0700 (PDT) X-Google-Smtp-Source: AKy350a1EKg3piJ1Ox1x5vJ5YjQ4V1U6Y1sk/JGfw+gZy/Gixs5GMKsXi47DkuBqRXUsTv9BxCf7 X-Received: by 2002:a17:90b:4c8b:b0:23b:3422:e78a with SMTP id my11-20020a17090b4c8b00b0023b3422e78amr3247527pjb.6.1680617848493; Tue, 04 Apr 2023 07:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680617848; cv=none; d=google.com; s=arc-20160816; b=pLKCl1FrSeOypT7r5dHluqbQWZTYRnknjikAMv1eVRfZUT1hckjo/5SnGW4XNwsAms ePJrcagblyfI0Bd4gzIzv79qSM5rjGkSwvpTf2FlhzMRJWQrbr5sF5ub7sCAmWZdgt0D 6YFvBfV5iDuklWNmVE4UezNEHmEA1o4t3Mnp2Iy51RQ06nO1R5lUztefmjzsIJ971QBp qXUhPW7c76KfJLAGJ3e0sNLQoKHxzzKy/x6yMeYW0HE0dN5+uWorNfkjncBepJPEuUT9 tihOAWvdOu18d7vS9U9MPcU1eLL8RLawKItCfQKMLYwUYNo9lT3W1a2L0w8SBpPEOmuN 4YOA== 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 :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=1ZErceNZ2DBRx0FKsqFTrzqQZnarVosWtCgSLSqBSXc=; b=0cfon5bWJSa0aZjdwP0gjIcxmqNrQzitKJP9DHQmjhqw1VZ/hToi00vP8xGns5a/lx Jk0bSzE3X5Hx646QVcnDvol+gRMb/nr8bYL40v6UfKYjAmH2HV1U9U3rhH2VVptd5i83 YSOO6zbyFJPMDFVwDYDN7HIxads/GcgMgvAI2oxrVuwrCMpnl2HQh+aMSieyVFeL3dVO NkB3At0ewCdFL5Gl1vgDj+FvooZRzbf/3y8WnaCrkHhqgX853ejYHP0OVD/df3smh4ag k2S6GffZ7BoDvjNXAzYpb8lxsrGHN3qbUhBUxLBJFmXBh1XLBdhVOkIa7ccj8ywHcR1u stEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SyPoEicK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lp2-20020a17090b4a8200b0022bbae722fcsi1528242pjb.1.2023.04.04.07.17.16; Tue, 04 Apr 2023 07:17:28 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SyPoEicK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235711AbjDDOGO (ORCPT + 99 others); Tue, 4 Apr 2023 10:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235520AbjDDOGI (ORCPT ); Tue, 4 Apr 2023 10:06:08 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF8D21AB for ; Tue, 4 Apr 2023 07:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680617098; 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: in-reply-to:in-reply-to:references:references; bh=1ZErceNZ2DBRx0FKsqFTrzqQZnarVosWtCgSLSqBSXc=; b=SyPoEicKk8HKJ1bMN5vymHIlBv7j7OFjZKC7p6qbUkXKUh2P8/epzdEkoOkC1dFsmfgDk+ ApUY1VyITSZD7ZkwP0o+b24RoJZjOJtbaVlPRyqRPs42bZiadDUON8+YuPuhZgxT+vYOsa koR93vp9vBXMMVRSKpD5akkaF+gv7Ok= 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-628-KVkaRnV4P_iomqfP9J5tvQ-1; Tue, 04 Apr 2023 10:04:57 -0400 X-MC-Unique: KVkaRnV4P_iomqfP9J5tvQ-1 Received: by mail-wm1-f72.google.com with SMTP id n3-20020a05600c3b8300b003f048e0e09eso395463wms.1 for ; Tue, 04 Apr 2023 07:04:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680617094; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1ZErceNZ2DBRx0FKsqFTrzqQZnarVosWtCgSLSqBSXc=; b=ZFiLO6jvoxmfjwOyg683ctCJ9xdqNDs+l8CuWAxeOq4junvKbd+VUPH8KLUlWzIA6w wvgTHoB9KajW0VPZYH+A4Sn7GSlD1wncXtAY8xDa/lGU8P8ztgGOUFnMmb2PKT471m9j mq/xosl1d7IzCCarlFwedfTpXcMtfUxHUz1BNJcNPigGxy/+luvY/SIeJsIEdZSjRDMr 2yg/b0CP5gU+giSZrIaZXQo9LETOW2aLWg95aTyRRMlEqgJ/z39O+kFbNgEs+V+N/10p FQPWTimEt1jm15rTUqCMRoDHQbAbt0ylRzOzeFnPTcij/OSv9tW6sDZ/L3jmg6ntYYwM E8eg== X-Gm-Message-State: AAQBX9dGtzvpdWYwDToRTqv+GzSQdWPRQe9Qe5mfQIhBPA1KYM1MSoxE jfUJCggN23hpGWzVyQvzuudvWWjwb2McombXAoA85s5MZXWUX+kUWPuyq3Vtw5nzR+YElrnYZ31 I1h28xQT1MikRKi/gYRL3P9CO X-Received: by 2002:adf:fc09:0:b0:2d7:1ec1:9e47 with SMTP id i9-20020adffc09000000b002d71ec19e47mr1715721wrr.19.1680617094536; Tue, 04 Apr 2023 07:04:54 -0700 (PDT) X-Received: by 2002:adf:fc09:0:b0:2d7:1ec1:9e47 with SMTP id i9-20020adffc09000000b002d71ec19e47mr1715695wrr.19.1680617094228; Tue, 04 Apr 2023 07:04:54 -0700 (PDT) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id r10-20020a056000014a00b002d2f0e23acbsm12366518wrx.12.2023.04.04.07.04.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 07:04:53 -0700 (PDT) From: Javier Martinez Canillas To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Heiko =?utf-8?Q?St=C3=BC?= =?utf-8?Q?bner?= Cc: linux-kernel@vger.kernel.org, Peter Robinson , Caleb Connolly , Jarrah Gosbell , Krzysztof Kozlowski , Martijn Braam , 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 In-Reply-To: <20230404123646.5iiznbhnyoama5pp@core> References: <20230403175937.2842085-1-javierm@redhat.com> <3738011.44csPzL39Z@diego> <20230404123646.5iiznbhnyoama5pp@core> Date: Tue, 04 Apr 2023 16:04:53 +0200 Message-ID: <87r0szd9q2.fsf@minerva.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Ond=C5=99ej Jirman writes: > On Tue, Apr 04, 2023 at 09:51:11AM +0200, Heiko St=C3=BCbner wrote: >> Hi, >>=20 >> 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 wh= at >> > is set in the Pinebook Pro Device Tree, which is a device similar to t= he >> > PinePhone Pro but with a different form factor. >> >=20 >> > Otherwise, the baud rate of the firmware and Linux don't match by defa= ult >> > and a 'console=3DttyS2,1500000n8' kernel command line parameter is req= uired >> > to have proper output for both. >>=20 >> The interesting question is always if this will break someone else's set= up. >> I've never really understood the strange setting of 1.5MBps, but on the >> other hand it _is_ a reality on most boards. > > Normal users of the phone probably run with UART console disabled, because > UART is muxed with audio jack output and to enable it they have to add > console=3DttyS2 to the kernel command line and flip a physical switch ins= ide > the phone. > > Fortunately, not sepcifying stdout-path baud rate in the options part > of the string, will make the serial driver probe for the baud rate from > the previous boot stage and make the user happy by keeping whatever was > already set in the bootloader. > As mentioned in the first email of this thread, I tried that but it didn't work for me. Either using stdout-path =3D "serial2"; or stdout-path =3D &ua= rt2; gives me no serial output with console=3DttyS2, I needed to specify the baud rate explicitly (i.e: console=3DttyS2,1500000n8). > https://elixir.bootlin.com/linux/latest/source/drivers/tty/serial/8250/= 8250_port.c#L3496 > Is that helper really used by the serial driver in the PinePhone Pro? (drivers/tty/serial/8250/8250_dw.c), I was meaning to dig why just ttyS2 was not working but decided that could be a follow-up patch. Since chaging to 1.5 MBps seemed to have merits on its own, decided to post this patch anyways in the meantime. > So we can make the kernel just keep the baudrate setup from the previous > boot stage by: > > stdout-path =3D "serial2"; > Did it work for you? Maybe I'm doing something silly but as mentioned it didn't work for me with upstream u-boot. > regards, > o. > --=20 Best regards, Javier Martinez Canillas Core Platforms Red Hat