Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2956419rdh; Mon, 27 Nov 2023 03:24:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFByHrSHVtgyIRu8b7YrMRCrHG8xIbS9oe5e+x6L49xfDN6greryRpx3NqO5Rb1ytQikrf+ X-Received: by 2002:a05:6a20:2d1e:b0:18b:960a:efc2 with SMTP id g30-20020a056a202d1e00b0018b960aefc2mr11218557pzl.10.1701084240032; Mon, 27 Nov 2023 03:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701084240; cv=none; d=google.com; s=arc-20160816; b=zWKELLxVWJXpNgf/jKzS+JLjUIrYMOaVKbCgI0noqN81hgjhEMK6wcadfko6cotrgX U+jvdO2hnL32z6bpq0hu4COWtYVSNc2rTM49qGEaEvm/f4MEU2L0wxfkJ6dnnMG2JHNA g1gPyKs0n8nNp6rbyX17C50f034wObPf8utlyz0ukCGcsXurhz54+1KR8ewXydapiGI+ YlVQmFzQS2hrzjkW88arbZMtte+VCTSVp7SNnlpM7RGzQ8JKqQg2pnTAtt4MHKl5/Sqx BAT/V2P99qkZG9yR5Idx4G1tB06ZoUAKHhIorYA+r+Wnt1zTOZScyVWk70DKEH8fF6GB 2hkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=LTXMCGVkiDbMkSy/Xx/TvTlsCBC9rh0C46nAQgnnlvo=; fh=BvkFOc8sRrk1y+bNZ8Lu5d+KOQmz/fK52WJEyE4LmuE=; b=pz0KOfv5vVXPfcwuH1w99Ep7FIXnWstBrMLyJol5b3ZBv47d778YXDjtam8ofW/+lz fPlq8iPMVpEP+PF6zeb06fsPd/N7ZWz1n9pn/Pumnxh+Oy8z0lUToRcbrzCvP3+SUmIJ IwTFx5FNHor+GqOJ1NqEdKXOelXMV9gU/CW7mxaKWngfSyHVHPPEQLhacGTJwGXYJMte n4XMLyjWCYiYMbd8o2kFuYZ/MaodwdTOz9LSbXm7BeDEehbvNwW/RMR+xkP4gIO0IsIO xdudo5gKWkG1nxKR+NB87MvcQQntVmRhX/zRMZMZn43WWcIHoK1ihGeE9Zn3x6gSWCsM 3kEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dYHQC+NS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id 83-20020a630056000000b005a1d8816535si9407596pga.5.2023.11.27.03.23.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 03:24:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dYHQC+NS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 67A8E8050FAA; Mon, 27 Nov 2023 03:23:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233147AbjK0LXh (ORCPT + 99 others); Mon, 27 Nov 2023 06:23:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233118AbjK0LXd (ORCPT ); Mon, 27 Nov 2023 06:23:33 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AA5A184 for ; Mon, 27 Nov 2023 03:23:39 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a02d91ab199so557959166b.0 for ; Mon, 27 Nov 2023 03:23:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701084217; x=1701689017; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=LTXMCGVkiDbMkSy/Xx/TvTlsCBC9rh0C46nAQgnnlvo=; b=dYHQC+NSIcxZpCyhEpM+nKpDt68PczOwLiEcGXdFJrXi+UdgGbfuKXv6CWf8jUgCcq RQ4voiDwAS8Jq3gfCqH7wyZoeI3t0L/kA6H13iYCXgB9fDJzjZ8pPBzPhcZmkxJbvScf LwGa0zqQWukOWqiXYR+dxeHRfebhBzRxDJoRgoN3lgmHcIRlxyzOH+hl/Mrnu1T6hDWe q2Y1T1aDFB8I5QOpGUVxQMJ8K2VCoTJL8WJHyHKOz8t1p3apLK2/Ux/HQ3jOCtq71REY 8jXUx1J9/KqXKv04DZjMSq49tgAY93XoBU6Rc4BQg0p2byPCouDv5pMySL7DXszAFFnc Ssbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701084217; x=1701689017; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LTXMCGVkiDbMkSy/Xx/TvTlsCBC9rh0C46nAQgnnlvo=; b=VaA6t5pI2U+ZQ0/t2arBnOv2pgn86VeRsL2kvjeKi6JGdFR6dFeSd44kP73lPYCehp TZGduJJZdOx65cnvY7rXJW6TfC7NIE5ZCGTLn5+XBKQK/t9FkPEnoxe2xAQ6m/+AXflX HBBG52CzKMRZTqXsdizozGJvhJlXCbSeY8yoYt+VYL9iQUgEW7uEs8w6MrIeusXKd5CC yM8Ezf89YnC58SFWLwDCeCPAo7zeuc51Vbz3+ancpxx3b8PXnODRoX0CGS7IDFKROS8P hgOjrmfP0RQvPK73uv47KdySmw2Z/7Bpy7qJ1/VFEgnO4sHZuASbLqbKgYczlz+b7O+/ yRZA== X-Gm-Message-State: AOJu0YwcUFwIpjQLAQihGifGkoP1WcfU13VQLBedQkISCXvd7Qo83RC7 up3eWpt+To+mA52o9Y2G5vwt2SLfTpf0XlY0+2U= X-Received: by 2002:a17:906:2dcb:b0:a00:eae7:9b39 with SMTP id h11-20020a1709062dcb00b00a00eae79b39mr7692846eji.39.1701084217348; Mon, 27 Nov 2023 03:23:37 -0800 (PST) Received: from [10.167.154.1] (178235187180.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.180]) by smtp.gmail.com with ESMTPSA id oy9-20020a170907104900b00a0db5da857esm1804866ejb.217.2023.11.27.03.23.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 03:23:37 -0800 (PST) From: Konrad Dybcio Date: Mon, 27 Nov 2023 12:23:28 +0100 Subject: [PATCH v2 2/2] arm64: dts: qcom: qrb4210-rb2: Enable bluetooth MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231120-topic-rb2_bt-v2-2-4bbf266258ef@linaro.org> References: <20231120-topic-rb2_bt-v2-0-4bbf266258ef@linaro.org> In-Reply-To: <20231120-topic-rb2_bt-v2-0-4bbf266258ef@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , Bryan O'Donoghue , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701084212; l=3568; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=coQ0R99kdAEfNq1Zpcf3fZWIZyilw00cbxYe5LeyX1k=; b=SCt//njIHZVrblYjrZaC9WqNed5sfCEMqXybgcJsJ7t65GQVED97lFjZH/lgDWujmV/c6+2Ds P0bTII4FsYiBFY5DaCR0Gio/uMNAK7wK35dvMvcrtvnxkj2Xl0jlknD X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 27 Nov 2023 03:23:56 -0800 (PST) Enable the QCA bluetooth on RB2. It identifies like the following: Bluetooth: hci0: QCA Product ID :0x0000000a Bluetooth: hci0: QCA SOC Version :0x40020150 Bluetooth: hci0: QCA ROM Version :0x00000201 Bluetooth: hci0: QCA Patch Version:0x00000001 Bluetooth: hci0: QCA controller version 0x01500201 Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 87 +++++++++++++++++++++++++++++++- 1 file changed, 86 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 9738c0dacd58..33c312ae842e 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -15,6 +15,7 @@ / { aliases { serial0 = &uart4; + serial1 = &uart3; }; chosen { @@ -352,7 +353,8 @@ vreg_l8a_0p664: l8 { vreg_l9a_1p8: l9 { regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <2000000>; + regulator-max-microvolt = <1800000>; + regulator-allow-set-load; }; vreg_l10a_1p8: l10 { @@ -389,11 +391,13 @@ vreg_l15a_3p128: l15 { vreg_l16a_1p3: l16 { regulator-min-microvolt = <1704000>; regulator-max-microvolt = <1904000>; + regulator-allow-set-load; }; vreg_l17a_1p3: l17 { regulator-min-microvolt = <1152000>; regulator-max-microvolt = <1384000>; + regulator-allow-set-load; }; vreg_l18a_1p232: l18 { @@ -426,6 +430,7 @@ vreg_l22a_2p96: l22 { vreg_l23a_3p3: l23 { regulator-min-microvolt = <3200000>; regulator-max-microvolt = <3400000>; + regulator-allow-set-load; }; vreg_l24a_2p96: l24 { @@ -487,6 +492,66 @@ &tlmm { <56 3>, <61 2>, <64 1>, <68 1>, <72 8>, <96 1>; + uart3_default: uart3-default-state { + cts-pins { + pins = "gpio8"; + function = "qup3"; + drive-strength = <2>; + bias-bus-hold; + }; + + rts-pins { + pins = "gpio9"; + function = "qup3"; + drive-strength = <2>; + bias-disable; + }; + + tx-pins { + pins = "gpio10"; + function = "qup3"; + drive-strength = <2>; + bias-disable; + }; + + rx-pins { + pins = "gpio11"; + function = "qup3"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + uart3_sleep: uart3-sleep-state { + cts-pins { + pins = "gpio8"; + function = "gpio"; + drive-strength = <2>; + bias-bus-hold; + }; + + rts-pins { + pins = "gpio9"; + function = "gpio"; + drive-strength = <2>; + bias-pull-down; + }; + + tx-pins { + pins = "gpio10"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + + rx-pins { + pins = "gpio11"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + lt9611_rst_pin: lt9611-rst-state { pins = "gpio41"; function = "gpio"; @@ -508,6 +573,26 @@ sdc2_card_det_n: sd-card-det-n-state { }; }; +&uart3 { + interrupts-extended = <&intc GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 11 IRQ_TYPE_LEVEL_HIGH>; + pinctrl-0 = <&uart3_default>; + pinctrl-1 = <&uart3_sleep>; + pinctrl-names = "default", "sleep"; + status = "okay"; + + bluetooth { + compatible = "qcom,wcn3988-bt"; + + vddio-supply = <&vreg_l9a_1p8>; + vddxo-supply = <&vreg_l16a_1p3>; + vddrf-supply = <&vreg_l17a_1p3>; + vddch0-supply = <&vreg_l23a_3p3>; + enable-gpios = <&tlmm 87 GPIO_ACTIVE_HIGH>; + max-speed = <3200000>; + }; +}; + &uart4 { status = "okay"; }; -- 2.43.0