From patchwork Fri Jan 19 21:52:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 13524206 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 07C20C47DB7 for ; Fri, 19 Jan 2024 21:53:37 +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=udUJZ0uWZDNA7mYg4uKeoHI5/tjXK5WYp6wLnlhlLkM=; b=48E6KRLlSzps9t z5vMh9Sp4H8KVBiVNTmyXercxdYDmQDmxYHjmDdi1EijSCWMrgB2ezZ9I7foCcgy02X8FRUmOCdSd Lq+znTIwu7E5eRq3POQOsMrnRVFH8ePf7DGWaqJh7mEwzfyo9oLt+RYKLb+1PAJY4vpdEuBtTzFew I2dvf2JRJiq84G9qmSUtoE1aQv+eZ6XNzx7wPFBoQCvkfKw/k+X/DtaBBtc2LOgDfF8gHxBPN5Rn9 pe9p9dX99mwRiuhLrHxDgbw0x777ejtT/gACkN3YMi0CwNdWaQ7VVvang2fpsAgHTU/qMjl2Bl1EX 6Zl9Eq8AvPuVkGiHPn2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQwnY-006i9E-1L; Fri, 19 Jan 2024 21:53:12 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQwnV-006i8J-2a for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2024 21:53:11 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1d6f7879fc8so2217455ad.1 for ; Fri, 19 Jan 2024 13:53:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1705701187; x=1706305987; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=52nF8gSoCS0KHkQNmOMGAsgA3QYBrBSfGVR4C/0u1l8=; b=XNrnwwqXgxw9xjAROjjNVCgT8lkfNKvQxPoZfJAk+ruzjWj5XF14gzPGMqbMXRzWsY 9XKgGVtID/mcdG49m7i33Km4WDqeP/VMeFYULYj9O0g99dGHe7spY5UJKTBEx6TjOMJc 4EIW8/IHPXg9O+9H0CGXacHQpO2kz6In2Lyuo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705701187; x=1706305987; h=content-transfer-encoding:mime-version: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=52nF8gSoCS0KHkQNmOMGAsgA3QYBrBSfGVR4C/0u1l8=; b=bnniBsVd5F89X7E4D+ZJvPGA7Ooe2hrX3lhAAB3p7ib0v3GmLwDqoI10/r5g79znNw PzeRc5ksCDHaahSWKg8ECKBvaGCOZ8CEJHavhcefaVZHU8j7TzIpLkkdtbM8XYHprHYr nLgkW4x9Z8LUKIE3dZ+VUaNAm4A/+RPHznYo+m/XWK2JdOFuhNA9D640Bb2xEoIXDKBo +85QTxi4LD6+MzMIARyKcDj/ostxDO3UU7l/CIx05nfHbleHjZICp8DH3MQswji8sC0j BjzvPzSLeGryuJHDwwscSJMISmMifxHfPpnXczyAMOahzdJUjugPjr1rVJV92lxlsWHs 1R4w== X-Gm-Message-State: AOJu0Yw11VHHvNnckO6gwGZQ6RU6Uwn+pcgEsLeGUL+EdFgJawoktEDe FkqC2U/21iNS6eFXo6GwHp82D1RlVOU7V+CuUd3Bwrsjajl/t6qBiNIDu1eZ7w== X-Google-Smtp-Source: AGHT+IH5O1E+gk6Y/oXTYpB/Fc2FG0hNJT5sfeuxZewVV1P4BFfUXEUiI3byxpo+O9QfXbi5TLU/tA== X-Received: by 2002:a17:902:ed44:b0:1d7:4e2:293 with SMTP id y4-20020a170902ed4400b001d704e20293mr1100074plb.0.1705701186761; Fri, 19 Jan 2024 13:53:06 -0800 (PST) Received: from lbrmn-mmayer.ric.broadcom.net ([192.19.161.248]) by smtp.gmail.com with ESMTPSA id g7-20020a170902f74700b001cfca7b8ee7sm3498494plw.99.2024.01.19.13.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 13:53:06 -0800 (PST) Received: by lbrmn-mmayer.ric.broadcom.net (Postfix, from userid 1000) id 9A751896; Fri, 19 Jan 2024 13:53:05 -0800 (PST) From: Markus Mayer To: Krzysztof Kozlowski , Florian Fainelli , Rob Herring , Conor Dooley Cc: Markus Mayer , Linux ARM Kernel List , Device Tree Mailing List Subject: [PATCH v2 3/5] dt-bindings: memory: additional compatible strings for Broadcom DPFE Date: Fri, 19 Jan 2024 13:52:26 -0800 Message-ID: <20240119215231.758844-4-mmayer@broadcom.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240119215231.758844-1-mmayer@broadcom.com> References: <20240119215231.758844-1-mmayer@broadcom.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240119_135309_836300_101F38B7 X-CRM114-Status: GOOD ( 12.92 ) 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 versioned compatible strings for Broadcom DPFE. These take the form brcm,dpfe-cpu-v where is a number from 1 to 4. The chip-specific strings have been kept for compatibility purposes (hardware is in the field). For new chips, the properly versioned compatible string should be used. Signed-off-by: Markus Mayer --- .../memory-controllers/brcm,dpfe-cpu.yaml | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml index 3f00bc2fd3ec..42c8160d95d1 100644 --- a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml @@ -10,9 +10,28 @@ maintainers: - Krzysztof Kozlowski - Markus Mayer +description: | + + The DCPU (DDR PHY Front End CPU) interfaces directly with the DDR PHY + chip on Broadcom STB SoCs. An API exists for other agents to retrieve + or set certain DDR PHY chip parameters by JEDEC. + + Different, incompatible versions of this API have been created over + time. The API has changed for the some chips as development progressed + and features were added or changed. + + We rely on the boot firmware (which already knows the API version + required) to populate Device Tree with the corresponding compatible + string. + properties: compatible: items: + - enum: + - brcm,dpfe-cpu-v1 + - brcm,dpfe-cpu-v2 + - brcm,dpfe-cpu-v3 + - brcm,dpfe-cpu-v4 - enum: - brcm,bcm7271-dpfe-cpu - brcm,bcm7268-dpfe-cpu @@ -41,7 +60,7 @@ additionalProperties: false examples: - | dpfe-cpu@f1132000 { - compatible = "brcm,bcm7271-dpfe-cpu"; + compatible = "brcm,dpfe-cpu-v1", "brcm,bcm7271-dpfe-cpu"; reg = <0xf1132000 0x180>, <0xf1134000 0x1000>, <0xf1138000 0x4000>;