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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 CE859C433EF for ; Tue, 14 Dec 2021 03:43:48 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4JCkkW3qNTz300S for ; Tue, 14 Dec 2021 14:43:47 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.a=rsa-sha256 header.s=thorn header.b=C1I8rwIj; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=bewilderbeest.net (client-ip=2605:2700:0:5::4713:9cab; helo=thorn.bewilderbeest.net; envelope-from=zev@bewilderbeest.net; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.a=rsa-sha256 header.s=thorn header.b=C1I8rwIj; dkim-atps=neutral Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4JCkjq0mHFz2yPv for ; Tue, 14 Dec 2021 14:43:10 +1100 (AEDT) Received: from hatter.bewilderbeest.net (174-21-184-96.tukw.qwest.net [174.21.184.96]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 10B7886; Mon, 13 Dec 2021 19:43:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1639453389; bh=MIcN6m1sXiERSwSWt7R4Lsw5q4do9jM3C8OpxaJFCF4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=C1I8rwIj2yhMC8bX5MMMmwdDtGXCpi+ekU9oRGEtTk9tlVzY0zeRUINO3rlI34t3A aoOwryb8DIW24AwHxvzO4nEObnyhBcGAakDMHXY0WOJPiWGhIzdiZEstL0RuhBOOtP NVacpeIO373Fs78lri/oeXf9a50lFkvIB9NDXuzE= Date: Mon, 13 Dec 2021 19:43:07 -0800 From: Zev Weiss To: Ryan Chen Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400: add support for TXD3/RXD3 pins Message-ID: References: <20211213194703.24060-1-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "openbmc@lists.ozlabs.org" , ChiaWei Wang Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On Mon, Dec 13, 2021 at 07:29:48PM PST, Ryan Chen wrote: >Hello, >> -----Original Message----- >> From: Zev Weiss >> Sent: Tuesday, December 14, 2021 11:21 AM >> To: Ryan Chen >> Cc: openbmc@lists.ozlabs.org; Joel Stanley ; ChiaWei Wang >> >> Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400: add >> support for TXD3/RXD3 pins >> >> On Mon, Dec 13, 2021 at 05:39:17PM PST, Ryan Chen wrote: >> >Hello, >> > >> >> -----Original Message----- >> >> From: Zev Weiss >> >> Sent: Tuesday, December 14, 2021 9:33 AM >> >> To: Ryan Chen >> >> Cc: openbmc@lists.ozlabs.org; Joel Stanley ; ChiaWei >> >> Wang >> >> Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc] pinctrl: ast2400: >> >> add support for TXD3/RXD3 pins >> >> >> >> On Mon, Dec 13, 2021 at 05:22:52PM PST, Ryan Chen wrote: >> >> >Hello, >> >> > You may need claim for function group for link, not for pin link. >> >> > Ex. >> >> > static struct aspeed_sig_desc uart3_link[] = { >> >> > { 0x80, BIT(22), 0}, >> >> > { 0x80, BIT(23), 0}, >> >> > } >> >> > >> >> > ast2400_groups[] = { >> >> > { "UART3", 2, uart3_link }, >> >> >Ryan >> >> >> >> Hi Ryan, >> >> >> >> That possibility occurred to me, but the existing function/group >> >> names in arch/arm/dts/ast2400.dtsi (lines 1130-1133 and 1375-1378) >> >> made me think they should be separate. >> >This device tree is copied from Linux kernel. >> > >> >> I'm certainly not an expert on pinctrl stuff though...is there some >> >> other existing logic or mechanism to link a "UART3" to the separate >> >> "TXD3" and "RXD3" in the device tree? >> >There is no separate in u-boot device tree. >> >> Perhaps we're misunderstanding each other... >> >> https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4 >> fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1130-L1133 >> >> and >> >> https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4 >> fa5013d6dd/arch/arm/dts/ast2400.dtsi#L1375-L1378 >> >The following is my point. >https://github.com/openbmc/u-boot/blob/a570745a1a836e351bd4b1131f23a4fa5013d6dd/arch/arm/dts/ast2400.dtsi#L3 > I'm afraid I don't follow...how does it being copied from the Linux kernel device tree affect whether or not we should group these two or keep them separate? >> look fairly separate to me? >> >> >May I know why you need separate? >> >> In my particular case I don't need these two to be separate, but it seems >> conceivable that there might be other cases that would require a different set >> of signals to be enabled for a generic "UART3" group -- possibly more >> (sideband signals like CTS and such), or perhaps even fewer (e.g. if you had an >> output-only UART3 just for logging or something, and only needed TXD3 for >> that, but still wanted to use pin >> B14 as GPIOE7 instead of RXD3). Keeping them separate seems like it leaves >> things as flexible as possible, avoiding imposing any artificial constraints. >> >> >> Zev >