Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp5206873pxb; Tue, 5 Oct 2021 20:56:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVwQlTQW5Uply+oxKWVI4K6z4PpLiUVdgq61sGBWOIEy+n7/CHQi9rl3xAuviFsRkdU/ih X-Received: by 2002:a62:a510:0:b0:44c:569c:5c3f with SMTP id v16-20020a62a510000000b0044c569c5c3fmr16816437pfm.50.1633492593211; Tue, 05 Oct 2021 20:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633492593; cv=none; d=google.com; s=arc-20160816; b=uG2hIX9I/v9dnnYCZPzO6G4K/SSHszk9nrJzMu8UgXGMrYZ/URP5l6X4C72hY2p96S ppdqpJCbgMLQ8e3AreYLsWUqIVj7Th+R8kX6Uf+t5RxICj6PJgqWgamjOhCWRaVudKlX QKyO7uDYcgi86CqbdYy+9YGhEfbxp8Sw4gtZyrVkDuvvgaU8ZYbZdFTf7LjYKY++t4Zd QXIWzejXAlbRpDvWwPGhWaVtqDSv/rXm0079D1FcgTr5da5eQcDeLPBZXsc6bu18ljzG rnoxwcNvc3MZhzNqZSUtXZuzM05Z+jYV0g3i7n4MMxO5idkLJqM/qCsAXY0o66AgtT8X 8MuQ== 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=fc0GoKyWHbaDUKZRwzSCHWvKPWvkUL1O7EIfFaZFJjw=; b=XdGM/cVBfyayPw56dk2v1VhWg/8F8GY/aGzNnhF/B425w/tqu2SRnEJYhzUYIqjb1m /g0uSo8FMdlXRdI9xCuyRabR0ajrkPcfx7P82Yv7htZXj+tUiKZC62aHNwxtMScVmwma 7wr37qJQp7AWtlmQoJUd+OQgVU/2VAmN8n8yaLROZ0YqyME4vQB2YJCdDKPZ/DyfTOFF EkLQnmsK5qGG9PwRAD8Z/wst0q4VZgippUz3VC+m/oJWQIrZl8NhrRUG9010xniFgKDZ 66zUCtCaQJTOjF+LSavyqmT7Ai8/YKXIB0ezibOxn5GQ9q13oXilHNBV3NMCYuAMx7Pa 4tDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ek+UBm52; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 t11si27923551plb.20.2021.10.05.20.56.23; Tue, 05 Oct 2021 20:56:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=ek+UBm52; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S237980AbhJFD5g (ORCPT + 75 others); Tue, 5 Oct 2021 23:57:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237602AbhJFD4c (ORCPT ); Tue, 5 Oct 2021 23:56:32 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35CF9C0617B1 for ; Tue, 5 Oct 2021 20:54:24 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id y26so4462365lfa.11 for ; Tue, 05 Oct 2021 20:54:24 -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=fc0GoKyWHbaDUKZRwzSCHWvKPWvkUL1O7EIfFaZFJjw=; b=ek+UBm52N/dNF84c5mtTjMTJvJ5oGZ0lbXTAAjAyV1XvQDUOFH0l/tTMhfVzJAVy1s 5A9IIqqQjiddD6Xxi2TTAaGdSgVqpk0Rmqtk98pIDkXppBKhslgFJvZPuN4VYjg8Kh/k NvN7a6TOOxfaYoA9A7SJwXWmEtuPXBVt4gb8badGbZhlGOA620Gyxh4R+YbZd6q49MOv 2Qi1wfxZ+XCc8YcurEshmk0YU/rcgY4765nt9Wx5F406K53k2YpQJYrDUJTkWqNBikGf xKtKknzKdnRkKPLuVnIzXFOf+W03r/taVjHXCFr1DlAWSxc5MKil96Ym1SLsZZZJqpo+ ufLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fc0GoKyWHbaDUKZRwzSCHWvKPWvkUL1O7EIfFaZFJjw=; b=lVnaby22IS3rgKQfFhN0t5N0arTB3xGqqr6B1sQh+TYZGbVSptBya6J/oM0/v7HQWM iA8azpTGGPShcxq0F6FW9hKmq/2JuFTYaSPXP22m3a0QQlxzqhdqongtSVFqd6+eQISw wa7iOl8PvxYzV0omglvw4TTHGVZL8PLPSsl4fJn2O4hZgYBcDMh9KBw1iL5UdPTFgmP7 V930KEYFKgwfmHvfihE6puVHQvJrrphcrCdF1nkDexH1AGkXdsYQ8zzag6hopK9I+iqZ mbE2J6ihKKDwI1lEFF18H/ywsbG0WzpVaCwAQXqGQss7e8bCs8WPESTokwvZnPzISDPE qRlw== X-Gm-Message-State: AOAM532BtwTsLNwiJC9Tt1/GcYyS7H3nvTRG1KJyKg9vA4gmXfPngeWC A0o2oauzq1E9kjb2g4UERDxPSA== X-Received: by 2002:a2e:9893:: with SMTP id b19mr26949222ljj.112.1633492462601; Tue, 05 Oct 2021 20:54:22 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id s4sm2142967lfd.103.2021.10.05.20.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 20:54:22 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Ulf Hansson , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Kalle Valo , "David S. Miller" , Jakub Kicinski , Stanimir Varbanov Cc: linux-arm-msm@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v1 12/15] arm64: dts: qcom: qrb5165-rb5: add bluetooth support Date: Wed, 6 Oct 2021 06:54:04 +0300 Message-Id: <20211006035407.1147909-13-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211006035407.1147909-1-dmitry.baryshkov@linaro.org> References: <20211006035407.1147909-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Add support for the bluetooth part of the QCA6391 BT+WiFi chip present on the RB5 board. WiFi is not supported yet, as it requires separate handling of the PCIe device power. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 50 ++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 8ac96f8e79d4..326330f528fc 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -19,6 +19,7 @@ / { aliases { serial0 = &uart12; + serial1 = &uart6; sdhc2 = &sdhc_2; }; @@ -98,6 +99,25 @@ lt9611_3v3: lt9611-3v3 { regulator-always-on; }; + qca_pwrseq: qca-pwrseq { + compatible = "qcom,qca6390-pwrseq"; + + #pwrseq-cells = <1>; + + 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>; + + bt-enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; + wifi-enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>; + swctrl-gpios = <&tlmm 124 GPIO_ACTIVE_HIGH>; + }; + thermal-zones { conn-thermal { polling-delay-passive = <0>; @@ -804,6 +824,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"; }; @@ -1193,6 +1233,16 @@ sdc2_card_det_n: sd-card-det-n { }; }; +&uart6 { + status = "okay"; + bluetooth { + compatible = "qcom,qca6390-bt"; + clocks = <&sleep_clk>; + + bt-pwrseq = <&qca_pwrseq 1>; + }; +}; + &uart12 { status = "okay"; }; -- 2.33.0