From patchwork Wed Sep 27 09:21:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 145354 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2597956vqu; Wed, 27 Sep 2023 05:39:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUNwwWqqiw96RLcK24FOe0d1IwfDoT7h27dq7sXDgOVI9W0pCTnwkd7hehkSeuEIriXmU4 X-Received: by 2002:a05:6a00:2d8f:b0:692:af9c:d96a with SMTP id fb15-20020a056a002d8f00b00692af9cd96amr2138631pfb.5.1695818378746; Wed, 27 Sep 2023 05:39:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695818378; cv=none; d=google.com; s=arc-20160816; b=mfK3OLTzNbve+UrxAUPR6CbWrEsZmEa9UDKHXM97JmRFnyOVFm0GVAkWlN5F+QsvJ8 QCHYl+cc9hnUY/cENNX3eS7siU4behqmddXzq6Wm+ZUePYPIAwPlpOGvbzgr3bikFk8O 8B7sMzNm0V+BptYdcE24ab3w5haSryK23Dm4BTZrnm6+qjuFyqDU4CBSAzwNJ5kVn8YO UDMcqTX7mN5XsqS7e6WN1t7xc5FQOiTh38rB0V+3leh32/1htUrHM3VumuLkK/IHgljf fH0H3yFWj+JYXJH/xL/JE+tPl9Jp8wXMZ8kngfz6llibGFZNkqzHyLG9GXGjEaswUYYQ TqNA== 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=VOmdtpYYB0nH1RKOD+w6l5qeav03+l5rKiJiUIHP088=; fh=eHG+RAOcICnzA87RuMie1IWZNGQb3hwEDg6Yr6gwrl4=; b=LyqMrDwla2vcyfYbtfvOciU1YLlHUsYFHPOy5Leyj9RLpCUB6NAfrcPWM48/RKBVdB BPRm+ft2mjP15tGI2XdU8ikp935bAs+rdabOPuoKDCEnzP9LU42DGZBtJ7iz3N75e0td 1pkMhxVduQleFq5kWpofgVCLGtyv6YD63XeTvQTMmww78wNlogHG9bV2boxRs2jUZ4Mp HzNaPdMI2i1gfSr4XAa5DAHcB3HqUAY3sl4xMaFp+jP4NdWYeO+eodCq8jkXqXUJIG0C oI9MSrmT7i7HWz67QWcyDDlcuDaVkK28m5e9IMcnGkm6jWUw1Wpw4oYRVFzOrbmj/BtV 6oHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M5gRVv4+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id 69-20020a630048000000b005775e13a6b9si15078619pga.363.2023.09.27.05.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 05:39:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M5gRVv4+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 2A40E81552DD; Wed, 27 Sep 2023 02:22:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230468AbjI0JWI (ORCPT + 24 others); Wed, 27 Sep 2023 05:22:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230392AbjI0JV5 (ORCPT ); Wed, 27 Sep 2023 05:21:57 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69947D6 for ; Wed, 27 Sep 2023 02:21:55 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-99357737980so1323100366b.2 for ; Wed, 27 Sep 2023 02:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695806513; x=1696411313; 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=VOmdtpYYB0nH1RKOD+w6l5qeav03+l5rKiJiUIHP088=; b=M5gRVv4+NqcVxYyUvo6kB3CdD7xEYqJNFSND8fzvyNdAVO/WRcEVtmQxmf2srbLPlF o8/jQ4egb5swL23aRG6c5+gWlaNw+NWy/UBGqjCWdgHWedDoqg/o0O1hjgdbBvLEamri CW5WiqNnTH2G9UF38rBiokjQVdD6GBqVfVfqc20oFrUYKVeXjGGUwyG/Tkb5XZh98oLA 6kezITqvUZvFgpclB057XBujf/5xNa2/EbgbzsMlXmJo/+btKj++0blhxnaqC6m5qy8h UQHymDnkfTl2Vc8TxRvWLGvxB/LbfUlYN6h5DG9RpYWs/ci+ArzNxfUZktfFbP9gkyWw Dpsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695806513; x=1696411313; 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=VOmdtpYYB0nH1RKOD+w6l5qeav03+l5rKiJiUIHP088=; b=eq8IoJ3lFKcmtADR+EZZPiv1ZDPU9bFf8MfL5M8Mjsq+VuqY//kTONEO8xkjRVHMv/ X0N+EZMYSH6Pa1JZtutrlhEkP9KE0Q57ntdTc0X+5D4b0YECo4HiOHPV3/ZZEzBINWgN vpDCPDaGqgwvgcXTek2V4bmejg1+lM/kyEktZkWiSxXcnV/SD9sGIhLdYGRXGsL5wU8M zzovRPnozssJoULfb0VBqW6MKaIqPvUW+bRxcxVq328D/9jz0R2q0rMy/SWm+6b6ifEv L3HbsvSJCPpA5oaP8kAdT/FUZ+8rqtyAEk8Jbe2RPYaYxNg95Fj+HszWm/OQy758SOy2 aszA== X-Gm-Message-State: AOJu0YyBX7g21xeqkE1JnlwrWKgR8NqscjdeEb2AiOO9NB4+c7qKlfXx cQI1WUVobTXH5CeHwgj63HYcWhrQyr85voXbz1ALRA== X-Received: by 2002:a17:906:454d:b0:9a5:cbb2:3fab with SMTP id s13-20020a170906454d00b009a5cbb23fabmr1215634ejq.2.1695806513795; Wed, 27 Sep 2023 02:21:53 -0700 (PDT) Received: from [10.167.154.1] (178235177023.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.23]) by smtp.gmail.com with ESMTPSA id qq23-20020a17090720d700b00993664a9987sm8948574ejb.103.2023.09.27.02.21.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 02:21:53 -0700 (PDT) From: Konrad Dybcio Date: Wed, 27 Sep 2023 11:21:42 +0200 Subject: [PATCH 3/4] arm64: dts: qcom: sm6375-pdx225: Enable ATH10K WiFi MIME-Version: 1.0 Message-Id: <20230927-topic-6375_stuff-v1-3-12243e36b45c@linaro.org> References: <20230927-topic-6375_stuff-v1-0-12243e36b45c@linaro.org> In-Reply-To: <20230927-topic-6375_stuff-v1-0-12243e36b45c@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , 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=1695806508; l=2599; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=dBlzjBm5zbQ1AFa5JfUYhZfkMAGM+ne2VSqV4/lI2ig=; b=p4R0VYkY5NDJzTfJ17AMssz81CZVG8zMBKFvQLMhPtklHVhHKHcLr+PmFEHREDCZlw1vaLgdZ 5HH13PNqc6zACb6y4Tr7K7iVlo2UNPyZ5XAg962ZoCvo7go3Ughdyxj 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 02:22:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778194452040130502 X-GMAIL-MSGID: 1778194452040130502 Enable the onboard QCA Wi-Fi. HW identifiers for reference: qmi chip_id 0x320 chip_family 0x4001 board_id 0xff soc_id 0x400e0000 Firmware sources: /vendor/firmware_mnt/image/wlanmdsp.bin -> qcom/.../wlanmdsp.mbn /vendor/firmware_mnt/image/bdwlan.bXX [1] -> [2] -> ath10k/.../board-2.bin [3] -> ath10k/.../firmware-5.bin Not sure where 3 comes from on the device itself, gotta investigate that.. According to [4], it's called WCN3990_STRAIT. Enable it and tighten the relevant regulators. [1] XX = board_id printed when the file is missing or by your downstream kernel firmware loader in the dmesg; if XX=ff, use bdwlan.bin [2] https://github.com/jhugo/linux/blob/5.5rc2_wifi/README [3] https://github.com/kvalo/ath10k-firmware/blob/master/WCN3990/hw1.0/HL3.1/WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1/firmware-5.bin [4] https://git.codelinaro.org/clo/la/platform/vendor/qcom-opensource/wlan/qca-wifi-host-cmn/-/blob/LA.VENDOR.1.0.r1-20700-WAIPIO.QSSI13.0/hif/src/hif_hw_version.h#L55 Signed-off-by: Konrad Dybcio --- .../boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts index 964fe86a18ef..bbec7aee60be 100644 --- a/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts +++ b/arch/arm64/boot/dts/qcom/sm6375-sony-xperia-murray-pdx225.dts @@ -311,7 +311,7 @@ pm6125_l20: l20 { pm6125_l21: l21 { regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3400000>; + regulator-max-microvolt = <3312000>; }; pm6125_l22: l22 { @@ -322,7 +322,7 @@ pm6125_l22: l22 { pm6125_l23: l23 { regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3400000>; + regulator-max-microvolt = <3312000>; }; pm6125_l24: l24 { @@ -345,8 +345,8 @@ pmr735a_l1: l1 { }; pmr735a_l2: l2 { - regulator-min-microvolt = <352000>; - regulator-max-microvolt = <796000>; + regulator-min-microvolt = <640000>; + regulator-max-microvolt = <640000>; }; pmr735a_l3: l3 { @@ -433,6 +433,15 @@ &usb_1_hsphy { status = "okay"; }; +&wifi { + vdd-0.8-cx-mx-supply = <&pmr735a_l2>; + vdd-1.8-xo-supply = <&pm6125_l16>; + vdd-1.3-rfa-supply = <&pm6125_l2>; + vdd-3.3-ch0-supply = <&pm6125_l23>; + vdd-3.3-ch1-supply = <&pm6125_l21>; + status = "okay"; +}; + &xo_board_clk { clock-frequency = <19200000>; };