Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8697596imu; Tue, 4 Dec 2018 12:39:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/VLbQrTD49KCcOB0TI5q2GS5SltpuB7HeB3Xn9uUUK6qyjC6qmyhDUVF/+rfHfsACElBlAZ X-Received: by 2002:a63:f547:: with SMTP id e7mr18385205pgk.182.1543955947104; Tue, 04 Dec 2018 12:39:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543955947; cv=none; d=google.com; s=arc-20160816; b=eepW2UwE/80CYI38iZACxvyEqhF9NIYEa1adOd0Q9qcGK/YYzeLI9VL4VfaXM5zWYn cjh+VZnesAb3MMKJN/LX7sOSznnhf6IMVyhEikUZ2Gcb8j3XX8FTuPpL0Ow2KSmXg9Jn ZiLmrDw4mtWbI3WaqL/EjDvIkUVMOw/1/zx1+iMezIE5FeUBsLSle5ODVRQBWSmT9UGP Y/VdotPLW2j/zgj1jpJwmqMPx3vefK37ESSelcK25OEDHVMJoq/3TFtNnMATDtjpcsXB OqprAdt1vKZQRIcEh8nSXkJOUbD4QePLIa7gjYHm3LFNO3oQNc/lQvjRaHEMGvC7GjEZ tOOg== 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; bh=T4xKDB7e4ccy6Wm1FQNXIMP7dyh94+gR/K/i7vw5a6g=; b=MSt5YTN5xYKRE8bY2VU3zsJJMnxorekS8GSPEDhpRyTnPEwJzuvfGWFBVvNqalxOtV RtNzjErJ5C7RdptmQcBeY5JmbXjElD8PdFCQpBaVbrs/Z7kv3+22NdTHDo2xuSHizohm NJJVaJFcQCQ4SKV5Ei3jVyyY4+A25rQYJMAde4m80YWSPfeFrt6b6DX0brUYdP5134cr hVeqbk1vgXqa+rFsv+b5D3ZHKTv8abpR/9mZJzTVHGve/NPNO0s/juWRZMxf/6nz8qfm voXbv6AajFtL+bXLaDHl+j62eM5SyhBL350QSX9+UPF/qF5C5kJ8fBBrwe2FvbF/Zev2 M4vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=j2jgutVr; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q189si19122834pfb.62.2018.12.04.12.38.52; Tue, 04 Dec 2018 12:39:07 -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=@chromium.org header.s=google header.b=j2jgutVr; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726392AbeLDUhW (ORCPT + 99 others); Tue, 4 Dec 2018 15:37:22 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:33012 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbeLDUhV (ORCPT ); Tue, 4 Dec 2018 15:37:21 -0500 Received: by mail-pl1-f193.google.com with SMTP id z23so8874142plo.0 for ; Tue, 04 Dec 2018 12:37:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=T4xKDB7e4ccy6Wm1FQNXIMP7dyh94+gR/K/i7vw5a6g=; b=j2jgutVrsU7vCbt6Eq4V0wGK29U7lQaipj561yGQvh02OJIZEMma1SnZjyAGvUQjdL hs33Tp8egVgqsYuZOmvXflf+WqeIVvgZsQXOE4lLQOGA9qXIAPsRlGM3Gz/umdtsUGvi mOLf9CU1Lj0DMidSO8oSR3ayqJet6QryHcsD0= 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=T4xKDB7e4ccy6Wm1FQNXIMP7dyh94+gR/K/i7vw5a6g=; b=guD45KlRnQxGbWWDvjDQ3MpsCFW4hRTQgcXHMKPucno0+2qlsixC/nvv/EIzXzOJFL Xe2OOdZuUXXR06hfASWaHL7CT2V9H/BPBU89vNjLQpwjOMbMHKa4w6Oj4Tv2zYdoM3oj Dx/1Px/BL2FQtphYkliiC2YbMFP77Z58O2ByylcJ4WLl6R7aTg6Qt/+P/wqKIslMpGnX sUOB5EM6SRCQqGL9iKnY05x0J9R7la1bQpGA0hcRo1vRWCsd1GW4G2GrUMsVFbvuZ6qy 7sROMd2YUuoRZLQmDmvvawCRBYZpMpS4gfgH5nlx/OSRwx1j9RGUS1GRD6MyDtVH+yZC 2JEQ== X-Gm-Message-State: AA+aEWaonqaXyXE43C0QfpjREwdvUWMa3/gBlXNYYguMLG5hFGmc7EdP opC/uqIig1eDM2dIb+W9biJ8gg== X-Received: by 2002:a17:902:74c1:: with SMTP id f1mr21041294plt.273.1543955839734; Tue, 04 Dec 2018 12:37:19 -0800 (PST) Received: from localhost ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id h128sm22168332pgc.15.2018.12.04.12.37.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Dec 2018 12:37:19 -0800 (PST) Date: Tue, 4 Dec 2018 12:37:18 -0800 From: Matthias Kaehlcke To: Andy Gross , David Brown , Rob Herring , Mark Rutland Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Douglas Anderson Subject: Re: [PATCH v2] arm64: dts: qcom: sdm845: Add UART nodes Message-ID: <20181204203718.GD14307@google.com> References: <20181004002409.39350-1-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181004002409.39350-1-mka@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, can this be landed or are any more changes needed? Thanks Matthias On Wed, Oct 03, 2018 at 05:24:09PM -0700, Matthias Kaehlcke wrote: > This adds nodes for all possible UARTs to sdm845.dtsi. By default > only configure the RX/TX lines with pinctrl. Boards that use UARTs > with flow control can overwrite the configuration in the > .dtsi. > > Signed-off-by: Matthias Kaehlcke > Reviewed-by: Douglas Anderson > --- > Changes in v2: > - use GCC_QUPV3_WRAP1_Sx_CLK for uart8-15, not > GCC_QUPV3_WRAP0_Sx_CLK > --- > arch/arm64/boot/dts/qcom/sdm845.dtsi | 270 +++++++++++++++++++++++++++ > 1 file changed, 270 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi > index 0c9a2aa6a1b5..c4056c2c3cc5 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi > +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi > @@ -286,6 +286,17 @@ > status = "disabled"; > }; > > + uart0: serial@880000 { > + compatible = "qcom,geni-uart"; > + reg = <0x880000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart0_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c1: i2c@884000 { > compatible = "qcom,geni-i2c"; > reg = <0x884000 0x4000>; > @@ -312,6 +323,17 @@ > status = "disabled"; > }; > > + uart1: serial@884000 { > + compatible = "qcom,geni-uart"; > + reg = <0x884000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP0_S1_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart1_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c2: i2c@888000 { > compatible = "qcom,geni-i2c"; > reg = <0x888000 0x4000>; > @@ -338,6 +360,17 @@ > status = "disabled"; > }; > > + uart2: serial@888000 { > + compatible = "qcom,geni-uart"; > + reg = <0x888000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP0_S2_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart2_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c3: i2c@88c000 { > compatible = "qcom,geni-i2c"; > reg = <0x88c000 0x4000>; > @@ -364,6 +397,17 @@ > status = "disabled"; > }; > > + uart3: serial@88c000 { > + compatible = "qcom,geni-uart"; > + reg = <0x88c000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP0_S3_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart3_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c4: i2c@890000 { > compatible = "qcom,geni-i2c"; > reg = <0x890000 0x4000>; > @@ -390,6 +434,17 @@ > status = "disabled"; > }; > > + uart4: serial@890000 { > + compatible = "qcom,geni-uart"; > + reg = <0x890000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP0_S4_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart4_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c5: i2c@894000 { > compatible = "qcom,geni-i2c"; > reg = <0x894000 0x4000>; > @@ -416,6 +471,17 @@ > status = "disabled"; > }; > > + uart5: serial@894000 { > + compatible = "qcom,geni-uart"; > + reg = <0x894000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP0_S5_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart5_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c6: i2c@898000 { > compatible = "qcom,geni-i2c"; > reg = <0x898000 0x4000>; > @@ -442,6 +508,17 @@ > status = "disabled"; > }; > > + uart6: serial@898000 { > + compatible = "qcom,geni-uart"; > + reg = <0x898000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP0_S6_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart6_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c7: i2c@89c000 { > compatible = "qcom,geni-i2c"; > reg = <0x89c000 0x4000>; > @@ -467,6 +544,17 @@ > #size-cells = <0>; > status = "disabled"; > }; > + > + uart7: serial@89c000 { > + compatible = "qcom,geni-uart"; > + reg = <0x89c000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP0_S7_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart7_default>; > + interrupts = ; > + status = "disabled"; > + }; > }; > > qupv3_id_1: geniqup@ac0000 { > @@ -506,6 +594,17 @@ > status = "disabled"; > }; > > + uart8: serial@a80000 { > + compatible = "qcom,geni-uart"; > + reg = <0xa80000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP1_S0_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart8_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c9: i2c@a84000 { > compatible = "qcom,geni-i2c"; > reg = <0xa84000 0x4000>; > @@ -569,6 +668,17 @@ > status = "disabled"; > }; > > + uart10: serial@a88000 { > + compatible = "qcom,geni-uart"; > + reg = <0xa88000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP1_S2_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart10_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c11: i2c@a8c000 { > compatible = "qcom,geni-i2c"; > reg = <0xa8c000 0x4000>; > @@ -595,6 +705,17 @@ > status = "disabled"; > }; > > + uart11: serial@a8c000 { > + compatible = "qcom,geni-uart"; > + reg = <0xa8c000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP1_S3_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart11_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c12: i2c@a90000 { > compatible = "qcom,geni-i2c"; > reg = <0xa90000 0x4000>; > @@ -621,6 +742,17 @@ > status = "disabled"; > }; > > + uart12: serial@a90000 { > + compatible = "qcom,geni-uart"; > + reg = <0xa90000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP1_S4_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart12_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c13: i2c@a94000 { > compatible = "qcom,geni-i2c"; > reg = <0xa94000 0x4000>; > @@ -647,6 +779,17 @@ > status = "disabled"; > }; > > + uart13: serial@a94000 { > + compatible = "qcom,geni-uart"; > + reg = <0xa94000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP1_S5_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart13_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c14: i2c@a98000 { > compatible = "qcom,geni-i2c"; > reg = <0xa98000 0x4000>; > @@ -673,6 +816,17 @@ > status = "disabled"; > }; > > + uart14: serial@a98000 { > + compatible = "qcom,geni-uart"; > + reg = <0xa98000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP1_S6_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart14_default>; > + interrupts = ; > + status = "disabled"; > + }; > + > i2c15: i2c@a9c000 { > compatible = "qcom,geni-i2c"; > reg = <0xa9c000 0x4000>; > @@ -698,6 +852,17 @@ > #size-cells = <0>; > status = "disabled"; > }; > + > + uart15: serial@a9c000 { > + compatible = "qcom,geni-uart"; > + reg = <0xa9c000 0x4000>; > + clock-names = "se"; > + clocks = <&gcc GCC_QUPV3_WRAP1_S7_CLK>; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_uart15_default>; > + interrupts = ; > + status = "disabled"; > + }; > }; > > tcsr_mutex_regs: syscon@1f40000 { > @@ -954,12 +1119,117 @@ > }; > }; > > + qup_uart0_default: qup-uart0-default { > + pinmux { > + pins = "gpio2", "gpio3"; > + function = "qup0"; > + }; > + }; > + > + qup_uart1_default: qup-uart1-default { > + pinmux { > + pins = "gpio19", "gpio20"; > + function = "qup1"; > + }; > + }; > + > + qup_uart2_default: qup-uart2-default { > + pinmux { > + pins = "gpio29", "gpio30"; > + function = "qup2"; > + }; > + }; > + > + qup_uart3_default: qup-uart3-default { > + pinmux { > + pins = "gpio43", "gpio44"; > + function = "qup3"; > + }; > + }; > + > + qup_uart4_default: qup-uart4-default { > + pinmux { > + pins = "gpio91", "gpio92"; > + function = "qup4"; > + }; > + }; > + > + qup_uart5_default: qup-uart5-default { > + pinmux { > + pins = "gpio87", "gpio88"; > + function = "qup5"; > + }; > + }; > + > + qup_uart6_default: qup-uart6-default { > + pinmux { > + pins = "gpio47", "gpio48"; > + function = "qup6"; > + }; > + }; > + > + qup_uart7_default: qup-uart7-default { > + pinmux { > + pins = "gpio95", "gpio96"; > + function = "qup7"; > + }; > + }; > + > + qup_uart8_default: qup-uart8-default { > + pinmux { > + pins = "gpio67", "gpio68"; > + function = "qup8"; > + }; > + }; > + > qup_uart9_default: qup-uart9-default { > pinmux { > pins = "gpio4", "gpio5"; > function = "qup9"; > }; > }; > + > + qup_uart10_default: qup-uart10-default { > + pinmux { > + pins = "gpio53", "gpio54"; > + function = "qup10"; > + }; > + }; > + > + qup_uart11_default: qup-uart11-default { > + pinmux { > + pins = "gpio33", "gpio34"; > + function = "qup11"; > + }; > + }; > + > + qup_uart12_default: qup-uart12-default { > + pinmux { > + pins = "gpio51", "gpio52"; > + function = "qup12"; > + }; > + }; > + > + qup_uart13_default: qup-uart13-default { > + pinmux { > + pins = "gpio107", "gpio108"; > + function = "qup13"; > + }; > + }; > + > + qup_uart14_default: qup-uart14-default { > + pinmux { > + pins = "gpio31", "gpio32"; > + function = "qup14"; > + }; > + }; > + > + qup_uart15_default: qup-uart15-default { > + pinmux { > + pins = "gpio83", "gpio84"; > + function = "qup15"; > + }; > + }; > }; > > tsens0: thermal-sensor@c263000 {