From patchwork Wed Jul 31 22:28: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: 13749301 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 70CC9C3DA64 for ; Wed, 31 Jul 2024 22:30:16 +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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MEzSqlnsH2j9tRB5+9ly7frUJhXv2tJmhe1jZ23vhJ0=; b=Eyxc8nsaf39RlS1WWGZhmc4xa6 lYITZqUaLHtVEK6ujicDwMgCW6XYqMT3g8MhoiOHQfBeJWT+2Pf1mBLJH/mWgogcx4Cs0qw2atkzV WdYs+45od2468j0xrZHkXNxVipT/4nz+mgkpbOCo6PeVKRbVN5aFmHPhkXLzJNXiUYFqiK8hOIo22 28M5IowTkSeKWyx+vK16V3S/Q5/oTjCKTyHzxyXgxNhrCrLdgxkLARzR78jfkrKiLg7Tt8iRuWy3k SJ1WK/rsIvz6502sFS/rgUzQp6rDaAOOMLw6ph+I0JXyuZYM6vcHlemKdDbKqQWIESMx7/aS3JHMK u4SNazOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZHpd-00000002i53-3W4k; Wed, 31 Jul 2024 22:30:05 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZHoF-00000002hPd-0fBr for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 22:28:41 +0000 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-70940c9657dso3214267a34.1 for ; Wed, 31 Jul 2024 15:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1722464917; x=1723069717; 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=MEzSqlnsH2j9tRB5+9ly7frUJhXv2tJmhe1jZ23vhJ0=; b=AV8c4Wwfi5UbwqVV2m3vThk2DQkJsdWlzTNa7TTkLSQiWYxDnauypyt/u9y+lB3S2Z Y2S/Y4ClsVBqRvAbNb+ZzPSjAYNaFPaf1GwycQwYrUHBffnoPDLKHfwHUYTaqOWnKvdS ZzTyUyqMQXCwKmtPwGTbJ4N/1IKiG+Xg0l0b0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722464917; x=1723069717; 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=MEzSqlnsH2j9tRB5+9ly7frUJhXv2tJmhe1jZ23vhJ0=; b=dKxawogORMYSjZqK3+PzH6TVbG9pADfh4WL9rG9u5TEWf4ND6QXoxQCsn9pcOxsHPk z/pNTOAPmK5GCRTCKGCyKeW1p35UsD3XA8rK93Hwt646c05X6l4/XgAX1PBu8WuHtXxN FJYxQew83qi7tly9uQ/g+wh+5bnzwCv2UBC0xqjuLgC/btHpqxq33r/0OSh66PNOqxO5 jBVoUTVooAzS9rXPjL6zdKmWuPyezjN6TbjLdog+kwZ7/UydcbRay8MSE48SzzFE0K4Y 0vIct7AXQL3mkFQjoo9OsDy+Gick91SFIB0r8T3VCQsZGeR4Vf7+qmTOsD4ApCMTaeED H9rg== X-Forwarded-Encrypted: i=1; AJvYcCXMeqlOXKuaANR0YbkI6GyP2mg67mk/WmK+ixbCWObkPno+E9NQV/2uQdhSO5UEBf6IIGPvD8IvEVsxQIUvkLYYz5MgkkVSK9M/K9USYOk8uSPCf7w= X-Gm-Message-State: AOJu0Yx8rb1gJa029KsfIrNN9ssi5xT1w/SILHhEmAkwcdM8lrd/ikEt JsX0cVcO9BLi5SFqfikm5IvtGq+xgLWWpZ8/iXo0IaWE+7m/513NvkVr3X708Q== X-Google-Smtp-Source: AGHT+IHhsa4xXStr5djydA447oqZ0eywB6dQmFgO7T5029BQXALrAgyEhVKlX9qDw4OJNWb9FlBZHQ== X-Received: by 2002:a05:6830:dc2:b0:709:441a:351b with SMTP id 46e09a7af769-7096b7da64cmr506886a34.8.1722464917301; Wed, 31 Jul 2024 15:28:37 -0700 (PDT) Received: from stbsrv-and-01.and.broadcom.net ([192.19.144.250]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-44fe8416c80sm62359181cf.96.2024.07.31.15.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jul 2024 15:28:36 -0700 (PDT) From: Jim Quinlan To: linux-pci@vger.kernel.org, Nicolas Saenz Julienne , Bjorn Helgaas , Lorenzo Pieralisi , Cyril Brulebois , Stanimir Varbanov , Manivannan Sadhasivam , 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 v5 02/12] dt-bindings: PCI: brcmstb: Add 7712 SoC description Date: Wed, 31 Jul 2024 18:28:16 -0400 Message-Id: <20240731222831.14895-3-james.quinlan@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240731222831.14895-1-james.quinlan@broadcom.com> References: <20240731222831.14895-1-james.quinlan@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_152839_221818_57E9AC0C X-CRM114-Status: GOOD ( 10.55 ) 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 Add description for the 7712 SoC, a Broadcom STB sibling chip of the RPi 5. The 7712 uses three reset controllers: rescal, for phy reset calibration; bridge, for the bridge between the PCIe bus and the memory bus; and swinit, which is a "soft" initialization of the PCIe HW. Signed-off-by: Jim Quinlan Reviewed-by: Florian Fainelli Reviewed-by: Krzysztof Kozlowski --- .../bindings/pci/brcm,stb-pcie.yaml | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml index 7d2552192153..0925c520195a 100644 --- a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml @@ -21,6 +21,7 @@ properties: - brcm,bcm7425-pcie # Broadcom 7425 MIPs - brcm,bcm7435-pcie # Broadcom 7435 MIPs - brcm,bcm7445-pcie # Broadcom 7445 Arm + - brcm,bcm7712-pcie # Broadcom STB sibling of Rpi 5 reg: maxItems: 1 @@ -96,10 +97,12 @@ properties: maxItems: 3 resets: - maxItems: 1 + minItems: 1 + maxItems: 3 reset-names: - maxItems: 1 + minItems: 1 + maxItems: 3 required: - compatible @@ -151,6 +154,27 @@ allOf: - 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 + - reset-names + unevaluatedProperties: false examples: