From patchwork Thu Oct 4 11:42:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhagavathi Perumal S X-Patchwork-Id: 10625955 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 07A5115A6 for ; Thu, 4 Oct 2018 11:45:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E82C028D8B for ; Thu, 4 Oct 2018 11:45:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB70D28DA2; Thu, 4 Oct 2018 11:45:14 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 4A0E828D8B for ; Thu, 4 Oct 2018 11:45:14 +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: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=pYX0ChKs03NnLxfjefEo/gZwsrjeCVE46wjDe7M5v5E=; b=owAoyQA4nj/uFM1cGbfYTtTj3L YVPR8lYhUqxDkx96KbdJijMPICBbO4L4mvdU7WJQMfyM0wccuxp23RMdwVu5T1SMz69IOTjkygNHD /xYpfFUzUHl6wqcn4MZG6bv4TVDVDNN8WwfiulqHkWW6eWxHTWckAJa4OY5mgAjT3UwiFWb+a2BbW IxsC7BeoJMzo5K+gNWiUqbGRmvIsKh19IhQnOAFk5TspWDQ6CpP78L+ESZv63JqDPiDDegQKMgYsq Ng+V5CFaz/pCshKMp9sbNaMuKuuqnKSHf88nIrPPKzMRjAW84rmiw1xbp8Xg/UQIoflPL6IqgBUbP PPsRXdqw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g8244-0001zs-Qa; Thu, 04 Oct 2018 11:45:08 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g823y-0001li-Jl for ath10k@lists.infradead.org; Thu, 04 Oct 2018 11:45:05 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DF72F60C7F; Thu, 4 Oct 2018 11:44:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538653491; bh=yZUtWdOi8dnrM+2aNCCmHNmdozf5HJINn0PjHSS5dvs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g9Vq+XFN3PzokJAxZlIN+CDco1h9Oyc4vu9tXnEZXyf/rwuMd0+GdPUiDWSNt7BNJ MK7d+JUUn0vA9+GwQTIKTa1jhbvHTqPIWz812kdgX9h45D7itO3iZjGVa6nyJO1j2K c2EhF1tDhWTMR3J3t8He99oz4EWEATq+Ltr86Mjo= Received: from localhost (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: bperumal@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E8D0E607BD; Thu, 4 Oct 2018 11:44:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538653491; bh=yZUtWdOi8dnrM+2aNCCmHNmdozf5HJINn0PjHSS5dvs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g9Vq+XFN3PzokJAxZlIN+CDco1h9Oyc4vu9tXnEZXyf/rwuMd0+GdPUiDWSNt7BNJ MK7d+JUUn0vA9+GwQTIKTa1jhbvHTqPIWz812kdgX9h45D7itO3iZjGVa6nyJO1j2K c2EhF1tDhWTMR3J3t8He99oz4EWEATq+Ltr86Mjo= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E8D0E607BD Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=bperumal@codeaurora.org From: Bhagavathi Perumal S To: ath10k@lists.infradead.org Subject: [PATCH 1/2] dt: bindings: add new dt entry to indentify external FEM Date: Thu, 4 Oct 2018 17:12:43 +0530 Message-Id: <1538653364-1239-2-git-send-email-bperumal@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538653364-1239-1-git-send-email-bperumal@codeaurora.org> References: <1538653364-1239-1-git-send-email-bperumal@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181004_044502_750834_81281B2E X-CRM114-Status: UNSURE ( 9.85 ) 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: devicetree@vger.kernel.org, linux-wireless@vger.kernel.org, bperumal@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 This adds new dt entry ext-fem-name, it is used by ath10k driver to select correct timing parameters and configure it in target wifi hardware. The Front End Module(FEM) normally includes tx power amplifier(PA) and rx low noise amplifier(LNA). The default timing parameters like tx end to PA off timing values were fine tuned for internal FEM used in reference design. And these timing values can not be same if ODM modifies hardware design with different external FEM. This DT entry helps to choose correct timing values in driver if different external FEM hardware used. Signed-off-by: Bhagavathi Perumal S --- .../bindings/net/wireless/qcom,ath10k.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt index 7fd4e8c..fbaf309 100644 --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt @@ -56,6 +56,7 @@ Optional properties: the length can vary between hw versions. - -supply: handle to the regulator device tree node optional "supply-name" is "vdd-0.8-cx-mx". +- ext-fem-name: name of external front end module used. Example (to supply the calibration data alone): @@ -150,3 +151,24 @@ wifi@18000000 { <0 141 0 /* CE11 */ >; vdd-0.8-cx-mx-supply = <&pm8998_l5>; }; + +Example (to supply the external front end module name): + +In this example, the front end module is defined as a property of the ath10k +device node. + +pci { + pcie@0 { + reg = <0 0 0 0 0>; + #interrupt-cells = <1>; + #size-cells = <2>; + #address-cells = <3>; + device_type = "pci"; + + ath10k@0,0 { + reg = <0 0 0 0 0>; + device_type = "pci"; + ext-fem-name = "microsemi-lx5586"; + }; + }; +};