Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp981082rwb; Fri, 18 Nov 2022 10:51:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf6phNvUX2LTtWvisypceNnsxLr7Q6zwcbe1J7hqf2Mi/SQjDAGuAXIgYCPTKN8PcKTl/nZx X-Received: by 2002:a17:903:186:b0:188:5391:cec2 with SMTP id z6-20020a170903018600b001885391cec2mr791895plg.78.1668797469420; Fri, 18 Nov 2022 10:51:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668797469; cv=none; d=google.com; s=arc-20160816; b=Ij6+69KXMpoaWqvl3Vu0dj0B9rA4gCEqHo59lsiQB4h5UUSa49EX4EruLjvIWlJBw3 Mwk1jpmWape4H9MemCpRegt2ukNXn/8ZJczcekNrOCsgJeq0tqPH6V3/PCVQEeuX7jH1 hOdB1e/z+P7+ZNOTSi2QvLMXn5iqSJuUHFW2lxmHT2gS2cMcJyRg4pah5nFW51khGGM2 w+cB4cFghzFOBvYPJkL8u4xJ85PzpB998yVd0fR1cgschzblDeKah1YtqXrq9U793Wh0 ulXc2ki6q1JQKcpkuCnObT+BriOrWOreVpaaOGM8PqI/CTJ6B9RyGPh0DvDr4JLfMZgN gCng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JyQb2Ma01x7fRRs7TlYmPzx1wFI4WbhdeZZCWveBKt8=; b=sbv3rBQggX5xUp6sT3W68SCAumS1whXdydNcYZQhYw9THz09QhTApE419V0ZydgRLM Zkx1VumzYvAkz/ZOeFsdlKOK+/QICV4nGhQgfndr/6ZBhJaAwiqNDSfaP5XvzxANFAml AXRMdPYX8i8cTvyxXiccvJAvlMZzqFR4qJoukddLfNViPt02yBfX8/DlBzHs/lSal77T 0N1WIX8jRHnTLjqP0xJcBMzI9IXLwqx5rvHgBRqp2/KwqZpKX4axDUkdqvr5jZ3RotjM pv0Ba7YmkALCraAhNE1IdW1+gmo7uebO7jjkycIqUU8hJ8rOhqmbx8tVEBwCydsH+Vzx DiAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=llEI2xMj; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f190-20020a636ac7000000b0047466dc1defsi4354234pgc.293.2022.11.18.10.50.52; Fri, 18 Nov 2022 10:51:09 -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=@ti.com header.s=ti-com-17Q1 header.b=llEI2xMj; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235503AbiKRSPU (ORCPT + 90 others); Fri, 18 Nov 2022 13:15:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235281AbiKRSPS (ORCPT ); Fri, 18 Nov 2022 13:15:18 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3DEA898CF; Fri, 18 Nov 2022 10:15:17 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AIIFAMg084079; Fri, 18 Nov 2022 12:15:10 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668795310; bh=JyQb2Ma01x7fRRs7TlYmPzx1wFI4WbhdeZZCWveBKt8=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=llEI2xMj14C2NWEoiT0IaTVyryh5KtqoBlJuwZ1FX2zsVpyzEhPwwwYfVEL0VlDhK nwzyRcUhIPKW9gdch92GNlFyx+IXR4dqn36qtBbqxsK2Dm6ei/V/diEByavaYhsBO7 t5WO47WiKO5c1n0Gh80vvU8nApYg3zSVhv+Ie7xI= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AIIFAPE072009 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 12:15:10 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE107.ent.ti.com (157.170.170.37) 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 12:15:10 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE115.ent.ti.com (157.170.170.26) 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 12:15:10 -0600 Received: from [10.250.38.44] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AIIF9s3014409; Fri, 18 Nov 2022 12:15:09 -0600 Message-ID: <93242211-95e7-09a0-fced-5ef2deb9fc08@ti.com> Date: Fri, 18 Nov 2022 12:15:09 -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> From: Andrew Davis In-Reply-To: <20221118180808.wnel7d6gswsnooww@junkman> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 On 11/18/22 12:08 PM, Nishanth Menon wrote: > On 11:56-20221118, Andrew Davis wrote: >> On 11/18/22 11:47 AM, Nishanth Menon wrote: >>> On 11:40-20221118, Andrew Davis wrote: >>>> On 11/16/22 7:04 AM, Apurva Nandan wrote: >>> >>> [...] >>> >>>>> +#include >>>>> +#include >>>>> +#include "k3-j784s4.dtsi" >>>>> + >>>>> +/ { >>>>> + compatible = "ti,j784s4-evm", "ti,j784s4"; >>>>> + model = "Texas Instruments J784S4 EVM"; >>>>> + >>>>> + chosen { >>>>> + stdout-path = "serial2:115200n8"; >>>>> + }; >>>>> + >>>>> + aliases { >>>>> + serial2 = &main_uart8; >>>> >>>> This feels hacky. Your chosen node picks serial2 as that is usually >>>> the one that is wired up on K3 boards. But on this board it is main_uart8. >>>> So why not have this be serial10, then choose >>>> >>>> stdout-path = "serial10:115200n8"; >>>> >>>> Also, I've made comments on previous version of this series, it is >>>> nice to include folks who have commented before in the CC for future >>>> versions, that way our filters don't hide these away and we can more >>>> easily check that our comments have been addressed. >>> >>> Please stick with the standard of serial2 as the linux console standard. >>> We ended up with that to ease up capabilities of various distros to >>> uniformly work across SoC and board variants. >>> >> >> The chosen "stdout-path" is for setting the kernel's default output terminal. >> Distros and other userspaces need to use their own policy mechanisms for >> picking what serial port to run getty on or whatever the issue may be. >> >> Some look at the kernel command line, and our bootloader provides >> that too, so still no reason to fake alias names here. > > > We have had this conversation earlier as well. > > https://lore.kernel.org/linux-arm-kernel/CAK8P3a2VSBvOn1o+q1PYZaQ6LS9U4cz+DZGuDbisHkwNs2dAAw@mail.gmail.com/T/#m4ecb0dc6a78c84631f072faa1b0df0df46333d09 > > This is also the reason why we picked serial2 as linux console as a > standard across the boards based on the ecosystem. > 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 stops us from: chosen { stdout-path = "serial10:115200n8"; }; aliases { serial10 = &main_uart8; }; Andrew