Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4265298pxt; Wed, 11 Aug 2021 01:44:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxir9evpNBkJpr08BS30gIpAgl1oABvh6Gq7qFFXcy6/6rpdXgV4Q3a/xQs2U5FAW/5Yp3+ X-Received: by 2002:a05:6402:d4f:: with SMTP id ec15mr8267962edb.353.1628671459006; Wed, 11 Aug 2021 01:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628671458; cv=none; d=google.com; s=arc-20160816; b=wF1oYiyEvVgaxI1BS9I78nYqPkD4rHS4Lypi3xfasJRh1SXxYDusS8l37+LphNXA8B OWZwj4QghA60b/Z7V2N/F5dbjhQ4inLjWtecb3CGykfVPuJyzYcqIMsOgRN4yn4+mP40 6JVLvhJ1VwGKAl/ctiYgC4o3NlABB0JABOpgTsyJTh231UXPttQ9OFFKr5KG2VC2YpY+ Dmw+GzXGRN73Tgo8XCi0dmGv2O2SmEsfX2hZ43VBXF8BdV6HgnlXgQ9i9rwW74KMtNRG tNuFJgfQFhorGum0mATM3j4R2RYnEuDR6JqMvcKr6k6tJkMLdZwsTpUtJ8DDEfDVCYtG IjIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=2dBQUQPJhJ1gJFl70WrcYt60VBUYSoNsIofkY3gRWxI=; b=k5XRG4IF2GDXJp0AYpUTs2nd6Fz/wcXtTjfURGPJaiCro0ioJ2tPmZq6PKbYPwcOWZ RKxgTwNGPyGCrxCN2gnlb7o9nkPNHH0nBDU7t+yFyP/jMC+Y+nbZGPKrjklMX/NiG0Sr +RxOTd+B5+SfKUNx3/UH7iRlexCgze4PJCpSocczPhqmuiXjcfvPrN5HO+YAtWO26Kgj 0KY0zAoAAOow0CDF94d8AsIO/5NM4KXA8PrOOtNTVkqcCY7jmKtvCZ/j7DRJ7iDrIut7 NvEC6ch6/lCmNbeg/eBWffsvlsktbsknT63mX0+9BJs7s8RDXs9Fhi3HaOY0inMdGQMU 4FbA== 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 rh8si8507108ejb.646.2021.08.11.01.43.53; Wed, 11 Aug 2021 01:44:18 -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 S236246AbhHKIjm (ORCPT + 99 others); Wed, 11 Aug 2021 04:39:42 -0400 Received: from mo-csw1115.securemx.jp ([210.130.202.157]:49446 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236205AbhHKIji (ORCPT ); Wed, 11 Aug 2021 04:39:38 -0400 Received: by mo-csw.securemx.jp (mx-mo-csw1115) id 17B8cehr029256; Wed, 11 Aug 2021 17:38:41 +0900 X-Iguazu-Qid: 2wHHmJkRojiOO52ijj X-Iguazu-QSIG: v=2; s=0; t=1628671120; q=2wHHmJkRojiOO52ijj; m=PZyDe9STpZniEMqElj4KNIixkRGAy4MBe8QNBfGe4jg= Received: from imx12-a.toshiba.co.jp (imx12-a.toshiba.co.jp [61.202.160.135]) by relay.securemx.jp (mx-mr1112) id 17B8ccBs006745 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 11 Aug 2021 17:38:39 +0900 Received: from enc02.toshiba.co.jp (enc02.toshiba.co.jp [61.202.160.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by imx12-a.toshiba.co.jp (Postfix) with ESMTPS id AB7C81000EA; Wed, 11 Aug 2021 17:38:38 +0900 (JST) Received: from hop101.toshiba.co.jp ([133.199.85.107]) by enc02.toshiba.co.jp with ESMTP id 17B8cci7018242; Wed, 11 Aug 2021 17:38:38 +0900 From: Nobuhiro Iwamatsu To: Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi Cc: linux-pci@vger.kernel.org, =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Kishon Vijay Abraham I , devicetree@vger.kernel.org, punit1.agrawal@toshiba.co.jp, yuji2.ishikawa@toshiba.co.jp, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nobuhiro Iwamatsu Subject: [PATCH v6 1/3] dt-bindings: pci: Add DT binding for Toshiba Visconti PCIe controller Date: Wed, 11 Aug 2021 17:38:28 +0900 X-TSB-HOP: ON Message-Id: <20210811083830.784065-2-nobuhiro1.iwamatsu@toshiba.co.jp> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210811083830.784065-1-nobuhiro1.iwamatsu@toshiba.co.jp> References: <20210811083830.784065-1-nobuhiro1.iwamatsu@toshiba.co.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds the Device Tree binding documentation that allows to describe the PCIe controller found in Toshiba Visconti SoCs. Signed-off-by: Nobuhiro Iwamatsu v3 -> v4: - Changed the redundant clock name. v2 -> v3: - No update. 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. --- .../bindings/pci/toshiba,visconti-pcie.yaml | 110 ++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/toshiba,visconti-pcie.yaml 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..60ec424cd07c --- /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: ref + - const: core + - const: aux + + 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 = "ref", "core", "aux"; + max-link-speed = <2>; + }; + }; +... -- 2.32.0