Received: by 10.223.176.46 with SMTP id f43csp1231518wra; Fri, 26 Jan 2018 14:18:49 -0800 (PST) X-Google-Smtp-Source: AH8x226kPvGi23eRU4EzSovUHgRsmpr2RhPjpWiUqiSHtJBddSx5Fm7352SuMT05WaIpl+y35pQd X-Received: by 2002:a17:902:6b83:: with SMTP id p3-v6mr15305484plk.18.1517005129727; Fri, 26 Jan 2018 14:18:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517005129; cv=none; d=google.com; s=arc-20160816; b=fS/40Ew9E8iEGa8EOQGnLAG94HSlFHBybtzfw4syrqKf8yBXQZ9NfoUAVW09mHLtUA ixBIPsz2flVGpPf26QwfXeKOSUVab3Syu9DUs8cFBaNudBXg6+QioywHVmtLxptB7enW +lUlQ88s3z1SfAMqvaVgb/H1W4WRuD0OvPnIirb//h06nAz2qcDtZ+7HsylulwLbAaqz NWoU3Ci4m7EhssAUJlY50a24WkhkqhW+skQ4Y+x4GWfBzTxpyKWUi9nHdRhgd6fUWssz 1ID4W6OzHRhnqmiACYD5JEKT3Mq3z4q4h1h5LsSL4+JGafJOQIfDeqlOiI3uzB7yeNtB 4xJQ== 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:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=XYhG0hG40ibDRuB/neRVrVagVXhIXOO+HcwYnIlU0YE=; b=0qTpLinljLLfY5RYA/23H49WGr1hewTU1ReyZ1ES2nVAaIce1GUakJSAmV0UURTxuG iTbpog7/zJ1vvcmcuO1udcd5NRLwHFEBrGmUuhH9GDSiaMcTz4u7i7P3DA6RJYN3JFlN wKtudnKznt3Nau9yIEOltS2ioXNQTKAffxfboZYS7clkqqW4CPfPDkGj3+J7Pvt1aLt/ DwcyyXcIJZhsuzCOJt+zkLc3tuzTCUTtw6nO185qFWm9pFIDA4Fpeses50/JnuhHgRxT NJwOzbiNqDm5DJ9dptjKIvLW8pg09bRxAQ3WB9IM8MKAtpmEZZmXJ5Iiuc9L/BfxjWCu /Osg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=eLSWaPxd; dkim=pass header.i=@codeaurora.org header.s=default header.b=hmNr7HSf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2si3518545pgv.53.2018.01.26.14.18.35; Fri, 26 Jan 2018 14:18:49 -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=@codeaurora.org header.s=default header.b=eLSWaPxd; dkim=pass header.i=@codeaurora.org header.s=default header.b=hmNr7HSf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751771AbeAZWSM (ORCPT + 99 others); Fri, 26 Jan 2018 17:18:12 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:59276 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751394AbeAZWSK (ORCPT ); Fri, 26 Jan 2018 17:18:10 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 819A96047C; Fri, 26 Jan 2018 22:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517005089; bh=s6tGyk9XVjzYWDoXeI2vo/DDcxEMDuCgkqqx05ZJMy0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eLSWaPxdLq8rFaodBhp+md3lNEUJR4yNB2D75IIvoaxc0bZ1FWjVgSUptpPKkij7E Tp6obZ7OVphyh8d9/VnktZAM+OXY9FICkdDDI7k1eoOp5GblfVcmAAH9jwIPJXDgHQ /HIQkfQdIBwd895Irs7GGFQAHON7flpjalYLSonQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: sboyd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id CEC606047C; Fri, 26 Jan 2018 22:18:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517005088; bh=s6tGyk9XVjzYWDoXeI2vo/DDcxEMDuCgkqqx05ZJMy0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hmNr7HSfkth0MB74HLSVuVHoy6iyx9q5aOJYZcieRuQG0hvONKxSnDTRj5UY5kqW3 UIGGXBUesu1KCsqGnkakZTAniRSVm3OJrAFQg9neuXknNIP5+QAR+f/HgSbUUhH5pJ B2uAQzh7TEBRXoyWIBGJe/SklN1+AGq90Idq4cJw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CEC606047C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sboyd@codeaurora.org Date: Fri, 26 Jan 2018 14:18:08 -0800 From: Stephen Boyd To: Rajendra Nayak Cc: andy.gross@linaro.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH 2/2] arm64: dts: sdm845: Add serial console support Message-ID: <20180126221808.GE28313@codeaurora.org> References: <20180125163216.29018-1-rnayak@codeaurora.org> <20180125163216.29018-3-rnayak@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180125163216.29018-3-rnayak@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > + qup_uart2_default: qup_uart2_default { > + pinmux { > + function = "qup9"; > + pins = "gpio4", "gpio5"; > + }; > + > + pinconf { > + pins = "gpio4", "gpio5"; > + drive-strength = <2>; > + bias-disable; > + }; > + }; > + > + qup_uart2_sleep: qup_uart2_sleep { > + pinmux { > + function = "gpio"; > + pins = "gpio4", "gpio5"; > + }; > + > + pinconf { > + pins = "gpio4", "gpio5"; > + drive-strength = <2>; > + bias-disable; > + }; > + }; > +}; > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index a21f4912b3e2..529f4ba3a1db 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -4,6 +4,7 @@ > */ > > #include > +#include > > / { > model = "Qualcomm Technologies, Inc. SDM845"; I'd expect some sort of serial alias node stuff here too. > @@ -304,5 +305,26 @@ > cell-index = <0>; > }; > > + qup_1: qcom,geni_se@ac0000 { > + compatible = "qcom,geni-se-qup"; > + reg = <0xac0000 0x6000>; > + }; > + > + qup_uart2: serial@a84000 { > + compatible = "qcom,geni-console", "qcom,geni-uart"; > + reg = <0xa84000 0x4000>; > + reg-names = "se_phys"; > + clock-names = "se-clk", "m-ahb", "s-ahb"; > + clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>, > + <&gcc GCC_QUPV3_WRAP_1_M_AHB_CLK>, > + <&gcc GCC_QUPV3_WRAP_1_S_AHB_CLK>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&qup_uart2_default>; > + pinctrl-1 = <&qup_uart2_sleep>; > + interrupts = ; > + qcom,wrapper-core = <&qup_1>; Is this binding still being reviewed? Ugly. > + status = "disabled"; > + }; > }; > }; > +#include "sdm845-pins.dtsi" Why at the bottom? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project