From patchwork Wed Jul 10 22:16:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Quinlan X-Patchwork-Id: 13729756 X-Patchwork-Delegate: kw@linux.com Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9813328DB for ; Wed, 10 Jul 2024 22:16:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720649800; cv=none; b=HDwMftXtFoXumSjRZyg8CO7MdXfAO2TVIWo+/NzIEnN8t4o8eLEqIaLN07N4vCgX6q59mgBNmtV4WJXEeKkgPOWJNVTU+DtNXws8dXG7HoDlT1n8ZIP+or1qshzFJSQtIkD9aUbreN0tkPDijyemQwoFzPo844TnB5RZPkxZNEM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720649800; c=relaxed/simple; bh=qIPiU6im2UpWGzCCtFS6JK1Y51lU6TJAaJ98crXPF5c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type; b=uDBns03wvRte+OfGpJF6cyiNwHujRbWJkWpTCtPRxQts/FhhJ5I/6/txYmIQ13hxanplpQ6t5HzpTG4tWyVCgOAtEyWUmLvelJFQ1jiJVV0HIMejnPh/Vf9zbpIeae4ryzAEXvrTzUhK+j7SKUqGeb2RiYUZ87wKizhfo4iVGlI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=V9b27nTy; arc=none smtp.client-ip=209.85.219.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="V9b27nTy" Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-6b06e63d288so1775856d6.0 for ; Wed, 10 Jul 2024 15:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1720649797; x=1721254597; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=qRMri54CnHKWiCjOixZuBmP6QRwzyRSE8mxjVbCNb1c=; b=V9b27nTyHv7PVZZffeFO4xgU2K6JJmdc6BKBOHsJggIJeMnM4fc3GkhNizg9zEBn2w wBboGrtPnEwXleEgKzHlRzfhIMtjS1U/rwq82iWeU5HVzFBFTv5DqwYz3XOX1Suy+dt+ 1mmfhPJ8NcpGEL9MnpITAWWVa9h4lYnxmkERw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720649797; x=1721254597; 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=qRMri54CnHKWiCjOixZuBmP6QRwzyRSE8mxjVbCNb1c=; b=KwOEUneMvrmxNKtwPj+HM4Cgav7FBu5cauGb22vpyl07hU8xsg2ziGxK8bYrceI06a gczkxgq7UOS9XT/SVsz6BHFh5Js4OgoW4OSjL7Ia+P9yy2oDauU2MTV4zTP+noP/6KLV YwxHL/FM9oF5bvNq3Ki7uoDYISFzQ/hHIuDq2F113U2oniAhpMZGKik1vcvOmLQIhPq8 oXMpLcT/EnSiub7ozpDXrFNGbLYN0HytZhBqGbIyRES6N08xb2GtSQLvfeMNQayMXadM lSLtdaO0H/+wr+dVBcdJ1RMXcds9xkaidUigBc04XmN8FAlbiNwzmcc5wJikrYJLRTHK E2SA== X-Gm-Message-State: AOJu0YxHSaDykdSo34zcq4ovKhDHidPREvn0piffeJVniOzVla4EiCPj zsqH7EQR1Oly6/H+FkNqEPla6Daes1r+2zXqmswJwwjzALOuBmREd24IddbDt47OyneSqt4X9Ne wa0kJBW5tMsS+h+oPtFno0lpEXKm0FkMZg27duHWN9ELdXZcHBJ1C/gW0Tv81Iwx3XdkiIcDzbO qUHxQrhIXMvp8SO11n42/rfqmlNSR6J5DjM5bgtsMT+80wX9rq X-Google-Smtp-Source: AGHT+IFzVGiiSLmMGDXbNCHIA1KeqD+W+twXnb8DN1H60OFrc0BAZkdMUwHWH9AyiPfpAuyTfdjgpg== X-Received: by 2002:a05:6214:e6d:b0:6b5:4249:7c5 with SMTP id 6a1803df08f44-6b61bf37662mr72990276d6.36.1720649797405; Wed, 10 Jul 2024 15:16:37 -0700 (PDT) Received: from stbsrv-and-01.and.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b61ba04c16sm20182326d6.60.2024.07.10.15.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jul 2024 15:16:36 -0700 (PDT) From: Jim Quinlan To: linux-pci@vger.kernel.org, Nicolas Saenz Julienne , Bjorn Helgaas , Lorenzo Pieralisi , Cyril Brulebois , Stanimir Varbanov , Krzysztof Kozlowski , 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-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 v3 02/12] dt-bindings: PCI: Cleanup of brcmstb YAML and add 7712 SoC Date: Wed, 10 Jul 2024 18:16:16 -0400 Message-Id: <20240710221630.29561-3-james.quinlan@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240710221630.29561-1-james.quinlan@broadcom.com> References: <20240710221630.29561-1-james.quinlan@broadcom.com> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: o Change order of the compatible strings to be alphabetical o Describe resets/reset-names before using them in rules o Add in new resets for 7712 (swinit, bridge) o Add in changes for 7712 Signed-off-by: Jim Quinlan --- .../bindings/pci/brcm,stb-pcie.yaml | 46 +++++++++++++++++-- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml index 558a18fd2e77..dd7c76ec9ceb 100644 --- a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml @@ -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 reset calibration + - description: reset for PCIe/CPU bus bridge + - description: reset for soft PCIe core reset + - description: reset for external PCIe PERST# signal + + reset-names: + items: + - const: rescal + - const: bridge + - const: swinit + - const: perst + required: - compatible - reg @@ -118,8 +133,8 @@ allOf: then: properties: resets: - items: - - description: reset controller handling the PERST# signal + minItems: 1 + maxItems: 1 reset-names: items: @@ -136,12 +151,33 @@ allOf: then: properties: resets: + minItems: 1 + maxItems: 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 + maxItems: 3 reset-names: items: - const: rescal + - const: bridge + - const: swinit required: - resets