From patchwork Sun Jan 20 06:39:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 156134 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5050153jaa; Sat, 19 Jan 2019 22:39:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN45THaYeuClVKVs4Iddm4XnPzu7W7Bt4/Dv8oEj7gWR4jUwAtRIjR3FlAqUvvIKOSqmrF5o X-Received: by 2002:a17:902:298a:: with SMTP id h10mr25472738plb.312.1547966382770; Sat, 19 Jan 2019 22:39:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547966382; cv=none; d=google.com; s=arc-20160816; b=u725uNJ8/TJlDFzuBwhrlGQyNteaVOsw9HBdC2Mnw6naCvmUXKRwJcovKuT5w2HmYr /oEYPteCQ61fqH1DISmYzXwGOjgFCf/2xbv0fHoDna6uXjdnFGncwEbvOj9JZCGAHPyN PbpIONvqe55iL+b7uXVKZha64i8PNktADw17s7PHlsjWsdpbquyBDVJ3sOtoXSGrD60G dH+N8+aqWHCe6/0UgIyzvymPwxgDeG2MUCid7Sdc8LYO8ljRqxItoXNj5oxr4MZ0Xf5e MP8kUBi8CAWsinxCZ3CGvXkgHvwyxBYTKmczMfXRGOlfdQ+SnJJb6irVdKRgz6cJVccE Nubg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=OQfVRzCzHA4WSBdCjgd+0IRJW2iisS/CcO4MaoQg3i8=; b=cgmn5u8iOzum3IRAreIIrJ6fAeGn0UrA8gcRehL9KIe0g5Wh2JOHPdFs/warlhHzxy t+zOVHa0dhRZ8ptWTD8cMZnYq5fokHRgxHZSuCoO1+7YCjlvGTTMSpG9cgwLl2TcWrMX 4XqZj8x15KTmgu98DhXpHwoQgZhphuAQTl0cKCclPDDy6oZbdpp//c9rW8/4xrZRrqES limzgcjh3cSbtc4OsY570aIHTbgnpK8o7mVUO9wlpWwgWICmD0a63tW0tQKks92bSZaR Hqlma2k03kQz8bEkUk2upKntj7bCNZtOUqqkJeE6pXhHdqnB4JHjxOcpMzj+y+nhi9LN ok3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Dv7Typ/H"; 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 c2si9321320plb.152.2019.01.19.22.39.41; Sat, 19 Jan 2019 22:39:42 -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="Dv7Typ/H"; 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 S1727206AbfATGjj (ORCPT + 23 others); Sun, 20 Jan 2019 01:39:39 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38646 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbfATGjj (ORCPT ); Sun, 20 Jan 2019 01:39:39 -0500 Received: by mail-pg1-f195.google.com with SMTP id g189so8008913pgc.5 for ; Sat, 19 Jan 2019 22:39:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=OQfVRzCzHA4WSBdCjgd+0IRJW2iisS/CcO4MaoQg3i8=; b=Dv7Typ/HYxrw8biRC7OXQmZR+uTVsJTxceUWyO8L1hwuy7r+L9EAYUj9Wuzp1fqsxi 53ckfNfQmZeeEquWV0kGayPzQnuf7kOZtaGIx+fH21wFNy65KaVPVnrpqVJtvW6yMNVS sWuNXLStR1uhvJtAoxZlaWq/qlJld5/hUquVM= 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; bh=OQfVRzCzHA4WSBdCjgd+0IRJW2iisS/CcO4MaoQg3i8=; b=cZHyIc9K0sbgl7IMAD97Ot6Oq6PAZZUITTS53J9i+QOn1Xc06spsOzZUdt9sBOF697 UA8/FlJBwi/JzzMHyjdQRZoC9LNV0da4mXmFQPV2mTE+FK+9igNEXZ7eK5q39emoIfr/ JBzI7a2dU2Q1BP3Llt9gXdRmvt1Cco9ZafiuD8UFIZDKVUYih9fio3WigSZU9+oe4FVI TPBUl7PnUh6Rb2Kx3IX5zsiqI1WKzg3e3GcRA35QY7VLwspFtK8mT/aRtDOl3ydORiUv 3LEjfR4wFHZwHiV6jeF9JLJsCuDGU+YC9M7YX4EDeYuxUzSgt0NrPX+YSTDmei8ZSQW2 mRUg== X-Gm-Message-State: AJcUukcuV+vwvKZ1wSG0kUVOfhQOuAFECus0tWtA+sM4VdUI7yhPdgfe B7NrUtXNGfp8iwijFBFiW2E0vw== X-Received: by 2002:a63:f811:: with SMTP id n17mr24331927pgh.23.1547966377877; Sat, 19 Jan 2019 22:39:37 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id x12sm8836776pgr.55.2019.01.19.22.39.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Jan 2019 22:39:37 -0800 (PST) From: Bjorn Andersson To: Andy Gross , David Brown , Rob Herring , Mark Rutland Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: qcom: sdm845-mtp: Add WCN3990 BT node Date: Sat, 19 Jan 2019 22:39:02 -0800 Message-Id: <20190120063902.1714-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SDM845 MTP has a WCN3990 Bluetooth chip on UART6, enable this. Pinconf and the associated comments are copied from a patch by Matthias Kaehlcke . Signed-off-by: Bjorn Andersson --- Changes since v1: - Fixed the pinconf arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 53 +++++++++++++++++++++++++ 1 file changed, 53 insertions(+) -- 2.18.0 diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index af8c6a2445a2..5aec2c680033 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -17,6 +17,7 @@ aliases { serial0 = &uart9; + hsuart0 = &uart6; }; chosen { @@ -357,6 +358,10 @@ clock-frequency = <400000>; }; +&qupv3_id_0 { + status = "okay"; +}; + &qupv3_id_1 { status = "okay"; }; @@ -373,6 +378,20 @@ cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>; }; +&uart6 { + status = "okay"; + + bluetooth { + compatible = "qcom,wcn3990-bt"; + + vddio-supply = <&vreg_s4a_1p8>; + vddxo-supply = <&vreg_l7a_1p8>; + vddrf-supply = <&vreg_l17a_1p3>; + vddch0-supply = <&vreg_l25a_3p3>; + max-speed = <3200000>; + }; +}; + &uart9 { status = "okay"; }; @@ -470,6 +489,40 @@ }; }; +&qup_uart6_default { + pinmux { + pins = "gpio45", "gpio46", "gpio47", "gpio48"; + function = "qup6"; + }; + + cts { + /* + * Configure a pull-down on 45 (CTS) to match the pull of + * the Bluetooth module. + */ + pins = "gpio45"; + bias-pull-down; + }; + + rts-tx { + /* We'll drive 46 (RTS) and 47 (TX), so no pull */ + pins = "gpio46", "gpio47"; + drive-strength = <2>; + bias-disable; + }; + + rx { + /* + * Configure a pull-up on 48 (RX). This is needed to avoid + * garbage data when the TX pin of the Bluetooth module is + * in tri-state (module powered off or not driving the + * signal yet). + */ + pins = "gpio48"; + bias-pull-up; + }; +}; + &qup_uart9_default { pinconf-tx { pins = "gpio4";