Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1035585ybe; Wed, 11 Sep 2019 08:24:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3addwYBodnfGKNN8Awsy/Q1qB3qIv5lpa90dwCzSFXqWSB8RNZbpHSIog0uxGYoi+jjZj X-Received: by 2002:a17:906:3583:: with SMTP id o3mr8179865ejb.224.1568215463561; Wed, 11 Sep 2019 08:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568215463; cv=none; d=google.com; s=arc-20160816; b=AX0HbQKA/Fe1m3aBDfGRd4WyXZTeubO7fTL14VXEvRDqrbvuhFR29CTxJOibHGxH2o y9zemDKQpjNGsc7Cr60mqUNBspuz894tI3B0F+8+ixmu8M/K/IHw3t/7EN4c1VaBmddf XsIG6Xb8yVTjX9BJ/ROXszPt6mOFQ9ZuEqH3E8ecx7A0NS5chIca/MV8keKL0krt3/A3 2rGjIbH69dZbsLSvv60MB5nDliEeRzXJLA0u3FLASyATAKsa1OhhCp7xZmYIYW0YU9Mg wdxZ1nM/j8vY6cSi4+ZfcPPpOguLGMPGTdzEwQu/VsH4JOcEAO/54Icr3KsGeVW0fug7 9/pw== 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=R7yLt1GLG8xSFj5+0k+G0VQ1z5E63SpORZ//kB8QCVk=; b=cNsYZFHw8oKnv5eVk5+EZtCz3MPtNgc4BrK3RL/RXpABdKBSLoWrAbxbZi837zAy0x PiBucG1WTtd95pixxmokRmGJlvm12UZQaA1UFYu3mb03BKaXMUUU7pm7VaqV15RKs0kM ffQTZNRRtCw87FnwxXlQB+W+r7fjbrcMPwoj1ypCQk/XC4aIsNzlOVcd9hnT4iAROfq8 qRTfIsmkrBzPS5E4egWYCCj2Dsme/l4vqN/MUSD4x7A67rj3AQNm/H+94Ym96K8dd0AG sKxQHjJNpG+GlxzX+0OPo9jXN9lBgQcHzR57tdsFteAACwLgUNj6zDajcgnRX8XKgW2R FXZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=N9C6sFzm; dkim=pass header.i=@codeaurora.org header.s=default header.b=DCCUrRDd; 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 q18si11031947ejf.153.2019.09.11.08.23.59; Wed, 11 Sep 2019 08:24:23 -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=N9C6sFzm; dkim=pass header.i=@codeaurora.org header.s=default header.b=DCCUrRDd; 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 S1728486AbfIKPTx (ORCPT + 99 others); Wed, 11 Sep 2019 11:19:53 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35104 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbfIKPTx (ORCPT ); Wed, 11 Sep 2019 11:19:53 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 41E16611FD; Wed, 11 Sep 2019 15:19:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568215192; bh=BxzymE4Du8iospVx8lQ4+Kl7Ik1hqE+DIRt/RDx1/Rc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N9C6sFzmyVoxXSQ2a5Bh6l2EhIogpS9MZ17s4ubhaJUSetY/ZjqyJuUFZIXJpIQic ys1Kek/nFox28fW0nbyJ6Dc5VHe8cvChmP9bi+IIzSm+PPEKj0NO4GL6ZBnHIHkNp0 R3WAiZOKxZ5rV78caB7izlphscnuQUzNhQ8ZDIlY= 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 77F4161197; Wed, 11 Sep 2019 15:19:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568215190; bh=BxzymE4Du8iospVx8lQ4+Kl7Ik1hqE+DIRt/RDx1/Rc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DCCUrRDdd9ILFg7hBJRAudHEHOuY9bUsakEeYLhzirL7B39j3iGakjSuxQhBDatnG zBVDxQ5LTW1znyRCWQdh9SdrcKRAaUvnGtxdv/D1MKA4s6KANF7nK2kMAueCRa2kLA MwJjILN3Hm2jZ+Vc3Qtiycg6069SKKTHWbGEo3c0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 77F4161197 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: Wed, 11 Sep 2019 09:19:48 -0600 From: Lina Iyer To: Linus Walleij Cc: Stephen Boyd , Evan Green , Marc Zyngier , "linux-kernel@vger.kernel.org" , MSM , Bjorn Andersson , mkshah@codeaurora.org, "open list:GPIO SUBSYSTEM" , Rajendra Nayak , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: Re: [PATCH RFC 05/14] dt-bindings/interrupt-controller: pdc: add SPI config register Message-ID: <20190911151847.GA30053@codeaurora.org> References: <20190829181203.2660-1-ilina@codeaurora.org> <20190829181203.2660-6-ilina@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: 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 On Wed, Sep 11 2019 at 04:05 -0600, Linus Walleij wrote: >On Thu, Aug 29, 2019 at 8:47 PM Lina Iyer wrote: > >> +- qcom,scm-spi-cfg: >> + Usage: optional >> + Value type: >> + Definition: Specifies if the SPI configuration registers have to be >> + written from the firmware. >> + >> Example: >> >> pdc: interrupt-controller@b220000 { >> compatible = "qcom,sdm845-pdc"; >> - reg = <0xb220000 0x30000>; >> + reg = <0xb220000 0x30000>, <0x179900f0 0x60>; >> qcom,pdc-ranges = <0 512 94>, <94 641 15>, <115 662 7>; >> #interrupt-cells = <2>; >> interrupt-parent = <&intc>; >> interrupt-controller; >> + qcom,scm-spi-cfg; > >You can probably drop this bool if you just give names to the registers. > >Like >reg = <0xb220000 0x30000>, <0x179900f0 0x60>; >reg-names = "gic", "pdc"; > >Then jus check explicitly for a "pdc" register and in that case >initialize the PDC. > Well the address remains the same. The bool defines how to access that register address - from linux or from the firmware using SCM calls. But I get your point, I could have different register namess - pdc-linux or pdc-scm and request by name. I can then use that to determine the mode for accessing the register. Thanks, Lina