Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1080987pxb; Tue, 9 Nov 2021 04:57:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFmKdH3Bn1TAH6IZ7z2Vhri7KhYJMBl1PgRQb7a31WeJqu3+VjM46R/9awsEtc0+znwCYW X-Received: by 2002:a17:907:94d4:: with SMTP id dn20mr9348366ejc.379.1636462635033; Tue, 09 Nov 2021 04:57:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636462635; cv=none; d=google.com; s=arc-20160816; b=FCWCNIuPdb9QwDWRygqpmUr3fn9tHjR6PVGrtOCFshvxDnl/WrvG63VMsX3y9Ervn2 +KggdcgH8zhnGKZk28Pk1JJMF4fQsojIu8a5A90QrG7WtqBJPPB3LrhUW+pFp/3rLq+z zrGAtsNf+xu0d2TUYNezXJvBJ2TIudBFODfLUVKxU1TdZ4XnaCRjSQcVSMfv6qegNXys 5EO61NbB/qR1NKPLpQtA9Wj9oU7pcEIPqRzE0xSjO+RQ7BM40P6AbW5YwWn9iIJFwX7Z WWype1nQp/5RXrUpXVU2uI7U3xyCKBx844VdyusqYpnvR6kbNy8FSnKmJ7tdLYVmHqeh xgzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3UMQ+IMa+soVBoyYN64G/6OyoEqBBdIjr60HkQKpNx8=; b=hitFRw2UPXlqyeNtiCxb6PLakdQRa2ozFZRjsuL/R06X9m06+Dttcdv+roq5CDRBMP KUP4k6KPoIsKB18acRLggm9++usYVTsBl8hIjjT5wl8xfmaoUT+kpJi+RUn0qk3hCISq 5ABQBK2BuasdMIDA+WqTQBMzrroh0FgYMT+vrrQEzv6gIVwKElqUD5k5rihgM0KScw2I iUm84V2n6yJ4ij1cVLQQKi8zlYAfwZ1E5hyLDEaJjrj/UP0zSGW/YfickmvK9R5cEe0A XAbi1VJcbterhO1OfzNYSrLZbCq9snrHVT2xx4dqpO8acKY25kF4rp+khxFJFqYq28rj gzxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KZaPR85q; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt7si47693747ejc.728.2021.11.09.04.56.58; Tue, 09 Nov 2021 04:57:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KZaPR85q; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243073AbhKIGMe (ORCPT + 68 others); Tue, 9 Nov 2021 01:12:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240611AbhKIGMc (ORCPT ); Tue, 9 Nov 2021 01:12:32 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D34AC061764 for ; Mon, 8 Nov 2021 22:09:47 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id y1so18995060plk.10 for ; Mon, 08 Nov 2021 22:09:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3UMQ+IMa+soVBoyYN64G/6OyoEqBBdIjr60HkQKpNx8=; b=KZaPR85qHnb2yKJr4Zb3HksFeFbhp9G5ogo/MdQMtO2WH0hekoook0Vt4487LMv3DI EZ0IKoPmpz97Jb1XZ4sLl3X7/CAkjjsXH2vl5hzq6NE9fJDEPnlKhvOa7B3kiDVm6oxW EBstH3kSpqCyMwchR7NYBfno3q91DaVpBmKgc9HrHV8U9liDb+9Sz8Nvg/etv3fB0J82 J62zQAeQDIJuNE/w/tCzN41cPMRJGyxZGWn6tp4GSsf3Zs/fa33GTpD4LdPiEnwVbgzR 1PnxMKpiC510UXvkja82txpR8AqL0dO2xA1tZ/jotq5gaVtCGLxD0jKI7sv+7lc0W0EY suzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3UMQ+IMa+soVBoyYN64G/6OyoEqBBdIjr60HkQKpNx8=; b=Bz62tBdwMCT1vQ0kbHvqdkljBIaaXctCBDS7G17TAHJQ0oj/hlOSQDtC//zIzQB0v3 aKpU6w8JyJFiPF8K9FLFeZE82OiSHFgaM/7ycRWSIAmNMpbGEukYrxX6vey9O+Gb8iPV n0nn9+TSAf8TevpjAzL4cnczDZvPiN2KccbCfCEAC9vlwRHEuwbytAba1G5TxI0EsAzl vh+efEITYpjueqxOIFjqjRcSSLueDlepo/jgyxZlATBRwPC304PlyyWwOQd6IHq3HeW4 Kxc+L8qu6ltgIYzRY2SrAYsOdpWQkh54CQ2PJo55AjsVajOPE0Pb9D7Tg214M8zmZVVJ JOCA== X-Gm-Message-State: AOAM530kl+j5bKPXPId1zTJLJc2wzKG60vxSfH0DPbdBpwEEausfYdpA XSVe/RLOI6earnToCAgKH+MZ X-Received: by 2002:a17:903:2093:b0:142:7dff:f7de with SMTP id d19-20020a170903209300b001427dfff7demr4995953plc.75.1636438186599; Mon, 08 Nov 2021 22:09:46 -0800 (PST) Received: from thinkpad ([117.217.177.76]) by smtp.gmail.com with ESMTPSA id l11sm18755948pfu.129.2021.11.08.22.09.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 22:09:46 -0800 (PST) Date: Tue, 9 Nov 2021 11:39:38 +0530 From: Manivannan Sadhasivam To: Anilkumar Kolli Cc: Rob Herring , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, devicetree@vger.kernel.org, mhi@lists.linux.dev Subject: Re: [PATCH 1/2] dt: bindings: add new DT entry for ath11k PCI device support Message-ID: <20211109060938.GA5235@thinkpad> References: <1635175648-23491-1-git-send-email-akolli@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Nov 09, 2021 at 10:33:58AM +0530, Anilkumar Kolli wrote: > On 2021-11-02 02:05, Rob Herring wrote: > > On Mon, Oct 25, 2021 at 08:57:27PM +0530, Anilkumar Kolli wrote: > > > Ath11k driver supports PCI devices such as QCN9074/QCA6390. > > > Ath11k firmware uses host DDR memory, DT entry is used to reserve > > > these host DDR memory regions, send these memory base > > > addresses using DT entries. > > > > > > Signed-off-by: Anilkumar Kolli > > > --- > > > .../bindings/net/wireless/qcom,ath11k.yaml | 38 > > > ++++++++++++++++++++++ > > > 1 file changed, 38 insertions(+) > > > > > > diff --git > > > a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > > > b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > > > index 5ac9616c9239..c7e6612e949c 100644 > > > --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > > > +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath11k.yaml > > > @@ -19,6 +19,10 @@ description: | > > > These devices use HOST DDR memory, HOST DDR memory can be reserved > > > and send to ath11k driver from DT. > > > > > > + ATH11K supports PCI devices like QCA6390,QCN9074. > > > + These devices use host DDR memory, host DDR memory can be reserved > > > + and send to ath11k driver from DT. > > > + > > > properties: > > > compatible: > > > enum: > > > @@ -177,6 +181,29 @@ properties: > > > description: > > > HOST DDR end address. > > > > > > + qcom,base-addr: > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > > + description: > > > + Host DDR base address for firmware. QCN9074 firmware uses 45 > > > MB of host > > > + DDR memory in mode-0 and 15 MB of host DDR memory in mode-2. > > > + > > > + qcom,caldb-addr: > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > > + description: > > > + Host DDR address to store CALDB. CALDB is calibration data base > > > + for WLAN channel and tx power. > > > + > > > > Use /reserved-memory entries for these. > > > > Sure. > > > > + qcom,start-addr: > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > > + description: > > > + Host DDR start address. For example on x86 it is 0x0, > > > + on IPQ8074 it is 0x41000000. > > > + > > > + qcom,end-addr: > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > > + description: > > > + Host DDR end address. > > > > Nak. I don't know what you are doing with these 2, but it's wrong. > > > > The DDR start address and end address are sent to MHI control bus, > For x86 platform code snip in ath11k/mhi.c > > mhi_ctrl->iova_start = 0; > mhi_ctrl->iova_stop = 0xffffffff; > > Similarly for ARM platfroms, send DDR addresses from DT entry. > You can use the reserved memory node for ddr address also. In the ath11k driver, use devicetree APIs for fetching the start and end addresses. Thanks, Mani > Thanks > Anil