Return-path: Received: from mail-qt0-f195.google.com ([209.85.216.195]:44367 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752868AbdLHKh4 (ORCPT ); Fri, 8 Dec 2017 05:37:56 -0500 Received: by mail-qt0-f195.google.com with SMTP id m59so24842747qte.11 for ; Fri, 08 Dec 2017 02:37:55 -0800 (PST) From: Sven Eckelmann To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, ext.waldemar.rymarkiewicz@tieto.com, kvalo@codeaurora.org, Sven Eckelmann Subject: [PATCH v2 0/2] ath10k: DT support for ath10k calibration variant Date: Fri, 8 Dec 2017 11:37:40 +0100 Message-Id: <20171208103742.3181-1-sven.eckelmann@openmesh.com> (sfid-20171208_113801_517745_37824C42) Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Sven Eckelmann Hi, here is the second version of the qcom,ath10k-calibration-variant support patchset. I think the ath10k patch describes these changes the best: Board Data File (BDF) is loaded upon driver boot-up procedure. The right board data file is identified on QCA4019 using bus, bmi-chip-id and bmi-board-id. The problem, however, can occur when the (default) board data file cannot fulfill with the vendor requirements and it is necessary to use a different board data file. This problem was solved for SMBIOS by adding a special SMBIOS type 0xF8. Something similar has to be provided for systems without SMBIOS but with device trees. No solution was specified by QCA and therefore a new one has to be found for ath10k. The device tree requires addition strings to define the variant name wifi@a000000 { status = "okay"; qcom,ath10k-calibration-variant = "RT-AC58U"; }; wifi@a800000 { status = "okay"; qcom,ath10k-calibration-variant = "RT-AC58U"; }; This would create the boarddata identifiers for the board-2.bin search * bus=ahb,bmi-chip-id=0,bmi-board-id=16,variant=RT-AC58U * bus=ahb,bmi-chip-id=0,bmi-board-id=17,variant=RT-AC58U The discussions to the old submissions can be found in: RFC: ==== * https://patchwork.kernel.org/patch/9613615/ v1: === * https://patchwork.kernel.org/patch/9615183/ * https://patchwork.kernel.org/patch/9615185/ Changes since v1: ================= * check the return value of strscpy and print debug message when buffer was not big enough (I would have preferred ath10k_warn but ath10k_core_check_bdfext disagreed) Changes since RFC: ================== * Split patch in DT doc and ath10k part (thanks Christian Lamparter) * Remove the words "bmi-chip-id" and "bmi-board-id" and replace them with more generic "device specific ids" Kind regards, Sven Sven Eckelmann (2): dt: bindings: add new dt entry for ath10k calibration variant ath10k: search DT for qcom,ath10k-calibration-variant .../bindings/net/wireless/qcom,ath10k.txt | 3 ++ drivers/net/wireless/ath/ath10k/core.c | 40 ++++++++++++++++++---- 2 files changed, 36 insertions(+), 7 deletions(-) -- 2.11.0