Received: by 10.223.185.116 with SMTP id b49csp1138689wrg; Wed, 14 Feb 2018 12:13:13 -0800 (PST) X-Google-Smtp-Source: AH8x2247/cv2YVzK5PpoVv1s21PM4r8WRJ1eEpINRu4nbfrzArLbIFLiAX6/jveR0YY/R7oh/Ial X-Received: by 10.98.149.69 with SMTP id p66mr222761pfd.183.1518639193861; Wed, 14 Feb 2018 12:13:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518639193; cv=none; d=google.com; s=arc-20160816; b=vwUEdKR51GY64WVSE4Dbr+40ftfj4zAs/9XnkYkP6Z4fGCkwu+XmBrinFY2DMuIQ6+ Zfh+3PuVCR/z8ZZxQFqyFPr7KvoFwfXrRLzDEo2C97CNsuiV4OSO+v/HhLLfNxhq7WiU X6Jny0vIYWvhsI0z5s5at/qE8RVFjrxrs2y2Jo0otFNosoFE80t90yb/wsf/akKaXHQG QH68r4bP+sTxoJeoyokpJtQ0L62W6UgG5GKqU8o+fjmqHVt7KP7Qp6AfCglumZjsteMc 5ORjrJkKSSmA03y56UxTDxrc8HLPxGsUv2DYikPRyI6Pvp0e2GgJwux41EVXjA0NQnj+ lDAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ozD84J4YG5RYVTdJwiPD3dh/ZiavMdUP7Qdvf/a6ZxU=; b=K5xaoQRFXgn0pCs8JXDTWjmpggnlLk04FH9itt/Ind1+t8BnTVMAKn+095MPErD76C rQzOenfJ6CFyc5iG5ySjCVq2MX7sr2DdpyW24QnT6OwM4HcuIUiVWknNe+nraOnTUouI c1+p8O4657uL77DdZ8goINd7GY/18Ds9/k3PBGMaVOkMN1aJ6wAT/zSr34VrMmTZZ1oB 4vPrIAP7F1ix+cNhPWO5OeqE9bcQ2RdOHFhDx1xg9Va6sjLb9CId6WqIcUr3CDaZkGgR qo3nKbT98Y1GGFDiiw56p7+/eBj/9BKXi4XHWwrtJId9Qmgr7WIFWiuUjYdW5M7aDqXz P4Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZDjL4IoY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r13si550423pgv.714.2018.02.14.12.12.58; Wed, 14 Feb 2018 12:13:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZDjL4IoY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162756AbeBNTLe (ORCPT + 99 others); Wed, 14 Feb 2018 14:11:34 -0500 Received: from mail-qt0-f171.google.com ([209.85.216.171]:46166 "EHLO mail-qt0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162665AbeBNTLb (ORCPT ); Wed, 14 Feb 2018 14:11:31 -0500 Received: by mail-qt0-f171.google.com with SMTP id u6so9027313qtg.13 for ; Wed, 14 Feb 2018 11:11:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ozD84J4YG5RYVTdJwiPD3dh/ZiavMdUP7Qdvf/a6ZxU=; b=ZDjL4IoYUcPM34B0cAFEW7CVN7mIkuSF7jORXBKEzkJFKj1I4tqlvH/C29gyQeTqwv 8cvPH58IyTRvnGzfdOBBZUJxycukcKEW+NZBAvOo6+1PQTGgIJ0AffThaUn3eV2PuwAg As9b4RhJOh2PqcSTuiCl1tq3KOgj3jUxP97H8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ozD84J4YG5RYVTdJwiPD3dh/ZiavMdUP7Qdvf/a6ZxU=; b=ArCBzuSotQ/GMcad9PPgQTYl/1oehMS3v35JtM4eZo+LylyRTCoXHO1aCnBverpDkY JERcVjClLZ2VUEF5JXy+T9aMnjo/N94aP9BM+P8T8Xlz8yZITKSI1kmhId2eWjVhgxF9 4gRjBYlzeAZU4n+lK7iRy/hj7rnsHysYBGMTsiGyVAcirXffndQNV3iFRr7uJd++FGya nNs/shevUecJntekHcVPyyzKtHbLmjsvGIN/rYmckyLPwIyDF7cNDvBA/kqRuQHSz14F 5R2QDwOBkV3on5wf0qqgU/crFyywd9h0nraEreXsBrlxFFkamngXjwvLxn5h1e5xnMtY PqJw== X-Gm-Message-State: APf1xPAM9XVpjZDPRhgb1eX6JwmF6T2Ph3ALd3RCyzXU1F+NGVSyCthO vi9el9wcWyZxKsbIzfhxgwlTr6wdOSU= X-Received: by 10.200.9.48 with SMTP id t45mr149484qth.107.1518635490086; Wed, 14 Feb 2018 11:11:30 -0800 (PST) Received: from bjorns-mbp-2.lan ([8.43.114.254]) by smtp.gmail.com with ESMTPSA id e129sm4890396qkd.79.2018.02.14.11.11.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Feb 2018 11:11:29 -0800 (PST) Date: Wed, 14 Feb 2018 11:11:25 -0800 From: Bjorn Andersson To: Doug Anderson Cc: Rajendra Nayak , Andy Gross , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, LKML , Linux ARM , Stephen Boyd , evgreen@chromium.org Subject: Re: [PATCH v3 3/3] arm64: dts: sdm845: Add serial console support Message-ID: <20180214191125.GD93895@bjorns-mbp-2.lan> References: <20180212062832.2791-1-rnayak@codeaurora.org> <20180212062832.2791-4-rnayak@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 13 Feb 16:32 PST 2018, Doug Anderson wrote: > On Sun, Feb 11, 2018 at 10:28 PM, Rajendra Nayak wrote: [..] > > +&soc { > > + geni-se@ac0000 { > > + serial@a84000 { > > + status = "okay"; > > + }; > > + }; > > If others at QC have already decided that they like the style above > then it's OK with me, but I'd prefer instead (at the top level): > > &qup_uart2 { > status = "okay"; > }; > > ...then you don't need to replicate all the hierarchy. > > > + pinctrl@3400000 { > > Similar here. This could be: > > &qup_uart2_default { > pinconf { > ... > } > }; > > If you're upset about things being in a "random" order at the top > level, you can still create commented sections in the "dts" file to > organize things, but the above means that you don't end up tabbed in > several levels of indentation for no reason. > I prefer using the hierarchy to describe the relationship between sibling nodes, in favour of using comments and code review to keep things in order. This also mean that nodes that are not references by other parts of the tree does not need a label. That said, I've promised to write some patches to convert the prior platforms to this structure, so let's see how that turns out in practice - although it's still just an indication of what a fully described board would look like. > > > + qup-uart2-default { > > + pinconf { > > + pins = "gpio4", "gpio5"; > > + drive-strength = <2>; > > + bias-disable; > > Possibly you'd want some sort of pull on the "receive" pin unless > you're guaranteed that on this board that the other side will always > be driving the pin. As far as I can tell this UART goes to a debug > connector. If that debug connector is not populated this pin will be > floating, no? > The rx pin is typically bias-pull-up and tx bias-disable, so I would expect the same. [..] > > + > > + qup_1: geni-se@ac0000 { > > Color me confused. So you're saying here that this is "qup_1". > ...but above you turn the pinmux for pins "GPIO4" and "GPIO5" to > "qup9", right? So UART2 is on "qup 1" and "qup 9"? > > ...OK, so I stared at manuals a bunch more, and _maybe_ I get it. > Maybe there are 3 "QUP v3 modules" each of which handles up to 8 > "QUP"s. So QUP 9 is on "QUP module 1", is that right? If everyone > understands this already and it's just me that's confused then I guess > you can just ignore this comment. However, if you can think of any > better alias than "qup_1" that makes this less confusing then that > would make me extra happy. Like maybe "qupv3_id_1" to match the > manual? This is indeed a source of confusion, in particular since there tend to be different numbering depending on what part of the puzzle you look at. But you're right that each QUP has a number of engines, each one being a UART/I2C/SPI controller. I don't see a reason for labeling this particular node though, aliases references individual engines, not the wrapper. Regards, Bjorn