Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5994646ybe; Tue, 17 Sep 2019 17:40:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpPo892jdu2fFETdaXFd7P3OXyYR0T1mc6xW8KLv2UF/I2rx4sbC/CDGljZ8m8iDruMc3K X-Received: by 2002:a17:907:4242:: with SMTP id np2mr7371273ejb.102.1568767224311; Tue, 17 Sep 2019 17:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568767224; cv=none; d=google.com; s=arc-20160816; b=aEYou5X8IOv98SAe0vCpW7+O13/gBXWt6XuvSxckwCwj40/3DTVM3TJbjvmT4CM9uu unSpGFkCPXMMcca8R+uSckr2EA1tqa1dzNLQDgGASkgYReBGsangWXgzyvFwnkJiibNZ 42P37HwQzqMUu2jb2aEI0/uGLpNq1NEf275SehplRmGDj0P2z53dDbqctMvVUvxVmfnU 1VCm8piGtyk9nPi3joMYQuOM+/ofED9aVgn/eLhAXEdgCvNmxksq3kye66egd81lW3pV XFFggqrIy6Y8Wt8+wX39ZgthEISoFf5CdYxTp5T+i3LZc/pVNX0a62gQIGJ67GZukHLE MrGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature; bh=XZSONg9ovktAMfQwnvJVg0vgv9k7ZGEi3sbV351QUlM=; b=EC21s8Qd2C3UXF4szU6oxMUKoW0jRhdF34dyYNwjeSe2TeDdFpcbjUspaSMlj56HJa G6wpK8nuVopDEFCljMKAIBg04gLAGQGCHKSvybiMyuukEkoZYQqSQ233U63y87oS8bBN bHrGZcSNa1q6aQl9/CAR6ba2pcOUTPSrMGSuAg86VRcMITrEtv99LAYtffNUQ3KHc0Xm P+5zTRVsHgQ/3Rx2ycvmaCMa+Iz0hevPqzuotcjrYQOXhrjU+EpezUrSSjuRdoSLnCf+ o5+4dCB8ETvt2zIWkzv7UtIVy9lPePnToYBrBAjIYWrFiYFT7LY7WcHj6oKEnSkgCrum FK2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=LucnLAvs; dkim=pass header.i=@codeaurora.org header.s=default header.b=e9PVkqaC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s42si2240798edm.292.2019.09.17.17.40.00; Tue, 17 Sep 2019 17:40:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=LucnLAvs; dkim=pass header.i=@codeaurora.org header.s=default header.b=e9PVkqaC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726899AbfIQVuY (ORCPT + 99 others); Tue, 17 Sep 2019 17:50:24 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35526 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbfIQVuX (ORCPT ); Tue, 17 Sep 2019 17:50:23 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4BFB160767; Tue, 17 Sep 2019 21:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568757022; bh=+bL3Z3Y6Hl+C8MixFa02sCzsCPEv0bSGIE8FlarpAD8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LucnLAvs8c/a4VPdqBtIeaYQh0PZTAR2nm7XpcSuPUokuG86a76YQclF3twIDmrSp vC79sFw8HFGl4AyO/ceqwgeGYfrnyTu6fRK8t5AxtYLDQrnRjzlxxdtjnxnPbsQv7E HLeRVzSMDDs9TZocDCx+Ii9gW13Pn22eaLupuDAk= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5F12960767; Tue, 17 Sep 2019 21:50:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568757021; bh=+bL3Z3Y6Hl+C8MixFa02sCzsCPEv0bSGIE8FlarpAD8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e9PVkqaCJJO0YMqwe3jsNEicNdxouQtoYWnqdXy3te9d5yDe/6oHUZUQ2C5sAfk6C M3mYJ/Kkle2a7MZbfKh3TbRsFO6qSOtTH/108NZ3Kww17HmyM1bJPNmC6LJcbmX/ZU RHPYsUM0UGBdYuom3CfytQRGQlYZ2t2W19Tv6jyc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5F12960767 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=ilina@codeaurora.org Date: Tue, 17 Sep 2019 15:50:20 -0600 From: Lina Iyer To: Stephen Boyd Cc: Rob Herring , evgreen@chromium.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, mkshah@codeaurora.org, linux-gpio@vger.kernel.org, rnayak@codeaurora.org, devicetree@vger.kernel.org, maz@kernel.org, sibis@codeaurora.org Subject: Re: [PATCH RFC 05/14] dt-bindings/interrupt-controller: pdc: add SPI config register Message-ID: <20190917215020.GA15853@codeaurora.org> References: <20190829181203.2660-1-ilina@codeaurora.org> <20190829181203.2660-6-ilina@codeaurora.org> <5d6d1b72.1c69fb81.ee88.efcf@mx.google.com> <102c9268-c4ce-6133-3b0a-67c2fcba1e7a@arm.com> <20190903170722.GA31716@codeaurora.org> <5d71a247.1c69fb81.2146f.7ed2@mx.google.com> <20190913195326.GA3293@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190913195326.GA3293@codeaurora.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding Sibi On Fri, Sep 13 2019 at 13:53 -0600, Lina Iyer wrote: >Sorry, I couldn't get to this earlier. > >On Thu, Sep 05 2019 at 18:03 -0600, Stephen Boyd wrote: >>Quoting Lina Iyer (2019-09-03 10:07:22) >>>On Mon, Sep 02 2019 at 07:58 -0600, Marc Zyngier wrote: >>>>On 02/09/2019 14:38, Rob Herring wrote: >>>>> On Thu, Aug 29, 2019 at 12:11:54PM -0600, Lina Iyer wrote: >>>These are not GIC registers but located on the PDC interface to the GIC. >>>They may or may not be secure access controlled, depending on the SoC. >>> >> >>It looks like it falls under this "mailbox" device which is really the >>catch all bucket for bits with no home besides they're related to the >>apps CPUs/subsystem. >> >Thanks for pointing to this. >> apss_shared: mailbox@17990000 { >> compatible = "qcom,sdm845-apss-shared"; >> reg = <0 0x17990000 0 0x1000>; >But this doesn't seem correct. The registers in this page are all not >mailbox door bell registers. We should restrict the space allocated to >the mbox to 0xC or something, definitely, not the whole page. They all >cannot be treated as a mailbox registers. >> #mbox-cells = <1>; >> }; >> >>Can you point to this node with a phandle and then parse the reg >>property out of it to use in the scm readl/writel APIs? Maybe it can be >>a two cell property with <&apps_shared 0xf0> to indicate the offset to >>the registers to read/write? In non-secure mode presumably we need to >>also write these registers? Good news is that there's a regmap for this >>driver already, so maybe that can be acquired from the pdc driver. >> >The register space collection seems to be mix of different types of >application processor registers that should probably not be grouped up >under one subsystem. A single regmap doesn't seem correct either. > >-- Lina