Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754514AbdHYCfm (ORCPT ); Thu, 24 Aug 2017 22:35:42 -0400 Received: from lucky1.263xmail.com ([211.157.147.130]:56572 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754347AbdHYCfk (ORCPT ); Thu, 24 Aug 2017 22:35:40 -0400 X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: shawn.lin@rock-chips.com X-FST-TO: linux-arm-kernel@lists.infradead.org X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: <2f3c5cdf9c16ffaffe1cd2676f97e977> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Cc: shawn.lin@rock-chips.com, Jeffy Chen , linux-kernel@vger.kernel.org, bhelgaas@google.com, dianders@chromium.org, devicetree@vger.kernel.org, Heiko Stuebner , linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 3/4] dt-bindings: PCI: rockchip: Add support for pcie wake irq To: Brian Norris , Bjorn Helgaas References: <20170822031934.8675-1-jeffy.chen@rock-chips.com> <20170822031934.8675-4-jeffy.chen@rock-chips.com> <20170824165353.GL31858@bhelgaas-glaptop.roam.corp.google.com> <20170825021132.GA104845@google.com> From: Shawn Lin Message-ID: <53dc2510-cf96-fdd6-4fb7-ba8cfa485556@rock-chips.com> Date: Fri, 25 Aug 2017 10:35:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170825021132.GA104845@google.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2927 Lines: 77 On 2017/8/25 10:11, Brian Norris wrote: > On Thu, Aug 24, 2017 at 11:53:54AM -0500, Bjorn Helgaas wrote: >> On Tue, Aug 22, 2017 at 11:19:33AM +0800, Jeffy Chen wrote: >>> Signed-off-by: Jeffy Chen > >>> diff --git a/Documentation/devicetree/bindings/pci/rockchip-pcie.txt b/Documentation/devicetree/bindings/pci/rockchip-pcie.txt >>> index 5678be82530d..9f6504129e80 100644 >>> --- a/Documentation/devicetree/bindings/pci/rockchip-pcie.txt >>> +++ b/Documentation/devicetree/bindings/pci/rockchip-pcie.txt >>> @@ -20,10 +20,13 @@ Required properties: >>> - msi-map: Maps a Requester ID to an MSI controller and associated >>> msi-specifier data. See ./pci-msi.txt >>> - interrupts: Three interrupt entries must be specified. >>> -- interrupt-names: Must include the following names >>> - - "sys" >>> - - "legacy" >>> - - "client" >>> +- interrupt-names: Include the following names >>> + Required: >>> + - "sys" >>> + - "legacy" >>> + - "client" >>> + Optional: >>> + - "wake" >> >> Why is there no other PCI binding that includes "wake" as an >> interrupt-name? This feels like something that should be fairly >> common across host controllers. I don't want a Rockport-specific > > s/port/chip/ :) > >> DT description if it could be made more general. > > I'm not sure we can really answer that question ("why do no other PCI > bindings have this?"). But one guess would be that every other > controller uses only beacon wake. > > It would be OK with me if we made a blanket statement that a controller > with a "wake" interrupt means PCI WAKE# (per the specification). It's > possible this could even be stuck into some generic PCI/DT code > eventually. (I don't think we have a really good place for this today.) I guess we could register a pcie port service for dedicated WAKE# as it seems fairly parallel to pme code there, if we need a common place for that? > > Brian > >>> - resets: Must contain seven entries for each entry in reset-names. >>> See ../reset/reset.txt for details. >>> - reset-names: Must include the following names >>> @@ -87,10 +90,11 @@ pcie0: pcie@f8000000 { >>> clock-names = "aclk", "aclk-perf", >>> "hclk", "pm"; >>> bus-range = <0x0 0x1>; >>> - interrupts = , >>> - , >>> - ; >>> - interrupt-names = "sys", "legacy", "client"; >>> + interrupts-extended = <&gic GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>, >>> + <&gic GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>, >>> + <&gic GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>, >>> + <&gpio0 8 IRQ_TYPE_LEVEL_LOW>; >>> + interrupt-names = "sys", "legacy", "client", "wake"; >>> assigned-clocks = <&cru SCLK_PCIEPHY_REF>; >>> assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>; >>> assigned-clock-rates = <100000000>; >>> -- >>> 2.11.0 >>> >>> > > >