From patchwork Tue Feb 14 16:12:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13140469 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39DA7C05027 for ; Tue, 14 Feb 2023 16:12:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231773AbjBNQMX (ORCPT ); Tue, 14 Feb 2023 11:12:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbjBNQMW (ORCPT ); Tue, 14 Feb 2023 11:12:22 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8C2D2D59 for ; Tue, 14 Feb 2023 08:12:20 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id jg8so41372455ejc.6 for ; Tue, 14 Feb 2023 08:12:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura.hr; s=sartura; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=U7FmuUYV4i+tUiEr3sQgj1FjRrcMIeNDDjtwxcnomOg=; b=ChWsQKERNUzcd/oJs7wTTCOMWypEqtx1FKjgOWz7kJ+kkTcf4QMZwOsyT4AmKiepR1 wmxrLJ4iRxvFe0J1XGA2Z3esLkJoV7N3DC8zgmX0k29BYLjTY/Ai2/kwEJhGVOCreKAR yMGNAxkWetCgLSo4NI2y2Ba1GE+hwP3q2eDmOrC0f3ytM/gZaoK14SdcyfaWtnudMzOD RlwTWR3t6HnEyuw05f6HCN5WDFn9wi+EeeZj/Cq9Tt3N+ahT2cnQunaABSIXajZLoYdH o97szoafzgzU6RlKejoU8n1dWmjfGPFSVfFLoQtuOpJwAx698Mw6iZ7NC2NDQiiYZqlb rjvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=U7FmuUYV4i+tUiEr3sQgj1FjRrcMIeNDDjtwxcnomOg=; b=w+ptvu1yn/i9fVZJ6hErtaqvB3FXvgVjih9Hct8jvaC6XI2UC3OJhsWcd++2n4frCH 17gMcvUcedydIKn6CpSOZ60V4ZlMKDxOzSSz4DEKmtgvlttt2d3qDMlp/74Zas61ttIw xVtYx6BIDlBQ9Gf5EpNlsHLU47U5Kl+EAZ/Xvi3pMmbRfVjA6dyRDXG/YEEpidikKZql 89OUAUCnm9tlhjqvKEbr/+7utt8Y8918ggYL4v8MDLEKZ2KOubQ3KjygfuJ3+wN/ob0P YzKDhFOD33d07Qpyq7znp1RvzS604y7FBQH2fVzVHEp1pDvUihZzwbO6EuOy0O6tisZT W0DQ== X-Gm-Message-State: AO0yUKU03DORUHS+3+WNyj5jajCknu0OzsCEPgdBQhe2axfv8r+Iilo/ MIy3e5RmhaWrZEbopWnPlr6I/A== X-Google-Smtp-Source: AK7set8I/5R1R2ISxCMl/lGAba1E4D5oDFL02UTwyH1kszy4po+MhCYWuX1EWAPCSKb5IDTUW9p5Zg== X-Received: by 2002:a17:906:8410:b0:8ac:f02b:7ea8 with SMTP id n16-20020a170906841000b008acf02b7ea8mr175787ejx.6.1676391139426; Tue, 14 Feb 2023 08:12:19 -0800 (PST) Received: from fedora.. (cpezg-94-253-130-165-cbl.xnet.hr. [94.253.130.165]) by smtp.googlemail.com with ESMTPSA id de56-20020a1709069bf800b00878530f5324sm8564376ejc.90.2023.02.14.08.12.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 08:12:19 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: luka.perkov@sartura.hr, Robert Marko Subject: [PATCH 4/4] ARM: dts: qcom: ipq4018-ap120c-ac: use NVMEM for ath10k caldata Date: Tue, 14 Feb 2023 17:12:11 +0100 Message-Id: <20230214161211.306462-4-robert.marko@sartura.hr> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214161211.306462-1-robert.marko@sartura.hr> References: <20230214161211.306462-1-robert.marko@sartura.hr> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Since ath10k now supports loading the pre-cal via NVMEM instead of having to use userspace scripts, lets use it. Signed-off-by: Robert Marko --- arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dtsi b/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dtsi index bb0c888b048ec..d90b4f4c63afe 100644 --- a/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dtsi @@ -170,6 +170,17 @@ partition@170000 { label = "ART"; reg = <0x00170000 0x00010000>; read-only; + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + precal_art_1000: precal@1000 { + reg = <0x1000 0x2f20>; + }; + + precal_art_5000: precal@5000 { + reg = <0x5000 0x2f20>; + }; }; partition@180000 { @@ -233,10 +244,14 @@ &mdio { &wifi0 { status = "okay"; + nvmem-cell-names = "pre-calibration"; + nvmem-cells = <&precal_art_1000>; }; &wifi1 { status = "okay"; + nvmem-cell-names = "pre-calibration"; + nvmem-cells = <&precal_art_5000>; qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC"; };