From patchwork Thu Nov 26 13:59:38 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: 333197 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.7 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, USER_AGENT_GIT autolearn=ham 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 4A10BC63697 for ; Thu, 26 Nov 2020 13:59:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EECB72220B for ; Thu, 26 Nov 2020 13:59:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RQoaOkSU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389963AbgKZN75 (ORCPT ); Thu, 26 Nov 2020 08:59:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389434AbgKZN75 (ORCPT ); Thu, 26 Nov 2020 08:59:57 -0500 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6D19C0613D4; Thu, 26 Nov 2020 05:59:56 -0800 (PST) Received: by mail-lf1-x142.google.com with SMTP id a9so2682634lfh.2; Thu, 26 Nov 2020 05:59:56 -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=JNjJs0BvJahY/+VGLEXl85C29CGiRgDhT4AZcshOF7g=; b=RQoaOkSUEgBdsgNMU3DF2KDmQDYAMhwsfZhgcOOZdK0nRBCfeDn6ZfLYdB/vWA9FJk 6Lzf/7P0Yhb3xJzgSLlcAhoJ5Ezwnasyv6nSKaCIpP0p7Ml/1dxDu2k3san6f8xFig7V N8VmceDeCGhg5kVnW5tsmLV5HZM0wLmDIcKe6J2IpRZ5xIvvD8w2agXiQdJfgDIrB9jR urDHDgrAI8ljxPSNKU5SkK8D22v5iUfOQnwe9yQGjaDC3VJS+jWUsqhBqzLGVVEam9aP 7IS8uHQ2ylM1/MQbPHxvJ87QHzOl2SftOOQIuzJVjuBPWBbKhrP8gxuNZx2mZpYThlBl Mv4A== 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=JNjJs0BvJahY/+VGLEXl85C29CGiRgDhT4AZcshOF7g=; b=QgUh9Dq82Odrw+3ltskLhuD+eG3FSuptLXisPbUKToeEXwu2bBy6e8zbSMTL+HC91X 8iZArdJ4xz5fk0PhCLxlBDno2XptZiGB0oxusJQB+nFU4VuNq5fEAkwPAk30e4gqHI+A U3mcEsAftkubpN2CK8JGN9BcKGlI3yeRvBsNlhL0+bdCJBso3AIzFpZGogPUyCGB3XHW NlUU329+MOY9gasY97FIuUmaM1e4UBNteLqoMUVlavozwprIhc8Lb5vAWjS3Ynts3c+c F6tJC//QiI7M8HWpyKfLo9k/gyOGGKZupt0mCr8jIx72ttQzPWegisXnOaca6UslO54a WoDw== X-Gm-Message-State: AOAM530WDBuy8VsWpTl744AI6X93gkJCmgNfpkmDJns+G7nBXmvhCzjG pZnuz29IjQz8MZNDIoklgHuFBQjpO7c= X-Google-Smtp-Source: ABdhPJz6BuNibm7X8+lmf45vtfgvZ1GvQQqxCag013HKa2zESRzygP1d+B0hLlaQBvrUOKQiID67fA== X-Received: by 2002:a05:6512:3128:: with SMTP id p8mr1326807lfd.13.1606399195443; Thu, 26 Nov 2020 05:59:55 -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 a11sm605188ljj.4.2020.11.26.05.59.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:59:54 -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 1/2] dt-bindings: PCI: brcmstb: add BCM4908 binding Date: Thu, 26 Nov 2020 14:59:38 +0100 Message-Id: <20201126135939.21982-2-zajec5@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201126135939.21982-1-zajec5@gmail.com> References: <20201126135939.21982-1-zajec5@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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