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: 346272 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3855821jai; Sun, 20 Dec 2020 09:00:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrTu14rUmwXRAPaUrO7OwM3ybl0+sUvaV87aHireHmo+g8633OiGF8+1ScYlRmfGD2XsT1 X-Received: by 2002:a17:906:16d6:: with SMTP id t22mr12328145ejd.154.1608483659077; Sun, 20 Dec 2020 09:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608483659; cv=none; d=google.com; s=arc-20160816; b=yC/Eg6J5GQsNiWzNz7btPw59aA54c+7e8IAFAMb8lDzg0wYaUbvuGClQEEeeCuCoE+ 7UnJy4cKef/nUt5ooeP0QaWsIbgaezjRHHsvOC4pgXS0xz/7LcP1aQPZA1CNKCxIKY1K rj/U80ccXKzsA9dnV6RW+BrNEdQ+nu5XqfLpjWlskKumyx1AA+SXSoJrbUUPFW0i6FlM sGFiVtHTjZJHFeFx5NgHl/NQQMCpIpPdtUn0U+gTzNup33vnjZUBT8LOLIyHCf8U60L9 tndvDC6MIiQQwvu3CbkUBwiL0sM/xn75lIjeD/bEPhPZefWVmQyQIE+EDY1Z5upEnDAG sOGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y5W4txAZ3GE7OBSlwDNmPew8Z4ZGoIzAKXrW8t0fFDs=; b=oiEP+b+UHvJMv/ltuRyEYzsimoXguAcAgAftFTk+YR/KrXuYQcSle80w0JpqB/Hpou VD2fYs5saAH5UWktIIOpRaFyZM9k5VGSP0mtQj2Zm6tm80oBrQDGz811r99mSeTq639/ tx3o7iSy2uVIukm8K/GKJ/iZRBajxkQFd8llEAAKYras98ZwfxmRu4qykZH19F6yoqPL tYRV1qlx5opCoaPjUz5MKFfiq0ut44OKPMkZ/wO6BZaInJAFTv8fQbnG7uQ1+/G3dUXd oZCgVzRSIk8tDfTOUyjO2EtT9tUwYcFfJElJm6DkWa/m4iKXVG6RHnkQgdynAfuXYvsN d0iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RYQQZNz7; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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. [23.128.96.18]) by mx.google.com with ESMTP id bo6si9171342edb.434.2020.12.20.09.00.58; Sun, 20 Dec 2020 09:00:59 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RYQQZNz7; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727826AbgLTRAT (ORCPT + 7 others); Sun, 20 Dec 2020 12:00:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727396AbgLTRAS (ORCPT ); Sun, 20 Dec 2020 12:00:18 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B90DAC0611D0 for ; Sun, 20 Dec 2020 08:58:59 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id a12so18070545lfl.6 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=mFv+nZ7yDIqOIlDAiONQe0nu9vYFvMzv9xJsTcm0nqMaOask5aR5BFsltXAYj7+2kG gpHGytb2nEgk9dj69DUrrPbU8liq/lxckH8hFoYg6VbbBZ+U7zZWNG7rzI74JnE+bHcN vbHaMf95eIc2aHybRCMTWay/IdAkbnzfT1of3eTgZv6nwR9ID2DPnh9PgaWWpC0qE5b1 k8NHzlq1Q6te58Cpih3YbhQtGYtquEV3l+gNB1hHNfZN2HxMXhni/0/pv/Bnz5gLTghP h3xHlMzudnCA8TV/jeiQCnLg0m7QOoMq6odTIC2Rl7RIGLlKcL7QhrNhURsjY47SD5Kg leTw== X-Gm-Message-State: AOAM533HrbawiX5nmjBCOpleZjr5hg3bt0OZPgCfhXBNjjJnueoI2vPS 6XeV5mxkzW8KqYVPkh1pUvziRQ== 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: devicetree@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(+) -- 2.29.2 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 {