From patchwork Sun Dec 1 13:57:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13889486 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 84FF41D2B0C; Sun, 1 Dec 2024 13:56:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733061414; cv=none; b=t34LU1FFIdl4vjNCE16bgX1kFg9YrJTRaN4BNyhi9ANB9/PM7Ylk8eASHwf10BAGzaWNZfjHOxGsgB0IH2bbiZuDXA7giDh1lCRH7GIVK8oaAZrJZ0ALXste6V91NpyMRfei83qpRfG7XKqadfUxRLPCzRsNN6nTGLrZu3tXwzo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733061414; c=relaxed/simple; bh=3ZnVMH51B8uXaY/kGCseLC7JnGM/ka3saQw3hNGo9Ok=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KESPl+f698iFxLooMk2C/kCVFFwPS14sE1IbFQsrK4syQXOxCeSUVi+jaoQp22fASaNshixN9rDdR6sZXV8K2QX0BMPY0T29mRr6H167aTtNbd5XarZou7iL+VjctCWFYqJ1p8NfkkX1uvmkVpvTPel2Bc3HBkO8WuXoiPWYpPM= 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=Ltcslp+v; arc=none smtp.client-ip=209.85.215.172 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="Ltcslp+v" Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-7fbc1ca1046so2981696a12.0; Sun, 01 Dec 2024 05:56:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733061412; x=1733666212; 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=68qOEfz1vPxOdGT/qDD3DqkJMDn+2pl3Ld7n516swbc=; b=Ltcslp+vq2s32ycSyk5+c7Fd4I0IORcyWKdWAQjekCo8OLYJbXTC3q8vu4fCH/mhn7 cpBf3DcRAmWwY6+GUTjqTi/mqLqwpvcELgcsdK78JXvCT/ypLBey0uz1D/e2qBE6PHEh /gApv5Y8cM4hDv3H/AC2mT+hAcwvYsGdbu7/PdZ2OO2x4Q9EF+/+WXJVHSjzdMOR1pto tEXjiXb9i3unK+LaYkRr7O7w2sXrWLnHxk7cHcFyN9I6J1H+1L1H5tFTJpky2nDXQSua 3yYzVwoYcdUjiMgQdeLiEHG0egOwggfXbdQkuhv0h2h35ExdytrkDpmN2gQu1KmOCjPh sZ7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733061412; x=1733666212; 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=68qOEfz1vPxOdGT/qDD3DqkJMDn+2pl3Ld7n516swbc=; b=vOPdRuzvPGJukcPtJhVkM6J7xoLj9rB4Iv0svYniofOejD2F9FoTvXzKfd480UzoRs nhBmh8w5XEwfPhOSzZe4APYU63Os1G8UgtYnoda68X0HrY11ANUcKkKfmbBAT1CnK5aH 6AUxQDJSsCCi3qjvl55BQE0Yx5iTZFUunKnLz6ahfXTzrTFv6Q611poliwuK7d3RQhcZ bM0h+uXm9sHBHRgE5JPNGSH4x5v49Uxa1EziWYpPSKA6DK2X5GMLNUBFOcv5EzNe8Lug JKL5FlMrfdhgPdRHDc2BUV0SyRb11eZZZZXQd9HQ1uZ7QqgpMneynhB9ODuqXJZGCmvn E2aA== X-Forwarded-Encrypted: i=1; AJvYcCXEP70JibSdNiaiYxNwmdboZoBmCRzOwX7FiRZmRRP5GD9mX199twJC13azmxs/vVaXH/cq5jfBlEak@vger.kernel.org, AJvYcCXMSo6xO/WdRhStGAkVu9RhaCR/oL7jxCCnU5dxDTtSUoqBiepjynYav35ldIZqLFzJnoU9sps4lGyX3ipu@vger.kernel.org X-Gm-Message-State: AOJu0Yx6y08SCcRCFWU35q4H4aThA0bmm3MYEKzAge0+DkP67xy4SToM 5T5jJLTthlTdC4uTlXCSxE1cLZYKzGQBBuOeZDJyx5AT25jwD3yD37VFaw== X-Gm-Gg: ASbGncuDCT04IUAwdYeftzpLP95wntD/JwFSRT7goJ4VhO6NhiHx4v3C7Sv4Lk9jWSl helcHcfvuhJz0PMvcm1Ke6tf3HjLTAxWwgPx9g6CZEVLOi3VpRx0QCzepRNha5zPyj+7S+5g9Qz COaJYIol8JsOEEgY69oR2UaanqnhKZ3WY0gx7DJs4LdMsPT85fBTl1a+bZagz/BfqXV1dboLa0c HrbaT1D0TtYzh70Yri1n4ZV3AAYZKt4a7M1xk4aPIPvCvgoVSmC5mYJsUdvLmnZJbmw X-Google-Smtp-Source: AGHT+IEcWG91ybB3pH0MNUfESzU2Qoj4urY068Bf5W2w9eg8ERP80rvYwF6TBYDBIFki5QYZeDhoDw== X-Received: by 2002:a17:90b:54c4:b0:2ea:7cd5:4ad6 with SMTP id 98e67ed59e1d1-2ee097e3f10mr21172187a91.32.1733061411488; Sun, 01 Dec 2024 05:56:51 -0800 (PST) Received: from localhost.localdomain ([103.149.249.231]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fc9c30e2d8sm5260617a12.38.2024.12.01.05.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Dec 2024 05:56:50 -0800 (PST) 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 v4 1/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add qca6390-pmu node Date: Sun, 1 Dec 2024 21:57:14 +0800 Message-ID: <20241201135716.141691-1-lujianhua000@gmail.com> X-Mailer: git-send-email 2.47.0 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 v4. 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 Sun Dec 1 13:57:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13889487 Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (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 278AE1CB32A; Sun, 1 Dec 2024 13:57:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733061428; cv=none; b=V3PayTrdmce2bbXoRpPwzbZAyzNwJtkzULwpI57fGgBHMACtwcWucnO4x3AlTkeSYa92PEcZQPzoqtKyoE7PV7RzrvE+ggpDlxEvulPo9psYErW7Fz2CKh+ifAg4RTBd7pJT1WMv5O/nvmwd4DYLGtQ9tCs8LiSDz07udr4MQHw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733061428; c=relaxed/simple; bh=VMFEqZVRlb6cshNCwjbde3cKjBI4tuJCd2Ku+pLNrmE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Eh1hHzbptbjxbMy6EHlTJIzSHigGPqwRS+DnBVp9afvmCpS+9pYvhA5k1lyE8K4/HpKoR2RF+L/uoBYnsN9WKpQt0QNjfB5+wRjf8Vk5dnHo8BhcI+ge1Krr9ynHZ+vZf5V46uPRsS7PN3sHb+WMRTb1s/vuSxZZwwmokyhDA6g= 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=dSS+aunV; arc=none smtp.client-ip=209.85.215.169 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="dSS+aunV" Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-7f46d5d1ad5so2636349a12.3; Sun, 01 Dec 2024 05:57:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733061426; x=1733666226; 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=z8BEB2d9VDDivv3uuqrErXlNfZp57BYmvdkGk2vj1t0=; b=dSS+aunVYZgXwtM/2g9LyWuTk78iHoZf+p9IgMQqXFDXD0ulimw4vJZIe1cqxrdnUc DO+0hCUmkcO6mam0+mMM56bPR7yq/EB9/jxNnvwx8U+d3/ikT9/KnFv/NjsSeaNCirPc 4hEPguFV8sh85gm9ZvZGDPn81lFyrPLhHSBTPy6gJ0VBvMBPJpu96kyNXC2pum++dTm3 7v+EgcAWR8Yzwap+VDdNdwJaunWifn4y8jEu6YdbPBhFHeXeUdTgtdF2agEq2qrJ3RFJ oRnmeJUaHFD8Qp0TjwJ1BAakXstSalW+RYchiibb95kOJuxAK/jm+DUPyZjM4EzZjeB7 3bBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733061426; x=1733666226; 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=z8BEB2d9VDDivv3uuqrErXlNfZp57BYmvdkGk2vj1t0=; b=Awk7TVmg8piH9K50sB1S6tGG/R1UDdz/aoEph9NmaEGERbmttk2pR157grbSI03bxo ar7sxIPs5f2Vn8bBI2q/c4jbBUvilUPMWptk2PBERKW5m7vEbX1ACYchcleiHK0k5XAV mLdqkrgY/5BT4Zkp7miTyRSS9IzVjlvusyX6hQxy8yRN1kb8gq99xyhW81TRbWVKt4YC E/D52PDhAsi/dJCwr56npsE6SbN7RlfMBohhVHAy/IbX09hqiYAhxAazMGJsicIWTIFm RB/zN+hj/G26N2+BKI0yi9Y5z7Z6NoZFAiWQ2oIwD6Tf0ZXovcu1ON2ZgkSNRnKRM3lD QbPA== X-Forwarded-Encrypted: i=1; AJvYcCVB+DoXYAPu4p0tqVrozfC5cahh6ZPj0S9REAI7NE4ZMQJTGoO79LD8/e223OBJPj3h3buq+LECsYNU@vger.kernel.org, AJvYcCVfa9Oig+UezGJ5pLQJqw6o0hMg1q8/nzcxSOOfK8t1H9mgjVzJcxeYGvMDd2gGnD0J8M7u/++DJyXTLLu3@vger.kernel.org X-Gm-Message-State: AOJu0YxfubCjxMlsQE0gwq1LKnyPHaDSaWxj/0xmZVGzSS5tNCXo7uaI mNA/WD9rLtzwryi2aUUeiIPlTIscnyxcrdTvWuUl8u6sOdXNornX X-Gm-Gg: ASbGncsBcvuWuxLMJM9aL6Rkjdk7oP2JU6PGWaVNkAU2DEUxkHB04Fx+5OtDD/6j3v2 x4hLtkP2T2FbnBSxNV0WErt3lG8357gE0JxbLwFaT/Za2yq9LAPPpmIyYnnZihnqvhmghwvn3X1 qdEYOQm95ZW9uEvfzKF0zkOo5YJIUtR4Yjzisw3gfxTV1zErleOUI+A5jwjAY9Mv8fctl0VID1x 0F2uCpeRybnBvxWZ5CsJ/dtrunXN03yLo/YxImJHgfz3hfCuoQQFlaQeiqM6VNy6Rj9 X-Google-Smtp-Source: AGHT+IFJjj9F4dXNsBy6kw3+QYCWUsKYkEUj+Q4WLS4WR0HTA1qQwKaj+2crHZAGT7A5uyFQQuWvMg== X-Received: by 2002:a05:6a21:7e02:b0:1e1:f5a:c027 with SMTP id adf61e73a8af0-1e10f5adc02mr16461640637.43.1733061426284; Sun, 01 Dec 2024 05:57:06 -0800 (PST) Received: from localhost.localdomain ([103.149.249.231]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fc9c30e2d8sm5260617a12.38.2024.12.01.05.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Dec 2024 05:57:05 -0800 (PST) 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 v4 2/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add wifi node Date: Sun, 1 Dec 2024 21:57:15 +0800 Message-ID: <20241201135716.141691-2-lujianhua000@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241201135716.141691-1-lujianhua000@gmail.com> References: <20241201135716.141691-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 Reviewed-by: Dmitry Baryshkov Signed-off-by: Jianhua Lu --- changes in v4: 1. pick up Dmitry Baryshkov's Reviewed-by 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 Sun Dec 1 13:57:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianhua Lu X-Patchwork-Id: 13889488 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 CCA901D27B9; Sun, 1 Dec 2024 13:57:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733061441; cv=none; b=LtnwJ3HwAQ0KNNcFRq/3pZTQC9gF5pmw+qj5fu6rvi5C2ynbyHYAh+Ok0TgBvu1afRABXBJ3DX3OjWq+myMnQsFT8k2fRTDjXU3zuG0bmxKsZfblTcZT/6Rguky13GYGmRGbZU6Igu0u1U/mdzut1KZgkJuquY9gLFmPggDrOWw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733061441; c=relaxed/simple; bh=iGOS0BxMkN+goOQ2G0G1bCT84brcDpqwOAacbt0Gs+I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VNqYFxvmlKlVDCP6yKNaSuuvTF5T4x5Wlzg1W5vlK6rqaYIWlJNI1yxz9nU4pJODz7GJd4lCLmSOZVIeZ4g0eIihIOwnRVRq87DbGRDHQzzBXx2hfPf3fS2nGfVzCz6t6DXsHd3W0aZdOh7MtXV2jlSHAI540AMTZGCzThbQJ8I= 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=ER99qdtM; arc=none smtp.client-ip=209.85.210.171 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="ER99qdtM" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-7253bc4d25eso2160429b3a.0; Sun, 01 Dec 2024 05:57:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733061439; x=1733666239; 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=zSi63laDVLde5pIwB6wSgBpmbCeHCRHr3UINQDkHQJQ=; b=ER99qdtMi4kEWHLJgiUVFP85qnwXkRLUOaFcPG2n+0SpKyqaRW43NFGwnkI+sj5nlQ w8RbFmCjIyNDifbd2lhyTjMyjrmqoPjwqxaOtQI69D7PkN9Ud1JrcL3uflyvLv/iPPrq iyHtOyGqFuG9yfqDBK9z9zuFpzghr7c4gUpeJIoyBrHyQ/veCKHjTEGbPEIGnTcXyiun 0TsNKTGiWooLWtR3lZl54eEmiz/IGsCORtKcnWy7t1YkCpGFuwMxs9ygoGevCb4phfug CvQabfX0LTnR+smTKsVOXx/5Q6ak1CtXn1l1IwuHlXLeegjKEU1J8HQQzTWfIHNLFztq j5cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733061439; x=1733666239; 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=zSi63laDVLde5pIwB6wSgBpmbCeHCRHr3UINQDkHQJQ=; b=IgDM9sff5tHX+C2hQY5KKM1CNGkhGJP6NfN3R5b13Ms9amRtrafSWCW812sEjbsCHS oQd1N/COIyYYP4wJw2HLzy0vxHI/WETgxRV+0oUFG/YXDmRXepA77UYX+awS4PFzYDP0 moOlfbrIf7xKG/Jvz8NwcaoGnb2tt4Od4Qsv5dGll8pC79OnDcdV/nDbUo2+ACvdjzz1 2exc9EhpgdyCGeHn9rzZ2sNO7SBN4aWY8/E8bNZcXPf6+ilf0x1heCn0SaMler6GsAES CBMvwnKvg4pxEizFxalrEe1S3s0NaVHbeMRT4OncR43hDJhMC4VzRPz4VDVhCnBl/oMZ gHdw== X-Forwarded-Encrypted: i=1; AJvYcCUoe5UYx54xG9jwlcFeFGGVnvXCIlfr10J1h1Hf2x8+ahXkd+4E1BfRY1O6tZPUBbIbCI3qs768MJ0f@vger.kernel.org, AJvYcCVT4sh43dyNYzunYUjqnblBaj0oVBuFa4bmTq8uKtosBLm8NxHVe5W8Ltn4Od70oNwcVBrKC6EhOFUCrx1s@vger.kernel.org X-Gm-Message-State: AOJu0Yx7tQIgNLEGvouGd/wCtjXi+8RYJn4w03zgydlvJxtRYLTZXbHW uo9f+Izy/H34HShpg9mFfMbgGnMK4f+SbA8QKCz26yk+iSkGWptB X-Gm-Gg: ASbGncuU66IAISxcwSwrHZBDZaKx19aDocwzy36uQFWBu1arTPd+7vWmT3Fcs9E3ror h6R+a9XfAiUWjiwfNNVbsnPLFnqbIFBoe4PpGjod/1piV96dsRDIYJuwpo9msCIj3WzfoQ1JbTM kc43gJ2ubiwWZBVDoxO87o/Mim9E/Kf09oUO10qzOqquB3gN1PnD3UIwi6g9tSi5yH2gHgP3LPy 9fXe6PA31zHGyJ96liR6qHOGOFp06c31NTkCx1wuAOP9qaaJGJ7yYN2TtEa2VRvEbzP X-Google-Smtp-Source: AGHT+IFaEuhkU4qR7aHB0uV1Ch6t4H7GsWfvPfZ9GTPabcTVWYOp6CJKYF0f3EY1mkzg2xv4eosLWw== X-Received: by 2002:aa7:93b5:0:b0:725:3fb5:5151 with SMTP id d2e1a72fcca58-7253fb5528amr18770034b3a.12.1733061438923; Sun, 01 Dec 2024 05:57:18 -0800 (PST) Received: from localhost.localdomain ([103.149.249.231]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fc9c30e2d8sm5260617a12.38.2024.12.01.05.57.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Dec 2024 05:57:18 -0800 (PST) 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 v4 3/3] arm64: dts: qcom: sm8250-xiaomi-elish: Add bluetooth node Date: Sun, 1 Dec 2024 21:57:16 +0800 Message-ID: <20241201135716.141691-3-lujianhua000@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241201135716.141691-1-lujianhua000@gmail.com> References: <20241201135716.141691-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 v4. 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;