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: 13729770 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 62042C3DA42 for ; Wed, 10 Jul 2024 22:17:42 +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=Dj53pa62woG9teHY51aUsOX5X/OnSH0xQN53j9QYe9E=; b=0Py9dYUH4PE80bqYu4YR3kJCk7 9x4/ha0A849MisbY4i8NEvBVYGdH8NktICAcbPLWGNVWzbj33lOqnD9whBTf6mNPQiijCo+9kxdbE tBzrOFxsGibiD025AU0dJV8Cx0MgNMbyQLE4x5T+QO6lsO7LP7e6sJEaHZLhx76882cpQKcsuOTJd aM7W64lyLa9+pFutFB+St4WkmpS1wsqJUozOMKmOAptU1YgtVpOBXT1Zy5nJ7t2KPE1iNRQMZeUM3 CizIcDA28bBWZhzmsbzgDdNjzYBq0W/eWCDd5YPSjzIoHmyAf9iwFbKiKlsW/WTR/3id1aU1JqWrd Jjxx3zEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRfcw-0000000BuHn-0Tqd; Wed, 10 Jul 2024 22:17:30 +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 1sRfc6-0000000BtqJ-2Swk for linux-arm-kernel@lists.infradead.org; Wed, 10 Jul 2024 22:16:40 +0000 Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-6b61689d7c9so1650836d6.2 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=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=Dj53pa62woG9teHY51aUsOX5X/OnSH0xQN53j9QYe9E=; b=QiEPwlT6nKebXdgHz5zfjQN+mno1QqGfzgTAeT4VqqI5LP5RrToiYozXK1JwADaUXP RMBAM50fyrbjsekPphaleW1HaasYlN+K0p2Uh1rwZxSYr76Vd4bfea4BxdzSpTz6cLJi o1Tj4msIh++Bh2e39ISOwxSwPMQw1WcQPvN4w= 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=Dj53pa62woG9teHY51aUsOX5X/OnSH0xQN53j9QYe9E=; b=i05EpJfcN2tTlUHLQPCkj2mXDxb0POmFH7RRcjIjTrLtLQL7BXl8l+0PUfLRmLQB8J DsheI7NkWGr/YjiML1mhM56WIEBNd2cpTJJEgpyIGlhzOtW5TmNNdcUK51KtE037Kf1W YuM0jdjOYE8nMq2USa5ffOj+60Jo9cDdk1eH3uH19yZi3aBAEopyUu/GGqBEJJTR3jYi Ca+BrOTBf3W33QBjBjZCuZ2hre+h6Qn2et3bgCsYoeskjr/DJEEnovZjKb8VoRratbJc GLe7o5k/jvpRBhPEE8mtRovww1Qd9hktQTK99nJOrNaZiRxtGKF+ouDbtQ3vMRkMB6LO X6qA== X-Forwarded-Encrypted: i=1; AJvYcCVjJkO7qdc4TPXqtGiA1AHCZUErgbS1pS/JPSPZ4r90MD5YLIA64YaLsgLRmNwMpWIHlmoQ6M1DvlZRVL9q0cLkdItIXnygZjZ+avchVtcODn1Nw4E= X-Gm-Message-State: AOJu0Yzxy0NpitmHN0Tlg1uOmSM1/JFPw2fIFaL784OzJ00d6TKr2Jii R6yiTe4+ZFGa+Ftj8hVeiA5fi7ZVSUBmSwpgBK5GQ+yZ5HbmlGRtkxBIhyyTZw== 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240710_151638_656879_C7D7A621 X-CRM114-Status: GOOD ( 11.18 ) 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 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