From nobody Tue Dec 2 02:52:31 2025 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 0CEE2363C5E for ; Tue, 18 Nov 2025 15:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763478543; cv=none; b=aGlGs+BdLRIlaYS4SaZUvgrCPcMO9z5xL30K/NjN6KtunvVeQr9232QWSTFxTBq4yw7dTQNi3FMvEovNtTevPAfqMzgKfEIU9kNTklsAVFg4x5LSvS3EG2gYZK2x4c6f0WtOEw+kRrMNhGPPxHyHW6+JndMH9dV6owSacrHomls= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763478543; c=relaxed/simple; bh=BuavbZl2CuLyT2bJBQ2qGaxBmPAelG/doGphhiOsros=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=azJu6spep3zUe3OuRPi/h5GTHUADOUps/HLFF8/XzcnlNFdknAurNzamC4FZWQC0UTzzJvM3t/XdcFjaZDf1k2paWusO2MH9uf2iwICZEYPlms8NL4VLHxjz0h0dThD6ynaoaORjFmv0x40sAInU+QJR0l7SczsVgqHpOLkDZ6s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HWxUDgFR; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HWxUDgFR" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-42b3b29153fso3085235f8f.3 for ; Tue, 18 Nov 2025 07:08:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763478538; x=1764083338; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vXSFON/1VQrHCM+f9FmS2ChuuEZCr9AFJjq4nQ/j5F0=; b=HWxUDgFRppSxB6QLY4moUKGg5aCIMLNUh/MNrXwRyJW+0ewOUuoA4Wls/BnclQs+YG TSKOzFPZ8eTw/fCrbYsBYsqICtaNKuBXyEM7rO1tfJcoQ1xNri0jHrVInpOtzuPb33zo 6gprizqZ0aKre+xsMzlQ/3Ks6cQ1+IKPWm2qYgRdU2k0tYghKeN87oA5zp0YTy8VwpD1 AnfQewMUKF4tJUZct9pFq/6oi7FtkaQQbHVwLY0aVvvQ/V82AKx99axB1OkiH4f1Sm8g 24Dr9Snva0j8b9xlDnOXTghK6oGzLorXlXkX9zxNBoDt8nK9QCySsuf1zLyzLTRcGTZd jDOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763478538; x=1764083338; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=vXSFON/1VQrHCM+f9FmS2ChuuEZCr9AFJjq4nQ/j5F0=; b=F1tbl2vWC+qK5hdqgd2VheceUAZde383kN/pI8hcPJvxDzZdyrZvMdEdEJTxsEqVmj i6CUEQXwdjVQ9PZCjOWwsEyPc2w7l4VxcgBKi/6hh8zRXIeSV2CnvhfFnp9lGvkC6SQ3 6hj8dmhnPu9Mh+o5+7dP/iR19sLtKtzQM9irbK4zIbbhOXCr8y8M/8KEPBNkon7Jtf1s VBFaSxqXJxtWNyHfzUEWdnk9MORmfjN7k7tAsAVx09Z9PmC26vngEnLLdvf8CoXt2aj1 LmK7u6sFDXN5uLRP7Lf4Lmij5+mFiN8FYJG0qL1PimdBIS9R75kaD+E2qX52CIfOve+0 qSpQ== X-Gm-Message-State: AOJu0YxB9oecowxxPg5/GQFhx8ma+JZ/GONE0zag/KHzOMTb+0JCjWf1 XPPuPQNZQ/egpoXDvbEZLkZ/xvzzbIaPQiGsEQbpo/iUraJVSE0APPaT X-Gm-Gg: ASbGncsDD5t7b5LG/4zjjM5/GEeerlXk8KxijJs4wcL6yhjYYnOp63pTWdUHU2Ubme2 njZhiTw/VUXpKUWSY8J5g4zWwr98orgmTbk3z+cNP13KfL2uqWqTrOl4N95mtnPRRUyRZTne0hX 3+HpY1PgUWo5zk1fq+rzce4nUK1LlC2adVigt80uots8XO1mLUAJtvEgxUm3o0bAuDbztP1iRnP O3c33Fwxx23whvrhgxu5E5nysSnRhsgEVWsvcgc0s0Cs6g+6m1zHxM1EYmVuua4OHQsZK86V3A4 YnQoP5If516NKEA0N+akhLFON9LGBjywbBIKRbfT/KoQsbNNTz2qSklvxenhjEfiHFar0hYMpgA oKpqz4jf8w8UvJBlQTkC/h552Zwp1RqFZwE2A75z4xP3d2bAxn126tiLa+TyOt9NoPFkb50WA1F QkcE3kDW1sMv2FqJUUICyB4UKZv1DuGdjHgOHvIn8PNyrNo18tLOe8xhFxi2NRpfBju10= X-Google-Smtp-Source: AGHT+IEUJJGCTrmMLvsniUV7hiBdNMRfXZvya+c/u+hMC4mF96bJTPI256APV6+JR6pYbekvFc8AOA== X-Received: by 2002:a05:6000:2f83:b0:42b:3ee9:4772 with SMTP id ffacd0b85a97d-42b5937618emr15137124f8f.52.1763478538022; Tue, 18 Nov 2025 07:08:58 -0800 (PST) Received: from localhost (2a02-842a-9b20-0d01-432b-0dab-f195-2b25.rev.sfr.net. [2a02:842a:9b20:d01:432b:dab:f195:2b25]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42b53f0b894sm33875087f8f.26.2025.11.18.07.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Nov 2025 07:08:57 -0800 (PST) From: =?utf-8?q?Cl=C3=A9ment_Le_Goffic?= Date: Tue, 18 Nov 2025 16:07:58 +0100 Subject: [PATCH v9 2/7] dt-bindings: memory: introduce DDR4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251118-b4-ddr-bindings-v9-2-a033ac5144da@gmail.com> References: <20251118-b4-ddr-bindings-v9-0-a033ac5144da@gmail.com> In-Reply-To: <20251118-b4-ddr-bindings-v9-0-a033ac5144da@gmail.com> To: Krzysztof Kozlowski , Rob Herring , Conor Dooley , Julius Werner , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Cl=C3=A9ment_Le_Goffic?= , =?utf-8?q?Cl=C3=A9ment_Le_Goffic?= X-Mailer: b4 0.15-dev-86b30 From: Cl=C3=A9ment Le Goffic Introduce JEDEC compliant DDR bindings, that use new memory-props binding. The DDR4 compatible can be made of explicit vendor names and part numbers or be of the form "ddrX-YYYY,AAAA...-ZZ" when associated with an SPD, where (according to JEDEC SPD4.1.2.L-6): - YYYY is the manufacturer ID - AAAA... is the part number - ZZ is the revision ID The former form is useful when the SDRAM vendor and part number are known, for example, when memory is soldered on the board. The latter form is useful when SDRAM nodes are created at runtime by boot firmware that doesn't have access to static part number information. Signed-off-by: Cl=C3=A9ment Le Goffic Signed-off-by: Cl=C3=A9ment Le Goffic Reviewed-by: Rob Herring (Arm) --- .../memory-controllers/ddr/jedec,ddr4.yaml | 34 ++++++++++++++++++= ++++ 1 file changed, 34 insertions(+) diff --git a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec= ,ddr4.yaml b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec= ,ddr4.yaml new file mode 100644 index 000000000000..928961c74026 --- /dev/null +++ b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,ddr4.y= aml @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,ddr4.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DDR4 SDRAM compliant to JEDEC JESD79-4D + +maintainers: + - Krzysztof Kozlowski + +allOf: + - $ref: jedec,sdram-props.yaml# + +properties: + compatible: + items: + - pattern: "^ddr4-[0-9a-f]{4},[a-z]{1,20}-[0-9a-f]{2}$" + - const: jedec,ddr4 + +required: + - compatible + - density + - io-width + +unevaluatedProperties: false + +examples: + - | + ddr { + compatible =3D "ddr4-00ff,azaz-ff", "jedec,ddr4"; + density =3D <8192>; + io-width =3D <8>; + }; --=20 2.43.0