Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1357832lqj; Mon, 3 Jun 2024 21:04:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUMm6siLbycEbcbXCr7cMO1LoUQWABnhbuunfOU/ijjIoVnXIX4Ol6Jh3Yu+qIZgfHvTaRUv+dYM8fwPQhgpQHO291sWI2ktRoGPMKpaA== X-Google-Smtp-Source: AGHT+IHgqiAtxVFgX5sZEfPGwm9zgDPcLsYIVrRsm7v1zYqoKjSziRUkwBkYqcnvzQ0zfT+aL2HI X-Received: by 2002:a17:90a:bd0a:b0:2c1:9cd4:665b with SMTP id 98e67ed59e1d1-2c1dc58eb22mr9302856a91.28.1717473848104; Mon, 03 Jun 2024 21:04:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717473848; cv=pass; d=google.com; s=arc-20160816; b=kc3mxe1AYP9yr8CczGkFlwjtIrsIYFLKB+5N6N4G8BORLcvq+SBiU41+OXlc+PW2YH mihl8rOMUPKEEBEViTWwBdx+8gwCC4iwhB64LHS9v5qhdQRV5cy6rg05XDQGW+Y5Envw DfdOI8WzLUEvK/Io4faBRaaPxqSV8f0zm1aQ+bnbgy1oQPSa3v4DBcykOJzU9bWT/THS DC9g4gEqxE09OgosWqdkcQjK+gzEv4D/BYS1fihLOPHIf/G9r9pVLiNavu6W8op4rv9d P3qkkDoosJ72rkBSahSHbmoGsczwwOMNHmbVU7xgh9WVz4I+BOB4pF2UDIBg1chNgtfn WsfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:sender:dkim-signature; bh=xb4a23ym03gUQRSCJvpHr+ALZvR2eodvP60RsNgR2A8=; fh=OIDNG618g9e5+P/c75R3XAEZfBYZVfAQBlxEpfWai/Y=; b=InX4k2WGpI9KWfDu3/KJignnJ+Cj9Zw/jLhFt1SDxoHM3tJ/oeMxeaivI0ASQoya6y dB09Dh/vGvXUktrtF4c2G49x/Cjq7kvhjRScx9mpzw2VhlV66AEfUy+eGdZxoadAZa9F v03+xSOnLcvmYM5oeZQlfErVu0skqVr0U77ZJGg2IEhcROYMUT96LtXWwUGI4movfZkB pi6RUuT5WfUke97vi/GuFbx0Pjno5BU1f77MywtdtGoBeVAHkanJazZ+fP7no3ZdvGWe d6BM9vTLmNAFNP9LRmNwFkcEeLjc88zBG7K54zbIGNlQ1C1JiYxBzSNBymmCqBSv90mF Jj1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GydqNIam; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-199999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199999-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c27a9d1dsi259994a91.34.2024.06.03.21.04.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 21:04:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GydqNIam; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-199999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199999-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BB438287824 for ; Tue, 4 Jun 2024 04:04:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A280B140397; Tue, 4 Jun 2024 04:02:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GydqNIam" Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 729C413F425; Tue, 4 Jun 2024 04:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717473771; cv=none; b=X9ilSJElgIEr3EmG38SJE1R141FK5o/QTeaP3wTEmRk37cgRmi+JpGIWPGpSfUE6nS30Oa8juMao63K6Q07oxU8DBQLzyfxr/IKOeNCKWRbTP2T1v+nwmIw/IbbYcnIxhZG2OJCc+lP8ChuZDZva5PYqic9JRw6/LiWSyP10LVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717473771; c=relaxed/simple; bh=V4Bc20JgEh03G5zH/lwBSrpsAMsdSdWhIz1CkRvMky0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=uWbAk3msg0HDM2RqHfl0E2lTUcJWt1TxAVVH1cLnIgC/5r5G0PQ6S30Ad8ll2O41asBboVXj8lBZ+cmbjP+ttJzUYv+W3lT/WX57HHTvu47UqDTtgjj2JN0r9j4hecM4sKfvoprMgbBMkVfAgTKDoHRxO7SMciIme4DXlAkmUdc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GydqNIam; arc=none smtp.client-ip=209.85.216.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-2c1a5913777so4154554a91.2; Mon, 03 Jun 2024 21:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717473769; x=1718078569; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=xb4a23ym03gUQRSCJvpHr+ALZvR2eodvP60RsNgR2A8=; b=GydqNIamsktp09/SHTTxXbOxeoPwv2oxj56hJ54sjHEaFbjptyLjmoL2uV/R8iXppN gtXHVvwdJ6yVQzYtBSTbcFLp7CqkpPxLXbJIMgMwey/pnnwPfYa6Y0OrWJxVVorkW7vg 8UEnt0dbTEOv1XJ7bNINxY1pXN2Jr+QACJIu5jVAL4MUm+ciZfx9/5lB7+TIYdPgz8iN nLTMdhd/T7Ie8SxGPWWBNLOO6JiqBrE9u2IcozZHMti6pAtBla4JVWQyJDdHm4umBtgy orqixFz7M6lNU/p05J2tua4ZrNBatlQR90JS4zxki9JkqB/9vC+MOMTgzXEMFFBYfqRs MARQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717473769; x=1718078569; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=xb4a23ym03gUQRSCJvpHr+ALZvR2eodvP60RsNgR2A8=; b=MTjTrw99nS7UJTAk6ccsfHZf3iuLlebVyQrtki6Di27PStjDQfqO/yWTDxjI1Uh/uo Pcl1n+FX/Img17Ex61pYQHgCczUyfDrWhT22Zkt67jOyHH6DbZDX41GzGysgPVSY4HTY mKzvbjwJWFceF+YdnE2S+UDRiVjtrtdxpGTt1+AzU8DoBa075ptOWhTLXgUn6hihc+uE 4/tvFIrNVqyE/ZWAG8bbDRUpbBBJe2MIxNIHkbTa1IJiJK232zHjbkB6FvV0iap3xnm/ CJ0us/7REzOowFM7xppiHTrDeD3ExMi5+XvyQnOEKLEzPY9TLRd2u9sLdsaoouqX4xzC 9lfQ== X-Forwarded-Encrypted: i=1; AJvYcCXDNdw8ygE9RkPwCOj2fQrRY0XMsfyO1hTldzlXHb5ZqUgi7XYh28lDOsONgMHI8urq66QOao0Vzvj6V6TVCfNWDVHw2Y4I9qPCqL8Nmj43pcZEYH2TwbCWqK9izUcXs1N7uWu2D3yfaw== X-Gm-Message-State: AOJu0YycrWgYarfs2/onPe7p5+Y2R2FL+SxpFS92zYv8D3Yu8Ed0vt4s ME9G3ce1Z9iIQzwDkIxFnug+w12TpiUWsOmIOB/ItRDERm3X4RW2qb6fDw== X-Received: by 2002:a17:90b:4b4b:b0:2c1:948b:6f2c with SMTP id 98e67ed59e1d1-2c1dc5cce0bmr9313439a91.39.1717473769280; Mon, 03 Jun 2024 21:02:49 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c1c284250asm7528638a91.50.2024.06.03.21.02.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 21:02:48 -0700 (PDT) Sender: Guenter Roeck From: Guenter Roeck To: linux-hwmon@vger.kernel.org Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski , Wolfram Sang , =?UTF-8?q?Ren=C3=A9=20Rebe?= , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Armin Wolf , Stephen Horvath , Guenter Roeck Subject: [PATCH v4 5/6] i2c: smbus: Support DDR5 SPD EEPROMs Date: Mon, 3 Jun 2024 21:02:36 -0700 Message-Id: <20240604040237.1064024-6-linux@roeck-us.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240604040237.1064024-1-linux@roeck-us.net> References: <20240604040237.1064024-1-linux@roeck-us.net> 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: 8bit Detect DDR5 memory and instantiate the SPD5118 driver automatically. Suggested-by: Thomas Weißschuh Cc: Wolfram Sang Signed-off-by: Guenter Roeck --- v5: New patch drivers/i2c/i2c-smbus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/i2c-smbus.c b/drivers/i2c/i2c-smbus.c index 97f338b123b1..8a0dab835761 100644 --- a/drivers/i2c/i2c-smbus.c +++ b/drivers/i2c/i2c-smbus.c @@ -382,6 +382,10 @@ void i2c_register_spd(struct i2c_adapter *adap) case 0x1E: /* LPDDR4 */ name = "ee1004"; break; + case 0x22: /* DDR5 */ + case 0x23: /* LPDDR5 */ + name = "spd5118"; + break; default: dev_info(&adap->dev, "Memory type 0x%02x not supported yet, not instantiating SPD\n", -- 2.39.2