From patchwork Fri Jul 22 20:10:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12926856 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 3D81DC43334 for ; Fri, 22 Jul 2022 20:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zPo5bhmNwSC7EHh6U2eNQKrQ+usc0zl/AtKchoTUI5U=; b=rUfpjOXsq+d0an iXpUkDobJak8mTYXRn5Q0EDIpvwkRNuleg5QH8adgLTGah8syPAB6bnw0JS8OV+RF/TBa6lfPegMd R/xC8Fb3bFOInyZx3izZTT5Xp10tX+IhPvCuS0lctdEuD7Bw2mYhWXTdsepRE/KYo+564PqExQzlo WQxZWyL+8w3OzCV4xjs906lzqHlq7gxPJdUoJYuHWvMb6fNnujj3TJW/JMR0138ncqvzDYooyw0Pz dAdNoQqvf1K43yR5S/d1DiTFnwxohSzCZTfOj8LYybW3SA4MydslJcf8SKXxFiHQkrne27UmTTeVH 2GoIAECL/u68f6tZHL2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEz0B-009pQL-8j; Fri, 22 Jul 2022 20:11:59 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEyzy-009pBV-JN for linux-arm-kernel@lists.infradead.org; Fri, 22 Jul 2022 20:11:48 +0000 Received: by mail-pf1-x430.google.com with SMTP id b133so5339438pfb.6 for ; Fri, 22 Jul 2022 13:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lbo5uECb0o/jiIgG5lB+d7+oEGREOOe63VzH02hiN10=; b=pIRZCYJmMVT98nQge1EzLzSpw3xkaPz+b/mLErevak3WGzOn/C+WvvGhCxaZIVgbAp 3KWUHtgfm6CxB3fUuZrZHl8iF+qXL7KafXRcgD8i4msz7BoHXs+cjTWV1ZydHenMp9Is +WuLlMStLh6ccvgenVirflO2DLiGTrVXPGdnigRPHukAdwoZbAf8lLxUeiqN/sebqmg3 1QREJgFtu2a8kR9bljmv83OcAauD72vCIN+LWCzRt4c+BdlIJeB0tqg+1MfVW8duUijK keebtE76pq3CMZ6iHlNGGBaVQTiW4M1u2WjSC1LVNqIQxmf33VyWlZMzHzFV9vR/qjgF KjRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Lbo5uECb0o/jiIgG5lB+d7+oEGREOOe63VzH02hiN10=; b=rN26SHUkKSH1cFuN0cZsbR1Di7nhHF580hMybPbugC2Ca/yc+B9/RrgM+8E3xmfz4p wuD6n1EYQseve8y19cnOg9+5UhUal0kKLIsgx2NbWPi+uyCRi/YMo3gZ9rbGrmQnHgVM Sj5fy1lR0SIDagJJaimZ2UK+UhcD9VKJeyHuvz5jPjhJH4nsETGL/R3JoBKw+A97l8Vo 29wyd+/yhuhTykT1MSTmU/Nos1r6wpb1N/OR0TD2lSrNMLPVj96mX9QX9x9sAQVQ0lao QaVIq5rQAu8+iTE4F4Thy+Xy1y9YBHGtTssOs2xjqZHc/eeSkZ6juWDsJt8sIq7yzK/P GFYA== X-Gm-Message-State: AJIora9ZKCtojvHNUWWB9EXKLhtLgdUOAJvRCPy1MIExyVH6zsKwe7ZZ Dl5kDRIr+GLRjd7a/nbJjrDH3SVobgw= X-Google-Smtp-Source: AGRyM1sFhcDB3t1xGU2Of1ghtHRwoRHDTRV8XFilpEt0pDeJEHb2VLjQa/4LEfFlTqN4jQH8KCPboA== X-Received: by 2002:a65:6bc4:0:b0:3c2:2f7c:cc74 with SMTP id e4-20020a656bc4000000b003c22f7ccc74mr1208985pgw.307.1658520704327; Fri, 22 Jul 2022 13:11:44 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id p2-20020a170902780200b0016c0eb202a5sm4098604pll.225.2022.07.22.13.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 13:11:43 -0700 (PDT) From: Florian Fainelli To: linux-kernel@vger.kernel.org Cc: Florian Fainelli , Broadcom internal kernel review list , Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM BCM7XXX ARM ARCHITECTURE), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH v2 1/3] dt-bindings: memory-controller: Document Broadcom STB MEMC Date: Fri, 22 Jul 2022 13:10:41 -0700 Message-Id: <20220722201043.2731570-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220722201043.2731570-1-f.fainelli@gmail.com> References: <20220722201043.2731570-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220722_131146_725902_303731F3 X-CRM114-Status: GOOD ( 16.35 ) 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 Document the Broadcom STB memory controller which is a trivial binding for now with a set of compatible strings and single register. Since we introduce this binding, the section in Documentation/devicetree/bindings/arm/bcm/brcm,brcmstb.txt is removed and this binding is referenced instead. Signed-off-by: Florian Fainelli Reviewed-by: Rob Herring --- .../bindings/arm/bcm/brcm,brcmstb.txt | 11 +--- .../brcm,brcmstb-memc-ddr.yaml | 53 +++++++++++++++++++ 2 files changed, 55 insertions(+), 9 deletions(-) create mode 100644 Documentation/devicetree/bindings/memory-controllers/brcm,brcmstb-memc-ddr.yaml diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,brcmstb.txt b/Documentation/devicetree/bindings/arm/bcm/brcm,brcmstb.txt index 104cc9b41df4..e797d2f69f3b 100644 --- a/Documentation/devicetree/bindings/arm/bcm/brcm,brcmstb.txt +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,brcmstb.txt @@ -187,15 +187,8 @@ Required properties: Sequencer DRAM parameters and control registers. Used for Self-Refresh Power-Down (SRPD), among other things. -Required properties: -- compatible : should contain one of these - "brcm,brcmstb-memc-ddr-rev-b.2.1" - "brcm,brcmstb-memc-ddr-rev-b.2.2" - "brcm,brcmstb-memc-ddr-rev-b.2.3" - "brcm,brcmstb-memc-ddr-rev-b.3.0" - "brcm,brcmstb-memc-ddr-rev-b.3.1" - "brcm,brcmstb-memc-ddr" -- reg : the MEMC DDR register range +See Documentation/devicetree/bindings/memory-controllers/brcm,memc.yaml for a +full list of supported compatible strings and properties. Example: diff --git a/Documentation/devicetree/bindings/memory-controllers/brcm,brcmstb-memc-ddr.yaml b/Documentation/devicetree/bindings/memory-controllers/brcm,brcmstb-memc-ddr.yaml new file mode 100644 index 000000000000..a1479b75c536 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/brcm,brcmstb-memc-ddr.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/brcm,brcmstb-memc-ddr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Memory controller (MEMC) for Broadcom STB + +maintainers: + - Florian Fainelli + +properties: + compatible: + items: + - enum: + - brcm,brcmstb-memc-ddr-rev-b.1.x + - brcm,brcmstb-memc-ddr-rev-b.2.0 + - brcm,brcmstb-memc-ddr-rev-b.2.1 + - brcm,brcmstb-memc-ddr-rev-b.2.2 + - brcm,brcmstb-memc-ddr-rev-b.2.3 + - brcm,brcmstb-memc-ddr-rev-b.2.5 + - brcm,brcmstb-memc-ddr-rev-b.2.6 + - brcm,brcmstb-memc-ddr-rev-b.2.7 + - brcm,brcmstb-memc-ddr-rev-b.2.8 + - brcm,brcmstb-memc-ddr-rev-b.3.0 + - brcm,brcmstb-memc-ddr-rev-b.3.1 + - brcm,brcmstb-memc-ddr-rev-c.1.0 + - brcm,brcmstb-memc-ddr-rev-c.1.1 + - brcm,brcmstb-memc-ddr-rev-c.1.2 + - brcm,brcmstb-memc-ddr-rev-c.1.3 + - brcm,brcmstb-memc-ddr-rev-c.1.4 + - const: brcm,brcmstb-memc-ddr + + reg: + maxItems: 1 + + clock-frequency: + description: DDR PHY frequency in Hz + +required: + - compatible + - reg + - clock-frequency + +additionalProperties: false + +examples: + - | + memory-controller@9902000 { + compatible = "brcm,brcmstb-memc-ddr-rev-c.1.1", "brcm,brcmstb-memc-ddr"; + reg = <0x9902000 0x600>; + clock-frequency = <2133000000>; + };