From patchwork Fri Jan 19 21:52:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 13524204 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 8EC13C47DB7 for ; Fri, 19 Jan 2024 21:53:18 +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=KXhSOCNnyDdR3tmSsLN0e39qDQxQNZpmqLLigbYlURM=; b=bUXMfQLabjuhhg DuQYYEz54/qexAqaZqBECdGgl8Cj6HEOVQ2lMvOkSTLmedIMz6qXAh1tBxwc6vRv4eFcyqwtK/kF9 r5qTFhNbcl8hlwR8eNBkRsXTgktTXzVzMASKlVLTrSdHCA0MZ2VZUu5vnXH0OX+rP8ILF8+iIcmtD 0vgbMG9QWh0bM7lkOlVycFty6YrbzB95QYO7BMOnN1iWLemlMvox/Q1nGvrmOWcMkmUyA3IVl/Gr2 y6zewworB1MzhoxKH1rtFm2yrlgQg/hZwGbPQJAk4uZ1UOuzJmYhIJ3/5PPPTnZzpKEF3Bi7h/0/6 27h/aHGihqHUZdwjJPNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQwnE-006i66-2Q; Fri, 19 Jan 2024 21:52:52 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQwnB-006i5C-1t for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2024 21:52:50 +0000 Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-7832c90a937so17162385a.1 for ; Fri, 19 Jan 2024 13:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1705701168; x=1706305968; 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=NxvMQQ7cw2gsLCcsoE9goayQo/WJyflLSF+p9kOGvCY=; b=ZD+KHVd+5soIwB4OArRwVhFLn5xyuDxJthtkeOSebfDN1qRsSeIBWVEwJvAOVqWu13 eurAjOn52DQnO8N1uVGSxp7AeEpbVYR8SHjfEkoEjyDJEokVjprl56ZeJobxK9QBcCTm bVFQ71grvGZxikhIHcEyZ+XXg6GZOMFuAUz/8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705701168; x=1706305968; 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=NxvMQQ7cw2gsLCcsoE9goayQo/WJyflLSF+p9kOGvCY=; b=KI66AsMDS/XN1O/SxmpX2pI0nJzRTvb7ZROKezxQVo7oFBlGSext3LFLnWnjmKGlDs jVXpt+MITmEzkad/Pm8q4z0VyW+ige/P2kSVFDGKbwkow8Numc+TnD7x72DcIwOKtPQM aoJASao79rLBrvJoLrhSCKlGAQ7q+Xg4DWkj6p6ZDPCNiyKQF6CPwjGosm39Jcep9Jzc lORAqJRBcxEOosFI1jjw+YKjd025B1hJyKMvKNhRYhpgY2haMaPbPfeE68f/auUm4K8t KKatu5ueFEvH/foXgUocnVZbYfW/auG2bxAykgS71nmH+kTVJ5P10laf5WwStRDGghWg f4bA== X-Gm-Message-State: AOJu0YxQy8yJ+k4LO6e6jg0IK83C8AFT4wde5b+hnRLduLFtEXdq+6gV 8hxOPLtnTY3AlmCp64mVwqhyc9LlWfNjj8xYhmfkZNxpGFmfoowmFyNhptSO/Q== X-Google-Smtp-Source: AGHT+IEwqcV9NPYWlpUvbEJCOUcZWbtvV7l4qVpfN4myRi+kOJ5mYU3cTq53LuDpFAtnInmfd2cNnA== X-Received: by 2002:a05:620a:28c3:b0:783:8057:44e9 with SMTP id l3-20020a05620a28c300b00783805744e9mr1070631qkp.2.1705701167791; Fri, 19 Jan 2024 13:52:47 -0800 (PST) Received: from lbrmn-mmayer.ric.broadcom.net ([192.19.161.248]) by smtp.gmail.com with ESMTPSA id r1-20020a05620a03c100b007815c45cdc5sm53272qkm.95.2024.01.19.13.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 13:52:47 -0800 (PST) Received: by lbrmn-mmayer.ric.broadcom.net (Postfix, from userid 1000) id DBDFA892; Fri, 19 Jan 2024 13:52:45 -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 1/5] dt-bindings: memory: remove generic compatible string brcm,dpfe-cpu Date: Fri, 19 Jan 2024 13:52:24 -0800 Message-ID: <20240119215231.758844-2-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_135249_625493_10A59EA7 X-CRM114-Status: GOOD ( 11.65 ) 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 The generic compatible string "brcm,dpfe-cpu" is removed from the binding as it does not provide any actual benefit. Signed-off-by: Markus Mayer --- .../devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml index 08cbdcddfead..e2b990e4a792 100644 --- a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml @@ -16,7 +16,6 @@ properties: - enum: - brcm,bcm7271-dpfe-cpu - brcm,bcm7268-dpfe-cpu - - const: brcm,dpfe-cpu reg: items: @@ -40,7 +39,7 @@ additionalProperties: false examples: - | dpfe-cpu@f1132000 { - compatible = "brcm,bcm7271-dpfe-cpu", "brcm,dpfe-cpu"; + compatible = "brcm,bcm7271-dpfe-cpu"; reg = <0xf1132000 0x180>, <0xf1134000 0x1000>, <0xf1138000 0x4000>; From patchwork Fri Jan 19 21:52:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 13524205 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 ED64FC47DB7 for ; Fri, 19 Jan 2024 21:53:28 +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=5TsOS3cxdh57KnKmSSS7NE94TJdZUdKyeizqIKhKhG0=; b=vejD1Oj3sCTxpL jLwP+sItepA7bXpcCLF+D0IZZjVP2QM3P5PWtFi512lZcp0J9OVaz1yvYTiTXIerVsj38MRthidUv 0l7g1ZnDpa9KFXmV/dxGlFOREZfja6DG9nXjn67K3rYA4wNxFNw+pDxHKUFYfrDG8dgaH7DTK1Rvs Cnr+GoYZYQNeH8JLRAmgkOfaUtb5ZstqT2qdensEsCRbzwxa4fls3I0sPesTOCERf1irOLmKgfnbU PvwnnpsNlHw6hPHlEnEt/0q179Htu++J+tnzTgs35o0Ccr9vDYHTCWGpZ2RB2pfMnK79ou1wb/xgM SrDZZ4sAwU1KG0PtS1bQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQwnQ-006i7W-23; Fri, 19 Jan 2024 21:53:04 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQwnN-006i6k-2v for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2024 21:53:03 +0000 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1d437a2a4c7so2371575ad.0 for ; Fri, 19 Jan 2024 13:52:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1705701177; x=1706305977; 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=N217XVlRe7wezGa7cLIHEh9nINk6p1K3qXyyPi/NC88=; b=S7m8+YLmExqeyr2dgcM2Us5SGODdZed7OgiaZJwCC7vjHIPdNQXyEJ6ysoPlpDVzoN BJcSv/gUI9aWy2iJKY7HjfqOIuAg12Tok951bKH2UTH+tqUnt43THyYq5UEBmJISn3kh 0kvJIINnIRrT/bQcMoOqx9+IEWn4bWq+RVjR8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705701177; x=1706305977; 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=N217XVlRe7wezGa7cLIHEh9nINk6p1K3qXyyPi/NC88=; b=jRc25HYubQEb1EkJdPwd2HEUfkTyFaMoCAHOKk+ohYicGOUYM8/3Kt8C9Sg7bzKWKe Jtuonv6hFFg9wHDBsRkkBLm5c/rwHHKVAbPZ9gLr3FmsmXJrwrN3nMQg4V6RHGOvmidS ma+X3Swb+J78YbDBIQYaborXnsRo2mPy/+y9RHfxvXMHGx4BQO3sseJc7I0+33G2lTkv mhqFLCYXcGTn5gfi4NrZYu2clJmktdddpTvglJ+JCJrNelB7BFk7k+37jEXPCrnJfTc3 b/4eg0NAeDl3kAi3Quo/xAXjg88DCrtCgmr77g8iP0YffVqvXQvRr7r9cv4vaMxYmgR3 w7vg== X-Gm-Message-State: AOJu0YyxvBShdYUwDGnOXV1LdwycSrv6uOrWe082+bMk17owoNP5frTa umJxHoGEofsdnifDDlY5kLXO/ItvXlQlWm/KEPpcOUUFYUYUkZ+DdWwR+Ki7mg== X-Google-Smtp-Source: AGHT+IFhDy2klXhGvwip9TXGOtburx3s5umqsFvs9szrk1bgN/YB9slmMQFsl0NveV3GANwSB8Jlkg== X-Received: by 2002:a17:902:ed44:b0:1d7:4e2:293 with SMTP id y4-20020a170902ed4400b001d704e20293mr1099816plb.0.1705701177248; Fri, 19 Jan 2024 13:52:57 -0800 (PST) Received: from lbrmn-mmayer.ric.broadcom.net ([192.19.161.248]) by smtp.gmail.com with ESMTPSA id b6-20020a170902650600b001d5ed020153sm3563541plk.224.2024.01.19.13.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 13:52:57 -0800 (PST) Received: by lbrmn-mmayer.ric.broadcom.net (Postfix, from userid 1000) id 08170894; Fri, 19 Jan 2024 13:52:56 -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 2/5] dt-bindings: memory: add two chip-specific compatible string Date: Fri, 19 Jan 2024 13:52:25 -0800 Message-ID: <20240119215231.758844-3-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_135301_940540_88E8FAD5 X-CRM114-Status: GOOD ( 10.26 ) 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 brcm,bcm7278-dpfe-cpu and brcm,bcm7211-dpfe-cpu to the list of acceptable compatible strings. Signed-off-by: Markus Mayer --- .../devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml index e2b990e4a792..3f00bc2fd3ec 100644 --- a/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/brcm,dpfe-cpu.yaml @@ -16,6 +16,8 @@ properties: - enum: - brcm,bcm7271-dpfe-cpu - brcm,bcm7268-dpfe-cpu + - brcm,bcm7278-dpfe-cpu + - brcm,bcm7211-dpfe-cpu reg: items: 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>; From patchwork Fri Jan 19 21:52:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 13524207 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 F4219C4725D for ; Fri, 19 Jan 2024 21:53:46 +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=2Q7+mxYFB15iUzUDoi2qKtgNYekKDBmNYvM/7f2qfmA=; b=uXUiClO/2bZRKy KeQLiXeDBB3jfg7/GGgARhz+f22w8P2vITG3FAGBRsbJAC8FzzLX7XcoXLw+9GfRKDsnJm0JHnfOM OCWNzjV49GI4FMF79lao3iGbqEC2P33DgYtHe6qbGTc0AqhO4+la9XPGlWH9+yFSS2dWtiiVwZUHP 8uAYW51JQx/Ya+309L9Sa7NXGV7L4Vot+YWwzK2C6ZQOTi+yTiAeMjJtkCGaBEQOZRC/4lq5T9Gkn zlht6TvskcMJdpqdrETdnqVix4E5w0MeDUJRPRAz028VRqw66F72UyxghAZuaMw7HcqOEKJ1SyVZ2 Cytbk5uOGU7n+DsWhznQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQwnk-006iD7-13; Fri, 19 Jan 2024 21:53:24 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQwni-006iAi-18 for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2024 21:53:23 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6d9bd8adb9aso240761b3a.0 for ; Fri, 19 Jan 2024 13:53:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1705701197; x=1706305997; 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=e3iQb1vl+tt2av6kIa+SOa0cwuFC4+nUXcEhLuomvqc=; b=UqOWvDJK6vjT/2eVPRbiSrTAdWeEpikCoGuA9bna482c7R46lebVAH1Ng+0YTizxL6 QdzIwX83Yi4ww334NFbbnLZERUPFYZ2wMFbmQ6PgogWGXUrz3twlRE3ohzPLZ85mOPGw QTUJuZhJatPkqkyHPr+TtdIrysB8FUiCldwD8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705701197; x=1706305997; 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=e3iQb1vl+tt2av6kIa+SOa0cwuFC4+nUXcEhLuomvqc=; b=JQp8SEPBpximVfrIw2StcwJ/xjf/f6Ek6Pi91BUq5//Q31nt5qx204cQX9hLrgqHzf ovBriMXpdoVDgqhdjKsOfBudkPqRG0XJrOJ7aDE8D/1G2qnG+csVuuIRsQaukzlfcUle hVY5MquG5vzy+jgOaGMMGa+50tdCyyc+DjO5AC1GbR1+FxbRrk02ZCpHSHBETWzRsTg2 d5x9BRdI/37+ALmoR9APEmVTC7g9tY5ymtbh5Rzn8L5iiR21YYEXj4J/kW3DckGQW9CG ASKOtWt4E0Z9xNb8WeebG50jqEZj0zIAuD/ao4eVwnxjHNnXFz3z0tSc0VLfVMIl19Ln 6vUg== X-Gm-Message-State: AOJu0Yz6RiF2DlG3RoAOVwhoxNllCRbUH+sgnJWyVuijAP3umgKBGdNg 0FXOy3N0IWu47PIkYXOOyUtvPeqGcsq7G5kPETOYTgqLbJWKu+H3rbGyE7jt0bpvvDJBCE2WY7k aCw== X-Google-Smtp-Source: AGHT+IGJOeudGh/LDX95kyvunwaEN6ukvUq3VCgqlAc5PFouWEfgKBcnQl48s8FXBeJr0q/DMf/WWQ== X-Received: by 2002:a05:6a20:9586:b0:19b:20e7:d6b2 with SMTP id iu6-20020a056a20958600b0019b20e7d6b2mr905782pzb.3.1705701196949; Fri, 19 Jan 2024 13:53:16 -0800 (PST) Received: from lbrmn-mmayer.ric.broadcom.net ([192.19.161.248]) by smtp.gmail.com with ESMTPSA id 13-20020a63194d000000b005cdb499acd0sm3891325pgz.42.2024.01.19.13.53.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 13:53:16 -0800 (PST) Received: by lbrmn-mmayer.ric.broadcom.net (Postfix, from userid 1000) id 8AC30898; Fri, 19 Jan 2024 13:53:15 -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 4/5] memory: brcmstb_dpfe: introduce version-specific compatible strings Date: Fri, 19 Jan 2024 13:52:27 -0800 Message-ID: <20240119215231.758844-5-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_135322_386420_098276EE X-CRM114-Status: GOOD ( 14.40 ) 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 Introduce compatible strings brcm,dpfe-cpu-v1 through brcm,dpfe-cpu-v3 to the Broadcom DPFE driver. Signed-off-by: Markus Mayer --- drivers/memory/brcmstb_dpfe.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c index a7ab3d377206..a44a70d028f6 100644 --- a/drivers/memory/brcmstb_dpfe.c +++ b/drivers/memory/brcmstb_dpfe.c @@ -924,7 +924,20 @@ static const struct of_device_id brcmstb_dpfe_of_match[] = { { .compatible = "brcm,bcm7271-dpfe-cpu", .data = &dpfe_api_old_v2 }, { .compatible = "brcm,bcm7278-dpfe-cpu", .data = &dpfe_api_old_v2 }, { .compatible = "brcm,bcm7211-dpfe-cpu", .data = &dpfe_api_new_v2 }, - /* API v3 is the default going forward */ + + /* + * Match the DPFE API flavour based on a versioned compatible string + * that tells us which API version the hardware speaks. + */ + { .compatible = "brcm,dpfe-cpu-v1", .data = &dpfe_api_old_v2 }, + { .compatible = "brcm,dpfe-cpu-v2", .data = &dpfe_api_new_v2 }, + { .compatible = "brcm,dpfe-cpu-v3", .data = &dpfe_api_v3 }, + + /* + * This "default" compatible string should no longer be used. It has + * been removed from the binding but kept here for backward + * compatibility. + */ { .compatible = "brcm,dpfe-cpu", .data = &dpfe_api_v3 }, {} }; From patchwork Fri Jan 19 21:52:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 13524208 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 1503EC47DB7 for ; Fri, 19 Jan 2024 21:54:01 +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=MrYs66XaqkFwxuANtuSBijDY4mJr0aEN+YzOfNi79O8=; b=wIgtXJCTlTCwKa klOjdKPoby27p3Nw3fPi32HkYprh93VPTMscVOHmPewXDKgncpL0ppRWZtidDefmioEDz0JsuYSac P5/verL2SPsTiJQlCWgeFojJ8tIrkiXijhYSkc8av0wR0oFUkEVPV8F8rsn8NkUj+PXTd158OliFY ZHuweIcEUyjwPJiRwsH0XUy6fcjS8m5vnpHFRFbM/WyKy/Xap/MsgyGahErld3HDqiTAzO9r3/ei9 lHvPMFZ7cl3mwdBLqZbFzgDUVj7/ISVioUm/XWvi7p+EeNc/DSJsQtF7irsa+f3jWUIPu+OWaSavK Y788PMbgJrYYuAOrCy1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQwnw-006iHQ-2x; Fri, 19 Jan 2024 21:53:36 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQwnt-006iE4-19 for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2024 21:53:34 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1d3ae9d1109so2152745ad.0 for ; Fri, 19 Jan 2024 13:53:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1705701207; x=1706306007; 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=4foceVJeKU3mOZhwsqt+SDrGA8I9pAkcPI2DCqgKfW8=; b=eydyxTt08c7chF8NqSpmx33ZlRnyHY090vgDBKB7c4aTQr86X77G0+CIEsuEvdLdXu RF8ul/jBb0v5AX6mZoKKsegNxRM0/gZd42BV3JCkDnomhii7NppuWNnijQxQM2OvY4QI REvIdgm3eEQsIWg2zlHJceLNjLnzqO1a56aqc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705701207; x=1706306007; 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=4foceVJeKU3mOZhwsqt+SDrGA8I9pAkcPI2DCqgKfW8=; b=Zfd/07owHiquEaws0gsnzaFhzfPnuXpGicbcb7u9W7wH33XJhwj79HU6POWWnS+Gle bkhmveIJD9MTb2KGlTVKd3E630OcA6T2YfgO6zXp/B2+5oG9jn6lCaXrzCJl1U3ZF7lu ifCMmZzPLJp2i0L0asAU+k4KQ58JmRd74OtZRCl8PX0nFa0arwlvApBtk4YNgV437s7q z+iYiStYAvkTxF+maJElUdLQVJn8yA7VpZe0WeOvbUZeJhTXQXV4Oyu7a+2cho/pAkhM kDxKbZ0+U9m0g0rdHNu+tJFF3eL/ZlNLQgE41sHhodD7K4Ytyhd6Usbq8FI9hNb8ThGY fXwQ== X-Gm-Message-State: AOJu0YyzqhSoPy5E9PWwJcIkQ//TN60YNjkYGwHk6u7VZcubfuzPGgTw Mv5tqCIOLEJjJdS2GSevLV8fIm9TffIrFegrS+letaarj8pVjIU6OILsS0Y9QA== X-Google-Smtp-Source: AGHT+IEPlEjeWnPqgsDAVLeQmSjXW6eI+DLozLXQSMdK1MKkz1OHDLdAaeP0RQjOtee5AAJ7UJmZmA== X-Received: by 2002:a05:6a20:439f:b0:19a:efad:f1c3 with SMTP id i31-20020a056a20439f00b0019aefadf1c3mr1075337pzl.4.1705701206901; Fri, 19 Jan 2024 13:53:26 -0800 (PST) Received: from lbrmn-mmayer.ric.broadcom.net ([192.19.161.248]) by smtp.gmail.com with ESMTPSA id e11-20020a63f54b000000b005b92e60cf57sm3932995pgk.56.2024.01.19.13.53.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 13:53:26 -0800 (PST) Received: by lbrmn-mmayer.ric.broadcom.net (Postfix, from userid 1000) id B163E89A; Fri, 19 Jan 2024 13:53:25 -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 5/5] memory: brcmstb_dpfe: support DPFE API v4 Date: Fri, 19 Jan 2024 13:52:28 -0800 Message-ID: <20240119215231.758844-6-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_135333_394661_1B85DC7F X-CRM114-Status: GOOD ( 16.29 ) 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 support for version 4 of the DPFE API. This new version is largely identical to version 3. The main difference is that all commands now take the MHS version number as the first argument. Any other arguments have been pushed down by one (i.e. what used to be arg0 in v3 is arg1 in v4). Signed-off-by: Markus Mayer --- drivers/memory/brcmstb_dpfe.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c index a44a70d028f6..97dcb3762666 100644 --- a/drivers/memory/brcmstb_dpfe.c +++ b/drivers/memory/brcmstb_dpfe.c @@ -37,6 +37,9 @@ #define DRVNAME "brcmstb-dpfe" +/* Generic constants */ +#define MHS_VERSION 0x04000000 + /* DCPU register offsets */ #define REG_DCPU_RESET 0x0 #define REG_TO_DCPU_MBOX 0x10 @@ -301,6 +304,28 @@ static const struct dpfe_api dpfe_api_v3 = { }, }; +/* API v4 firmware commands */ +static struct dpfe_api dpfe_api_v4 = { + .version = 4, + .fw_name = NULL, /* We expect the firmware to have been downloaded! */ + .sysfs_attrs = dpfe_v3_groups, /* Same as v3 */ + .command = { + [DPFE_CMD_GET_INFO] = { + [MSG_HEADER] = DPFE_MSG_TYPE_COMMAND, + [MSG_COMMAND] = 0x0101, + [MSG_ARG_COUNT] = 2, + [MSG_ARG0] = MHS_VERSION, + [MSG_ARG0 + 1] = 1, /* Now the 2nd argument */ + }, + [DPFE_CMD_GET_REFRESH] = { + [MSG_HEADER] = DPFE_MSG_TYPE_COMMAND, + [MSG_COMMAND] = 0x0202, + [MSG_ARG_COUNT] = 1, + [MSG_ARG0] = MHS_VERSION, + }, + }, +}; + static const char *get_error_text(unsigned int i) { static const char * const error_text[] = { @@ -932,6 +957,7 @@ static const struct of_device_id brcmstb_dpfe_of_match[] = { { .compatible = "brcm,dpfe-cpu-v1", .data = &dpfe_api_old_v2 }, { .compatible = "brcm,dpfe-cpu-v2", .data = &dpfe_api_new_v2 }, { .compatible = "brcm,dpfe-cpu-v3", .data = &dpfe_api_v3 }, + { .compatible = "brcm,dpfe-cpu-v4", .data = &dpfe_api_v4 }, /* * This "default" compatible string should no longer be used. It has