From patchwork Fri Sep 18 18:11:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 11785599 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1730E746 for ; Fri, 18 Sep 2020 18:11:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CA9AB20872 for ; Fri, 18 Sep 2020 18:11:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="xQ5PZftz"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="S4Y6ud2Z" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CA9AB20872 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=9Sa/JBMg36Q1BIC5P7zANoIpclcSfBEkFi5PNPMX2Dk=; b=xQ5PZftzoWuiRcAEDtwBw5rY4n HBPDzbOuJIC5KIiVXS4mlNED4xqROGdh3NASNiSYhWYf4QfmpcDKhoLtSfT7DKfPbWCeRDb/5lK8z 8Fv/1dMvKfn9e3Szn/WgLx+Tg6LDqz4WgAtPGU8lufhh3FrhOYhP/GxoRo65JA7VXsLcQ5isGx5GK nktlFxgNUh4Nan3KFjVExG3eLDiW0u7LJKn5XR+r2Mbobgfxlug//V+GLWflt26qfy3J72xJKlNt9 Ny9tOF8V5/m0TpQJk4sC5MK6emW8FIbo0Iu5RTnh9O2YFSZ8l033nqlx0QiEM3DTozVdeFII3zBMM 5mpKCHkg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJKqx-0003mi-Qr; Fri, 18 Sep 2020 18:11:23 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJKqv-0003mD-0W for ath10k@lists.infradead.org; Fri, 18 Sep 2020 18:11:21 +0000 Received: by mail-wr1-x442.google.com with SMTP id g4so6519348wrs.5 for ; Fri, 18 Sep 2020 11:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=twRz23yZf6eaE9M3zNCtvW7DmmvSIjcDQenkIUopmbg=; b=S4Y6ud2ZBuiNBfodRimnKH85TE0+PFc5f3cog7e4FVcUntBRrs7tGEPJcdTFRI7Mbz +4eyv0HcDOcIjSmmJGv15O6t9+s0mZ1GNXWxk+BGmI7SYse809qyAtUMHXoBClkQjXk5 Hdkme0ql1qKGWsgqBw6ueZflGMwuK0lzowEbwuLod0bZp0vpOA6ylZzVdcUmAyplYEhA F5ckIjFJJNqt8S5Lx38vbvm1AMCBgTRd8ne7SVdvM1ZQbI6Zq2SOQ3zla/Fv1sxcP3G6 0r1qQ+L0Xr55XBFwCJOimd403Db14GfW5a3iDH/H4Hk1KEmKW1DzQBoZvpHkZ7g+1uuo wpKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=twRz23yZf6eaE9M3zNCtvW7DmmvSIjcDQenkIUopmbg=; b=bvqerh1l3ljWyOMcN33fcbjXlUtsC3rZZZyStrs8LAFNUZDLW5O7lAQqzhn+HwQSV/ FvmVH+AZsnZ4TRRoxMKUYRcUgS35U9EVQbpl7l9KFGs5oVJ9oNh67G2wjUIrZVeZkzHz Bgiayw+4M+0UVA52hVgi+1kJmYGppFNxO10lCmRSYngyoO3bpRWRTGDAXvzKjOoWWv/D 3qxAg84zfQeInThcJvKyzqM4an4rQZThYsWxtmBMKn/G7MCQo+/4fLDJ97t08sHxBJXv x7kmt9RtLUuhysgYnUDqpBzBK7GYuHv8ELz04rpcmJZ1XFLiL69QRDNrSYdzopGeMT+i 2IcA== X-Gm-Message-State: AOAM53247pndn8SXHvRdKVx1gHjPfJa3eKfqmTfwikugpnJbdnaPR5o8 SytmVX1T54GS437kLnM/Z4cONWtwH/I= X-Google-Smtp-Source: ABdhPJz5qboAe0D4h6LRiEVeOh2FCp/s/l8p0s+SXu1AFjTZGn2GAcz1R/ZFOtnUnFQVkFBj/Mbk4Q== X-Received: by 2002:a5d:4a0e:: with SMTP id m14mr41490284wrq.313.1600452679871; Fri, 18 Sep 2020 11:11:19 -0700 (PDT) Received: from Ansuel-XPS.localdomain (host-95-248-206-89.retail.telecomitalia.it. [95.248.206.89]) by smtp.googlemail.com with ESMTPSA id f23sm21461466wmc.3.2020.09.18.11.11.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2020 11:11:18 -0700 (PDT) From: Ansuel Smith To: Kalle Valo Subject: [PATCH v2 1/2] ath10k: Introduce download cal from mtd Date: Fri, 18 Sep 2020 20:11:02 +0200 Message-Id: <20200918181104.98-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_141121_055546_6795106B X-CRM114-Status: GOOD ( 21.33 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:442 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [ansuelsmth[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ath10k@lists.infradead.org, "David S. Miller" , Rob Herring , Jakub Kicinski , Ansuel Smith Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org Most of routers that have the ath10k wifi chip integrated in the Soc have the pre-cal data stored in the art (or equivalent) mtd partition. Introduce a new function to directly extract and use it based on what is set in the dt if the system have mtd support. Pre-cal file have still priority to everything else. Tested-on: QCA9984 hw1.0 PCI 10.4 Signed-off-by: Ansuel Smith --- v2: * Fix missing condition for cal_mode in transposing source to ath repo drivers/net/wireless/ath/ath10k/core.c | 80 +++++++++++++++++++++++++- drivers/net/wireless/ath/ath10k/core.h | 3 + 2 files changed, 81 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 5f4e12196..d35abd16a 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "core.h" #include "mac.h" @@ -918,7 +919,8 @@ static int ath10k_core_get_board_id_from_otp(struct ath10k *ar) } if (ar->cal_mode == ATH10K_PRE_CAL_MODE_DT || - ar->cal_mode == ATH10K_PRE_CAL_MODE_FILE) + ar->cal_mode == ATH10K_PRE_CAL_MODE_FILE || + ar->cal_mode == ATH10K_PRE_CAL_MODE_MTD) bmi_board_id_param = BMI_PARAM_GET_FLASH_BOARD_ID; else bmi_board_id_param = BMI_PARAM_GET_EEPROM_BOARD_ID; @@ -1680,7 +1682,8 @@ static int ath10k_download_and_run_otp(struct ath10k *ar) /* As of now pre-cal is valid for 10_4 variants */ if (ar->cal_mode == ATH10K_PRE_CAL_MODE_DT || - ar->cal_mode == ATH10K_PRE_CAL_MODE_FILE) + ar->cal_mode == ATH10K_PRE_CAL_MODE_FILE || + ar->cal_mode == ATH10K_PRE_CAL_MODE_MTD) bmi_otp_exe_param = BMI_PARAM_FLASH_SECTION_ALL; ret = ath10k_bmi_execute(ar, address, bmi_otp_exe_param, &result); @@ -1701,6 +1704,69 @@ static int ath10k_download_and_run_otp(struct ath10k *ar) return 0; } +static int ath10k_download_cal_mtd(struct ath10k *ar) +{ +#ifdef CONFIG_MTD + struct device_node *node, *mtd_node = NULL; + struct mtd_info *mtd; + const __be32 *list; + u32 offset, size; + const char *part; + phandle phandle; + size_t retlen; + char *file; + int ret; + + node = ar->dev->of_node; + if (!node) + return -ENOENT; + + list = of_get_property(node, "qcom,ath10k-pre-calibration-data-mtd", &size); + if (!list || (size != (3 * sizeof(*list)))) + return -EINVAL; + + phandle = be32_to_cpup(list++); + if (phandle) + mtd_node = of_find_node_by_phandle(phandle); + + if (!mtd_node) + return -ENODEV; + + part = of_get_property(mtd_node, "label", NULL); + if (!part) + part = mtd_node->name; + + mtd = get_mtd_device_nm(part); + if (IS_ERR(mtd)) + return -ENODEV; + + offset = be32_to_cpup(list++); + size = be32_to_cpup(list); + + file = kzalloc(size, GFP_KERNEL); + if (!file) + return -ENOMEM; + + ret = mtd_read(mtd, offset, size, &retlen, file); + put_mtd_device(mtd); + + ret = ath10k_download_board_data(ar, file, size); + if (ret) { + ath10k_err(ar, "failed to download cal_file data: %d\n", ret); + goto err; + } + + ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot cal file downloaded\n"); + + return 0; + +err: + kfree(file); + return ret; +#endif + return -EOPNOTSUPP; +} + static int ath10k_download_cal_file(struct ath10k *ar, const struct firmware *file) { @@ -2047,6 +2113,16 @@ static int ath10k_core_pre_cal_download(struct ath10k *ar) goto success; } + ath10k_dbg(ar, ATH10K_DBG_BOOT, + "boot did not find a pre calibration file, try MTD next: %d\n", + ret); + + ret = ath10k_download_cal_mtd(ar); + if (ret == 0) { + ar->cal_mode = ATH10K_PRE_CAL_MODE_MTD; + goto success; + } + ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot did not find a pre calibration file, try DT next: %d\n", ret); diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h index 4cf5bd489..3ca158605 100644 --- a/drivers/net/wireless/ath/ath10k/core.h +++ b/drivers/net/wireless/ath/ath10k/core.h @@ -864,6 +864,7 @@ enum ath10k_cal_mode { ATH10K_CAL_MODE_OTP, ATH10K_CAL_MODE_DT, ATH10K_PRE_CAL_MODE_FILE, + ATH10K_PRE_CAL_MODE_MTD, ATH10K_PRE_CAL_MODE_DT, ATH10K_CAL_MODE_EEPROM, }; @@ -886,6 +887,8 @@ static inline const char *ath10k_cal_mode_str(enum ath10k_cal_mode mode) return "dt"; case ATH10K_PRE_CAL_MODE_FILE: return "pre-cal-file"; + case ATH10K_PRE_CAL_MODE_MTD: + return "pre-cal-mtd"; case ATH10K_PRE_CAL_MODE_DT: return "pre-cal-dt"; case ATH10K_CAL_MODE_EEPROM: From patchwork Fri Sep 18 18:11:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 11785601 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 428386CB for ; Fri, 18 Sep 2020 18:11:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F2EBE20872 for ; Fri, 18 Sep 2020 18:11:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="K5XBMJ1x"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="C5sqb2yx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2EBE20872 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QN4mGWccF3mrNPcvimh79g61jtiFwztzAJtkglCQBAU=; b=K5XBMJ1xbc56dmhcIN4aLESob O6WODOWgQA0oa31xCGo7zeOuFWBK8cUXBGR2Zr3JsS4kDjelqXM7AFUrEqxjMuRWtgDx++erfSqZT wyr0x1XFqqgJSTi4wJRJwqZEEZVxtTNCdpyEfOWd5N21TYVq9orGWw1mOf9e3tg1GafyqJCaYxyh0 DlWb8AmFHUnCpLqpci29yh+RsqEFWLUXXSXPAKvbe5Jt6cehosQOjcp/+tyVOhIaYl6y4Z731fhRU 4ShSM5G5gttUFlr17w1Pbt/H4EqGIUvMjQc9TevoGSKTNtsRshrc8mRoUpStp9Y+uxxXllyYZqcJc yFerz0+zA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJKr1-0003o2-0u; Fri, 18 Sep 2020 18:11:27 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJKqy-0003mf-14 for ath10k@lists.infradead.org; Fri, 18 Sep 2020 18:11:24 +0000 Received: by mail-wr1-x443.google.com with SMTP id o5so6505536wrn.13 for ; Fri, 18 Sep 2020 11:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+ALrwdNETU2MxK86SGthSKgE8MUMcPyrI0lP0CVqjQI=; b=C5sqb2yxcvsNocPhY2Lt3IwIlIROvFB5l5wNHYnGsMCGx9n+mMxLjFgVBddP5hBPCT yY3ecasFwG1FymqjnUMeSkZ/bEtd5QDDKud901OlHdDIdUhaPQHonwK7ECAeCD39iGzo 1ceBzNiaEq5YGLyRWnZ73Sycp6czdV7kbXa4acm1kpyvzNrzxkb9lDCiaW+tqRYxLugN WOxtIBRfR9PMygYkUZObTRnxLppsgc3A01wLrB2gKfcjPhbogE+ebXlgJy9hAmL9dswg WdZojnwDp94191WZEhe8+W5lPfw5iN/HT4g+o81iXlgjUdMAWKFwB689QEIYiagiFbxj mF/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+ALrwdNETU2MxK86SGthSKgE8MUMcPyrI0lP0CVqjQI=; b=eXA9mK+nnQdGRQ9ECTul6EKwJ7ky5dbrK7LtxRoYz7esq9VcnfMEgs0Ofcz+qMSfvs /n2QYK1Fk4wVBle479PrpEW/O5ZTmtKlJwHv0AOLZIodNwV9JYZ+ZkZjVmkYzYRCsCjf 0IPJlwSmSZRIubtlsysk0L3zk9r9vZ7VyCTnCTibo5tQeHbHt/G107y8Xs4hemD47sXc TJdU8hckraa1mip0z80Tj6yALJEjUzrc1biaJb9dl+inLJCCbK0yAg8d+X6CbsAxS/yX LvJYUV0t7nG8iiT3ECducT2VAuYPloGphO5GxXU9aT7l+EHXgSfvCq+bpI+0GGhXFwI+ 78pQ== X-Gm-Message-State: AOAM531280VAw5jh/GEC0yUFVs0oA5Gey5y0MjDCqk3dHd+L2wLJj+c9 wBZH3jGVD6NjPGQ4crxoz9w= X-Google-Smtp-Source: ABdhPJwDlGeI6/TcQ1Yi8Z/1litjaMhehBdyMUqomeNKRCP/fWUFevqhp2m/vY3A2LUYX6AyOu/7xw== X-Received: by 2002:a5d:5261:: with SMTP id l1mr38534694wrc.193.1600452682915; Fri, 18 Sep 2020 11:11:22 -0700 (PDT) Received: from Ansuel-XPS.localdomain (host-95-248-206-89.retail.telecomitalia.it. [95.248.206.89]) by smtp.googlemail.com with ESMTPSA id f23sm21461466wmc.3.2020.09.18.11.11.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2020 11:11:21 -0700 (PDT) From: Ansuel Smith To: Kalle Valo Subject: [PATCH v2 2/2] dt: bindings: ath10k: Document qcom, ath10k-pre-calibration-data-mtd Date: Fri, 18 Sep 2020 20:11:03 +0200 Message-Id: <20200918181104.98-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200918181104.98-1-ansuelsmth@gmail.com> References: <20200918181104.98-1-ansuelsmth@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_141124_100680_EF270C0C X-CRM114-Status: GOOD ( 13.23 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:443 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [ansuelsmth[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ath10k@lists.infradead.org, "David S. Miller" , Rob Herring , Jakub Kicinski , Ansuel Smith Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org Document use of qcom,ath10k-pre-calibration-data-mtd bindings used to define from where the driver will load the pre-cal data in the defined mtd partition. Signed-off-by: Ansuel Smith --- .../devicetree/bindings/net/wireless/qcom,ath10k.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt index b61c2d5a0..568364243 100644 --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt @@ -15,9 +15,9 @@ and also uses most of the properties defined in this doc (except "qcom,ath10k-calibration-data"). It uses "qcom,ath10k-pre-calibration-data" to carry pre calibration data. -In general, entry "qcom,ath10k-pre-calibration-data" and -"qcom,ath10k-calibration-data" conflict with each other and only one -can be provided per device. +In general, entry "qcom,ath10k-pre-calibration-data", +"qcom,ath10k-calibration-data-mtd" and "qcom,ath10k-calibration-data" conflict with +each other and only one can be provided per device. SNOC based devices (i.e. wcn3990) uses compatible string "qcom,wcn3990-wifi". @@ -63,6 +63,12 @@ Optional properties: hw versions. - qcom,ath10k-pre-calibration-data : pre calibration data as an array, the length can vary between hw versions. +- qcom,ath10k-pre-calibration-data-mtd : + Usage: optional + Value type: + Definition: pre calibration data read from mtd partition. Take 3 value, the + mtd to read data from, the offset in the mtd partition and the + size of data to read. - -supply: handle to the regulator device tree node optional "supply-name" are "vdd-0.8-cx-mx", "vdd-1.8-xo", "vdd-1.3-rfa", "vdd-3.3-ch0",