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: 764043 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 240EB54FAD for ; Fri, 19 Jan 2024 21:52:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705701170; cv=none; b=YW8RZHsNdc+Q2RVv+/H44YobWqUy/OoyQAozVZLv5GkR041alUa4sKIn3yEtJBTec4reNsiyZ48QIERvKH/jjqejoelIlSaRWUkT4v6aTWNmKE6f8ZqD4yL658HhgE0K8jKMi9l+TGf02SrLoesrzESpCKNc42FNUMtCC0qY37g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705701170; c=relaxed/simple; bh=d9jaxlVL00j9oz8DAd6eYbWzOIbN5WdPFOpblbPNcpw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YYrbftV84gbCO1b5w//5aAZqVLUhYHdoQcesyn54h+ZUluqdgUPBBztnoxIdsCdJXovRSn5TNeeJnijc/2dq4nSbnJKyDfuqiLT+1FXb/8iwIC9f6LQaNB7CtR61/uVwo6Pt5sXRCFzty/zn7TutwWjO7OsI4QprWOnRVfDwZsY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=BLKvuwuh; arc=none smtp.client-ip=209.85.222.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="BLKvuwuh" Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-7832c90a937so17162585a.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=vger.kernel.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=BLKvuwuhy5Aq/se1O7kF3anRZU1dkBMIJcqbx6H2WXi1OvibLFgR2LD6q0evk4rZQR ATDVI4lkQSSJrIT/bT3dn3avBIsJqc//DQU0FhV2ikl05YkpAcFuhI7gfyeSsRyPFtUQ SG15591LPfPhIcLgYLU/MgmmEKUQSULu5RsZE= 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=m1Cm0iV0Ir46DS/IWXSJhIy3W3Rq7An4qQZC5L7hDJuHfcWdSKwCq3WuHdHxH9JlI6 +qK5gaqnd3yUDEs9VNB7EKwGUM1i6v++lLbnBWWlT8C7sIRYEn/552cWhD9GGKAJdA6N LvqanAVztQhN2MiTSh9enftDnnHzbvaZD6sZlcy7yl6/iIojmM63ypzP5aRFtA7tTF4i ouURHGCDUoZKBRauzeuNxkHQrxYQs1rUw0TUcDMDNADG7pmNQr8m5bkc8ovWc24ILbzB sF/OXoOg+zfRIMNZMDOl03NPsNqvukUJHNuhUpj0AXtzNPqCWevtlSDaJcqKq/nDM/SX NeeA== X-Gm-Message-State: AOJu0YxP0puXCXaHJL3jqkYH9A5k2dnP6DXbIxfsMqLuNKnpQ/JcMoMy S/2PBseJu2Uf2/Abp3yyJl5iWtaQ7Maw+sc70dzU/um/pu4yQgiC775lqqjSNA== 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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 764863 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F343554FAD for ; Fri, 19 Jan 2024 21:52:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705701179; cv=none; b=ADjlAZtVgp2575PzUmv/ANO1X2k0RlnrzeZTgwL946k7Z7BAXes9eXbSC1n7F9HPLIeqmBurZnDDEHW97IGOTjXtFWHr43Gujw6R0WygdSDBqGw6ZyM36MMXQ83XFy/S3ythKq7XV4IcSpeI/nwRCyUWAhBopUF0aPwld9fHomo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705701179; c=relaxed/simple; bh=/xM3CxxStXNfVbtIti3hPNUhtIkdy+N0iB3TKZ0N+T4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WviIMbCIUv+4s1Iz2teutxRB0E2y9+n2JyUPeQLUGREAaoewQ4UGP7Jnl3JudMmJ4nr/RzWPsg/mDMar8rcYRrWFtNU48luGijmdUCCX18zCn4WpOcek3oJ4bDNyyuHk7KTzNqQ5PntG6mKDMCXqPDp7sS0RLVfDKAzGeDkgrwU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=Zu/UZCN3; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="Zu/UZCN3" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1d437a2a4c7so2371585ad.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=vger.kernel.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=Zu/UZCN3svB5T+PFRtWIsFp+lG8YrJXo1n6CHM3f8gXN3YscWQBJfM/7mvZpIATzr1 6odpxLPAG9jirJRJI3bUpDxobUW8Os+xMKGvIJAs+jyCjAfPO21nkHfVM1764+h24Xoc uLNw676y9LV+ye2gTt2+PoZZ2Z6o7nBu0XuPo= 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=k7hBleRzbxvVBUwGEC7IuCq9EfXVdUGb7zmbeJTB3wBUMUleISFs/artNLLGvQ/Hiu vDdIL/jN2kiH7WI/y7mOu7hI0e9Tx+6+xfd9w7aVCNgYnKGpp6m30ORJd3A0XNqVVBnj XY524IQP30IKwWXQUGE5fYAMjXcz/IcpI4wo39Aoiil3YWcBxTidoBig8ryx3s2fqyOt SkaiSMkam3xUwwoOBRcOXh0hV9nh09y2zUYXW6tPPGjgo45iZKtl6R/bDC70W/lOcN1i gADgrVzDob2eREb40vYYUD5nlVe4whKa7JZ+IEdX1K7ok+K+/n7/YRImDqMJ7/YMoq8h nwOQ== X-Gm-Message-State: AOJu0Yxc9XQPCmMKw08mEY3dvPewOR+a7SlqDS1CUlMAAuN6NV0tN5xC QdsXz/29KJhOAhiCFtx9Pc1va4FZY42yJXymrMDDUzfAHUzK5VDvM3+waxFPLQ== 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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 764042 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 691BC58132 for ; Fri, 19 Jan 2024 21:53:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705701188; cv=none; b=lwUAgtN6vwAmYfch0p3hRi35OHFlfbCDC/lsp2ut1qucgf+NRIz39PM5h5rIIp5TVgdyDgknl1Q8h8BEtxtB6mHiKLEdvr+TguYKAonlMtEHS7OT5mFowrG6WDUblYMfa98HZJ/vNVROxhX2dZbjlqnED0QeeY8m3Oenb2fo/4k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705701188; c=relaxed/simple; bh=dWNEkY4iVt136RB63LZtGUPiVcPhJJH3UaLTdivTbis=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rEYS7TwbklrzGzDVYZsKLmhSToq7g+RloY07huUFmK8Ylh4ZDRBTYINBnhoLv4XkeBWeEXWddyhamH1AjeNJAv7aUD1lWQvcNDSoLk/cQf/4RdAnZJ2n5tgGb+H5KMih+Fe5vlDHtLq5NmsmYnC//U4pPfTPBnU3VSDdW1q0YB8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=S+Fq1RkX; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="S+Fq1RkX" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d437a2a4c7so2371695ad.0 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=vger.kernel.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=S+Fq1RkX/R62eCMKUIV1DxIpypfdo2CW4dU335LxWnnHXdvHYZ//5p+fSKRlzkghDz 3uXMwoevWj9aODnMHehISaOnha4s7odc9qNPWR1aQ8E/XNJVaE74447c5a8AwRRWGOCe voMgFlnDQwyaValzwLdLok0Ez4T6zDDGRvaM0= 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=AVaPiBhq4HCZ87c4fe+vD7FgZvbs/+S55cisEOgHFJkpagevRl81gnwZ+URkCp1yR/ 86bGzUH59xI5buEk5myflhkc2F5nTycKK22Ww1SulkqEShritJvYULiclaIA6nutTZyI M7DD+JYdoaB7wYHcz3QfcQAYxsLipNWkE6IE2G5HXC5CAozBhvo5Qa59MWYCK1rrUg8r 7X7q/EtlsO1rRHWvBDLeHustsk43tvb2noZAx5mXEHNTQeS2601/fIr8DCWaLHiYWw3p hmVWNWmU0fZtUvfdKLkSTe634FRp6AE49K/3JoU4Nt1xqMwOJ3WPxIsTvafxYJrkVlvR Wt7A== X-Gm-Message-State: AOJu0YyFIXz+s+y06B3Qhgori6VMlETRpDHGP9H5dB1TwvjRS6wsYMpt 6TF68E4D4Xe2bGKuBFuk+zGVtOL4JqGWTFwwvJvHxrfL8oyQy3uOnkU43sjyfw== 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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 764862 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF61958229 for ; Fri, 19 Jan 2024 21:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705701199; cv=none; b=Rm1cOS9hmSb2v+cdsVB/i0qSfjdeKiROmVQRufW+qpS6fxrteBND3XqNk9l1+93TMXBdt1U+tKtM3VSLCHB2xWR09fvKqF8W9KycCL2vromp955zgSsvzDavsjn5sZlIzGtx2AU5we3QX1FTZ483DEUF9Amx1v54++SzhGDljY0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705701199; c=relaxed/simple; bh=kuXhR6wlh1gQbz7VydCEdodgqDYwLlDJ6XYiIwYaPSM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VJ9hKGyxBrggQ4NtYREg0IHQ1gVgb9M/sqlwQEvKoHzMsLaZM/1pRCAUq42Y4BxsaYPiRiWy/faP9rU7v4ALjdOzyiQGMFrp+oMx47GUCl/beDPQPtg/BdLsJmWDlxaEcAbKmZtmaPSerD4QoacB9OmD7aLGzoKoJVwVxcBwl2U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=d1fFTy3+; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="d1fFTy3+" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6daf21d1d5dso220574b3a.1 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=vger.kernel.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=d1fFTy3+b5Cbt1AErBBDwAomtevoG7JHB++DfJVuzvM8kyWrCTbPsPZgAVAnRCgRWr Xkv+6gA3ykMDE9Gp8BYiPF8Nv74O9+SsNTWtLR1XyKm8cm+6klyUykwRyDswozzbRG/6 kEMza2E8O0nLtjkoj0llKM2rfOVLBwOU1GG6M= 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=fPZaHcMc5THlx14OQRvnpDF99Mgl8VNj3WH/pM2RB1Ebd3me7OBRfyjLDVS+VbEznf lSyX0ODUYmWVjWANyTvuh4Crv5Ki2pixOFkqInUxiScXwGrF46RjesmpDAxXfV4w2f/m tFDEd9TTo0y/EIYbNocGpmskF4t/in6dRm159AJHoTZL36CCyTcD7Xa6/rPBCfzzBLPL jOLKc7FFo3VS4pc98SQ7dybYvCGAqfxx7gZzvP22ILNCykWnZkyCsiANPwFZqeAozXzv WFRYLSzbe7WeDyBipB7csn8Av8kxhNXauVfnfHdRy6eNcIi/1j8xQS42xji2kiIFWeCl 226w== X-Gm-Message-State: AOJu0YwUi+ZUXMeasYzeXXQ4Hj/rcCW8zAJsDb+GvZxLep+jsNa+qZ6M HxhM5OfEQvaKADTVFB/tLOw8qVLbaayAU2pO8OJZAjvxeB0s7BeReOAJCRSWtg== 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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 764041 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9ED4D58123 for ; Fri, 19 Jan 2024 21:53:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705701208; cv=none; b=Y+v1NN3JNAHlJd5S7Kx68B2SpU8mVoElm5Q5iRyTrDH3f0+CAXccKfC4IO5j5WMzGB9YH8+1JCHvqWa9Fu9gSTyBcj7p/+UIE+b7B1nvBvi4auZertK0vrbfeohIin1KojjambqqEH1cuCd/FTOaca8FvcZT9XnY8Zs5uQKpUTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705701208; c=relaxed/simple; bh=hoWJbemUFLCRVA/CsQjaythDoXbfbmHVmyUdH/Dbfec=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cUWhpVsxgBg3i4Ik1xX9edbqxKHJKy+g7ZUfZZr9fds9lHlSZ16fDdD0+hrG4xVYU0ALuoCUWAATOrhJ5AjJ6o8SKAMcUzQOlTHW4usS0qMPMs97gzhmHcnfg5Bu1ZBL/W7L/8hhpdXb/oO+buazbxUwbFDTe/42F5x3tcdadMc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=dYR7R8wr; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="dYR7R8wr" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1d3b84173feso2341415ad.1 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=vger.kernel.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=dYR7R8wrzPwo9odTBbYJ+nlgHs++MlbmiJND1HJ0GKBIHKAA/kW//9NtcSVsGcJhQT HLIhfXW3KVJPF7QN7DZ4E2Yk/nXAPEgxMvHFkpqauuYQUBuSQO3MKuXc2XnpUwQirKKJ Kr4kTBvLqktYh9BsDZI2t9ESBKZkO025XIsRo= 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=Kq2/eQX8El1DXGV5sm+Zlx3OZMw+2jxcFuVMsSIu0nuMZBeUQenVf/AgJ2mTxR+RoQ 5YMAIgJaJO2fllTHEWDGy9BJUB9A2uBgzRlNpD9Hqc5PdGuBQ43MZOXukOdTb72FTa+i 7YnQl05BsFMa0iVf3L5e0SqlzfpBeyNpIdN/UzK4mEuijxhp0etnJC/vSQltuGNv1aRP D7d3If/rJ0mXHv5VTPK9N6161qxMBS136PhtxYDDGlwUpPRS7tWK/SszLzYo+MdvmXRR UBrgKXNZRwbyTNef5HJ+c5CbUOE4p7nY+2qShtol18UzbgdttnMEzvvgS//P+yT0JAuT A10w== X-Gm-Message-State: AOJu0YzTolFtisp5E0USfDzsLXSYLagDhk0r1urtvzV9qassbQrFn5jo QN1lB/gV3gXfWm+rrc9zIu3D8Y6SwNrk9PVOzWvXwFd76PCGywM0/znNwkVOcvBcW55nhkumAxr zyA== 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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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