Received: by 10.223.176.5 with SMTP id f5csp2589605wra; Mon, 29 Jan 2018 00:19:30 -0800 (PST) X-Google-Smtp-Source: AH8x227F7qE+VGrqeqTcNQCQGyAqFXnLz320Y5S2aHLuTlzSx8oBXUXQlKSwLUKi/PXFRZEBTNxT X-Received: by 2002:a17:902:8f8a:: with SMTP id z10-v6mr20613737plo.395.1517213970443; Mon, 29 Jan 2018 00:19:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517213970; cv=none; d=google.com; s=arc-20160816; b=AXw9UuCosiGShYl6E5WFq9F1oRxDgDY6/78isPlOOIX+8B6Hm2KYXCl/x+jOxq/2JH zsXRUBbS+153VDHdzVumfqniRExE6zKd62YIX75tLZj+QhKoKbv0DrVgnHaFmQFpsXSx vLv+1FhxhJg7rYqVsCRtMxUYcXgpmpvgQJo+mKRgfhMZRh2EhdazwFE62HP9O1pfbgGs KTF9Qmii3d4bCeiFXMXw4VvJRaD60TiluwoFL7JGGZEYUeM4I3WVmFXnjGFOoPWs7yRG Y3UM0Lt6vQKu4YpZM+t31kkAluVaQqG3wuZM+f8P61YBOxcBCdTFFtWiUtpWytah2GEf oGDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=mLzWciMvwciyrQYhvd+NCD/LZl663ocIuf0pvS1dnRo=; b=B2ag1hQ3rYx6JNsgZZ9v6Jp8kaG/s3tSiMVAxLqVgfvSFIG7YyDzc2z2kPw7+8etXV ry9l7SctrFRJXAruF3hY5AakLt3wJuGZvf88ppGj0/XvkpA0DfEWQPxQSyepL2HLBs4s U++DHwFuNsO+K2b0IIEFCXkF6WpN1UQVlVBGm9S0cdqxVqMglMZPwzhH8IHKkqV/+RI4 VAD2lBj8DV8TNDlZMWlzLio9yRMZdiwx5brBE/MoAeazZmprvBOlp3RCybzumn8tZRUn o6yuHBX9SCbNpi0fWJcKT0wOwX3R2N48xJynYMaF8PuH8YZZJnE1CL822odhJAoZiniQ Llyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=djARxB7m; dkim=pass header.i=@codeaurora.org header.s=default header.b=KfVQP0gU; 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 s59-v6si8764236plb.699.2018.01.29.00.19.16; Mon, 29 Jan 2018 00:19:30 -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=djARxB7m; dkim=pass header.i=@codeaurora.org header.s=default header.b=KfVQP0gU; 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 S1751417AbeA2ISy (ORCPT + 99 others); Mon, 29 Jan 2018 03:18:54 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:46424 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751127AbeA2ISw (ORCPT ); Mon, 29 Jan 2018 03:18:52 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 55696601D9; Mon, 29 Jan 2018 08:18:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517213932; bh=7Qy71oIlX/zkxUQ54d0X5ZfU/5sPeLv19l34wpX2CzM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=djARxB7m5tKGoUfeC6+Jc+9USTaXmSUgJdBD9npYv/cKPAfLRmg9G3SkznDu81eMv wfc8Y9/eeSI+wOIy4MuLaQq7K8INjskAYuLiVcEJHwwiApEUY+r7svwttppGPNZtFb 6sgNhjZZ3TQWBLikxyHpHf+hAxtaLRVkbMnStnXk= 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 [10.79.40.88] (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4B7076014B; Mon, 29 Jan 2018 08:18:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517213931; bh=7Qy71oIlX/zkxUQ54d0X5ZfU/5sPeLv19l34wpX2CzM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=KfVQP0gU/a9VQFTNPip0A0IKRpo9fM05/85kpBg+sb1B5BdqGTG9FS8iMD5y1NzNc qylnSHRTLwgRZPsJQXmR/SNpj1BroNxIHdtdDnwCfPozf1YQFfRScOpv1+xwVrG1/o D2pvXHhTH4z0c9w+3BxSQgTkKjGKXNd6+YrHsfso= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4B7076014B 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=rnayak@codeaurora.org Subject: Re: [PATCH 2/2] arm64: dts: sdm845: Add serial console support To: Stephen Boyd 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 References: <20180125163216.29018-1-rnayak@codeaurora.org> <20180125163216.29018-3-rnayak@codeaurora.org> <20180126221808.GE28313@codeaurora.org> From: Rajendra Nayak Message-ID: <086251c4-b012-236c-33e2-9cab551a4594@codeaurora.org> Date: Mon, 29 Jan 2018 13:48:48 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180126221808.GE28313@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/27/2018 03:48 AM, 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 was just keeping it consistent with how things are for other qualcomm platforms. I can move this to the board dts if no one else sees any issues. > >> + 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. yes, will add. > >> @@ -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. yes, its still being reviewed > >> + status = "disabled"; >> + }; >> }; >> }; >> +#include "sdm845-pins.dtsi" > > Why at the bottom? Again keeping it consistent with how things are in msm8916/msm8992/msm8996 dtsi files. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation