Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2469823ybh; Fri, 24 Jul 2020 13:46:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu/SGrFHCjK6ncoZfncuEucWpaWIKA5Wg3ggRzNi9egALA4A2vB6OGTDAEYyf3M38L73V7 X-Received: by 2002:aa7:db06:: with SMTP id t6mr10726305eds.369.1595623606791; Fri, 24 Jul 2020 13:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595623606; cv=none; d=google.com; s=arc-20160816; b=d4N1VYs5hPAl3Go5rVDm+6qAGjRnBU9fy0ZTJEWfRkEmZRxnG4MHXcAGAjMFQGodqM KleJhXwOF4Zgb7seLPFE2iRcCDV29VQnBeEYfaZQ+kExcRsvTXjAZjOs0jeAfJ0rbQSx B6/Rnw8J1UisGOCTXo+XlA/KTu5vIAYzn3FAJW/wHKENIWnSFI//zMECmrXYuk6VxqXh Yp7a9rnYtIKlsfDhE0AUaRI6an3jiJDzfeJClIamYVdFdnZ9Irhuh22BkGM04vA4/ZG6 bZ1smbllBDHM1oxRGYf02RfiLtgikFPznXYTbbaYpdR/LLLle3Ye57l4n3SYk9Dcx6Xx YX/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=2MYaTetFu5VwLNgBflTNREeXLJvWhs6b/bmAWM/JF+U=; b=biw9wnEjxM2xY4B+epVzAxx+0h2iFQwU3I8MGfClUGel00loSiVYLlZPjmVY1xq6k9 62HncGGm0FIly0PprLxXuQV5F0kaOGraebLEvgVPK+a5L7kA0W31y3EX+lOYNFfa/vYz WwEk5B89nAvqFI4/21oMRtBzBenQ9Oq5l3n9nW0+WXneUhLbOXPtgzHanaof0etCTCAI iQUNkJrDONwEjHtEYBsar/AQxVgTy7ClRVldQzpDp6CoTRDty79pEaYdAk9HQjtiJvgg LseOM4IpLhXFt70df5G00jLL2q6DNmZHWYjBoAlhnlmQYGCvK5lE3UdRSoe5RpAxKY9W gBUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=Mn9qcRSP; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be23si1133154edb.163.2020.07.24.13.46.24; Fri, 24 Jul 2020 13:46:46 -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=@broadcom.com header.s=dkimrelay header.b=Mn9qcRSP; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726993AbgGXUpw (ORCPT + 99 others); Fri, 24 Jul 2020 16:45:52 -0400 Received: from rnd-relay.smtp.broadcom.com ([192.19.232.150]:34386 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726845AbgGXUpn (ORCPT ); Fri, 24 Jul 2020 16:45:43 -0400 Received: from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net [10.75.242.48]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id BC8A71A01B3; Fri, 24 Jul 2020 13:36:33 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com BC8A71A01B3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1595622993; bh=GSqFzmHeOiSek+62bFpDJcfrtOQWQUrThlJG71lclKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mn9qcRSPqU/+PSP+A4fFpYHXIcI2xTW6uaG9DyFWVGYIH5vSXP/gVpR1D4uSEvSJc afOY25qmINzaiLmBZIFhPDtxaqNk2yqaR5QkbJqHsB/ZJ0/D4mQIolhnpZF6leGm/B C26Bo/1h+yLnhuM3taX12JmdHVYIPwZjgG1xJth0= Received: from stbsrv-and-01.and.broadcom.net (stbsrv-and-01.and.broadcom.net [10.28.16.211]) by mail-irv-17.broadcom.com (Postfix) with ESMTP id 77836140210; Fri, 24 Jul 2020 13:34:17 -0700 (PDT) From: Jim Quinlan To: linux-pci@vger.kernel.org, Nicolas Saenz Julienne , Christoph Hellwig , Robin Murphy , bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com Cc: Jim Quinlan , Florian Fainelli , Bjorn Helgaas , Rob Herring , linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE), linux-rpi-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v9 03/12] dt-bindings: PCI: Add bindings for more Brcmstb chips Date: Fri, 24 Jul 2020 16:33:45 -0400 Message-Id: <20200724203407.16972-4-james.quinlan@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200724203407.16972-1-james.quinlan@broadcom.com> References: <20200724203407.16972-1-james.quinlan@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jim Quinlan - Add compatible strings for three more Broadcom STB chips: 7278, 7216, 7211 (STB version of RPi4). - Add new property 'brcm,scb-sizes'. - Add new property 'resets'. - Add new property 'reset-names' for 7216 only. - Allow 'ranges' and 'dma-ranges' to have more than one item and update the example to show this. Signed-off-by: Jim Quinlan Reviewed-by: Rob Herring --- .../bindings/pci/brcm,stb-pcie.yaml | 56 ++++++++++++++++--- 1 file changed, 49 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml index 8680a0f86c5a..807694b4f41f 100644 --- a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml @@ -9,12 +9,15 @@ title: Brcmstb PCIe Host Controller Device Tree Bindings maintainers: - Nicolas Saenz Julienne -allOf: - - $ref: /schemas/pci/pci-bus.yaml# - properties: compatible: - const: brcm,bcm2711-pcie # The Raspberry Pi 4 + items: + - enum: + - brcm,bcm2711-pcie # The Raspberry Pi 4 + - brcm,bcm7211-pcie # Broadcom STB version of RPi4 + - brcm,bcm7278-pcie # Broadcom 7278 Arm + - brcm,bcm7216-pcie # Broadcom 7216 Arm + - brcm,bcm7445-pcie # Broadcom 7445 Arm reg: maxItems: 1 @@ -34,10 +37,12 @@ properties: - const: msi ranges: - maxItems: 1 + minItems: 1 + maxItems: 4 dma-ranges: - maxItems: 1 + minItems: 1 + maxItems: 6 clocks: maxItems: 1 @@ -58,8 +63,31 @@ properties: aspm-no-l0s: true + resets: + description: for "brcm,bcm7216-pcie", must be a valid reset + phandle pointing to the RESCAL reset controller provider node. + $ref: "/schemas/types.yaml#/definitions/phandle" + + reset-names: + items: + - const: rescal + + brcm,scb-sizes: + description: u64 giving the 64bit PCIe memory + viewport size of a memory controller. There may be up to + three controllers, and each size must be a power of two + with a size greater or equal to the amount of memory the + controller supports. Note that each memory controller + may have two component regions -- base and extended -- so + this information cannot be deduced from the dma-ranges. + $ref: /schemas/types.yaml#/definitions/uint64-array + items: + minItems: 1 + maxItems: 3 + required: - reg + - ranges - dma-ranges - "#interrupt-cells" - interrupts @@ -68,6 +96,18 @@ required: - interrupt-map - msi-controller +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + - if: + properties: + compatible: + contains: + const: brcm,bcm7216-pcie + then: + required: + - resets + - reset-names + unevaluatedProperties: false examples: @@ -93,7 +133,9 @@ examples: msi-parent = <&pcie0>; msi-controller; ranges = <0x02000000 0x0 0xf8000000 0x6 0x00000000 0x0 0x04000000>; - dma-ranges = <0x02000000 0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>; + dma-ranges = <0x42000000 0x1 0x00000000 0x0 0x40000000 0x0 0x80000000>, + <0x42000000 0x1 0x80000000 0x3 0x00000000 0x0 0x80000000>; brcm,enable-ssc; + brcm,scb-sizes = <0x0000000080000000 0x0000000080000000>; }; }; -- 2.17.1