From patchwork Mon Jun 21 22:31:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 464610 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp64421jao; Mon, 21 Jun 2021 15:32:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8iVYTrDZ2U3Sa3WgBX1+5r9+QyQ2j0a3N6kiGIskWpcGzgCMQlskT/8AH+hLlbp8KBiJj X-Received: by 2002:a17:906:4b43:: with SMTP id j3mr423340ejv.414.1624314724977; Mon, 21 Jun 2021 15:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624314724; cv=none; d=google.com; s=arc-20160816; b=elwHamZ/N5TDP1OfKsvEIGHB1ydtSfF5NhX+0MPLBgQ+1sJempUOygBOJaymEjtsfE qexp2oG3Xunzv2915UA+mIY1zgKsgMbDeZtoDfPT5sK9w3KSQs/81mF81iYMZVgkut5X gwIc4UxMiUtucl5DPkl2ZMXh2+uridODjJzd29YC0MzWJFhqi39NnJoBdCjabkQiipvH npiAwyIldhslT8ik4H3vnD1CNnRewWVSJUOfh0AK2iuPMQECsAtHYUqulVRgb+PeFBpt 2dQubAB8lWB/oCpPYlHSZcn16GchUlx7Cly2o8vMBWrIBDhKJOshW9g+q56EFWN6w1bl Qwlg== 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=6CNpdcs1A6Q97e0oT9ww9wqzNC5IQArK/FZR7yxSl3Q=; b=hFDYasaYFJ4xdO7xWVfCJsKGSTxqCj54qUf508ggr7rGQD5sfhadJRWcoNSFRdbb+J G2xOMOhupPjSvlwA9fXRSO+6RATL5pYgKHMX6Ylz+2Ouq2XKek3Ir7m84emxoMkYX2DQ EcGGYJXPtne7mGgjpkSeN6oKbQR81aAjppe5e2Hn/9aCApBtb1ftgzU40YNto2saL7hQ b3ZqDxpXl7cq8byg62s8LOBqy4v85Kp8IzNZESVH1ULfG7yLBy5q/H2FrgGI/zmfnVlZ KF7+cpMdgPUR0Elx2XUWAGjKcVFdV2MalqA5Aj/OH+rVUTm7qs+YndiLuFDqP/vB3AQJ QxDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yb6TbXKO; 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 lv23si13558627ejb.467.2021.06.21.15.32.04; Mon, 21 Jun 2021 15:32:04 -0700 (PDT) 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=Yb6TbXKO; 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 S232263AbhFUWeM (ORCPT + 7 others); Mon, 21 Jun 2021 18:34:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232056AbhFUWeI (ORCPT ); Mon, 21 Jun 2021 18:34:08 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75CF9C061226 for ; Mon, 21 Jun 2021 15:31:51 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id x24so32693126lfr.10 for ; Mon, 21 Jun 2021 15:31:51 -0700 (PDT) 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=6CNpdcs1A6Q97e0oT9ww9wqzNC5IQArK/FZR7yxSl3Q=; b=Yb6TbXKOmrz4ik8ZOHs5A5XBs/DumXbi/piHmfu4F6taHqLktXZ23ufzbl5R2xUvuI bbFWP6u8lvtFl5BQPtJKSDrUN+tXCWaULLkACjOWYoKYiD+b5nXWqiPz/EEySRYHf8vb 1MPdLXmHA9IHuYpJHIoEpP3abBeh2NdEHp3e9vs9q8g04vH+YNPagCVd9C7zxh81lHNs IGd5wfJ18zOeNytbtygNpSLVNmT7mEP5w38StMYaGH4FGDYonQyRo1jv+ukp6t7u6XO9 j98Vq0syVYhH9XX9rlNtuYDD431x3lhrGyw4qnsPCAShK18DLGicrmM/pBzjX9W8PJ3Y djdA== 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=6CNpdcs1A6Q97e0oT9ww9wqzNC5IQArK/FZR7yxSl3Q=; b=dArTOknlbdI/ZO/wz0/pJBSr9XLZrSqFGYskH8JaQ+pCxb2HOiKKGCLbK3dvIyEc23 zQiqmmbC0HTUHvlXhyt8ir1xH2+8tjXNr0j/gsNHag+P6UDRfsjEDJBJn9HGVJP6F2Pi Fn2pJP8at+ZbrA8NVkkHpPHu624NXIxxeqj7BU+oXpZQVxEGarpD7FGPaxTlgTjDChjy Z6hFnJz2x0umTGtH4rRlg1K4FsVVD3JgAGrokuXBLRA4amUmnqSMVXu9Mo1rO55zg4hs 2CcmkyU50HtN5kmy9P71pBN1fPU6byPD8v4stYWtg1KE0ioqnYaebqDfVR6yfDyUfdEH wmxw== X-Gm-Message-State: AOAM530Btv305z1Q3JWkrYfWKMorA89fN+S2VFlfekNnaTT0QXIS7xcI HSY70jNmL7qjOH33IyivhU9G8Q== X-Received: by 2002:ac2:533c:: with SMTP id f28mr419456lfh.268.1624314709764; Mon, 21 Jun 2021 15:31:49 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id b10sm2516025ljf.72.2021.06.21.15.31.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 15:31:49 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Liam Girdwood , Mark Brown , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org Subject: [PATCH v3 7/7] arm64: dts: qcom: qrb5165-rb5: add QCA6391 WiFi+BT SoC Date: Tue, 22 Jun 2021 01:31:41 +0300 Message-Id: <20210621223141.1638189-8-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210621223141.1638189-1-dmitry.baryshkov@linaro.org> References: <20210621223141.1638189-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Describe the onboard WiFi+BT SoC QCA6391. It is connected to uart6 to provide Bluetooth functionality (QCA) and to PCIe to provide WiFi (ath11k). A separate power sequencer device node is used to describe on-SoC power management unit common to both WiFi and BT parts. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) -- 2.30.2 diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 5f41de20aa22..f968208b1947 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -20,6 +20,7 @@ / { aliases { serial0 = &uart12; + serial1 = &uart6; sdhc2 = &sdhc_2; }; @@ -223,6 +224,28 @@ vreg_s4a_1p8: vreg-s4a-1p8 { regulator-max-microvolt = <1800000>; regulator-always-on; }; + + qca6391: qca6391 { + compatible = "qcom,qca6390"; + + 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>; + }; + + vreg_wlan: vreg-wlan { + compatible = "regulator-fixed"; + regulator-name = "vreg-wlan"; + + vin-supply = <&qca6391>; + gpio = <&tlmm 20 GPIO_ACTIVE_LOW>; + enable-active-high; + }; }; &adsp { @@ -668,6 +691,8 @@ &pcie0 { wake-gpio = <&tlmm 81 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&pcie0_default_state>; + + vddpe-3v3-supply = <&vreg_wlan>; }; &pcie0_phy { @@ -811,6 +836,26 @@ lt9611_rst_pin: lt9611-rst-pin { }; }; +&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"; }; @@ -1275,6 +1320,17 @@ sdc2_card_det_n: sd-card-det-n { }; }; +&uart6 { + status = "okay"; + bluetooth { + compatible = "qcom,qca6390-bt"; + vin-supply = <&qca6391>; + clocks = <&sleep_clk>; + + enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; + }; +}; + &uart12 { status = "okay"; };