From patchwork Thu Oct 10 07:22:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13829669 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 C5CF21E1A16; Thu, 10 Oct 2024 07:22:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728544949; cv=none; b=NgF1Frj1gxBC06Nq1W4AzOPbMvrp7xPry+ol6sPNU+4/aQbEUqO5YD4LbSXT4q01VkBUOCHQtFkmgu91vaYBqRItlf7+pFgPOxjPBskMVVlnltM5aDiWXvaA33id2wu0R161u+JyQBTRXSroPB79+4Yf7r7s78fW3ln/b5kcX4c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728544949; c=relaxed/simple; bh=hwGEak4KIJ11eUuNaEq87hocGnQxvDOhCJ9VphQmOaU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OndLIAAzq5fq6bsC0eChM8RL3CtM8APQZBFIT9c3JR+zSgJuxfiYrWqoY//e8pG2jePN8x/kMLYaA6fxpX7G2Okt3/qzxTzpwmXVfooT5pn2KY8D5NK2RQ0cCjMOjD48vJVY34WRZ16EzLnOYCz8Hk2GI7a42qNXXK+O4lb8AmM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LHcH6rkB; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LHcH6rkB" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-20c8b557f91so1720915ad.2; Thu, 10 Oct 2024 00:22:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728544947; x=1729149747; 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=fAZN9C/GFdXF6RdMc8O3pl7Hwn2h+nafu8g8plyOOA0=; b=LHcH6rkBaLb9wVkigMocXBN+sCpNsgrKTEE8P1jg78LlTb+Qxfk87yikPNP5q31wXF gWligxz1Q+9yCp/I79nWL1rbbYTBBhWakt2UU89/lHmWXclZX+Or1IhCEK+b8k5sIUxq Ad7EPyHOoQx2wEwSfIsBXu8ZVXSzepLirhMVttlI8Uo35DBS6IUcg7I9dy/DdfUnglLX 4hbcf0lD0UfMo2Q3rMvjnQmlpEv98ozydmBVB7JcxqqV6gw2stsgUOt0BhQfOmJOGdWS tZ6DDMFe7OcEH1hO7C+IiFlOYyp45YGYmPLgjOBP5zGQ89IU7SGiRAdgqDuBrebV5Adz 3P5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728544947; x=1729149747; 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=fAZN9C/GFdXF6RdMc8O3pl7Hwn2h+nafu8g8plyOOA0=; b=cEQ0jIQYKAnltHdSIIXNU4U9CxaFYvf6MIe5gu0GRzr5g341YQIkws53uyLMCtXGuL zosI25KFyc2/R6QLyW7fiVqynJr3+j5MGb3jFiXZNLdLA4VWtm5CKFYIHb5FUxS7GSfI 1NbU8Au91hl6ArJYY3lNWYg41wDR1e4fb2DPN/X37fAMGb+4ujlOgWtOYWkFd7Vspik+ 1/8nl8uhlQv7dwGvwJCuQ0xlTysR+VqUymM4jjIhGQgGaUJq4+s84lS5J2sGqyC6yV4P bELadqsMci1XzPHjtXUOTtsTtb0Sxc7cMiD8FY0spkpFK/gmqWTWrGGiUcM8M8KwI9To /VDQ== X-Forwarded-Encrypted: i=1; AJvYcCVqIjhuhcsco1NbISVQPC9E1ft69bQqHu+hncwS60xppI4j9OP599BvCFq0rj8JKLJDAL++6DDyBBHm@vger.kernel.org, AJvYcCX9gIrpkz5WtQtTROfBA+FVNDt/9TB8M4cwysSI50SX3nGvWg8S/O8/Hye3Z9rb9GNuRURnN89z6RXoHA4O@vger.kernel.org X-Gm-Message-State: AOJu0YyT7OofHkfaRZ1MNe8EkGyti3s5hpTLk49G7P5+lwRPP0sLI+rX 87a8FGUJUgHZMOW8j2+ru5q8x4a2IBFGmnsN6ZCoIweY2BOCdQsS X-Google-Smtp-Source: AGHT+IGun9eCRZcpSJMPC1tFvuB8ARPLpuejb55VSsC6xFiZnGFpWUrfZe4+TzhboBaOJ0IQkXJifw== X-Received: by 2002:a17:902:d4c1:b0:20c:774b:5ae5 with SMTP id d9443c01a7336-20c774b5cfemr60270875ad.9.1728544946915; Thu, 10 Oct 2024 00:22:26 -0700 (PDT) Received: from localhost.localdomain ([103.149.249.231]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8c21616csm4413865ad.224.2024.10.10.00.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 00:22:26 -0700 (PDT) From: Jianhua Lu To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo , Jeff Johnson Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org, Dmitry Baryshkov , Jianhua Lu Subject: [PATCH v3 1/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add qca6390-pmu node Date: Thu, 10 Oct 2024 15:22:41 +0800 Message-ID: <20241010072243.10227-1-lujianhua000@gmail.com> X-Mailer: git-send-email 2.46.1 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add qca6390-pmu node, which is used to manage power supply sequence for wifi and bluetooth on sm8250 soc based devices. Reviewed-by: Dmitry Baryshkov Signed-off-by: Jianhua Lu --- No changes in v3. changes in v2: 1. pick up Dmitry Baryshkov's Reviewed-by .../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index 3596dd328c31..ebea283f56ea 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -97,6 +97,67 @@ key-vol-up { }; }; + qca6390-pmu { + compatible = "qcom,qca6390-pmu"; + + pinctrl-names = "default"; + pinctrl-0 = <&bt_en_state>, <&wlan_en_state>; + + vddaon-supply = <&vreg_s6a_0p95>; + vddpmu-supply = <&vreg_s6a_0p95>; + vddrfa0p95-supply = <&vreg_s6a_0p95>; + vddrfa1p3-supply = <&vreg_s8c_1p35>; + vddrfa1p9-supply = <&vreg_s5a_1p9>; + vddpcie1p3-supply = <&vreg_s8c_1p35>; + vddpcie1p9-supply = <&vreg_s5a_1p9>; + vddio-supply = <&vreg_s4a_1p8>; + + wlan-enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>; + bt-enable-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; + + regulators { + vreg_pmu_rfa_cmn: ldo0 { + regulator-name = "vreg_pmu_rfa_cmn"; + }; + + vreg_pmu_aon_0p59: ldo1 { + regulator-name = "vreg_pmu_aon_0p59"; + }; + + vreg_pmu_wlcx_0p8: ldo2 { + regulator-name = "vreg_pmu_wlcx_0p8"; + }; + + vreg_pmu_wlmx_0p85: ldo3 { + regulator-name = "vreg_pmu_wlmx_0p85"; + }; + + vreg_pmu_btcmx_0p85: ldo4 { + regulator-name = "vreg_pmu_btcmx_0p85"; + }; + + vreg_pmu_rfa_0p8: ldo5 { + regulator-name = "vreg_pmu_rfa_0p8"; + }; + + vreg_pmu_rfa_1p2: ldo6 { + regulator-name = "vreg_pmu_rfa_1p2"; + }; + + vreg_pmu_rfa_1p7: ldo7 { + regulator-name = "vreg_pmu_rfa_1p7"; + }; + + vreg_pmu_pcie_0p9: ldo8 { + regulator-name = "vreg_pmu_pcie_0p9"; + }; + + vreg_pmu_pcie_1p8: ldo9 { + regulator-name = "vreg_pmu_pcie_1p8"; + }; + }; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -701,6 +762,22 @@ &slpi { &tlmm { gpio-reserved-ranges = <40 4>; + + bt_en_state: bt-default-state { + pins = "gpio21"; + function = "gpio"; + drive-strength = <16>; + output-low; + bias-pull-up; + }; + + wlan_en_state: wlan-default-state { + pins = "gpio20"; + function = "gpio"; + drive-strength = <16>; + output-low; + bias-pull-up; + }; }; &usb_1 { From patchwork Thu Oct 10 07:22:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13829670 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 00B421E3DE6; Thu, 10 Oct 2024 07:22:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728544956; cv=none; b=UrCLdRZN8/oybPxHA6nWUrlrSsgcDzj8Rzd+ig64RkAi16gaFx7b5F52QqA3fzuj6zAPQSY4lePt7J2jg5s4A4DVs3SgvMqNJWH+d6eTKugbZpjBMcAHjfHifhNihMNUsoNT9fDPHYTjQwy1tPfzVWaBqqvDp0snTj2WPMOlXWo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728544956; c=relaxed/simple; bh=jpNJuBZVqp/0mSeHxtnAODo0kh5Pk622q793EOojwSU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZX0tM9tFYAnX45DKgNBlE1VnAguUUxF43a2vgha3y0Mx2nSuzDn3tVlIUEVkBTzUgyRvx9SwkQQehUkbT8Wv2oi7jCOcE4r955quLA9tBFkdu0Frxxig3e89YRsw3eaVE17mnozBc8YnakG5LfikmGND3e4j+BvpNYom0o91+D4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=mGN1wog/; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="mGN1wog/" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-20c693b68f5so5703525ad.1; Thu, 10 Oct 2024 00:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728544954; x=1729149754; 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=dKw/JoI0r8yQE1Dp1vopxnWx9JbnMVopH/+pwaMqF7g=; b=mGN1wog/+K2AhMTk7YCu7oYiz68A0xqXFgBrWZvn/LdepLy3T4gy/YIiDeHpjVhbOz APrOtk0XkF0yktK9m64kPvN+O8Fy2a0ThoPppsdBTtUDThR8u3xfb+lD6ATm6/O3yYcC 86eIY135KDKkT/+AEvzquFrM3j4tSDVRywS4kgvnDlS6d5RRV+2kwgNg0DnCQXA327JA DjpAQuGOifv8V/sMSgUy6AjTbt8FFdKGvlMbvaXKkb9OyVZvzE2aA1gs6p6bsI8Ns0Jw 7TOAwXketO3cDU76L0vkZkMrIjLZYca3Gel1F8mFi2x4Lybg0xC1mcTz6qTn3U2KWdHL y1IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728544954; x=1729149754; 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=dKw/JoI0r8yQE1Dp1vopxnWx9JbnMVopH/+pwaMqF7g=; b=RZwr3Bb06CE4VEv6aQFB/RSuMBQn87GPcx46U1zak+lV+YEInF8mLP1Di6ZoUfHfyf Y1ZmjNvc0xliXSQUEhGWDTF6Ithsmsl3rlmAgLQcOEgepdT74DRFDW2lFfbe7tA2wQgS AKDR6phJWI+Rtl9JjJ4pnyxqdwanO8kDWF9eEyH80INKKYxxiVbU13ds9E9p9YzbIPah j9shKPvJYxPxtbjLRnQUZvSBiYUMD1abPLBBFbtYVaeS+4SOIFTYOoeyL52IGof6ZsTH ocbq6jfX0/Qp3pEXUeVeXapcP+/sGmUZP799IroDuevBYowaWVFz2aauuzaj9iQDy//r Z+hA== X-Forwarded-Encrypted: i=1; AJvYcCW3d0soayJ9HE4Ywx6v72xXc6F2O3yeHRZlwpO2MjfEwetBtm6r+3wIkjH1246fF942ZkIETWjZwFg7@vger.kernel.org, AJvYcCWRzKZKTr+3MjQobwSbzxC5gHiVOccClLy2CtWbTI4AqD5G/Kl0veut5tuyHZIQYlkkUFViiQJ6Ssl2dX6S@vger.kernel.org X-Gm-Message-State: AOJu0YzgafFdpjawbqTC/HLXczyu96ZWY+2e+4SQcrzhozj8bvxeVLHQ dhxdemOmvOU966QN2JiiJX2z2FrOo4fIEwOpYl2RGUMpZktUkpWXrbY6tw== X-Google-Smtp-Source: AGHT+IFEq4jKqyPTtrzF+iLBOHfODKPUhCo/6KznjZq89UYKbOSWLmD2ggVpEKQQSFSYTEieqOZZ6A== X-Received: by 2002:a17:902:f687:b0:20b:a9b2:b560 with SMTP id d9443c01a7336-20c636d6b88mr60719135ad.6.1728544954238; Thu, 10 Oct 2024 00:22:34 -0700 (PDT) Received: from localhost.localdomain ([103.149.249.231]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8c21616csm4413865ad.224.2024.10.10.00.22.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 00:22:33 -0700 (PDT) From: Jianhua Lu To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo , Jeff Johnson Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org, Dmitry Baryshkov , Jianhua Lu Subject: [PATCH v3 2/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add wifi node Date: Thu, 10 Oct 2024 15:22:42 +0800 Message-ID: <20241010072243.10227-2-lujianhua000@gmail.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241010072243.10227-1-lujianhua000@gmail.com> References: <20241010072243.10227-1-lujianhua000@gmail.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add wifi node and this wifi module is connected to PCIe port. The following is qca6390 probe message: ath11k_pci 0000:01:00.0: Adding to iommu group 12 ath11k_pci 0000:01:00.0: BAR 0 [mem 0x60400000-0x604fffff 64bit]: assigned ath11k_pci 0000:01:00.0: enabling device (0000 -> 0002) ath11k_pci 0000:01:00.0: MSI vectors: 32 ath11k_pci 0000:01:00.0: qca6390 hw2.0 ath11k_pci 0000:01:00.0: chip_id 0x0 chip_family 0xb board_id 0xff soc_id 0xffffffff ath11k_pci 0000:01:00.0: fw_version 0x10121492 fw_build_timestamp 2021-11-04 11:23 fw_build_id Signed-off-by: Jianhua Lu Reviewed-by: Dmitry Baryshkov --- changes in v3: 1. fix commit message typo (pice -> PCIe). changes in v2: 1. add qcom,ath11k-calibration-variant property. .../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index ebea283f56ea..7a55e271c3ac 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -680,6 +680,25 @@ &pcie0_phy { status = "okay"; }; +&pcieport0 { + wifi@0 { + compatible = "pci17cb,1101"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; + vddaon-supply = <&vreg_pmu_aon_0p59>; + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; + vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; + vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; + + qcom,ath11k-calibration-variant = "Xiaomi_Pad_5Pro"; + }; +}; + &pm8150_gpios { vol_up_n: vol-up-n-state { pins = "gpio6"; From patchwork Thu Oct 10 07:22:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13829671 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 7689A1E3DE6; Thu, 10 Oct 2024 07:22:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728544961; cv=none; b=d/6yJ5YqTjo0+IGEMm5Zr5vFuRX4VpL6DX/gCvBmN1bB5Onm3vyNbVdEEiE8ygtksWAkKiarLZ5Csvha4C7KJIPf13Fi8nXC7RitswmvXnI+RXVnNgqQvJ+eyALsc5SLLthPJYo/Imy49oHU59e02ri5LvN/C+5qkfnUQWjjXs0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728544961; c=relaxed/simple; bh=irHePT7jxSRj3l9cjSlyLGCDNqsK9TkuUk0x+DqrhnY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Qc54LMbqpycpLOqfHMLztdVAskfU5X+0gzVsZvAmPcpCxgraFptMpEuyAd9CMWbfV7Tz4TulWJvTbyaYreh3T3YHJZGirPknMKuPJs5rlBD7dTbZWQpO0PZkkQH1eb/+dgjH2S0g78FUQwTH1jwQQvl3VYop4axqhfOqLmWmAPI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KLUAU6EH; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KLUAU6EH" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-20c8c50fdd9so1549855ad.0; Thu, 10 Oct 2024 00:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728544960; x=1729149760; 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=vpFy5FxhMWXNV2yEqbcX+eoDVHfJa3z53SbIDrRh8fA=; b=KLUAU6EHsMd/uW+UGcIufai+jdfAjXpAi3u7Yy9vZrlf10oasXO8VrhNu+8CJe7JsU mvSjF9VJAYNzCH8C1fgiDDhnmeKuXnTxm0m7Q9QIdUoqEkY8XAo7KRALiWco0tFhUS2x dapM5ntw5E3spkWFvHS0CMhTHRhseHJ3mJpHgHR6iu0yDma7SSYqYdUM+OmZUAfufIZG 5rhagsUpRbOwAbNRDjwR+/c/BSKo0xnttZ/2lCoeI//gwZGXcFly/rdxXg17y7SWSyYz nwhWsBpd/WyYs2ve9pF8x4O8qXfwreAkFRT3j8hfmmBRvz+itj+hRScQtqHXLmxgMsK8 jqIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728544960; x=1729149760; 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=vpFy5FxhMWXNV2yEqbcX+eoDVHfJa3z53SbIDrRh8fA=; b=FcrNg8Jxyj4ZWsuUxP85GbHX4niCJIeBmlDZE1fvdsFB+g4/Uto6/vHmgNFy5ny0fs 4w7RXvVWElSdL3C0oQgkYoPMQLn2axRw8D1VDRFT3vpObOHdpVheQHpRCrLFHfx3naDK 5KHhYym92v7du3z5ETbk3gUfjd9l/XkyMYmBUR2BHRItrHDD//wLPvvN1HcwBfXLa1OC LSbEfEnbXDuVFQPpBmLehZOYdH5Uci8VMKidjPWXo+sBTboWA270y0kqc1gSP7DwDoij pmtFoxzq5CRB6Q3Dlqins4AouzxnmCLLGxZWRZi0tD1Q0a7wDeWahDCH9t1lIQIIPsXB Dt8w== X-Forwarded-Encrypted: i=1; AJvYcCWQ8zTSRAPGpVKdsB4K4l1Wg5MLQV3ibNh1Re6vZHzWpVQDNSESXQhut9qb6quwYrnOg8LE9bDkShQR/Hut@vger.kernel.org, AJvYcCWR7PTYiOPuJvjyJnqyi6ZMnS7AuaKaycLwpsUfVwqvh667YjecJWFuTIIy8PdjvE9lwiLHYCtkBAWV@vger.kernel.org X-Gm-Message-State: AOJu0Yzct3iO/bDBdj6VzjJCFXBbfzH345Oxb12OGtr0hNXt6GqtV7QQ 7KV504jNwWHQpcNrsTTDnkVU/ics4pQMoK0fxqXGPA0YZdqsh2CT X-Google-Smtp-Source: AGHT+IGCY0d5/Qj+wIFS/XBm/sG6iNLJ29I4Eo4vbbDr/u4NiqbohxygQN6qqz8hnNNVbtV6BPr+pw== X-Received: by 2002:a17:903:230d:b0:20c:5960:bd60 with SMTP id d9443c01a7336-20c804444e8mr38534905ad.3.1728544959784; Thu, 10 Oct 2024 00:22:39 -0700 (PDT) Received: from localhost.localdomain ([103.149.249.231]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8c21616csm4413865ad.224.2024.10.10.00.22.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 00:22:39 -0700 (PDT) From: Jianhua Lu To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo , Jeff Johnson Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org, Dmitry Baryshkov , Jianhua Lu Subject: [PATCH v3 3/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add bluetooth node Date: Thu, 10 Oct 2024 15:22:43 +0800 Message-ID: <20241010072243.10227-3-lujianhua000@gmail.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241010072243.10227-1-lujianhua000@gmail.com> References: <20241010072243.10227-1-lujianhua000@gmail.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add bluetooth node and this bluetooth module is connected to uart. Reviewed-by: Dmitry Baryshkov Signed-off-by: Jianhua Lu --- No changes in v3. changes in v2: 1. pick up Dmitry Baryshkov's Reviewed-by .../dts/qcom/sm8250-xiaomi-elish-common.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi index 7a55e271c3ac..100607da42ad 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-xiaomi-elish-common.dtsi @@ -30,6 +30,10 @@ / { qcom,msm-id = ; /* SM8250 v2.1 */ qcom,board-id = <0x10008 0>; + aliases { + serial0 = &uart6; + }; + chosen { #address-cells = <2>; #size-cells = <2>; @@ -799,6 +803,21 @@ wlan_en_state: wlan-default-state { }; }; +&uart6 { + status = "okay"; + + bluetooth { + compatible = "qcom,qca6390-bt"; + + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; + vddaon-supply = <&vreg_pmu_aon_0p59>; + vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; + }; +}; + &usb_1 { /* USB 2.0 only */ qcom,select-utmi-as-pipe-clk;