From patchwork Wed Jul 3 18:02:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Quinlan X-Patchwork-Id: 13722658 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9F1BDC30653 for ; Wed, 3 Jul 2024 18:03:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Reply-To:MIME-Version: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=E4saHPzxd5Ks0nbTtxRxIzvCaROHIVnT/8SHrMvbCsY=; b=zAIk7zW/Jl1/xsiJLDuo4RhlLg J+XwyXRGSvhE9rdKA6E1PFOXTZy8OBTD9afNybr8EOp9qPdackQZTaX6e07dOuT/Sn7x4OrukPvq+ 1ULZEFu+7YYgdgED8T8sNxBLQ0XQLVwpDqzASGYPsdaPeJO/7eftj3XWJUhnm61A7Y0KMMdbDk6fT n4Vom4HAjK9pUsFsFSkdUqzTjZWhIPQ8LuoSDJJ9EIS/c9QGV4IzQpvrXXMsdSLyLPT4WSeFciA6f LMxyAczosM05VuFuAScbNmSDPk7qh1XTokWmo8qRs/DjcC4lan3DHQey3FDeKcGZaJMI/da6Ckg5g +2nafXpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP4KN-0000000B5E6-1nAM; Wed, 03 Jul 2024 18:03:35 +0000 Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP4Jv-0000000B4wD-1fbz for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 18:03:10 +0000 Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-6ad8243dba8so29980826d6.3 for ; Wed, 03 Jul 2024 11:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1720029786; x=1720634586; darn=lists.infradead.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=E4saHPzxd5Ks0nbTtxRxIzvCaROHIVnT/8SHrMvbCsY=; b=YjrQO0RBlnz/Dbt8f9vm7dnwwcnFWKnNZHesBz4YkNYE/99Cl2jEHGDvpr80UxYOTM Dn1Jsi1vHYmjJmpHc4BmxtugTKgtlkOfGbDqZ0ltBEC+NNDdbvZYI0ujc8dZUWBCawsr Uqym/ytcA6fRU2VtCmPoDGjtuQoK9Zu+6+Uis= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720029786; x=1720634586; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=E4saHPzxd5Ks0nbTtxRxIzvCaROHIVnT/8SHrMvbCsY=; b=HTa8vVFxwKez/jWaWQGmUKnX+c/qxXdiso2ExgVaFMSdu9uOuXikn8H5vqeldZLmeT EShtuuyvkoQOaSl9I64b45A/kH9aKe2yIYU7OKMdITjjXYiU8Wr1BRUNSaApT3hxrePA /W2Zylat1fNLD48eE8fCLEBfBwnVwgtYamAGVOl/EOzacBfjtOFTUt+IDCJa48JDZgxm IXPbXetCBNv6B/pf05lcXjwhtwjwfv8uoQ2K7eC0jzTBbzCiM7x5+/eW4QBWmywzAM/4 xQDFUt6N7eXNC7L12bC/PVwhJmosJAvc58Mfsg9xA/JXitcS1jmpTDGKeIH1uIAGyTFJ t0fA== X-Forwarded-Encrypted: i=1; AJvYcCUwk77N9KQRQwcCQpDDi6Ai8GxwvFxdEmLgS/SU5PreBDsE9FZsT4ozG2Z7kkiYHzfFL0AxkBcMMikt81fPv9ouYKcPnqeKFPC919rPdee6M1gxKBc= X-Gm-Message-State: AOJu0Yzt5TFH7B299gipTWqx0DPJyskF/Lz7d1Wt6E/gJxS91EbB1lnn UMkOPyDLQ0GzAbwpIf+Qk9QoEUKIHFuNMzre8yHjolDaG0eHxE7OoSxhyEADnQ== X-Google-Smtp-Source: AGHT+IH++y0W0znIk1Hi5gEZgLkMjB2ShRsmrwwCbtpcKXrMa9A7R4aXh6zLAAoOlNjDpiR5I9VVSA== X-Received: by 2002:a05:6214:3005:b0:6b5:42b7:122 with SMTP id 6a1803df08f44-6b5b717b58bmr147088576d6.60.1720029785897; Wed, 03 Jul 2024 11:03:05 -0700 (PDT) Received: from stbsrv-and-01.and.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b59e5f1a6dsm55589626d6.83.2024.07.03.11.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 11:03:05 -0700 (PDT) From: Jim Quinlan To: linux-pci@vger.kernel.org, Nicolas Saenz Julienne , Bjorn Helgaas , Lorenzo Pieralisi , Cyril Brulebois , Stanimir Varbanov , bcm-kernel-feedback-list@broadcom.com, jim2101024@gmail.com, james.quinlan@broadcom.com Cc: Florian Fainelli , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rpi-kernel@lists.infradead.org (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), linux-arm-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 v2 01/12] dt-bindings: PCI: Add Broadcom STB 7712 SOC, update maintainer Date: Wed, 3 Jul 2024 14:02:45 -0400 Message-Id: <20240703180300.42959-2-james.quinlan@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240703180300.42959-1-james.quinlan@broadcom.com> References: <20240703180300.42959-1-james.quinlan@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_110307_450538_0C5112D5 X-CRM114-Status: GOOD ( 12.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org - Update maintainer; Nicolas hasn't been active and it makes more sense to have a Broadcom maintainer - Add a driver compatible string for the new STB SOC 7712 - Add two new resets for the 7712: "bridge", for the the bridge between the PCIe core and the memory bus; "swinit", the PCIe core reset. - Order the compatible strings alphabetically - Restructure the reset controllers so that the definitions appear first before any rules that govern them. Signed-off-by: Jim Quinlan --- .../bindings/pci/brcm,stb-pcie.yaml | 44 +++++++++++++++---- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml index 11f8ea33240c..a070f35d28d7 100644 --- a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml @@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Brcmstb PCIe Host Controller maintainers: - - Nicolas Saenz Julienne + - Jim Quinlan properties: compatible: @@ -16,11 +16,12 @@ properties: - brcm,bcm2711-pcie # The Raspberry Pi 4 - brcm,bcm4908-pcie - 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 + - brcm,bcm7278-pcie # Broadcom 7278 Arm - brcm,bcm7425-pcie # Broadcom 7425 MIPs - brcm,bcm7435-pcie # Broadcom 7435 MIPs + - brcm,bcm7445-pcie # Broadcom 7445 Arm + - brcm,bcm7712-pcie # STB sibling SOC of Raspberry Pi 5 reg: maxItems: 1 @@ -95,6 +96,20 @@ properties: minItems: 1 maxItems: 3 + resets: + items: + - description: reset for phy calibration + - description: reset for PCIe/CPU bus bridge + - description: reset for soft PCIe core reset + - description: reset for PERST# PCIe signal + + reset-names: + items: + - const: rescal + - const: bridge + - const: swinit + - const: perst + required: - compatible - reg @@ -118,13 +133,10 @@ allOf: then: properties: resets: - items: - - description: reset controller handling the PERST# signal - + minItems: 1 reset-names: items: - const: perst - required: - resets - reset-names @@ -136,12 +148,28 @@ allOf: then: properties: resets: + minItems: 1 + reset-names: items: - - description: phandle pointing to the RESCAL reset controller + - const: rescal + required: + - resets + - reset-names + - if: + properties: + compatible: + contains: + const: brcm,bcm7712-pcie + then: + properties: + resets: + minItems: 3 reset-names: items: - const: rescal + - const: bridge + - const: swinit required: - resets