From patchwork Tue Dec 5 11:23:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13480060 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="TuG7clMs" Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C31B11723 for ; Tue, 5 Dec 2023 03:23:50 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3333fbbeab9so2415313f8f.2 for ; Tue, 05 Dec 2023 03:23:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1701775402; x=1702380202; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dWGEOgBlaV+9GD0eZ+EUXVzemfxXSkN0akB4k15I/sQ=; b=TuG7clMsgAuNCb+eIJ4lLSuOhYVfEOKcCcMWx53HP7pOcQIQ/5VnWAuPnixDYyAHl7 YIbF8cT/OzjFBtxfYaXAqcM0YSipME1C+XaKznTTJRfqgUg3JADclvbwbeXlflzQ3/nf qpeHihzxGNAkei4lsgX4s875DZUg1hg2pT9S4Pkra3l1EZ0aNGZ9GmTh4JpRUAihJV+3 gmFlFTd7mJYAhkJLdWjZJQK34vg5f5vnqhPTbEZfmpn9Vmpgubthb9cbo62Z4gfTHR/w dp7BgYDP+UHu3BnPv4QFOOIjyDNBO2wEu4bIYT2a7jsFMeZPEcCFGamaMAz5Zc0DBWxY dwCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701775402; x=1702380202; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dWGEOgBlaV+9GD0eZ+EUXVzemfxXSkN0akB4k15I/sQ=; b=Kx81Ti/5fbHm5OlpbhkDEWr/X4Wea/2DGR0DwiCbZ8AYh+cAK8pTdl8v+tTSNn6VI6 Ee8gAzBb0taYETep39vt+ZGN+KZOO2Ieb0qiK3yC0nqR3Ir21uuKZJ9DKsW+1O9d1Ylj FOwZ9hHSsAKdT/x6yJehXx3raBQWhTmsP3P4eZofpHKd+o5G+0v8sSJqMi0LZ1A6uFQs DQ2qNiDOuaZ2dJ3bfwNA2U6XEvJIQ81Qqaqqwv3Yf4R3PYPcrHyfuLMSzF4njNaHaLRC TdNA9Iwq+yVTQBcMrLtRkP/clTY6qrGja/Q3hMOyo0pn/f4Uxy2OGrPrr5CA6cu1yqHW vc6w== X-Gm-Message-State: AOJu0YyhhN36zJGkjAaZ/A9j0orgsZspDr9ldLJjnTRBzebDfNS57JGC 5w4C09aPAonVKVXAo6BZWgoRakVftaZFA8m31i8= X-Google-Smtp-Source: AGHT+IERJhbMlFae8VaZ0toP10wux4ZqDAU5aWYjeBHgjCeQv0tlJZg2P6EOxMzPBICtQOwgXli8Vw== X-Received: by 2002:adf:cf10:0:b0:333:272f:b5a9 with SMTP id o16-20020adfcf10000000b00333272fb5a9mr4421979wrj.36.1701775401961; Tue, 05 Dec 2023 03:23:21 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2dd9:dce:96c5:9e9a]) by smtp.gmail.com with ESMTPSA id p8-20020a5d59a8000000b003333ed23356sm8127775wrr.4.2023.12.05.03.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 03:23:21 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Alex Elder , Srini Kandagatla Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 1/3] arm64: dts: qcom: qrb5165-rb5: add an alias for uart6 Date: Tue, 5 Dec 2023 12:23:09 +0100 Message-Id: <20231205112311.16391-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Bartosz Golaszewski Alias uart6 to serial1 for qrb5165-rb5. This is the high-speed port used by Bluetooth. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index c8cd40a462a3..ce6ae0771d34 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -23,6 +23,7 @@ / { aliases { serial0 = &uart12; + serial1 = &uart6; sdhc2 = &sdhc_2; }; From patchwork Tue Dec 5 11:23:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13480062 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="WxO++xJA" Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 096CF171F for ; Tue, 5 Dec 2023 03:23:52 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-33318b866a0so5164107f8f.3 for ; Tue, 05 Dec 2023 03:23:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1701775403; x=1702380203; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=A6sGRXmJ2vFZwbq7OvwUrXyLM1kjgTEB3KpBaM2KT6U=; b=WxO++xJACxUyyaG0e+BvdYboOSN7SLb2Rh7B+wNO6wB5Df1IrZx3xjSqt4urDdMA+L l82/rdY93hVPkkXlGcoSy3gBXKy4mcwIjnxXafCcNRvnzFG4BEoCthPx2D7T0KCEBfYp bUa+sQYR9YhBR903/uYKD3660fhZv7yZMdMdpnUp8QeZ8hzFcfJJ3AXtXZvbpO5g5W31 7fANJUSKvdMtUXA/g15lVGzbo55s6VX8K4w3qkeSgojfrlggxSj+XdGWnCoJD3IefdXS VxOrKs0QBrNqMvBPXys6r3swA5f9Teaw6M78/xSeHPYD8wvYNp6w7B1xlxQ3VdKz2k9/ /IxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701775403; x=1702380203; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A6sGRXmJ2vFZwbq7OvwUrXyLM1kjgTEB3KpBaM2KT6U=; b=s0PQjR3ZTOVLoaJVTllQ5+r9c55ad2ay3Yb56CkNJdhVUiJhg3vf+7kc/Hu7nkeuIn JOT2OIykEfnssxNTE6EafCZ/tmFH1nfN2xLUDNDdSPX5CXeeKOPdgCKj8KmyM81u4hbO n0vG61SRO+hVskDxESoYI4oBLqZNEQVvdRPYde0OgzpmA6vLRGY1osM0m4H8B/gEtasi L+Iavau2oxo3O/XKZqmsnP369lOihjkZjDzw1if5gG9pwl/455kGYEb5um1rDPt/NbS+ dYOxWr8YRRPlBTkcEQz/cNdLVlCDB7MDWk+UEukxpqURBT+s8S59PnpGjbc9ADQ1fiTF mG9g== X-Gm-Message-State: AOJu0Yyfq4Sq+92V4Zf+qXnCoLkDI4qphCB4oPPpfkVU6j6S1hm5IIPz OktDhPkC1iGfdgm6zFXFHxwBBw== X-Google-Smtp-Source: AGHT+IG8kRfC4Kuhw3jHxqdgrgNiTzCNx9TNRsyxtfxsUFLhZilZXEA06L5+jvWkFRz9ZcHxl/V9/g== X-Received: by 2002:a05:6000:71e:b0:333:4c89:f44a with SMTP id bs30-20020a056000071e00b003334c89f44amr1683678wrb.2.1701775403066; Tue, 05 Dec 2023 03:23:23 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2dd9:dce:96c5:9e9a]) by smtp.gmail.com with ESMTPSA id p8-20020a5d59a8000000b003333ed23356sm8127775wrr.4.2023.12.05.03.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 03:23:22 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Alex Elder , Srini Kandagatla Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 2/3] arm64: dts: qcom: qrb5165-rb5: add a pin function for BT enable GPIO Date: Tue, 5 Dec 2023 12:23:10 +0100 Message-Id: <20231205112311.16391-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231205112311.16391-1-brgl@bgdev.pl> References: <20231205112311.16391-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Bartosz Golaszewski Set up the pin function for the Bluetooth enable GPIO. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index ce6ae0771d34..ead0c45ba60c 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -1264,6 +1264,17 @@ &tlmm { "HST_WLAN_UART_TX", "HST_WLAN_UART_RX"; + bt_en_state: bt-default-state { + bt-en { + pins = "gpio21"; + function = "gpio"; + + drive-strength = <16>; + output-low; + bias-pull-up; + }; + }; + lt9611_irq_pin: lt9611-irq-state { pins = "gpio63"; function = "gpio"; From patchwork Tue Dec 5 11:23:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13480061 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="F/jjh+2S" Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4F3349E5 for ; Tue, 5 Dec 2023 03:23:55 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-33338c67d20so2831945f8f.0 for ; Tue, 05 Dec 2023 03:23:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1701775404; x=1702380204; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ws3CIsjXWSfN6YwtDvaoTEO5x+PGXRNs+10Uc6B7SBs=; b=F/jjh+2SbO/nDuRw1+DNL3qRyJRMZ3O5jVHjnl5qxYS5mmWW1cSBYQSuFSQpTE/JSG 5se6XGHYQKxxlv6LLCNYGie/UcbaY5LerxWvqP+2sI4Wp0dd0aw7q2F07Wo25L6O4VfJ o5+BlHSW01mV5a21rLj2ksIY5so3Uuy6wVPYDleL9IjJqqnXrqhmZKksz3W5S84MxVsv 4+WrHEDTgiK2E0Jmz69woawQO4t16gW9M1fknalqFcXIOnHapKNsycda5MY659lBYCEb +kdWQg0giqnFidPdHtZHPxA3cYHnAvRQl4wSa0D1xJb/Q1HADjg4RN48TfGnGJRe22s0 siOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701775404; x=1702380204; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ws3CIsjXWSfN6YwtDvaoTEO5x+PGXRNs+10Uc6B7SBs=; b=fBxZsZPxM3fu9EgZE8/tzJjx9nwJKpasNDC9QF0XmHMYOXmlft9XIkKpN1M5HSrQCG eIU7dkdd+JPDHuVBL5d+tcJkSX2++hTAUtRIrdg6peD5Gnjm9taPQxkFLtzpA+j8kGtP cHl+0J3VnSgwmU1xzuL+t2NvrIKtGPIUcNfSc98kcoTQQK+7x3QHM6cekYre7kvX5zHb vQxcZB/Zhk6ZCzsq5zji+04TGvsXzrrwL+YKsItYdKr06gGwNePHo2pq99H8QAOXfIty jRjHSzLYjulgmW0RxoLuALeZXRucQ0GL3L7p9CA2BFISMm4P+/3R1dvgUZdPxVQJ9Fqr 9Zhw== X-Gm-Message-State: AOJu0Ywq42V+nbxn6fEhVd4O9REhewF9KUwJ1G3GmaOzO14WIZ7k/FCB fhlp0J2EEdSh3oJN3sGkZmhImA== X-Google-Smtp-Source: AGHT+IGZrmoqP+nMIa/3cBLgBOq9hwyxZg/PZmzJay6finlPfcxRqwVG7R5axg0/t55/zRkDaEQxBw== X-Received: by 2002:a5d:66c1:0:b0:333:a27:2326 with SMTP id k1-20020a5d66c1000000b003330a272326mr3908774wrw.25.1701775404274; Tue, 05 Dec 2023 03:23:24 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:2dd9:dce:96c5:9e9a]) by smtp.gmail.com with ESMTPSA id p8-20020a5d59a8000000b003333ed23356sm8127775wrr.4.2023.12.05.03.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 03:23:23 -0800 (PST) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Alex Elder , Srini Kandagatla Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 3/3] arm64: dts: qcom: qrb5165-rb5: add the Bluetooth node Date: Tue, 5 Dec 2023 12:23:11 +0100 Message-Id: <20231205112311.16391-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231205112311.16391-1-brgl@bgdev.pl> References: <20231205112311.16391-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Bartosz Golaszewski Add the Bluetooth node for RB5. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index ead0c45ba60c..fbdf8fdb532c 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -1308,6 +1308,26 @@ sdc2_card_det_n: sd-card-det-n-state { }; }; +&uart6 { + status = "okay"; + + bluetooth { + compatible = "qcom,qca6390-bt"; + + pinctrl-names = "default"; + pinctrl-0 = <&bt_en_state>; + + enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; + + vddio-supply = <&vreg_s4a_1p8>; + vddpmu-supply = <&vreg_s2f_0p95>; + vddaon-supply = <&vreg_s6a_0p95>; + vddrfa1-supply = <&vreg_s2f_0p95>; + vddrfa2-supply = <&vreg_s8c_1p3>; + vddrfa3-supply = <&vreg_s5a_1p9>; + }; +}; + &uart12 { status = "okay"; };