From patchwork Wed Jun 13 16:53:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 10462689 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D40AF60329 for ; Wed, 13 Jun 2018 16:54:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C74AE28E89 for ; Wed, 13 Jun 2018 16:54:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB5BA28E91; Wed, 13 Jun 2018 16:54:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5A12E28E89 for ; Wed, 13 Jun 2018 16:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=quEomFCO8EDrdozuVYm4ulM8V/DCQJ+QwNH9cr/5Nh4=; b=dIac+Ib2py0EQ6pFvvY4g9RA7j gV30ub/+wl0In1h1q+3SmsS/YKQGOE5LV9zqGYeyNLKnGDPlrD3LBDULSfLAj4QhXZPmu21qmZoc4 E5y89B1vFn/wRnJHDZNvyHAvhXkhpeHFUtYRpq8srOJbIHkjsvX3wD2kVC2L2veldoYb4judgpydc wnYFV0loIlOhggtdsg9s83qqLzTwAFYFjop/SY74CRLyL8rczCPezovES7rQDZsjEVZTVIX6WOd69 xP/9Zf2HFHfdRzUNy/YGVr0xY5RtsMiTN4ID1jWK607a1bILgNp9LPSn+9jEBccqrQS8IBccrB34t ScJDP4Cw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fT92k-0005D3-2c; Wed, 13 Jun 2018 16:54:46 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fT92g-00051M-1q for linux-arm-kernel@lists.infradead.org; Wed, 13 Jun 2018 16:54:43 +0000 Received: by mail-pg0-x243.google.com with SMTP id a14-v6so1553738pgw.10 for ; Wed, 13 Jun 2018 09:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jSLBqRxT+ZFcOg9lk1He7s8WA0TWh42RAgdSH1Pt4XU=; b=D+ynAtcJbCul9HZk5I/g4M9qAgxhai1Xx+S66g/b05yQfnN8B2wlKkdzcp6ccajsHS ++IxJVFAvnfoF9Ah0X1qXDdOC+pUVlgKgGp9wi9OteHuCDMzhQl7B+9WYoLp31kkPB1z 6S5EYwPngDN/Ioih04aSKdSrcoj819+BSzM04= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jSLBqRxT+ZFcOg9lk1He7s8WA0TWh42RAgdSH1Pt4XU=; b=O3Z5ssgGlBFdR78GMPDk9kBokqanPfE0wo5MKpAE0spV+pWwNdrsbGSIUHP1DnrvHA PCeqixASgMZMZ/Sjv+oGNI6CP+UeRTaZKyoParLwcZwC+qPKfRhVbyFmpnDAYLi+G9rE oSCLnK08eyfukbaE33/3mQx6pgWN6DbGA6ZcRogdGjE4YcqU9mUNoq++gomV7FRS3VTR 2rsjMlOE33kZ2+WDlg1lZQ4J8DLb+1IYNRpJZg3lSzeM1pOi+c8/Y8iMG8hpybOXQ3m4 sOyL0qYHrMUu+Zo63Th1XsNiV5wrNCCtpWHdi2QejcNV1goZStfWEN0bndcbX4Mauz2w jMbA== X-Gm-Message-State: APt69E1nbHn/pexrzqzHHn3VPYrr33heDwbZyCa00rXBK+5+jb+lxUzy IzUeEZoij0o61WSddEK/qX2zmA== X-Google-Smtp-Source: ADUXVKLeziVQPOOTEXL7LgOOffOvnkYbLtGdSPC5Ep5zvU7PcTz5R2H0WUWjS+edw8HwpO5ACRNB7w== X-Received: by 2002:a62:6941:: with SMTP id e62-v6mr5734873pfc.56.1528908871552; Wed, 13 Jun 2018 09:54:31 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:0:1000:1501:38e4:86fe:ec0c:4007]) by smtp.gmail.com with ESMTPSA id x72-v6sm6903237pff.176.2018.06.13.09.54.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 09:54:30 -0700 (PDT) From: Douglas Anderson To: andy.gross@linaro.org Subject: [PATCH v2 2/2] arm64: dts: qcom: sdm845: Enable debug UART and I2C10 on sdm845-mtp Date: Wed, 13 Jun 2018 09:53:52 -0700 Message-Id: <20180613165352.139060-2-dianders@chromium.org> X-Mailer: git-send-email 2.18.0.rc1.244.gcf134e6275-goog In-Reply-To: <20180613165352.139060-1-dianders@chromium.org> References: <20180613165352.139060-1-dianders@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180613_095442_108318_982F9666 X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, Will Deacon , Douglas Anderson , swboyd@chromium.org, David Brown , Rob Herring , kramasub@codeaurora.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , bjorn.andersson@linaro.org, linux-soc@vger.kernel.org, sdharia@codeaurora.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The debug UART is very useful to have. I2C10 is enabled as an example of a I2C port we can talk on for now. Eventually we'll want to put peripherals under it. Signed-off-by: Douglas Anderson Reviewed-by: Bjorn Andersson Tested-by: Bjorn Andersson --- Changes in v2: - Got rid of all sleep pinctrl states for now - Add Bjorn's tags. arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index 979ab49913f1..6d651f314193 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -12,4 +12,49 @@ / { model = "Qualcomm Technologies, Inc. SDM845 MTP"; compatible = "qcom,sdm845-mtp"; + + aliases { + serial0 = &uart9; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&i2c10 { + status = "okay"; + clock-frequency = <400000>; +}; + +&qupv3_id_1 { + status = "okay"; +}; + +&uart9 { + status = "okay"; +}; + +/* PINCTRL - additions to nodes defined in sdm845.dtsi */ + +&qup_i2c10_default { + pinconf { + pins = "gpio55", "gpio56"; + drive-strength = <2>; + bias-disable; + }; +}; + +&qup_uart9_default { + pinconf-tx { + pins = "gpio4"; + drive-strength = <2>; + bias-disable; + }; + + pinconf-rx { + pins = "gpio5"; + drive-strength = <2>; + bias-pull-up; + }; };