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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1D23FC7EE23 for ; Wed, 7 Jun 2023 19:13:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7C8DA85F50; Wed, 7 Jun 2023 21:13:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="XJGzadrY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7020685FE5; Wed, 7 Jun 2023 21:13:56 +0200 (CEST) Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CC8338471C for ; Wed, 7 Jun 2023 21:13:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-565e8d575cbso72700527b3.3 for ; Wed, 07 Jun 2023 12:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1686165232; x=1688757232; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=24VUGcwyAWaMC/yya90T0CBt0Hb/2J42Af9zHnWbhJ4=; b=XJGzadrYB3mkqtO5iXXgFfnHxwH5pACVbKh6YX1kjYyF1rG/DjR6YjawSeopA6ux+7 NkKc4uWRXb8c14DFXi+21RH4P2Q2rwPohaRdKO5a+5uLFobNO08++KXyCshHEVe1JsRS NizkoRbM919QUYqvCmFBU8CYk8A3MhpOKiAjc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686165232; x=1688757232; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=24VUGcwyAWaMC/yya90T0CBt0Hb/2J42Af9zHnWbhJ4=; b=Xfse3aKqmdNFp0UIoxaUARvoXWIujGGun368RGTkn5kKGH7uysx3kSuaNTKaGrvRqw QQKpM86KH9jKB071oZ4KacHOlEDX++Zq/3um0Y00IbkqwZtQeRtrfUgpq8yZATdPx2C0 ieIf3oP7qUr8U65B7i0ZiYoE/GgdApsApFPa88CDWr8sFxRuRqwYh9AR8eWpHtagLrGy AXoH2AWcnwDD/Rl9fRd3CDxadMbWiHkR92yRFXPHOmBeZ+bhMuTUsd/cGDIl8GrRvlB9 sx/yCOc8J7DH6RfhWheumtu8cA7PflGMMSb8c05uggPlyj3ZctyhSkuCEsN32oallZFT KGNg== X-Gm-Message-State: AC+VfDyY5fjIGWqsGazt7BfyGb/DSMdwJyfWcfKMWp1TZQtzWoPc+Dz7 clHmdNptB2rQJytGpqNiK+HL2g== X-Google-Smtp-Source: ACHHUZ6h7/u4s7ciiERTYKGlnRJjjK1ogXE6sVZ56bLbnnUh5AJp5Vdr9Or+qq1bVehtMUMsm7S8Tw== X-Received: by 2002:a0d:cd06:0:b0:55a:8e38:7d5f with SMTP id p6-20020a0dcd06000000b0055a8e387d5fmr5666424ywd.39.1686165232423; Wed, 07 Jun 2023 12:13:52 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-a32f-7d20-53ba-bf5b.res6.spectrum.com. [2603:6081:7b00:6400:a32f:7d20:53ba:bf5b]) by smtp.gmail.com with ESMTPSA id c2-20020a814e02000000b005616d72f435sm4903300ywb.116.2023.06.07.12.13.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 12:13:51 -0700 (PDT) Date: Wed, 7 Jun 2023 15:13:50 -0400 From: Tom Rini To: Venkatesh Yadav Abbarapu Cc: u-boot@lists.denx.de, michal.simek@amd.com, sjg@chromium.org, git@xilinx.com, Algapally Santosh Sagar Subject: Re: [PATCH v5 2/2] serial: zynqmp: Fetch baudrate from dtb and update Message-ID: <20230607191350.GI1871110@bill-the-cat> References: <20230525040259.9348-1-venkatesh.abbarapu@amd.com> <20230525040259.9348-3-venkatesh.abbarapu@amd.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="v6+k0VcmrIe3fqIe" Content-Disposition: inline In-Reply-To: <20230525040259.9348-3-venkatesh.abbarapu@amd.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --v6+k0VcmrIe3fqIe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 25, 2023 at 09:32:59AM +0530, Venkatesh Yadav Abbarapu wrote: > From: Algapally Santosh Sagar >=20 > The baudrate configured in .config is taken by default by serial. If > change of baudrate is required then the .config needs to changed and > u-boot recompilation is required or the u-boot environment needs to be > updated. >=20 > To avoid this, support is added to fetch the baudrate directly from the > device tree file and update. > The serial, prints the log with the configured baudrate in the dtb. > The commit c4df0f6f315c ("arm: mvebu: Espressobin: Set default value for > $fdtfile env variable") is taken as reference for changing the default > environment variable. >=20 > The default environment stores the default baudrate value, When default > baudrate and dtb baudrate are not same glitches are seen on the serial. > So, the environment also needs to be updated with the dtb baudrate to > avoid the glitches on the serial. >=20 > Signed-off-by: Algapally Santosh Sagar > Signed-off-by: Venkatesh Yadav Abbarapu > --- > doc/README.serial_dt_baud | 41 +++++++++++++++++++++++++++++++++ Sorry I missed this until v5. This needs to be in rST and under doc/ somewhere (and make htmldocs happy). --=20 Tom --v6+k0VcmrIe3fqIe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSA1u4ACgkQFHw5/5Y0 tyzb6QwAsTkp0iuGHfDExFETSzJ8C43Z/7bjts07A9L6xPGx/u0VA9xjVo/Wj+ka YK3OWzpDcRKZXFxYBTSBb4SbikqBY7ZozSjSE6mN1BM7AjTf8tMZ1Nn5CXLiqdvA XFeUkvE4WLhmhOloFMsMbfgrRuvGcESfz+HPSsoQC+wnFHZo+9/5+UX6yLPBebnA cqzR2ZNTtO2aj8GRXsiRWh75hgtx/HpppEem9y4v919RMRFXyINavr5UxyWDroB0 MirC6QhbUp59XmPJl4pNSQfyBro9KOPX9umzYBM8d8hgMl/ENxRfMf/HcCOXCyDN nPcRabxixTY+P7XbXioaGkJKSvFnDMEqLAVclugpVRR+13dIkliyiAc4pNSXUUBZ VterzQ5Rgd52JNRyv5+DXh5yaM/870XH7fxnsFQISgpV7azItOLkqj6Dh3EBKyYI S0UaFWB3s3uv/Tdpc0YNrxWiqqvlzxfw2NJajw81D3/zCTcW2lszzk7CFzjEwmoI 7cTRywDO =bEdj -----END PGP SIGNATURE----- --v6+k0VcmrIe3fqIe--