Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1094520rdf; Sat, 4 Nov 2023 06:24:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1n8W/6LF9YGtBgQtUeUx+f6amCRS1YMAyFz6WMjZRFIMAg6OGitAuE+8U+rdJsW7DSn6y X-Received: by 2002:a92:cb42:0:b0:359:4223:5735 with SMTP id f2-20020a92cb42000000b0035942235735mr10473427ilq.8.1699104253663; Sat, 04 Nov 2023 06:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699104253; cv=none; d=google.com; s=arc-20160816; b=xWNEVTtM/MMzWj7+1G9hErktLtPM9BnW//42q9b/yolZckxAe6qVDZM78sps9/W+yG HUeUsSF1ROR1sJhPW/jdlsQl3iskWjb9lv8TeE3d9//KR6+0NTZyQuyAlAZf/RgIzZqr FIMrxCT5VsV9onepSDdyhR0yU1zUBJMwdo9kiJI7ArcFQqJLVuEhMHTWz9lB3Cab4lei DAORDpJvLA+sz/p5qatOOgpsecErRglrsFR/i5rXl2ruXEeZI4gWDZu7Iy1Ev25Q2mzk YW2hITG8qpnPxJ9pjqup47dPfX9dsMjk4v1gqYrZtiLWQFfCjZ3b9k/c1D9hkV1iBqXR FOrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ihpTO3F03JzgacnLk5uBUsxe1t+WyOgXLtjj9fTyAZY=; fh=cU+ro+xkfZa0Y5zcPBRPuruJOySevrLWm/I3kVcdohQ=; b=uvY3+kka8otZXf6+EFEBt4fBq4s9DiwmrjPCIqfN95LBDz/difrZ1h2lCTqePq2bn9 DElIlCUZ1lquw4wgBe/YWYutTXrfCHIOQuhu6kzsLjhoSbKgtT/y2GVmPNYNqeUphHN5 h06p3XlX/ccPRLd/N+BochbrCD4l86fiMbvh2ts1pZXh6GX6batwMFDp1qMPkFHK5Ive JgX5MZZyosrSO5kdeTojjCEL252d9/SqcYRGC6jvRzSorEwS3pGoABWZAx33B8WCZhNP 61EMVod1d+l9dxOX0WYrYdppwgiO8hmbMo6/n0hNYKOMMjcrzt5+O1cqxucQX5iMCqP5 ODcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="c/cnOscc"; 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 Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id fc14-20020a056a002e0e00b006c386ea46f0si2500470pfb.1.2023.11.04.06.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 06:24:13 -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="c/cnOscc"; 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 694C3815CD81; Sat, 4 Nov 2023 06:24:11 -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 S231473AbjKDNX6 (ORCPT + 99 others); Sat, 4 Nov 2023 09:23:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230151AbjKDNXz (ORCPT ); Sat, 4 Nov 2023 09:23:55 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35C4B194 for ; Sat, 4 Nov 2023 06:23:51 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-d9a3d737d66so2735765276.2 for ; Sat, 04 Nov 2023 06:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699104230; x=1699709030; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ihpTO3F03JzgacnLk5uBUsxe1t+WyOgXLtjj9fTyAZY=; b=c/cnOsccQ/fIrrcu/GNkooemVtQ1f2i7DGtv8dQQV+NN9/XTL0G5H7Z/byj7AtAGTg Nh5tNYpfeGxJl85qM9Ys5nybvZr7KA12IazlA2UDDOCvIVw/HMSskEQMDZXoQgy5JIUk A/R+AMFDzknrYWqSJF10Pk5FomwgdopsorBLidqxKi/puBx5zAD7wmGqJniXHBgq3Tvg XdoXng5jXbgwjWjd/0Uv7gHyXaRbTdhABSt6p/eyC2trhkHROlKBR4DydXN+YBdbBl+g tvei06BmxZslptmqnhc3kBqvNuQ9qnJsOdbBo+009iefbA2KhfmYXOhAI38niKyqnOnP MXWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699104230; x=1699709030; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ihpTO3F03JzgacnLk5uBUsxe1t+WyOgXLtjj9fTyAZY=; b=Ib+QExubZsBT0+9R35w4PIMqbq4VXirO8ULSIqlqRqwNU9phiM1G44pGrAoajBYveB QM0QZvVHthkF+tm234K+S3/YL/xqyHDTilCAH+dp5R3X8+FJgDiaguI73sDZtZNOZjyY ca/2OsuW2HLBp2CAwDBmsqBiBQHOJERWdVM0vH+blZLOBaFQirmjBayPEk/z05I54/5x WkXCbaEhlpI9iGKTh5MnPg9hXz91h5ors/kKIlyEWfWgkeJUsiIIcob3phD7o5sGV/If pyqqjoTRJGWHe3IFL44CBALXvCDMcpC8QlofgoIceI5qZ2+d3PhOR2eobAuxYOEMpDVP UMqA== X-Gm-Message-State: AOJu0Yy8/87L9WKyRjXzfuTGM/KvQtcp6pE3szExuuCq6JnzyRbcHWFU A8tGJfJv0Z++SVqjs7BrsiuoyHud2q7Xe/RXK+KATw== X-Received: by 2002:a25:dfc7:0:b0:d0f:846c:ef7b with SMTP id w190-20020a25dfc7000000b00d0f846cef7bmr21101785ybg.17.1699104230336; Sat, 04 Nov 2023 06:23:50 -0700 (PDT) MIME-Version: 1.0 References: <20231027-sc7280-remoteprocs-v1-0-05ce95d9315a@fairphone.com> <20231027-sc7280-remoteprocs-v1-9-05ce95d9315a@fairphone.com> <12ea48bd-5022-4820-815a-89ef23ec9385@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Sat, 4 Nov 2023 15:23:38 +0200 Message-ID: Subject: Re: [PATCH 9/9] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable WiFi To: Luca Weiss , Kalle Valo Cc: Konrad Dybcio , Andy Gross , Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , cros-qcom-dts-watchers@chromium.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , =?UTF-8?Q?Matti_Lehtim=C3=A4ki?= , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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]); Sat, 04 Nov 2023 06:24:11 -0700 (PDT) [Added Kalle to the CC list] On Tue, 31 Oct 2023 at 12:31, Luca Weiss wrote: > > On Mon Oct 30, 2023 at 8:26 PM CET, Konrad Dybcio wrote: > > On 27.10.2023 16:20, Luca Weiss wrote: > > > Now that the WPSS remoteproc is enabled, enable wifi so we can use it. > > > > > > Signed-off-by: Luca Weiss > > > --- > > > arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts > > > index d65eef30091b..e7e20f73cbe6 100644 > > > --- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts > > > +++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts > > > @@ -713,3 +713,7 @@ &venus { > > > firmware-name = "qcom/qcm6490/fairphone5/venus.mbn"; > > > status = "okay"; > > > }; > > > + > > > +&wifi { > > > + status = "okay"; > > qcom,ath11k-calibration-variant? > > What value would I put there for my device? Based on existing usages > (mostly for ath10k) I'd say "Fairphone_5"? I think this is fine. > And you mean I should add this property in dts before even looking into > the firmware/calibration side of it? From my experience some (most?) of the device manufacturers do the wrong thing here. They do not program a sensible board_id, leaving it as 0xff or some other semi-random value. The calibration variant is the only way for the kernel to distinguish between such poor devices. The kernel will do a smart thing though. If the device-specific calibration data is not present, it will try to fall back to the generic data. -- With best wishes Dmitry