From mboxrd@z Thu Jan 1 00:00:00 1970 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 57E79C433FE for ; Fri, 18 Nov 2022 21:09:48 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:CC:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rQbtlRioquN60KP0PDOOxcBLa2HWd1XnIBncoeGWGIg=; b=svZh1AHBlk1ONT cQmZaU8C0Hwr9QIZ9esrHzx1kRTY9oUjQZGJOlHN8/dpSGnVYzwDZ/E8wChvr3WnE4PRTJdBeTG0R 6zktREf9gSnOa/+rzUOQw2s0KAY47WO7FoPpVPqNtHYbQX1Vgb5CgRLPrXR6xm4jgkI7Z0BsRFNta vn2fhz3zAoD0rUnGAZPUEbTlNApjMHhpURR0tNzKkWKp02M8KQDycXzs0TkK4l1Xl2wbH/KZueTov 88BJPs4BlvhAjWvcF0IzS70CP3Vg0IsGZn90Bl8Duqc194MqZyBAknincEU8LlQNPsGPSGDTMedmP Sk6Frs1sfh9IHy6kKUTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ow8bF-0086eA-Pf; Fri, 18 Nov 2022 21:08:37 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ow8bC-0086dW-Jo for linux-arm-kernel@lists.infradead.org; Fri, 18 Nov 2022 21:08:36 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AIL8Pjs098709; Fri, 18 Nov 2022 15:08:25 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668805705; bh=Yr4LSYGMtRX7f6gDoB3pzPK7VDSrGB+Mip9zdhZE6vY=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=pg20JjDTtULID4xVlEvXyUlUafjzZhVP48+U3vrSY7Kj8EzhZGkbUXODNcNIUpQnR pTFqmHHd4D5Rk45dCVDgqmf8jNus6PXqlQUgS9EQWdHA51ZcMjgWVArO4cJ9dxUzzL LEUg+foyGY8CZoHE4zSnYyQA8sG71fBn1PuI0H1k= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AIL8PhZ102998 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 15:08:25 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 18 Nov 2022 15:08:25 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Fri, 18 Nov 2022 15:08:24 -0600 Received: from [10.250.38.44] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AIL8Op3017735; Fri, 18 Nov 2022 15:08:24 -0600 Message-ID: <3d5e41f6-16a8-4298-ccd3-6db60f94eb47@ti.com> Date: Fri, 18 Nov 2022 15:08:23 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v3 4/4] arm64: dts: ti: Add support for J784S4 EVM board Content-Language: en-US To: Nishanth Menon CC: Apurva Nandan , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Linus Walleij , , , , , Hari Nagalla References: <20221116130428.161329-1-a-nandan@ti.com> <20221116130428.161329-5-a-nandan@ti.com> <20221118174754.y37pq77drvla2uxj@tinderbox> <8c123fa2-caab-d2dd-5eb4-688f1c6abb33@ti.com> <20221118180808.wnel7d6gswsnooww@junkman> <93242211-95e7-09a0-fced-5ef2deb9fc08@ti.com> <20221118192744.wish2vrxgy7dg7c2@unnerving> From: Andrew Davis In-Reply-To: <20221118192744.wish2vrxgy7dg7c2@unnerving> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221118_130834_831086_9B112301 X-CRM114-Status: GOOD ( 22.18 ) 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: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 11/18/22 1:27 PM, Nishanth Menon wrote: > On 12:15-20221118, Andrew Davis wrote: >> I don't see either of those addressed in that thread, only that >> the aliases should go in the .dts files and be trimmed, nothing > > Key is trimmed to what the system and ecosystem needs. > >> stops us from: >> >> chosen { >> stdout-path = "serial10:115200n8"; >> }; >> >> aliases { >> serial10 = &main_uart8; >> }; > > Do we need 10 serial aliases? There are'nt 10 serial ports exposed in > j782s2. ok - lets say we do this, then: [1] is needed to boot? but why > do we need to do that for all armv8 platforms when aliases allows us Why do we need SERIAL_8250_NR_UARTS at all, might be a better question. These should be dynamically allocated if the number goes over the default count imposed by the TTY framework. Maybe folks are still a bit too afraid to touch the TTY subsystem core, I don't blame them.. > to trim it to just the 3 or 4 serial ports the platform really needs > That + being able to use the convention that serial2 is always linux > console, is'nt that a good thing? Hence recommending to just expose the > serialports as aliases to exactly what we need while keeping serial2 as > the linux console (which in this case happens to be main_uart8 - example > as j721s2 does). > "serial2 as the linux console" is *not* a convention, we just don't want to fix up our bootloader/userspace to actually reason about what serial ports to put logins on. Why not make ttyS10 the default, or ttyS666, it doesn't solve your multi-distro issue either way since they usually only start a login on ttyS0, console=, and/or the first virtual tty. Never on ttyS2. So you are hacking up DT for a solution that doesn't do what you want in the end. Andrew > [1] https://lore.kernel.org/lkml/3ab9addf-7938-fcf3-6147-15a998e37d2d@ti.com/ > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel