Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp959281imi; Fri, 22 Jul 2022 13:35:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tNBSTcw8Q+Cb8+JbFEIHHyycPLiA621VqvxiAAmcoexxw1QZhENl8dpswSm6wbStSrK71G X-Received: by 2002:a05:6a00:c8c:b0:52b:1169:6a6d with SMTP id a12-20020a056a000c8c00b0052b11696a6dmr1777602pfv.2.1658522156609; Fri, 22 Jul 2022 13:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658522156; cv=none; d=google.com; s=arc-20160816; b=OMDIOe//oy2gKmblnVxsd9McdW0ggGGKagf7I2GoebRb0vXtm0oB5rroneFMliAd3E lTO8UuMG+2lkeqNFA3UISl7q3LW4eVpBP8FshHqUTLcT0fneet2cRpLTzsomaMY6e+x1 Qbsm5YsMWnslK/X4o/A7UJCv6KmfzkibYSPOlfegmwhG5uNF6x+HpY25UrQuUEDtPnIK 0ghwjgIPcwHnoxiYvnuIslDYzz/Qcvgg4GV+KNmsYfCNYfSx2S4GDrHOOf/EKOgK5MhT UviR7ZK7dLNh/wYwRq/J5Jqq8z3j6koFODZe2/5dw8/S4tfLTkP5LKELpFBjo8qmLL88 ABfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Lbo5uECb0o/jiIgG5lB+d7+oEGREOOe63VzH02hiN10=; b=EUj4NzsgxZaIADZLHlkic8m3Ek/Jq4Vqatfar9y43KZubYGIBp9SrioWTHUYuyanOq Jy6JvPBb+o7AyHGDu/YAVxc5Ji5kNGMTdxBcy39xZUhTlGKqlf+D9q9YaxfRr9d1bX36 CaVd2qdVhB1N6VUGqPGa0zl8ZLZhYo+9f9xQ8AWu8gbyhJ3x/FbrgGX2p4KzrOxAt3R8 SxJ/Js2C9Nj4ecMDm9uJsXNMaGL4T5ag9vL5EQyXADkBhh7J8CBibyx3T10dw2pPuDQi X6yCEV9NQx94YBISO05XqV/c9c+SXud1ToS/rxWod6rDkQUw6NrzvLoAb7CJ/iqRwxcB S7eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pIRZCYJm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f1-20020a625101000000b005280e22a90csi6628809pfb.46.2022.07.22.13.35.40; Fri, 22 Jul 2022 13:35:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pIRZCYJm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236722AbiGVULs (ORCPT + 99 others); Fri, 22 Jul 2022 16:11:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236702AbiGVULq (ORCPT ); Fri, 22 Jul 2022 16:11:46 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C0079FE0D; Fri, 22 Jul 2022 13:11:45 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id c139so5348141pfc.2; 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=6p8ZWR6xNgYJsvaMZgOZTMJfzII1RL0viXRfuENWYGjI15L6V0iu98yihFCL+SMNyB oCigd556Pb9MHTzmNRnRODWReyJZpXBpdfuPsqwNa5VSiJ29AFuIRkwRBi6lFhjvUzV1 wRdsoTJpzkvqdkI6uBx3iSxLUbW/X5whLAn5Sh+IaqK86ZSudOiOYYfIQ/hlANhSCjIN 7V83wYWurfrX8W0H1ycgS6WNIwG5O14vTxDR93AsfoE0lyqPFSyM8HefCE14C0VdNn+M UxyT/998L0DVjiZPyVdb4mAQfcs79YyAPhRPKOqeUw5ISrw7mJQVVYn9jpb5hKYAGy1N X8aA== X-Gm-Message-State: AJIora87UHricfuoxPsVAz5DNW/NsUblZqNlxIvhzG0LZIIZnSu0b8Jn uejQV1IyR/iao6STNLymta0dMFUd6xI= 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- .../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>; + }; -- 2.25.1