Received: by 10.192.165.156 with SMTP id m28csp757801imm; Mon, 16 Apr 2018 08:15:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx496oQwlv6SWncbENwi5n2HtD98X5u+L24RqT6EBfIs/4tW7ra3RV4SmzbzzWOAgoUYYMPrA X-Received: by 2002:a17:902:b903:: with SMTP id bf3-v6mr15499177plb.37.1523891747881; Mon, 16 Apr 2018 08:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523891747; cv=none; d=google.com; s=arc-20160816; b=CJz+MIMwB5pWoDmYcVjrphrwr/oXvDiVTOe7IMfZRwt2JSpe5+Ad7GOy4LjbahJumK HQDtX+cX1a4FOgO1Ntz65KwvWa53pCHWYRcQfmKVaV8SteqgAk9bVulo+/KKUIkzZPYT yTknNQGIrWOgkEI1dGrV1NUmVh2lKCqvDy4sWBVXDpkmc5tYPqQKandy4j+Gi3qm6/Bh 4L0W+YxkAMINpUo4lqYfB3iMLmyBjV/2tA/Lb//E/4eDVPAXdxGUEsQxWRtPkOmQ0ZfJ eb/kER2EJ/p/SEEOrr7Xe98i1ZKRV/4OJjfAFBzVJjF0z4qsH3ft6iUpkJUgavYgmdiS WmrQ== 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:arc-authentication-results; bh=JUutzHZCxyW5pS5p1hLgg5Ze50XWa1ziIfY7ynEtAVE=; b=zFi4QPiKjAt2OR1UzCNwRA25yQBKbGQWWHKLQ0PwAG65g5zj+HvCp/5azk0s2D94hu RjEvr6VOhBgzxwELYIEnhdhmlm8T4N4o1NIdATgUmQtQ6hldJQlvpwd88Y3Cw4bmrzyv lHGjyoKP0EUJsz36nWiwbI1Vwc2v4Sz3Xv2kiWkGQLsRUOXwr0yCTWE3K1gXSZtnMcVG BNRJn2c3Fkbxfr2+bC4OzP/0wTIQmvGBKDfDDsdC+dL2QY+//Dtfb3VcdK6usYCNrsks q+OUrSEBJX1KwWWcgtNGA1PcaX9hr0eF++W1qQEEU7dDPPZn1Tpln2wZIfAlePfz6TuJ q4aQ== ARC-Authentication-Results: i=1; mx.google.com; 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 e4-v6si390275pln.331.2018.04.16.08.15.33; Mon, 16 Apr 2018 08:15:47 -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; 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 S1751876AbeDPPOA (ORCPT + 99 others); Mon, 16 Apr 2018 11:14:00 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:36885 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbeDPPN6 (ORCPT ); Mon, 16 Apr 2018 11:13:58 -0400 Received: by mail-oi0-f65.google.com with SMTP id f63-v6so14847847oic.4; Mon, 16 Apr 2018 08:13:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JUutzHZCxyW5pS5p1hLgg5Ze50XWa1ziIfY7ynEtAVE=; b=juJnqsGLYfZ7ljAo9rM7Ip1Ul5F7OYZrtLdqNHe+h5UP7JnbgWU1qAIvU2sVkWJopp /CcPQLeykBUbnUIPGwizX06o7gWuAq0G2hSjQQuwo/TN/jYSvrftfciYVB7POAEmfy3s q7stt0a6Yk+3c1S5ZjKGflgVqlMOT4Og/BmsdLyoEKbEceAkAXgujFIgGVdTSeAYoYyE b3fzYYSB7Vn82/rSPLkUO9EPAMyrnCTSqfKjrlAw7yAwTZVLrdF2NWsCXCEt9nYbFuCf U8YKmnVynkGdMG6YbWLEQxEHsInN4ddeg2v7sr5NJ1tjq2znA0qcDoXUoBqHzAQE2E89 WH4g== X-Gm-Message-State: ALQs6tDt8Y6cM99VMJHMbUkJMZ+6399MhHNMCpmFjGkeJS78hfxQXhah WyINiKpyerMgGipOgb27Ig== X-Received: by 2002:aca:acd1:: with SMTP id v200-v6mr15340225oie.320.1523891637246; Mon, 16 Apr 2018 08:13:57 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id m84-v6sm7195502oia.1.2018.04.16.08.13.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 08:13:56 -0700 (PDT) Date: Mon, 16 Apr 2018 10:13:56 -0500 From: Rob Herring To: Ran Wang Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Mark Rutland , Scott Wood , Kumar Gala , Li Yang , Zhao Chenhui , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Li Yang Subject: Re: [PATCH v2 6/6] fsl_pmc: update device bindings Message-ID: <20180416151356.r7si6higfrovl53l@rob-hp-laptop> References: <20180411063551.30368-1-ran.wang_1@nxp.com> <20180411063551.30368-6-ran.wang_1@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180411063551.30368-6-ran.wang_1@nxp.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 11, 2018 at 02:35:51PM +0800, Ran Wang wrote: > From: Li Yang Needs a commit msg and the subject should give some indication of what the update is. And also start with "dt-bindings: ..." > > Signed-off-by: Li Yang > Signed-off-by: Zhao Chenhui > Signed-off-by: Ran Wang > --- > Changes in v2: > - new file > > .../devicetree/bindings/powerpc/fsl/pmc.txt | 59 +++++++++++-------- > 1 files changed, 34 insertions(+), 25 deletions(-) > > diff --git a/Documentation/devicetree/bindings/powerpc/fsl/pmc.txt b/Documentation/devicetree/bindings/powerpc/fsl/pmc.txt > index 07256b7..f1f749f 100644 > --- a/Documentation/devicetree/bindings/powerpc/fsl/pmc.txt > +++ b/Documentation/devicetree/bindings/powerpc/fsl/pmc.txt > @@ -9,15 +9,20 @@ Properties: > > "fsl,mpc8548-pmc" should be listed for any chip whose PMC is > compatible. "fsl,mpc8536-pmc" should also be listed for any chip > - whose PMC is compatible, and implies deep-sleep capability. > + whose PMC is compatible, and implies deep-sleep capability and > + wake on user defined packet(wakeup on ARP). > + > + "fsl,p1022-pmc" should be listed for any chip whose PMC is > + compatible, and implies lossless Ethernet capability during sleep. > > "fsl,mpc8641d-pmc" should be listed for any chip whose PMC is > compatible; all statements below that apply to "fsl,mpc8548-pmc" also > apply to "fsl,mpc8641d-pmc". > > Compatibility does not include bit assignments in SCCR/PMCDR/DEVDISR; these > - bit assignments are indicated via the sleep specifier in each device's > - sleep property. > + bit assignments are indicated via the clock nodes. Device which has a > + controllable clock source should have a "fsl,pmc-handle" property pointing > + to the clock node. > > - reg: For devices compatible with "fsl,mpc8349-pmc", the first resource > is the PMC block, and the second resource is the Clock Configuration > @@ -33,31 +38,35 @@ Properties: > this is a phandle to an "fsl,gtm" node on which timer 4 can be used as > a wakeup source from deep sleep. > > -Sleep specifiers: > +Clock nodes: > +The clock nodes are to describe the masks in PM controller registers for each > +soc clock. > +- fsl,pmcdr-mask: For "fsl,mpc8548-pmc"-compatible devices, the mask will be > + ORed into PMCDR before suspend if the device using this clock is the wake-up > + source and need to be running during low power mode; clear the mask if > + otherwise. > > - fsl,mpc8349-pmc: Sleep specifiers consist of one cell. For each bit > - that is set in the cell, the corresponding bit in SCCR will be saved > - and cleared on suspend, and restored on resume. This sleep controller > - supports disabling and resuming devices at any time. > +- fsl,sccr-mask: For "fsl,mpc8349-pmc"-compatible devices, the corresponding > + bit specified by the mask in SCCR will be saved and cleared on suspend, and > + restored on resume. > > - fsl,mpc8536-pmc: Sleep specifiers consist of three cells, the third of > - which will be ORed into PMCDR upon suspend, and cleared from PMCDR > - upon resume. The first two cells are as described for fsl,mpc8578-pmc. > - This sleep controller only supports disabling devices during system > - sleep, or permanently. > - > - fsl,mpc8548-pmc: Sleep specifiers consist of one or two cells, the > - first of which will be ORed into DEVDISR (and the second into > - DEVDISR2, if present -- this cell should be zero or absent if the > - hardware does not have DEVDISR2) upon a request for permanent device > - disabling. This sleep controller does not support configuring devices > - to disable during system sleep (unless supported by another compatible > - match), or dynamically. You seem to be breaking backwards compatibility with this change. I doubt that is okay on these platforms. > +- fsl,devdisr-mask: Contain one or two cells, depending on the availability of > + DEVDISR2 register. For compatible devices, the mask will be ORed into DEVDISR > + or DEVDISR2 when the clock should be permenently disabled. > > Example: > > - power@b00 { > - compatible = "fsl,mpc8313-pmc", "fsl,mpc8349-pmc"; > - reg = <0xb00 0x100 0xa00 0x100>; > - interrupts = <80 8>; > + power@e0070 { > + compatible = "fsl,mpc8536-pmc", "fsl,mpc8548-pmc"; > + reg = <0xe0070 0x20>; > + > + etsec1_clk: soc-clk@24 { > + fsl,pmcdr-mask = <0x00000080>; > + }; > + etsec2_clk: soc-clk@25 { > + fsl,pmcdr-mask = <0x00000040>; > + }; > + etsec3_clk: soc-clk@26 { > + fsl,pmcdr-mask = <0x00000020>; > + }; > }; > -- > 1.7.1 > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html