Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp41148pxj; Wed, 26 May 2021 15:33:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxM/sa0WNRapdIxZ4c2xXwmoNxediYoroTCVUuMHRTE5WUil1avvuaP/bzbER2Qb38e9TDx X-Received: by 2002:a17:906:e98:: with SMTP id p24mr527024ejf.478.1622068439283; Wed, 26 May 2021 15:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622068439; cv=none; d=google.com; s=arc-20160816; b=UqCMR/9zpMIQ7PbzcxX3cP7XyyEt0uA++VUH83yUBtu0bzPE0kh00oTrz2Qriq1M/5 1R3wOEu2DfgZfg5rW0IXOiXfouzFJXXfC20NYFQw36EneC32BFt2l/2+2qN7x/7q2LJh GJoU19o5taDRCNCy/EkrzLGCiXFDz+aR4dsEz5CQXjE0n12D/XGTMjMao17AhhQiwFw4 gjv3swGPMwc9LL1eEt7xb2n5q1Dg6Zj1X3yCUp9VorlEbgXe4sEKmUw3AC/NTZ7dVFyF GIMerWH80bCHWku/iVyitb0uUIctdLfaOXijLfOnYAl6FgpM4kKX1pn//WZohVfzcTpd aoJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yiGN1GPvCmTNKZTqWQzmWLtfgpVPrlMsUdwqzDWXw/A=; b=MxDoGaaa4REeOgN9iT3cAK14XdJfaRasFcUHYhQk6aP/pBkTgUm8FvL0ymegFRj3yK rY+tyFlAtWPqvmDwBbstoMRRihfr2PY885clXB+qqfq7Q9yoSOC+lSOV1PYrDZ5MBEP/ YvNvDx95DR4rnenoQEv8jleG5WO5hN4VBdY9O+hJ15nSWbh28PJw4KoM3pYQkXQhFIfa jOgsOgHV8H5BrC92xV9fcMLwCHYkA/SAsXpL9yV135iyV0V1iZMeoc+DW3+I4Lly9DPX ap1W8LS+nFmZGCHvRnQVPscYmpB7+WKM9efkfGiwlEFY4U2FVAJB3B7VZMq4BbB0nmSN s+3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pbB6BAbo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o1si169893edr.22.2021.05.26.15.33.34; Wed, 26 May 2021 15:33: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pbB6BAbo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234753AbhEZQfV (ORCPT + 99 others); Wed, 26 May 2021 12:35:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:39690 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234665AbhEZQfU (ORCPT ); Wed, 26 May 2021 12:35:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 328E7613E5; Wed, 26 May 2021 16:33:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622046829; bh=kovUxkfq29J2qv1KN2+/JPS+nX4ZQzEH6SoLPMxR0ak=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=pbB6BAboDmEashbjaO40Qcj1N6kYAOe9sUDMk4k4AjKY+MSsvxhp9ey+5s6OTvuZI lOWycAeiw9xCcHTcLL7jUhOMUvweU7ruAbWufEJmIt3CXuLZuePSHnijaqJwtcZrWF b6z/7GTfX71n+Q8tojXzU34cJmOapGiRhD/T0ssjWklyEsIFQaUJwLq2noZjyzW4nE g++dlmXO46USHeNvNDThRunj1AzEvQo1xs5XSbkel8g1RoPO9ny9RNiQeUBs/aL+ey 2K6emMGgpsef2wv0xhYpwABds9yJogfo2KAKNwjTNcnyGDNvV7ArsP3+Ew0TU0stCD OzrxsIHZtSrJA== Received: by mail-ej1-f48.google.com with SMTP id s22so3403027ejv.12; Wed, 26 May 2021 09:33:49 -0700 (PDT) X-Gm-Message-State: AOAM532OXToywRefEGBgeR+6n468GauorB9+rjWXlHTS5qgOEaRAHANg XfZ2/XLgv0tcy95hW9sk3iZETg5/xumT49ePlw== X-Received: by 2002:a17:907:724b:: with SMTP id ds11mr34108710ejc.108.1622046827604; Wed, 26 May 2021 09:33:47 -0700 (PDT) MIME-Version: 1.0 References: <20210524063004.132043-1-nobuhiro1.iwamatsu@toshiba.co.jp> <20210524063004.132043-2-nobuhiro1.iwamatsu@toshiba.co.jp> In-Reply-To: <20210524063004.132043-2-nobuhiro1.iwamatsu@toshiba.co.jp> From: Rob Herring Date: Wed, 26 May 2021 11:33:35 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/3] dt-bindings: pci: Add DT binding for Toshiba Visconti PCIe controller To: Nobuhiro Iwamatsu Cc: Bjorn Helgaas , Lorenzo Pieralisi , PCI , Punit Agrawal , yuji2.ishikawa@toshiba.co.jp, linux-arm-kernel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 (though I'm sure you ran 'make dt_binding_check' already, right?). > > 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'. > + - 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 >