Received: by 10.223.176.5 with SMTP id f5csp1018714wra; Tue, 6 Feb 2018 11:07:22 -0800 (PST) X-Google-Smtp-Source: AH8x225YZCccA9A9cDlPNgtLX5v9OIEtRMo8t4G890vTepn6QwJyzHFS+rZYpEMdQQEyYFl68Y07 X-Received: by 10.98.25.207 with SMTP id 198mr3402244pfz.83.1517944041861; Tue, 06 Feb 2018 11:07:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517944041; cv=none; d=google.com; s=arc-20160816; b=ziQiBor1640aGwIhT5r/kke3J5XpBvgboQwa5CXk/MjJJcroE4Rdt51WSc4nnM4e6g iX0oJwjVfLVuAd2VQggJhgD1UDYzTpN6eOqeECpj8YT38y0giygdgawtanTige4meU9N ABPHf1sjWu3W5YWVodINqCY2xJQb7bDXUaHVoItabvq5w7RBFhGNQMojCT/68LtjeEpy 3fVIFFq2TkMMALXIWBkXaJfOps8yYacY5akj8qgA+e7nkruO3pCuXLnBsTYfLs4lzqaZ lO3GBmDUawJjoYa0RkVXmK8P3h09fyLL6zZZW8lIILrcN1SW3UY5ApSWf+asnvcljCJ0 ZIEw== 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=iHlolagNK+l6/zixr+X8JxS9vuv6/swyqGT7EkpoHnE=; b=DgbVdTOdlzLYQTnypv90PedemczX4I/xH9vNuyT8kI3oO/6BoNgd1rA4F87mZ8NuTw IydtXn4tVs55cf7qPQMkmgapTAaGmVmyNW2eKoalHFBS0uclVg0Ij2w7nbWZwK9yerfh pu+VcwZitfC5woSsclYf9dxukJ6C6f4ti83k3xiuSXpksJftwV93gxV72Ax6g9M0is81 WkOXA1db4cxWaC3MekT9mnJs6rAHlzBV6Yw4q4d71w78p2/t1wbu2Mfe70bPIE8C4kIs BNhxX+TUPDXiIMYrOms6Q1wS5/1WtiDSTASPi6ONzlI9TComebyia/H/KvNRiQFFPMyT 3TGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YnbUKoQR; 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 n11-v6si8796461pls.112.2018.02.06.11.07.07; Tue, 06 Feb 2018 11:07:21 -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=YnbUKoQR; 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 S1752881AbeBFTGY (ORCPT + 99 others); Tue, 6 Feb 2018 14:06:24 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:39169 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752792AbeBFTGS (ORCPT ); Tue, 6 Feb 2018 14:06:18 -0500 Received: by mail-pl0-f65.google.com with SMTP id o13so1840937pli.6 for ; Tue, 06 Feb 2018 11:06:18 -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=iHlolagNK+l6/zixr+X8JxS9vuv6/swyqGT7EkpoHnE=; b=YnbUKoQR3kRQ/pcmkWy8tuD8Y11ILP9G5ZyGBNXFbgIMgBzwbMnxX+r+JIv8Ztylj3 /NJfrAbrjAoJfxfCVmupcng7zwHG1o4v6S5DiJQxfV9OpCsDJ47DAfN7yspfM7s6WoB0 kgmSh//2InDIhvnqIEVT0VJN1hHBdchwLo2Ls= 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=iHlolagNK+l6/zixr+X8JxS9vuv6/swyqGT7EkpoHnE=; b=lEMtPv0mItT2cR6IN4/vsqMVP7uuaOggpTlWe8k4pewlRUOX1/LYPFkQWeXNEVTK0T leq177gQo973Hh/HvKOpC8D0ur0AE3YNh9cYS9DZiBEravlc8kPVzSyMmkoqZwNrz66a APXeX/eI6qx/5PPl6iJmuxFv/O6mQfJiQIwfbaus5gxzQAbiZXYWfKiPyPZ13/iX+SyI WJWp4yAfWHFA2+7gjw9BEP7tfEr9DmTBg4yyipPQiyEkNZZtCihlv5fQV74yi+h6U1w8 9bQ/tUypBGZEd2dMj8Q74iCyH+0hPRmcz+dziUG76u7KpZO3UoT6WeQJjep3uFm4P9TR hzBQ== X-Gm-Message-State: APf1xPCtnNNAGd3wRo51badxVmaQJEKH8fGGNMx//oSlTAbBBdcv7ze9 TC1RQFgm0PLrP+uzuA7xaQi2NA== X-Received: by 2002:a17:902:658f:: with SMTP id c15-v6mr3333424plk.412.1517943977665; Tue, 06 Feb 2018 11:06:17 -0800 (PST) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id v11sm17408050pgf.83.2018.02.06.11.06.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Feb 2018 11:06:16 -0800 (PST) Date: Tue, 6 Feb 2018 11:06:14 -0800 From: Bjorn Andersson To: Doug Anderson Cc: Stephen Boyd , Rajendra Nayak , Andy Gross , LKML , linux-arm-msm@vger.kernel.org, Linux ARM , devicetree@vger.kernel.org Subject: Re: [PATCH 2/2] arm64: dts: sdm845: Add serial console support Message-ID: <20180206190614.GL9465@builder> References: <20180125163216.29018-1-rnayak@codeaurora.org> <20180125163216.29018-3-rnayak@codeaurora.org> <20180126221808.GE28313@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 06 Feb 10:37 PST 2018, Doug Anderson wrote: > Hi, > > On Fri, Jan 26, 2018 at 2:18 PM, Stephen Boyd wrote: > > On 01/25, Rajendra Nayak wrote: > >> diff --git a/arch/arm64/boot/dts/qcom/sdm845-pins.dtsi b/arch/arm64/boot/dts/qcom/sdm845-pins.dtsi > >> new file mode 100644 > >> index 000000000000..b97f99e6f4b4 > >> --- /dev/null > >> +++ b/arch/arm64/boot/dts/qcom/sdm845-pins.dtsi > >> @@ -0,0 +1,32 @@ > >> +// SPDX-License-Identifier: GPL-2.0 > >> +/* > >> + * Copyright (c) 2018, The Linux Foundation. All rights reserved. > >> + */ > >> + > >> +&tlmm { > > > > I'm not the maintainer, but I find this approach to the pins > > really annoying. I have to flip to another file to figure out how > > a board has configured the pins. And we may bring in a bunch of > > settings that we don't ever use on some board too. Why can't we > > put the settings in the board file directly? > > I'm not so familiar with how things work with Qualcomm, but in general > I think putting this in the "board" file is a bad idea. I'd be OK > with putting this directly in the SoC file (though it might get > unwieldy?), but not moving things to the board file as was done with > v2 of this patch. > > Said another way: nearly board that uses SDM845 that uses UART2 will > have the same definitions for these pins so we shouldn't be > duplicating it across every board, right? > We've run into several cases where different boards uses the same function but requires board specific electrical configuration. So what we decided was to keep the pinmux in the soc-file (where e.g. the uart definition is) and then extend it with the board specific electrical properties (the pinconf), in the board files. This does come with the complexity of having the pinctrl nodes split in two places, but the responsibilities of the two parts is clear and we remove the need for all board files to ensure the appropriate pinmux is in place. NB. We did discuss adding "sane defaults" for the pinconf in the soc dtsi, but we end up spending considerable time debugging issues stemming from not having the right pinconf; so better make this explicit and say that the board has to specify it's config. Regards, Bjorn