From patchwork Mon Nov 30 08:32:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 11939911 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16B51C64E8A for ; Mon, 30 Nov 2020 08:33:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BC0572085B for ; Mon, 30 Nov 2020 08:33:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b5RN6gP3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727768AbgK3Idf (ORCPT ); Mon, 30 Nov 2020 03:33:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727094AbgK3Idf (ORCPT ); Mon, 30 Nov 2020 03:33:35 -0500 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95222C0613D3; Mon, 30 Nov 2020 00:32:54 -0800 (PST) Received: by mail-lf1-x143.google.com with SMTP id l11so19926488lfg.0; Mon, 30 Nov 2020 00:32:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xQaTKjIL7uyY8gr0YDIKGL8MjTlRYaLcoibNbpV+CJ0=; b=b5RN6gP3m+uJd0q3dvPRkDzT2BSNvQcu8NuQynWalyH5PL7FRyMhmoxf9zu/4H5TfT BSXDqh2vpo8tUq4FPg9nfnDSUXBW7y0mp81Wk9r5KUv7xWX4h7vrl0At0PCmEgBTdwIC DwYaAqJwuo+qV86PDGrkoIUF9YQuLUcsG2MUclN8nZoHxY9T2Np2Sag8rTLZIywOXA3Q Qy8tofrCA7mbqRDejQ3mmomI5mA6Yen63f8IrP09KBXOlUeJ/ZZB09DoHlidEfSqcr4o tDZVTwgOvEZMAehaYo5eOXq848lYYmsm119SkIlss9VrbpVtmb7j4MUUGKQk/+HgyzU0 iU/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xQaTKjIL7uyY8gr0YDIKGL8MjTlRYaLcoibNbpV+CJ0=; b=tC3Gt8slm7XerbxUN/SX8qUwESvt39zKGwZzVajJMUTpJwatRgOXwzVaf5wkS3atn/ nmnTlhei3573ZTR3JQW0AdwFQ+H3oNRco3rUZwGQbn0HGZRGXSinbdv4qq/zlp+tswuv ufNMx7VH8yYcVOE1YfpErGhNbvN1qgFbX7HR3/Ld3WcpUEpV+O5mzops3fHH7cwWpU2o qkrO695aJASVOjBBbqEYxas1S1VRWb+KCkBSPeIsy52oXEwt6VmCIxMPimkqJpEf4C16 yroKJaPJ7X/ii7lXRmT4BTpDFwc/cdqv2PP/+idITzVwv4wjnyZDMjHbYE6GykLjakzx buaA== X-Gm-Message-State: AOAM530u9vEFvZOeYm22YsZR6kpyB1EJT7a4+Sx6RjQ7wZXfIOvSn1D+ VuXZ9VYkm4PucXC90yn28bg= X-Google-Smtp-Source: ABdhPJyAlEj1+97dD1IxP38BidZhTYxYqRjQz0V0/zWT559D4PacHJzAGdZ1PLwaNnR8Qq1+JJjW7g== X-Received: by 2002:ac2:46f3:: with SMTP id q19mr8620909lfo.76.1606725173075; Mon, 30 Nov 2020 00:32:53 -0800 (PST) Received: from elitebook.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id y81sm2355420lfc.100.2020.11.30.00.32.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 00:32:52 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Lorenzo Pieralisi Cc: Bjorn Helgaas , Rob Herring , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, Florian Fainelli , Nicolas Saenz Julienne , Philipp Zabel , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH V2 1/2] dt-bindings: PCI: brcmstb: add BCM4908 binding Date: Mon, 30 Nov 2020 09:32:22 +0100 Message-Id: <20201130083223.32594-2-zajec5@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201130083223.32594-1-zajec5@gmail.com> References: <20201130083223.32594-1-zajec5@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Rafał Miłecki BCM4908 is a SoC family with PCIe controller sharing design with the one for STB. BCM4908 has different power management and memory controller so few tweaks are required. PERST# signal on BCM4908 is handled by an external MISC block so it needs specifying a reset phandle. Signed-off-by: Rafał Miłecki Acked-by: Florian Fainelli --- .../bindings/pci/brcm,stb-pcie.yaml | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml index 807694b4f41f..d3ab9e22f97c 100644 --- a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml @@ -14,6 +14,7 @@ properties: items: - enum: - 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 @@ -64,8 +65,6 @@ 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: @@ -98,12 +97,39 @@ required: allOf: - $ref: /schemas/pci/pci-bus.yaml# + - if: + properties: + compatible: + contains: + const: brcm,bcm4908-pcie + then: + properties: + resets: + items: + - description: reset controller handling the PERST# signal + + reset-names: + items: + - const: perst + + required: + - resets + - reset-names - if: properties: compatible: contains: const: brcm,bcm7216-pcie then: + properties: + resets: + items: + - description: phandle pointing to the RESCAL reset controller + + reset-names: + items: + - const: rescal + required: - resets - reset-names