Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp892158lqb; Wed, 29 May 2024 13:52:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgWTHE1d6d2N3BV2JF38eq0k5bvPLCNDNXFztxlPXXn+gQNqFIkHAB+GXUpFluDycJOi7fD7nLjSaB1bNRi7+4chE6cbhIvwxx1p9+oA== X-Google-Smtp-Source: AGHT+IFFaYCK83vt4Q4Lx1f0lyhJHAPtLlEAucSUTtt8Wk+djJLs+REXmDzc3jdCbEYmpu/OdpMw X-Received: by 2002:a17:902:ecc3:b0:1f4:9b2a:b35f with SMTP id d9443c01a7336-1f61972e528mr1819315ad.37.1717015945529; Wed, 29 May 2024 13:52:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717015945; cv=pass; d=google.com; s=arc-20160816; b=cGdGYHL/6aQ4N/0vJwaVi8ulQ0uMEMfh50Xy1tnxxipI7U6UT2iOLuPraJDli4q3Ef AMdZBNWzRA4VcQ2lGBSMmUdO8SKkZ0WF3HSefDtuCpSIA4AgUHg45qBPAxRUr9RhGsj1 Elixu0nZRg8183GTkpSnOE3ZI4gJtifCMDokyyWKDGHIwCF0udy92o56oRWpYf7+EP+z hoC72owCdPU+BNWsP/mSU4CgMc62LIayFdgP1VhVigEu2mixR9/ork9WdjCBg4BBnED8 av2oSXszudO2r3ff9cRKoZuh9K8wq9+Kw8ZV6k413zyi7Jh6dVFYAEua6TlR6zpr1oEy EKkw== 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=DTb5O4K64K41d0IyPGOBYfXW5RgD3BIXwCmpDCC81V4=; fh=0rPcnIVtpQObme5MI2pcrLb558XvApcCn8eft7z1DlA=; b=PN0jNNDrRCodqRJWoHjRaUpLQpD86xb4Q5WfEiOy3/gR5qKCr05qFt91eFQ+2ItDlI RPrAEkx2fVaPWi0kCYW5bcexqYO/11np8zTBPi6yToClDxjWYYANNzfjGzg6LL9/LxQk fYVcVKQj27485gaW1CyTSbLoCNQMVQnIUSHwYoD/IfY8JlX2x7Mb913+XR2S816UuUUq uhe8zzb2EEASrqvv3/3lCtkINEw9wFFEOj6bng/r+z22eopOjqYOP4xwMSIHec14EV73 bi1u+KKsvnwTHbgDlr+5TNvqA++uk5ZuZN0l8KQ2SYv0F6SPy4TchrOnPIjHMp7xCCIP NozA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kE7p/ULs"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-194679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194679-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 d9443c01a7336-1f44c99d1fcsi108783175ad.397.2024.05.29.13.52.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 13:52:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194679-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="kE7p/ULs"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-194679-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194679-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 1F12E282DD2 for ; Wed, 29 May 2024 20:52:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 991F01C8FD9; Wed, 29 May 2024 20:52:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kE7p/ULs" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 4B3D515CD42; Wed, 29 May 2024 20:52:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717015932; cv=none; b=O7rz9RlqUOyd9qkbJB1e8gGGaAdRa+eLemdPxo+ke6XkrAxQL2iZQHTNdG+y2gNAft9huxBUtqcRvbnEaOyOxqCPpz7JPu0KS956gQX4U4IIwrXUsb6KTiUrZCUEdfy5j/pQCNEv7UDQtXg0CsOXzyfsowRyN4/frHnnjEVSano= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717015932; c=relaxed/simple; bh=bUSOfyZ1RS/JFlmZr8edz4J/gVf0uNdA3Hhjv4Qs/0w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X5COJe8Pq0RKiZwLTfg7nOgcT8E4SW8TjdLSI29r5rwX1xvuQMji4wyjFD8zmN9Hqz4iwCEaeg1iuhmCuU7r32sMxw75BkYkfA2EolyCgtoMf1A8FryBwuJZca47VuMrEgej7ExdPsgigiJWXMkjCbsAdrvEV9xzDgJBCjKneeE= 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=kE7p/ULs; arc=none smtp.client-ip=209.85.214.182 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-pl1-f182.google.com with SMTP id d9443c01a7336-1f4a52d2688so1596665ad.3; Wed, 29 May 2024 13:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717015930; x=1717620730; 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=DTb5O4K64K41d0IyPGOBYfXW5RgD3BIXwCmpDCC81V4=; b=kE7p/ULse+7+EOHOFMZ4/llWalkAE12lZevK23fAy1put7Njz8EY3kIett5aWcz48f id2/r/cIZ2lWq6C4QdkMbruEDMknfoE7SvykLPnJPSZt47tm50Cs8kt4hOotaScvijhz fS6cviA0mPUfCh89RYfdX4Fc7nS+cwby2GQBToEi4T5Y8Qw5jm6/7LQmRTAZtPWWan++ Uwrn2Fy3b6QgPYVpkB/ETUO8/+9h33VvJQHrqZ8QYaRjBwlI7LwBdhZnyAX6GfyS27Kc cQjdM6utKpm8NcWWeaL7AgZt3rgXRq+RV+uLqljkGXjpDN49JzCvAkROb+JBU9EKT86w Ctbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717015930; x=1717620730; 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=DTb5O4K64K41d0IyPGOBYfXW5RgD3BIXwCmpDCC81V4=; b=VzFxS8zlIwT5CY2Q4rlAxgUEFv42mQ57VPnP1z9yqJ7jxbItwbCnNwM2JnLtRc+atZ c6Png/hCvaY209YMCH7x8p0FYS8LUpa0HHbU/x8JBex/B/BRR2LdE5v2bMpH8L/0HKcc vwTEm8RaWeS4EogNhoqWi0IUJ7Z7T+BfPgB6hyjFGBXApjfDAg7InU7jTjFVqWssb2K1 8g4Mp2s2bFunErdZs7pR7I8/RfRg8aB1EOC7m0Q0nndbsGeZUlCsdwEywfzXPCD4VACm 901NQ9/qs9W1CG51M0ofvEGbcxhPnEv4w4ahbe7z4gWt6UhPfPSE/YOlp2vHfqygSJPU F18A== X-Forwarded-Encrypted: i=1; AJvYcCVC9yXuEcBqA1pNRbmQgiFlwDuQ8XBoDrXsR56/zUo7Y1T90UkGlyTqTx8zjRCgzztkEqESzl9y+y73B8V06phHHv+1ojK2HDRoC5KFD5tly2p7fooN0dSb/4hqeftQQ/m6EqRSVigrug== X-Gm-Message-State: AOJu0Yzz1OrvzXdqVGuPfOajbs+3QtSnAx/zUW707VomRi/G9p0NzX2N J76IEfeWP4RGjxMChjWD1NThPpT9nEtXBRnanZ93yY1KO4LuH1xeIFyWJA== X-Received: by 2002:a17:903:2b0e:b0:1f4:8bb7:6862 with SMTP id d9443c01a7336-1f61960240amr2634235ad.5.1717015929934; Wed, 29 May 2024 13:52:09 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f476f665b0sm79285365ad.250.2024.05.29.13.52.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 13:52:09 -0700 (PDT) Sender: Guenter Roeck From: Guenter Roeck To: linux-hwmon@vger.kernel.org Cc: Hristo Venev , =?UTF-8?q?Ren=C3=A9=20Rebe?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Radu Sabau , Guenter Roeck Subject: [PATCH 1/3] dt-bindings: hwmon: jedec,spd5118: Add bindings Date: Wed, 29 May 2024 13:52:02 -0700 Message-Id: <20240529205204.81208-2-linux@roeck-us.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240529205204.81208-1-linux@roeck-us.net> References: <20240529205204.81208-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-Transfer-Encoding: 8bit Add device tree bindings for the SPD hub present in DDR5 modules. Signed-off-by: Guenter Roeck --- I am not sure about the "pec-enable" property since it is not really a chip property but a SMBus property. It is also not chip specific; there are other chips with the capability to enable or disable PEC support. There are no generic SMBus bindings, though, so I don't know a better place (or name - maybe it should be 'smbus,pec-enable', but there are no other similar bindings, or at least I didn't find any). .../bindings/hwmon/jedec,spd5118.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/jedec,spd5118.yaml diff --git a/Documentation/devicetree/bindings/hwmon/jedec,spd5118.yaml b/Documentation/devicetree/bindings/hwmon/jedec,spd5118.yaml new file mode 100644 index 000000000000..1717f75129da --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/jedec,spd5118.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/jedec,spd5118.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: JEDEC JESD300-5B (SPD5118) compatible DDR5 SPD hub + +maintainers: + - Guenter Roeck + +description: | + JEDEC JESD300-5B.01 SPD5118 Hub and Serial Presence Detect + https://www.jedec.org/standards-documents/docs/jesd300-5b01 + +select: + properties: + compatible: + const: jedec,spd5118 + + required: + - compatible + - reg + +properties: + compatible: + const: jedec,spd5118 + + reg: + maxItems: 1 + + pec-enable: + description: Set to enable PEC (Packet Error Checking). + type: boolean + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temp-sensor@51 { + compatible = "jedec,spd5118"; + reg = <0x51>; + }; + }; -- 2.39.2