Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp1180103oof; Tue, 25 Sep 2018 09:16:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV61GwgP7UwLaSGt/MwtPU+XeK2EsIuplR1pkAhKHgYGTcRFKbCpyAdphdaRhBrb2zhRdLy+B X-Received: by 2002:a63:9752:: with SMTP id d18-v6mr1751717pgo.405.1537892165324; Tue, 25 Sep 2018 09:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537892165; cv=none; d=google.com; s=arc-20160816; b=wZkVvZBPVGH24Pnb/cytqKfzXRCq//U+PjkYq/OdWb9F2b1NzqbeW0jMupH/42CDPF Z4MTIo1sdhB1L8uX+jzKGKy6IyrpVKZefKwPRGU3SWaWVT7Z61JTOBXKHcUt387HVqDi Dw4SfgKlLOGT7j56HXsM/wu+J4GaQqFzmrEqL0XA7ksPnZCBHXhB+cFqNX4szxcMsqew +a+lrHPjyRQmYT7faH2Jgk2HKnboQjXfMp07ujDceoyme4ykwn1yTnb5tyZR2gZfULQE uf4JoF0vdaDIBV69PuZL5NptHXDkpUgin6YhC9A4kH4nh1ccVjbQGUDdfdYBroFkuHPp 6Jzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=K+PfFruPDSB2cdsWXr1NVv9m9lR8hAyDQ+XcWlY5Pic=; b=cjYSsH90G5kQj9+unpiHtYrWBqdFQ04o6rp89BXisQ1fbqwnqCDtHxFvnFigkfVVZj U4r6RrV3V9Go85qI/wCk876/69h4bO/dIEQksiFexEKfrYD5h6/L7zR1PY61uuD3p723 JYyAxPwY5VXk6nLvfNeRIYOrFJHnHOIGyJuYGzSAknHHz3gKwKX1R1XzlbD06W5TJmiO 61Z2clTclUEacfzgOyYfdx7Ob01f0boDgCBi0C/OIz6lkz6lX/nuVk1Rq6m8RShfbDEm UmgEDJ4mDvh/mx3nJFK3WTNIaptmAH2XiqpQojCUHJFDER14Ti3Sl4fDH3bHiAp2lCBT 5pXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JPSjRWIJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x22-v6si2675915pgk.326.2018.09.25.09.15.49; Tue, 25 Sep 2018 09:16:05 -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=@kernel.org header.s=default header.b=JPSjRWIJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729655AbeIYWXZ (ORCPT + 99 others); Tue, 25 Sep 2018 18:23:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:47864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728917AbeIYWXZ (ORCPT ); Tue, 25 Sep 2018 18:23:25 -0400 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AA59D21502; Tue, 25 Sep 2018 16:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537892112; bh=BhgRYD1jWVXvZlcqbCfzQeSB1cmxx2WlhubA0bMflOM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JPSjRWIJn4TyBaZ29oEFZ427Bpb3DdLULbaehUHQQM8lpUlGxxSIVxpYMEQVJxnx5 SJXcC1dS0mGcNZdt8FmPNgHealp/Uk4aw2ruS6Hi46ifjRqTLY7je+PCiOCJ7Cbiif 9O7BwEeqX82NiuWQIuHZZwNS/oGJP4bgriPr/T9A= Received: by mail-qk1-f179.google.com with SMTP id n3-v6so13340118qkn.8; Tue, 25 Sep 2018 09:15:12 -0700 (PDT) X-Gm-Message-State: ABuFfoi+ZX1B+3k/N10X7qqBJ1lghXDwSBftMJX7PIN1vQtnvOlIIPEU Cbx+o2WGH62Ugak2vdjl9bVBfqdE9OkVANly6Q== X-Received: by 2002:a37:56c7:: with SMTP id k190-v6mr1201181qkb.29.1537892111810; Tue, 25 Sep 2018 09:15:11 -0700 (PDT) MIME-Version: 1.0 References: <1534447304-12919-1-git-send-email-jollys@xilinx.com> <1534447304-12919-2-git-send-email-jollys@xilinx.com> <20180820194628.GA26783@bogus> In-Reply-To: From: Rob Herring Date: Tue, 25 Sep 2018 11:15:00 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: power: Add ZynqMP power domain bindings To: Jolly Shah Cc: Matthias Brugger , Andy Gross , Shawn Guo , Geert Uytterhoeven , Bjorn Andersson , Sean Wang , Marek Szyprowski , Michal Simek , Mark Rutland , Rajan Vaja , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 13, 2018 at 12:51 PM Jolly Shah wrote: > > Hi Rob, > > > -----Original Message----- > > From: Rob Herring [mailto:robh@kernel.org] > > Sent: Monday, August 20, 2018 12:46 PM > > To: Jolly Shah > > Cc: matthias.bgg@gmail.com; andy.gross@linaro.org; shawnguo@kernel.org; > > geert+renesas@glider.be; bjorn.andersson@linaro.org; > > sean.wang@mediatek.com; m.szyprowski@samsung.com; Michal Simek > > ; mark.rutland@arm.com; Rajan Vaja > > ; devicetree@vger.kernel.org; linux-arm- > > kernel@lists.infradead.org; linux-kernel@vger.kernel.org; Rajan Vaja > > ; Jolly Shah > > Subject: Re: [PATCH v2 1/3] dt-bindings: power: Add ZynqMP power domain > > bindings > > > > On Thu, Aug 16, 2018 at 12:21:42PM -0700, Jolly Shah wrote: > > > From: Rajan Vaja > > > > > > Add documentation to describe ZynqMP power domain bindings. > > > > > > Signed-off-by: Rajan Vaja > > > Signed-off-by: Jolly Shah > > > --- > > > .../firmware/xilinx/xlnx,zynqmp-firmware.txt | 47 > > ++++++++++++++++++++++ > > > > This should be with all the other power domain bindings. > > > > > 1 file changed, 47 insertions(+) > > > > > > diff --git > > > a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmwa > > > re.txt > > > b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmwa > > > re.txt > > > index d215d15..5fa10a0 100644 > > > --- > > > a/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmwa > > > re.txt > > > +++ b/Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-fi > > > +++ rmware.txt > > > @@ -64,6 +64,29 @@ Output clocks are registered based on clock > > > information received from firmware. Output clocks indexes are > > > mentioned in include/dt-bindings/clock/xlnx,zynqmp-clk.h. > > > > > > +----------------------------------------------------------- > > > +Device Tree Bindings for the Xilinx Zynq MPSoC PM domains > > > +----------------------------------------------------------- > > > +The binding for zynqmp-power-controller follow the common generic PM > > > +domain binding[1]. > > > + > > > +[1] Documentation/devicetree/bindings/power/power_domain.txt > > > + > > > +== Zynq MPSoC Generic PM Domain Node == > > > + > > > +Required properties: > > > + - compatible: Must be: "xlnx,zynqmp-power-controller" > > > + > > > +This node contains a number of subnodes, each representing a single > > > +PM domain that PM domain consumer devices reference. > > > + > > > +== PM Domain Nodes == > > > + > > > +Required properties: > > > + - #power-domain-cells: Number of cells in a PM domain specifier. Must > > be 0. > > > + - pd-id: Domain identifier as defined by platform firmware. > > > + This identifier is passed to the PM firmware. > > > > Make this a cell for the power domain consumer. > [Jolly] We have more than one Ids for GPU device. Also they don't have parent child relationship and hence are defined as flat hierarchy. (shown in example below) Then the gpu node should have: power-domains = <&pd 58 &pd 20 &pd 21>; Also, for this and the firmware reset binding, there is no reason that I see to make these all subnodes. A single firmware node can be a provider of multiple functions. You only need child nodes if the sub-functions have their own resources (clks, irqs, etc.). IOW, don't create nodes just because you want to instantiate drivers that way. DT is not the only way to instantiate devices for drivers. Rob