From patchwork Fri Mar 10 08:06:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 9615183 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7E30960417 for ; Fri, 10 Mar 2017 08:07:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70324286F9 for ; Fri, 10 Mar 2017 08:07:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 640C72870D; Fri, 10 Mar 2017 08:07:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E24EE286F9 for ; Fri, 10 Mar 2017 08:07:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754983AbdCJIG4 (ORCPT ); Fri, 10 Mar 2017 03:06:56 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:33237 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752187AbdCJIGz (ORCPT ); Fri, 10 Mar 2017 03:06:55 -0500 Received: by mail-wm0-f52.google.com with SMTP id v203so1728362wmg.0 for ; Fri, 10 Mar 2017 00:06:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openmesh-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=c53tzK+Fxo1jIQvEUzS65NwjXb0d3S5oxSLBjC9W/+M=; b=E7Vry5NalHWX+rwtnwjufUeOEl+5aaljNVATXSQLvZ4TsyHGwBsnUfk6VLzriopkkR z3OuD5AKs9GVDSPN2EOsyq5WGvkXw7Np0VZHj19xWMv4yCZPzPfynyRQcqwg/4miwZUx YzuCEE78dZpLQPcJAMIkTunoQWZYl3F1J+3UqV/2Im3L1TaKp7Xpx9gTf011OIc5YSGR vtElTSjLH2AWR3U+DtPuDaCaMildhNMDX3QJeJaDIHjiK36QrOmWkkVy1YawjgqE6D3f G4Fy24S2Dk1PZj0d43AsolWgtcfYdP39KL1TghxRfWjEgg9SZ83GB2cqHEnpLIClatL5 qpZQ== 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; bh=c53tzK+Fxo1jIQvEUzS65NwjXb0d3S5oxSLBjC9W/+M=; b=FZYSXUsqysnMu2V8yaINHqxBWtLZYVJcIaoQFu1wbJTFlP9NHY18tplR+WL+O0zOQ4 jigJ6USr8aKYZC8a09xzY9jmkM6kCXoFgNn3LWXs9TLEFlPv5Ko8RCzXgnjP8B1UWFjK 9/ASxejq17fluieBuMdrM7zmfD26Zv0D2MMHuvUZSxXnGS3pCVRcb3e9hUUf2N9mlYMX IOkKI8iPaxTPVQCYVQHazc1cpZDB6p0bM7tgUwzB48nHMOBVkm/duRWgkIWSVAeCa9zM xwEMWP3BmLbMnN+lvZoFdh7UF66dBhyRZlNmuyOspWJFfwsFtZWEHr97bvuOf6H1JScC DcgQ== X-Gm-Message-State: AFeK/H2Nw+Xz7MrkmHY+WCpoxOOrwz17bkkpD/4yuKA8NAAeVAh0uluRpysv7Cw7edA6Rebh X-Received: by 10.28.217.83 with SMTP id q80mr1185996wmg.58.1489133189464; Fri, 10 Mar 2017 00:06:29 -0800 (PST) Received: from sven-desktop.home.narfation.org (p2003007C6F5694FE527B9DFFFECE2683.dip0.t-ipconnect.de. [2003:7c:6f56:94fe:527b:9dff:fece:2683]) by smtp.gmail.com with ESMTPSA id u184sm2097642wmb.29.2017.03.10.00.06.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Mar 2017 00:06:28 -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 1/2] dt: bindings: add new dt entry for ath10k calibration variant Date: Fri, 10 Mar 2017 09:06:14 +0100 Message-Id: <20170310080615.22958-1-sven.eckelmann@openmesh.com> X-Mailer: git-send-email 2.11.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The bus + bmi-chip-id + bmi-board-id is not enough to identify the correct board data file on QCA4019 based devices. Multiple different boards share the same values. Only the original reference designs can currently be identified and loaded from the board-2.bin. But these will not result in the correct calibration data when combined with the pre-calibration data from the device. An additional "variant" information has to be provided (via SMBIOS or DT) to select the correct board data for a design which was modified by an ODM. Signed-off-by: Sven Eckelmann --- 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" --- Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt index 74d7f0af209c..3d2a031217da 100644 --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt @@ -41,6 +41,9 @@ Optional properties: - qcom,msi_addr: MSI interrupt address. - qcom,msi_base: Base value to add before writing MSI data into MSI address register. +- qcom,ath10k-calibration-variant: string to search for in the board-2.bin + variant list with the same bus and device + specific ids - qcom,ath10k-calibration-data : calibration data + board specific data as an array, the length can vary between hw versions.