From nobody Thu Nov 28 20:03:17 2024 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63DB318BB9E for ; Mon, 30 Sep 2024 10:30:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727692256; cv=none; b=WT4MAymr0XJnFl6THyc+WNfUhwUnNYUVAljDusrM3SY18BgWXN1+mYt/wWvIdAAwrjLDEbKzwAlQBWIeYJC5gbmAq8CGUV9EIM765VhauTU/ObdEsbRyT7DZPcy9qfqLeldPeE4bo5rncuJqZ680k/uhv2ToGHDfqn9awfMV9q4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727692256; c=relaxed/simple; bh=z4OTCnuC4b/PxGRdBA3ScXQQSanWoNuzXbQ0PxFnuUQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IxEJEMEnv+yW7SDqJISyDe+Cd5pj6EpPbXcX4gQga30mGzqkQhYwe/Cs5WWrsTVhSJ1tj6jt9oFhWCG2zhkSyd3opDkbHtxAGoFTnxB86KbuCGS9R1o3Yz6iZMA6GCmTb37iHJ6XhM/oYH7KmEYv+mCsbiAI5/4OgwJpoGoearc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=OVCf6QhK; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl 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="OVCf6QhK" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-37cea34cb57so420228f8f.0 for ; Mon, 30 Sep 2024 03:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1727692253; x=1728297053; 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=dLuE6Kt3jND6zsj6ih54O9B6soObllB8kH8sl+QVpiI=; b=OVCf6QhKTLAdNzd8HdV5KeHnLpHIqD1knVHgWYwQE6J6kQVoGKN8g/ZMh/LahLAu7S +gBZ4x5AJV+8raE+W8KFS+6wyq78Bg+jsk1TFQ4KypCy/Gt0DQVuQYAu/WayxqbmtxR0 T0eo+OuWmL1LgMSLhbZe1FTtxONcA6UTbDQeKvzGcHJMW/N6Em8an5YjEFLnuKXs/U36 afkBd24LAocZujuhvK1egATnI8OGI20JDvhzp98VwBZIebw3jbuJ60tIVR7eGdt8Qz5f 4Yml/fYUMy+xAR9QHE0r4u5NOD4gzAU1HwuQfyJcbsFSj6hkto9NJ5inCsiSF+t2Hnlg XXkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727692253; x=1728297053; 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=dLuE6Kt3jND6zsj6ih54O9B6soObllB8kH8sl+QVpiI=; b=F0E59u11B6ZxaCY5cT3JP1xX1a4zyO5GkUxSgmJg8ZWoln02CSL5B6uH9/yaWc7kIK M7bknj57FQ8uPRvO+LZxoHjwfbu0RLPZtiRQDkJfbF+Fsdh45nYiAbiv4Wb9R+Nb7bd9 S1Jo2VL3SPH/LWQmJxf8HfPMnZCUz4xmVAdqoyFAR9GmT6D76nakSnbwIAJqdSzB0ERS TTREfoafkbosvgVPK9TUp1ZZaUFP+sxm5su193VDmDsSmnEcxjBRthN0CQL6osxrdH0a Cfw//6K2jOJogsJBFNVBPfXgDZ6v8NMdpGqUi8YUlO/27J/5EvwCBLR3UwUGkkC3QZG2 Skcg== X-Forwarded-Encrypted: i=1; AJvYcCXn5HfAbH6jl6qCA4JWo03QRJci7d8+aVx6jvrY7nhYGtEuajXq4nBYN+SfJxMl6OKbFM1qU0RkxmlFgSY=@vger.kernel.org X-Gm-Message-State: AOJu0YzmtNYVLikpxKAHQeRL+Es/vxaLdXHu5vo7g1DA5Njn4N4Qv38I azMjMmiq0GsUfBFU74toxFjCeIIpspu8FEwAL5kiLAKw/NDiOMxkvgioSjE09ag= X-Google-Smtp-Source: AGHT+IGj28uwxU/n46idJB00cek8od4LkzHfcNT5QP/eTd8Cm3jw+UKDEVe4rhhl1exsV4JnemjLYA== X-Received: by 2002:a5d:420d:0:b0:37c:ccbe:39aa with SMTP id ffacd0b85a97d-37cd5b1088fmr6148057f8f.49.1727692252722; Mon, 30 Sep 2024 03:30:52 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:8791:e3e5:a9ca:31a6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cd55a5414sm8835051f8f.0.2024.09.30.03.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 03:30:51 -0700 (PDT) From: Bartosz Golaszewski To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Dmitry Baryshkov Subject: [PATCH v4 2/3] arm64: dts: qcom: sc8280xp-crd: enable bluetooth Date: Mon, 30 Sep 2024 12:30:38 +0200 Message-ID: <20240930103041.49229-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240930103041.49229-1-brgl@bgdev.pl> References: <20240930103041.49229-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Bartosz Golaszewski Add the bluetooth node for sc8280xp-crd and make it consume the outputs from the PMU as per the new DT bindings contract. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 60 ++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dt= s/qcom/sc8280xp-crd.dts index 28721570c59f..109d7cc5ee4a 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts @@ -20,6 +20,7 @@ aliases { i2c4 =3D &i2c4; i2c21 =3D &i2c21; serial0 =3D &uart17; + serial1 =3D &uart2; }; =20 backlight: backlight { @@ -275,10 +276,11 @@ usb1_sbu_mux: endpoint { wcn6855-pmu { compatible =3D "qcom,wcn6855-pmu"; =20 - pinctrl-0 =3D <&wlan_en>; + pinctrl-0 =3D <&bt_en>, <&wlan_en>; pinctrl-names =3D "default"; =20 wlan-enable-gpios =3D <&tlmm 134 GPIO_ACTIVE_HIGH>; + bt-enable-gpios =3D <&tlmm 133 GPIO_ACTIVE_HIGH>; =20 vddio-supply =3D <&vreg_s10b>; vddaon-supply =3D <&vreg_s12b>; @@ -747,6 +749,27 @@ &sdc2 { status =3D "okay"; }; =20 +&uart2 { + pinctrl-0 =3D <&uart2_default>; + pinctrl-names =3D "default"; + + status =3D "okay"; + + bluetooth { + compatible =3D "qcom,wcn6855-bt"; + + vddrfacmn-supply =3D <&vreg_pmu_rfa_cmn_0p8>; + vddaon-supply =3D <&vreg_pmu_aon_0p8>; + vddwlcx-supply =3D <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply =3D <&vreg_pmu_wlmx_0p8>; + vddbtcmx-supply =3D <&vreg_pmu_btcmx_0p8>; + vddrfa0p8-supply =3D <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply =3D <&vreg_pmu_rfa_1p2>; + vddrfa1p8-supply =3D <&vreg_pmu_rfa_1p7>; + }; +}; + + &uart17 { compatible =3D "qcom,geni-debug-uart"; =20 @@ -892,6 +915,13 @@ hastings_reg_en: hastings-reg-en-state { &tlmm { gpio-reserved-ranges =3D <74 6>, <83 4>, <125 2>, <128 2>, <154 7>; =20 + bt_en: bt-en-state { + pins =3D "gpio133"; + function =3D "gpio"; + drive-strength =3D <16>; + bias-disable; + }; + edp_reg_en: edp-reg-en-state { pins =3D "gpio25"; function =3D "gpio"; @@ -1091,6 +1121,34 @@ reset-n-pins { }; }; =20 + uart2_default: uart2-default-state { + cts-pins { + pins =3D "gpio121"; + function =3D "qup2"; + bias-bus-hold; + }; + + rts-pins { + pins =3D "gpio122"; + function =3D "qup2"; + drive-strength =3D <2>; + bias-disable; + }; + + rx-pins { + pins =3D "gpio124"; + function =3D "qup2"; + bias-pull-up; + }; + + tx-pins { + pins =3D "gpio123"; + function =3D "qup2"; + drive-strength =3D <2>; + bias-disable; + }; + }; + usb0_sbu_default: usb0-sbu-state { oe-n-pins { pins =3D "gpio101"; --=20 2.30.2