Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp146010pxj; Wed, 26 May 2021 18:43:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGnAqITLYIWx3mkv15r9hNJwzaTcSOkb22qPf/yiKvviLJyVWw17t/GpJJavwDuPwT4mZ6 X-Received: by 2002:a02:a1dd:: with SMTP id o29mr1040604jah.112.1622079779885; Wed, 26 May 2021 18:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622079779; cv=none; d=google.com; s=arc-20160816; b=dfHGwUBYPiLdMkZq4Qz8gUDvYIUFmXBfDRM5g4HYhpiQopkC0lZIkXaSKYWiGR3bGV nHvHjrJGQ5k1j9mAI49rP0HpxEqJhTbTMKOZp6jbmw0PQfaasw+tUep1eLzYwSQUyD8A DCDdzIzyp3hMGk7OgeMjzh3GNKcJOZQv/t0qm0t8llidrWlx1goTHS/V0zBnBioedh8i 2v8RGtVE2LdHFbeKEN+qBfELSb+nEVBdIqletQHz4FrIfWgjqK9VNOmnoNsAJ4jaKR0L rh+VJox5JONMleehBUFFSwNNuihl+siDLG2DppcErxEPXRFzZWfbXGQomdM/3dSbKIWM vOXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=JqI4Yl5vHDgTXhCgJF0Ez4YUiQr9czAtOernmOokL4E=; b=bMmzkD2OjzAogXCESOESZ89CuO4+Q4QQI3Z/ImE8KvvagerQMgcrNinYf5dpTPtXy9 EqHoHduYXS0ZEwyJjtFbvoGFN5LhYfMQLTjtpfdIfKmiswTuka1d2npNvuD3vwFVvxEE NWssL81PaA0YFo9zhwjwTleCD20NRc/7GHAg8lY78CwoUOJGC0n11C3jy/vh2fN3LoUP /w3ZIa49HDg+0hWl8kGLOT9KeSExoFBiBtQHM0+Alzeso/t5iZfP71/HyK3AvK7mOIjg AzA+KJ3aJuCBPL1+0lhbpI7ys4ac1wcsczVUUSK68y0JgQdFQmWSGhzAXuknkDcwMY+E Q14g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si680847iob.37.2021.05.26.18.42.46; Wed, 26 May 2021 18:42:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233763AbhE0AYu (ORCPT + 99 others); Wed, 26 May 2021 20:24:50 -0400 Received: from mo-csw1114.securemx.jp ([210.130.202.156]:48174 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232903AbhE0AYu (ORCPT ); Wed, 26 May 2021 20:24:50 -0400 Received: by mo-csw.securemx.jp (mx-mo-csw1114) id 14R0MtW5007322; Thu, 27 May 2021 09:22:55 +0900 X-Iguazu-Qid: 2wGr6xj2A4N7nHCAbL X-Iguazu-QSIG: v=2; s=0; t=1622074974; q=2wGr6xj2A4N7nHCAbL; m=oAyYE0zOoy+KHvpZv9ULWYJ46KmGQ8jR3H8ooPGk2nw= Received: from imx2-a.toshiba.co.jp (imx2-a.toshiba.co.jp [106.186.93.35]) by relay.securemx.jp (mx-mr1111) id 14R0MrdZ029273 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 27 May 2021 09:22:54 +0900 Received: from enc01.toshiba.co.jp (enc01.toshiba.co.jp [106.186.93.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by imx2-a.toshiba.co.jp (Postfix) with ESMTPS id 5B9181000D9; Thu, 27 May 2021 09:22:53 +0900 (JST) Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.toshiba.co.jp with ESMTP id 14R0Mq2Q005890; Thu, 27 May 2021 09:22:53 +0900 Date: Thu, 27 May 2021 09:22:51 +0900 From: Nobuhiro Iwamatsu To: Rob Herring Cc: Bjorn Helgaas , Lorenzo Pieralisi , PCI , Punit Agrawal , yuji2.ishikawa@toshiba.co.jp, linux-arm-kernel , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 1/3] dt-bindings: pci: Add DT binding for Toshiba Visconti PCIe controller X-TSB-HOP: ON Message-ID: <20210527002251.zyrpmy4u2asdn7bo@toshiba.co.jp> References: <20210524063004.132043-1-nobuhiro1.iwamatsu@toshiba.co.jp> <20210524063004.132043-2-nobuhiro1.iwamatsu@toshiba.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 26, 2021 at 11:33:35AM -0500, Rob Herring wrote: > On Mon, May 24, 2021 at 1:30 AM Nobuhiro Iwamatsu > wrote: > > > > This commit adds the Device Tree binding documentation that allows > > to describe the PCIe controller found in Toshiba Visconti SoCs. > > > > v1 -> v2: > > - Remove white space. > > - Drop num-viewport and bus-range from required. > > - Drop status line from example. > > - Drop bus-range from required. > > - Removed lines defined in pci-bus.yaml from required. > > > > Signed-off-by: Nobuhiro Iwamatsu > > --- > > .../bindings/pci/toshiba,visconti-pcie.yaml | 110 ++++++++++++++++++ > > 1 file changed, 110 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/pci/toshiba,visconti-pcie.yaml > > Please resend to DT list. Otherwise, automated checks don't run OK, I will resent to DT list. > (though I'm sure you ran 'make dt_binding_check' already, right?). Yes, I ran it enerytime. > > > > diff --git a/Documentation/devicetree/bindings/pci/toshiba,visconti-pcie.yaml b/Documentation/devicetree/bindings/pci/toshiba,visconti-pcie.yaml > > new file mode 100644 > > index 000000000000..d47a4a3c49e3 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/pci/toshiba,visconti-pcie.yaml > > @@ -0,0 +1,110 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/pci/toshiba,visconti-pcie.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Toshiba Visconti5 SoC PCIe Host Controller Device Tree Bindings > > + > > +maintainers: > > + - Nobuhiro Iwamatsu > > + > > +description: |+ > > + Toshiba Visconti5 SoC PCIe host controller is based on the Synopsys DesignWare PCIe IP. > > + > > +allOf: > > + - $ref: /schemas/pci/pci-bus.yaml# > > + > > +properties: > > + compatible: > > + const: toshiba,visconti-pcie > > + > > + reg: > > + items: > > + - description: Data Bus Interface (DBI) registers. > > + - description: PCIe configuration space region. > > + - description: Visconti specific additional registers. > > + - description: Visconti specific SMU registers > > + - description: Visconti specific memory protection unit registers (MPU) > > + > > + reg-names: > > + items: > > + - const: dbi > > + - const: config > > + - const: ulreg > > + - const: smu > > + - const: mpu > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + items: > > + - description: PCIe reference clock > > + - description: PCIe system clock > > + - description: Auxiliary clock > > + > > + clock-names: > > + items: > > + - const: pcie_refclk > > Just 'refclk'. Though 'clk' is redundant too. I'd go with 'ref', > 'aux', and 'core'. > Ok, I will update. > > + - const: sysclk > > + - const: auxclk > > + > > + num-lanes: > > + const: 2 > > + > > +required: > > + - reg > > + - reg-names > > + - interrupts > > + - "#interrupt-cells" > > + - interrupt-map > > + - interrupt-map-mask > > + - num-lanes > > + - clocks > > + - clock-names > > + - max-link-speed > > + > > +unevaluatedProperties: false > > + > > +examples: > > + - | > > + #include > > + #include > > + > > + soc { > > + #address-cells = <2>; > > + #size-cells = <2>; > > + > > + pcie: pcie@28400000 { > > + compatible = "toshiba,visconti-pcie"; > > + reg = <0x0 0x28400000 0x0 0x00400000>, > > + <0x0 0x70000000 0x0 0x10000000>, > > + <0x0 0x28050000 0x0 0x00010000>, > > + <0x0 0x24200000 0x0 0x00002000>, > > + <0x0 0x24162000 0x0 0x00001000>; > > + reg-names = "dbi", "config", "ulreg", "smu", "mpu"; > > + device_type = "pci"; > > + bus-range = <0x00 0xff>; > > + num-lanes = <2>; > > + num-viewport = <8>; > > + > > + #address-cells = <3>; > > + #size-cells = <2>; > > + #interrupt-cells = <1>; > > + ranges = <0x81000000 0 0x40000000 0 0x40000000 0 0x00010000>, > > + <0x82000000 0 0x50000000 0 0x50000000 0 0x20000000>; > > + interrupts = ; > > + interrupt-names = "intr"; > > + interrupt-map-mask = <0 0 0 7>; > > + interrupt-map = > > + <0 0 0 1 &gic GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH > > + 0 0 0 2 &gic GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH > > + 0 0 0 3 &gic GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH > > + 0 0 0 4 &gic GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>; > > + clocks = <&extclk100mhz>, <&clk600mhz>, <&clk25mhz>; > > + clock-names = "pcie_refclk", "sysclk", "auxclk"; > > + max-link-speed = <2>; > > + }; > > + }; > > +... > > -- > > 2.31.1 > > > Best regards, Nobuhiro