Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp168792rwb; Wed, 18 Jan 2023 15:56:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXv3+lrNhdE5fA4h07Ij++W23IJhiwdjynD6x5oHq9mpDsLKUSUoLPjfhVld0lI8+xB0ODBq X-Received: by 2002:a05:6a20:a009:b0:b8:b0fe:cd40 with SMTP id p9-20020a056a20a00900b000b8b0fecd40mr12540806pzj.39.1674086213594; Wed, 18 Jan 2023 15:56:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674086213; cv=none; d=google.com; s=arc-20160816; b=IlzAaMq6JYGONakdkCAyjqjSfOOxnS35EB1g+BziIR2wn9zwmE6KIWUW5RO56Azmsf L4eFSEEjRPD0rQZRZbVAbA8yavMNqaGnpsC0fR8BTcG1VpEUxSmRF1PTC6PWoueu3N0Z pti6jOO9ShTLmdI90f4RH+rGNnh4ltNX2Cq/euUwthC1qHY1KB8FDchzVixsmSRk95Cl 4U9nI2GIPPgfvFTxeZhMP9Q8Zkb8DvoxzWsWgTkQqaD2DBxIRgV+UUkAjTOMxHASVeNo fszatE77so7Vt+Z6Kp6RGy18d5aw/sfPJFu1SMuVVlDMLtepzG/4DbHGnZLtAcFz8ozO Gzww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4EpIK3AKFswue83Un/XyZTUk+wORcIxbKW4Kp76kxKU=; b=wJjkjuMiLlBClEjYcbMHuC4QGdS4AnOMItD/f/ozUzFTilz4PVAMu30/LLTcDhk1Cm A8UC5jcCPi/tIrBeo7YzdXvbUJlG632XwKtvbOjakinxVUvXOUyZ3bPz3E+L/NP46pIA QBEst90HpquqnzkiWqqtX2OJx/81jUp+5lentUdHt6CMzvbcnQ3CoR2s9Bua/hoeHTGG 1vErnDrPjQwvM0IxGfi5wqTJHeJoUYqixRHqErCU59Hd15mr/W9CVn9nDCSMwsaPiPn1 vMlCqn6r2wO+bXtit8tNElSIBCBo01wrRZY8Zj0pKPP2nLPbSWJQV5iIPUS+4ieJmCj9 KqkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FMWFJvg3; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f6-20020a636a06000000b0047882ff26basi37127305pgc.475.2023.01.18.15.56.48; Wed, 18 Jan 2023 15:56:53 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=FMWFJvg3; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229986AbjARXnL (ORCPT + 44 others); Wed, 18 Jan 2023 18:43:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbjARXnJ (ORCPT ); Wed, 18 Jan 2023 18:43:09 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D41E656C3; Wed, 18 Jan 2023 15:43:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4589D61AC2; Wed, 18 Jan 2023 23:43:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 403F0C433EF; Wed, 18 Jan 2023 23:43:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674085386; bh=Okd6MIEI+bnAJs2p19rWhJG6+ljN8iX62czvy5e5c4o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FMWFJvg3ySJH0/xRmzFgX4ei12XCJ5lb0Yl/JzgdDT7Zm6buaZShV2CeaPY8LpDpY 8VOatkM9mAFJLZXAODl1O3ey0EzSTLWATSDKVJzes85RwWWLSnIompE0k5DP0Evk7n rK9ErPDnQ+pEdhJBRWeDhGMyyMRWSXaGj9jNVT7wTRzWDaJZy/dIpaq+sm/5EuvpQf y+wAYGHrI4ndrhR420aWYE1sXSPeU8zIlKWm6MkudIP9XTT4nXM/aG05Qv5sdOKkmm czKMDGGowcBcNBvlsiErUA1e6EyVhYUclEFL8GRh/6HjroEMeuh7nCUPrbJO/CbZ6Y S7HryQL2hYdcQ== Date: Wed, 18 Jan 2023 23:43:00 +0000 From: Conor Dooley To: Hal Feng Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Palmer Dabbelt , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Albert Ou , Ben Dooks , Daniel Lezcano , Thomas Gleixner , Marc Zyngier , Stephen Boyd , Michael Turquette , Philipp Zabel , Linus Walleij , Emil Renner Berthing , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 7/7] riscv: dts: starfive: Add StarFive JH7110 VisionFive 2 board device tree Message-ID: References: <20221220011247.35560-1-hal.feng@starfivetech.com> <20221220011247.35560-8-hal.feng@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Ck4pvxVOY1Kfvyhk" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 --Ck4pvxVOY1Kfvyhk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 10, 2023 at 05:59:09PM +0000, Conor Dooley wrote: > On Tue, Dec 20, 2022 at 09:12:47AM +0800, Hal Feng wrote: >=20 > > + aliases { > > + serial0 =3D &uart0; > > + }; > > + > > + chosen { > > + stdout-path =3D "serial0:115200n8"; > > + }; >=20 > So I think this is wrong, and the stdout-path should be uart3 instead. > Per the QSG [0], GPIO5/6 are the suggested UART Tx/Rx to use. > This appears to map to uart3 rather than uart0. > FWIW, uart3 is also the stdout-path for the v1, see: > arch/riscv/boot/dts/starfive/jh7100-common.dtsi >=20 > At least, that change is what I needed to do in order to use the > JH7110_VisionFive2_upstream branch, AFAICT matches what you've got in > this series. I went and re-tried things again today, but with the clk & pinctrl series =66rom the ML instead of that branch. I'd gone and used that branch instead of the patches, as there were some build issues with the pinctrl driver from the patches. I fixed the build issues in the pinctrl driver and now uart0 works. Looking at it again, it makes sense for uart0 to be serial0, given there's pinconf stuff being done in this DT for pins 5 & 6 for uart0. Perhaps by using that branch, I was using some older drivers etc given it seems to mostly contain commits dating from November? I'm still a bit confused about the whole thing, given I tried out a whole load of branches to get something booting with ethernet support that day! Since this seems to work with the fixed pinctrl driver, I don't think you need to change anything here. Apologies for the noise! Conor. --Ck4pvxVOY1Kfvyhk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY8iEBAAKCRB4tDGHoIJi 0ui9AQCEj0sA+NvX+A6mlsoSkQPrEOSs990I2Ni0LtP1f+xkRAEAw6Srrmpajmp3 i9HfNdFUU1MPc0SrwlyKgR5faz0F7AU= =vX2v -----END PGP SIGNATURE----- --Ck4pvxVOY1Kfvyhk--