From patchwork Sun Dec 20 16:58:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 11983959 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9443DC35296 for ; Sun, 20 Dec 2020 17:00:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7A67823A5E for ; Sun, 20 Dec 2020 17:00:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727722AbgLTRA1 (ORCPT ); Sun, 20 Dec 2020 12:00:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727800AbgLTRAP (ORCPT ); Sun, 20 Dec 2020 12:00:15 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7E25C0611CF for ; Sun, 20 Dec 2020 08:58:59 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id s26so18025497lfc.8 for ; Sun, 20 Dec 2020 08:58:59 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=y5W4txAZ3GE7OBSlwDNmPew8Z4ZGoIzAKXrW8t0fFDs=; b=RYQQZNz78v2X1T+ZYZAiV9DeWegSWSe+KASeSXAd75iMZDdUIYMig3Bgs9lzeATWaJ kGAHgKqeglZVwaJxQOa7wDkqmPzgN8Y9P7wtVL2bquEPkP0y/sYiiAS4YorzKPqCf3pR XmdrTXWL6jqrAeA/KcR66QYkZR4t+Bi0XAoU329wb3crqsoVzajgyINROIRnW0U/9EB2 9udvkYHBwFu7A3vUH1MRugJRhTng11m4ZkD13M8cvYYdQ660o/Xo2aStiEUs+EiBNBUq Ws2MRt5yNSpdjhxYbDwvm+B5rvbCz/OxzWVu0JOW17e6AapHvRMjK8MRsaPigQmggHZw O27w== 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:mime-version:content-transfer-encoding; bh=y5W4txAZ3GE7OBSlwDNmPew8Z4ZGoIzAKXrW8t0fFDs=; b=HkscmoSASxjRSz6PP7WsmN2C85yRshO+MusJsw42hdyHlZrvxoS/KT8b6rva5AJBTR AcECS/4lK71iRpQDSMwnCOAUG+nKDRO2iyH8gkjgXF77PIlnZpP3N0MCb1TswG1MXZol S3rxfyx1mrwJkUoFRGGd1ptHlXzKgM7vv7t1xKDG1RE+AIAQRQxuYQjPQw4mWSxulUDu tXJtFWEnopLh1Y5YImcRGQ9glGR08lEZ75tA1KGjxT8zLj6bcW8vgupgi4WYW+FBdYWh tWwFZl3QBJtaJoJ/XDKFslPq2CASoEm310hkXb0Fs69+e00Z1JIQAHmusS5WbgFzJ++p U02A== X-Gm-Message-State: AOAM531F61b8fV7BhpVWmZ2+BNsQaP4n5eJcViZ9CAAb5dZ8JdNn2DOY wheoo8DwxL9HEw2P2Vt5mT8uPA== X-Google-Smtp-Source: ABdhPJxOGICqM3nrfnZsqPBtkuLp5SPMjMzzDcucv9uQo+OXCsW4Z62C+5CUY7R4fNkX7WpX3/ieEA== X-Received: by 2002:a05:651c:1063:: with SMTP id y3mr5372919ljm.431.1608483538304; Sun, 20 Dec 2020 08:58:58 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.64.15]) by smtp.gmail.com with ESMTPSA id t30sm1696638lft.266.2020.12.20.08.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Dec 2020 08:58:57 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Lee Jones Cc: linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] arm64: dts: qcom: Add Bluetooth support on RB5 Date: Sun, 20 Dec 2020 19:58:44 +0300 Message-Id: <20201220165845.3712599-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201220165845.3712599-1-dmitry.baryshkov@linaro.org> References: <20201220165845.3712599-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Manivannan Sadhasivam Add Bluetooth support on RB5 using the onboard QCA6391 WLAN+BT chipset. Signed-off-by: Manivannan Sadhasivam [DB: added qca639x power domain] Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 97 ++++++++++++++++++++++++ 1 file changed, 97 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 1be984d89f48..e6bab9960cea 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -17,6 +17,7 @@ / { compatible = "qcom,qrb5165-rb5", "qcom,sm8250"; aliases { + hsuart0 = &uart6; serial0 = &uart12; sdhc2 = &sdhc_2; }; @@ -118,6 +119,23 @@ vreg_s4a_1p8: vreg-s4a-1p8 { regulator-max-microvolt = <1800000>; regulator-always-on; }; + + qca639x: qca639x { + compatible = "qcom,qca639x"; + #power-domain-cells = <0>; + + vddaon-supply = <&vreg_s6a_0p95>; + vddpmu-supply = <&vreg_s2f_0p95>; + vddrfa1-supply = <&vreg_s2f_0p95>; + vddrfa2-supply = <&vreg_s8c_1p3>; + vddrfa3-supply = <&vreg_s5a_1p9>; + vddpcie1-supply = <&vreg_s8c_1p3>; + vddpcie2-supply = <&vreg_s5a_1p9>; + vddio-supply = <&vreg_s4a_1p8>; + pinctrl-names = "default", "active"; + pinctrl-0 = <&wlan_default_state &bt_default_state>; + pinctrl-1 = <&wlan_active_state &bt_active_state>; + }; }; &apps_rsc { @@ -131,6 +149,13 @@ pm8009-rpmh-regulators { vdd-l5-l6-supply = <&vreg_bob>; vdd-l7-supply = <&vreg_s4a_1p8>; + vreg_s2f_0p95: smps2 { + regulator-name = "vreg_s2f_0p95"; + regulator-min-microvolt = <512000>; + regulator-max-microvolt = <1100000>; + regulator-initial-mode = ; + }; + vreg_l1f_1p1: ldo1 { regulator-name = "vreg_l1f_1p1"; regulator-min-microvolt = <1104000>; @@ -513,6 +538,26 @@ &pm8150_rtc { status = "okay"; }; +&qup_uart6_default { + ctsrx { + pins = "gpio16", "gpio19"; + drive-strength = <2>; + bias-disable; + }; + + rts { + pins = "gpio17"; + drive-strength = <2>; + bias-disable; + }; + + tx { + pins = "gpio18"; + drive-strength = <2>; + bias-pull-up; + }; +}; + &qupv3_id_0 { status = "okay"; }; @@ -738,6 +783,28 @@ &tlmm { "HST_WLAN_UART_TX", "HST_WLAN_UART_RX"; + bt_default_state: bt-default-state { + bt-en { + pins = "gpio21"; + function = "gpio"; + + drive-strength = <16>; + output-low; + bias-pull-up; + }; + }; + + bt_active_state: bt-active-state { + bt-en { + pins = "gpio21"; + function = "gpio"; + + drive-strength = <16>; + output-high; + bias-pull-up; + }; + }; + pcie0_default_state: pcie0-default { clkreq { pins = "gpio80"; @@ -838,6 +905,36 @@ sdc2_card_det_n: sd-card-det-n { function = "gpio"; bias-pull-up; }; + + wlan_default_state: wlan-default-state { + wlan-en { + pins = "gpio20"; + function = "gpio"; + + drive-strength = <16>; + output-low; + bias-pull-up; + }; + }; + + wlan_active_state: wlan-active-state { + wlan-en { + pins = "gpio20"; + function = "gpio"; + + drive-strength = <16>; + output-high; + bias-pull-up; + }; + }; +}; + +&uart6 { + status = "okay"; + bluetooth { + compatible = "qcom,qca6390-bt"; + power-domains = <&qca639x>; + }; }; &uart12 {