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: 9615179 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 C16A060417 for ; Fri, 10 Mar 2017 08:07:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB9792855E for ; Fri, 10 Mar 2017 08:07:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E770286F3; Fri, 10 Mar 2017 08:07:06 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E13E52855E for ; Fri, 10 Mar 2017 08:07:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=GsQpI+GkbvB0PsKBkpuS1mQAo64yJpNtdQSjmd+i6kY=; b=fRf 7tgmN2OoKpBSqfKn0k7o8kIV9Gy+q1hNpkw3J7EA4kU2BT8FzjIxnc7UmGj0ZcqYOykem7+eWKK5i YNJhH+/+sS5DB1THzCxQkp/bsaScMjqVDw/r9Ma0ca1SC5NEvmHzvtaVZ/LoElgPpzc6L4wHLArqK S8DFQQC3YFfIHkQHNBz4BrgZDIWkbuVJg344lHNcOuWu4vHLh1lGhDcjyhQTDQvX4Eb/XB/1lHq6j vhceGRlxeY8T8l8MNJqZCoJ0qAcBdoLwUjP0F/WQ4oyHN3dmFTUSGpV9tHUok51cAq1aehWvqC5x1 BAfl+h7GmZfMNTneCNdGrfVtY38+6Cg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cmFZf-0003J9-Ek; Fri, 10 Mar 2017 08:06:55 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cmFZb-0003Hy-NO for ath10k@lists.infradead.org; Fri, 10 Mar 2017 08:06:54 +0000 Received: by mail-wm0-x232.google.com with SMTP id n11so4636302wma.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=VjqwZ4BQY5EL3Et73LtP3R9meo1v5szfXgrakAfPnN4T2cHsv9i2TvdRUYsOmvldaN cnbOGxi+Lc8S4/NHGJsmNnQ0WgPvUnouzD2Q67afXIVrtQJxw5KKig7/0ZgRI5jQ6sJK oy4/7g9UVOQX1KuTHrto1WHT1YdDhCqNrtn9lm3zLmIcXO4Vk+MIcpeQS9+kMlY4RQjF xGOg791emzTpjudpLYkSAxPt/sa8MkO8TBZRkxbH+QmTsnfyA/sG8e/BHBhctX7SlJ4S Hxkw6SBm0KM8XthNuXLviCzub8U/KFWl2mp/lideK6fXxkNY20JKV2BnKxMUo/qzPs/J S5pQ== X-Gm-Message-State: AFeK/H1Irgn85iAiDYW3S+TVnSVBRViLEscgtZfdP1eA5DOMLszr7UVO48PojkPlP2SNgIwp 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170310_000651_938380_0831812D X-CRM114-Status: UNSURE ( 7.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-wireless@vger.kernel.org, robh+dt@kernel.org, Sven Eckelmann , ext.waldemar.rymarkiewicz@tieto.com, kvalo@codeaurora.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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.