From patchwork Thu Apr 6 15:25:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 80327 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1124211vqo; Thu, 6 Apr 2023 08:46:55 -0700 (PDT) X-Google-Smtp-Source: AKy350Znxn5iA0+oXrdRm6vBNEeIs5yrlHevMCaayUPI3wvpx0hgovMTPNBBSLZOV8r0Bieyu2Zv X-Received: by 2002:a62:1d8f:0:b0:627:e577:4326 with SMTP id d137-20020a621d8f000000b00627e5774326mr9308114pfd.17.1680796015105; Thu, 06 Apr 2023 08:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680796015; cv=none; d=google.com; s=arc-20160816; b=wSOe23g480Uvflr19lu0JW+nPYIcJIsq/cXrV8aAUO/aMpDeGabp08B+BZK7vVzZxi QOMZP/3fpPGFtWfWoDyAZ5Kt4DwX7BkGw853nbU7bzgfSYsqbD2m4e9kT/RpmaDdEEZh wAiyYhraexFuzonYY6Blrj71lLQT6a9lJldEM5LKssefBZLXRHSkla1an1OLI+iQErcZ 7qOGIBBnEKAWNiVz81Dg8lLYosW2AmHhZFD4r7rMCZAkW4r09OhlwkF62gxXUavQzUrh PRhlWtiwECL90jrDCBQSfcDdYJy9w18Vox+KnOyth+xTTKwFOCGm2cV296sJ7c2pG5o1 tErg== 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=h+aLAJdi57MkIHAk4AWHzzmjKf179Xo0Z9hPjbhZ5GY=; b=f/euwM5/U2fa5Rspsbum31Zu5hRNKwjUo4SCoSFPl6zIG0UEygnxgLACYVN7AZy+PS 2vGF53X3z2/yXgqyrW3ibl+yOGN/4N3kUP4zHYHKUOygnv90BlyeE9OvA6PrkhARcnTi KawIeIo6ero9NbJIoI9DOQvm535xTQGh9H+y4VsenZ1Kaq+HgVo6C1I7oESZrN9BBmka EZRd4LQPbXi9aFeCQIkaSZ/PMpmf7ZcrW/7yt8G2nJI61QVeGGP+nOiTAZnhq88ioWKS Qee/LkB49YtSZF5ZobDMmxyht9AdMIP3VUa885fp/MucsBJbSQgGu6jbh+5aezNisLsH Zsaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vXmzd7o/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c24-20020a631c58000000b0051367d9cf70si1551896pgm.93.2023.04.06.08.46.42; Thu, 06 Apr 2023 08:46:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vXmzd7o/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239671AbjDFP2s (ORCPT + 99 others); Thu, 6 Apr 2023 11:28:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239720AbjDFP0K (ORCPT ); Thu, 6 Apr 2023 11:26:10 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AB0D7EFE for ; Thu, 6 Apr 2023 08:25:58 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id c9so40867279lfb.1 for ; Thu, 06 Apr 2023 08:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680794756; 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=h+aLAJdi57MkIHAk4AWHzzmjKf179Xo0Z9hPjbhZ5GY=; b=vXmzd7o//II0DtLBliD/Cd4YPIy37kAjJcHbAQteg80mPSYB7Fw1EOEM1480ywgr1r Yj8Mc5EqZ3NCoGpJFeqpZkzvWTWYfiJo3GZmYeikzok6CP0CR+5fGMr3DP6ee31NIfDb CahU+uRT6ycDKlv8XD7FFdY69MQDA64XoiKS0xOtNKI57G7APIsmO0jDbKF8pucFjuTc f/LMMRYZq70wJKLx6dzEgnjVadKQY4DUN0eIDbnaLXNMzK+jrFxJMNZ4AIWDE5GGF7uN 6r23e8VAAVJFGZpE9izmbG4R60NUCxapaiz9S05KWGTN9hTTQx7DqurwNOHoey0fiCE7 c30Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680794756; 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=h+aLAJdi57MkIHAk4AWHzzmjKf179Xo0Z9hPjbhZ5GY=; b=8M/11pfY6J94JPGhnkkg/ruN/VqD1ZzFOTTqV77IeOh5VHAg0YqhU4CLaZ5uY6dZL7 dSUDjNq128ZyDoxUSHj4ayFlo+vobsYxPxNG7DI7xCyIPfT+sQuWsUIubSx7zkj8CpwS fzYZMtokB3Ntmp0DITqcQ9sRh8v3rgGh9U3ZhhjJLAFLquP3PYlffjhoZaT9Y3qSLxpz yZRuPGcSVQZ/0NQqXJbzuV6abKcODm/nRdfw6dRtFk8GNJvHx1yVld11k2o7QK3dyHvk HnIhYKdzplcBnMo7qrMUYVbeoLqtPHJmNvKfb94s5pWypki1mk7LxczmorYzHZpuqSFl 1RcQ== X-Gm-Message-State: AAQBX9dPS5jvtN9D1Bib/J1XOouOCOi/UWa2XXmCb1TaZ4MCQMyZsc1z 4x43F6HqV1gBqx7LyzHrYsAYug== X-Received: by 2002:a05:6512:3e0a:b0:4e8:3d0:84b4 with SMTP id i10-20020a0565123e0a00b004e803d084b4mr1717667lfv.24.1680794756662; Thu, 06 Apr 2023 08:25:56 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id h4-20020a197004000000b004cc9042c9cfsm300103lfc.158.2023.04.06.08.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 08:25:56 -0700 (PDT) From: Konrad Dybcio Date: Thu, 06 Apr 2023 17:25:53 +0200 Subject: [PATCH 4/4] arm64: dts: qcom: sm6115p-j606f: Enable ATH10K WiFi MIME-Version: 1.0 Message-Id: <20230406-topic-lenovo_features-v1-4-c73a5180e48e@linaro.org> References: <20230406-topic-lenovo_features-v1-0-c73a5180e48e@linaro.org> In-Reply-To: <20230406-topic-lenovo_features-v1-0-c73a5180e48e@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Kees Cook , Tony Luck , "Guilherme G. Piccoli" Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1680794750; l=1711; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=c+mfIUkIT3IWXbGjBUEX4H/q5dNkCi4IImmpojiqHv0=; b=36xnqFLl8WgGGY28BOulgRIS3xlFkVHwOuSSnkFCFyQYtEGlx0PnxuZQfPOkJjbl77W8FiK+voH8 zfR8LwosC5kiFdkLG6NAnj5pW4JOFrzVdW/fDtWJt6QuQBjyFvz6 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762442362098686896?= X-GMAIL-MSGID: =?utf-8?q?1762442362098686896?= 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. [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 --- arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts index 2aac25171dec..4ba8e59a27d8 100644 --- a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts +++ b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts @@ -315,6 +315,14 @@ &usb_hsphy { status = "okay"; }; +&wifi { + vdd-0.8-cx-mx-supply = <&pm6125_l8>; + vdd-1.8-xo-supply = <&pm6125_l16>; + vdd-1.3-rfa-supply = <&pm6125_l17>; + vdd-3.3-ch0-supply = <&pm6125_l23>; + status = "okay"; +}; + &xo_board { clock-frequency = <19200000>; };